mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 15:26:15 +00:00
Merge pull request #7544 from hayaksi1/fix/2515-gallery-build-date
Show the build date in the screenshot gallery footer
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
// Generated file, do not edit
|
// Generated file, do not edit
|
||||||
|
export const buildDate = 1787667600;
|
||||||
export const screenshots = [
|
export const screenshots = [
|
||||||
["en","en-dark","de",],
|
["en","en-dark","de",],
|
||||||
["features.messages.impl.timeline.components.event_ATimelineItemEventRow_Day_0_en","features.messages.impl.timeline.components.event_ATimelineItemEventRow_Night_0_en",20675,],
|
["features.messages.impl.timeline.components.event_ATimelineItemEventRow_Day_0_en","features.messages.impl.timeline.components.event_ATimelineItemEventRow_Night_0_en",20675,],
|
||||||
|
|||||||
@@ -150,6 +150,11 @@ input {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.build-date {
|
||||||
|
margin-right: 20px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
a:link {
|
a:link {
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||||
* Please see LICENSE files in the repository root for full details.
|
* Please see LICENSE files in the repository root for full details.
|
||||||
*/
|
*/
|
||||||
import { screenshots } from './data.js';
|
import { buildDate, screenshots } from './data.js';
|
||||||
|
|
||||||
const URL_PARAM_LANGUAGES = "l";
|
const URL_PARAM_LANGUAGES = "l";
|
||||||
const URL_PARAM_IMAGE_WIDTH = "w";
|
const URL_PARAM_IMAGE_WIDTH = "w";
|
||||||
@@ -360,5 +360,13 @@ function addTable() {
|
|||||||
document.getElementById('lines').textContent = `${linesCounter} lines`;
|
document.getElementById('lines').textContent = `${linesCounter} lines`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addBuildDate() {
|
||||||
|
const element = document.createElement('div');
|
||||||
|
element.className = 'build-date';
|
||||||
|
element.textContent = `Built on ${new Date(buildDate * 1000).toLocaleDateString()}`;
|
||||||
|
document.getElementById('footer').appendChild(element);
|
||||||
|
}
|
||||||
|
|
||||||
addForm();
|
addForm();
|
||||||
|
addBuildDate();
|
||||||
addTable();
|
addTable();
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ def generateJavascriptFile():
|
|||||||
|
|
||||||
with open("screenshots/html/data.js", "w") as f:
|
with open("screenshots/html/data.js", "w") as f:
|
||||||
f.write("// Generated file, do not edit\n")
|
f.write("// Generated file, do not edit\n")
|
||||||
|
f.write("export const buildDate = %d;\n" % int(time.time()))
|
||||||
f.write("export const screenshots = [\n")
|
f.write("export const screenshots = [\n")
|
||||||
for line in data:
|
for line in data:
|
||||||
f.write("[")
|
f.write("[")
|
||||||
|
|||||||
Reference in New Issue
Block a user