mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 10:06:07 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e079c30c54 | ||
|
|
eba9f54454 |
@@ -10,54 +10,6 @@
|
|||||||
"/www/painter.js",
|
"/www/painter.js",
|
||||||
"/www/setup.html",
|
"/www/setup.html",
|
||||||
"/www/setup.js",
|
"/www/setup.js",
|
||||||
"/www/upload-demo.html",
|
"/www/upload-demo.html"
|
||||||
"/fonts/weathericons30.vlw",
|
|
||||||
"/fonts/weathericons70.vlw",
|
|
||||||
"/fonts/weathericons78.vlw",
|
|
||||||
"/fonts/calibrib120.vlw",
|
|
||||||
"/fonts/calibrib150.vlw",
|
|
||||||
"/fonts/calibrib50.vlw",
|
|
||||||
"/fonts/calibrib60.vlw",
|
|
||||||
"/fonts/BellCent10.vlw",
|
|
||||||
"/tagtypes/00.json",
|
|
||||||
"/tagtypes/01.json",
|
|
||||||
"/tagtypes/02.json",
|
|
||||||
"/tagtypes/05.json",
|
|
||||||
"/tagtypes/11.json",
|
|
||||||
"/tagtypes/21.json",
|
|
||||||
"/tagtypes/22.json",
|
|
||||||
"/tagtypes/26.json",
|
|
||||||
"/tagtypes/27.json",
|
|
||||||
"/tagtypes/2E.json",
|
|
||||||
"/tagtypes/2F.json",
|
|
||||||
"/tagtypes/30.json",
|
|
||||||
"/tagtypes/31.json",
|
|
||||||
"/tagtypes/32.json",
|
|
||||||
"/tagtypes/33.json",
|
|
||||||
"/tagtypes/34.json",
|
|
||||||
"/tagtypes/35.json",
|
|
||||||
"/tagtypes/36.json",
|
|
||||||
"/tagtypes/40.json",
|
|
||||||
"/tagtypes/41.json",
|
|
||||||
"/tagtypes/42.json",
|
|
||||||
"/tagtypes/43.json",
|
|
||||||
"/tagtypes/55.json",
|
|
||||||
"/tagtypes/60.json",
|
|
||||||
"/tagtypes/61.json",
|
|
||||||
"/tagtypes/62.json",
|
|
||||||
"/tagtypes/80.json",
|
|
||||||
"/tagtypes/81.json",
|
|
||||||
"/tagtypes/82.json",
|
|
||||||
"/tagtypes/83.json",
|
|
||||||
"/tagtypes/B0.json",
|
|
||||||
"/tagtypes/B1.json",
|
|
||||||
"/tagtypes/B2.json",
|
|
||||||
"/tagtypes/B3.json",
|
|
||||||
"/tagtypes/B5.json",
|
|
||||||
"/tagtypes/BD.json",
|
|
||||||
"/tagtypes/BE.json",
|
|
||||||
"/tagtypes/E0.json",
|
|
||||||
"/tagtypes/E1.json",
|
|
||||||
"/tagtypes/F0.json"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
|
||||||
|
|
||||||
<title>Open EPaper Link Access Point</title>
|
<title>Open EPaper Link Access Point</title>
|
||||||
<script src="main.js" defer></script>
|
<script src="main.js?2.74" defer></script>
|
||||||
<script src="g5decoder.js?2"></script>
|
<script src="g5decoder.js?2.74"></script>
|
||||||
<link rel="stylesheet" href="main.css" type="text/css" />
|
<link rel="stylesheet" href="main.css?2.74" type="text/css" />
|
||||||
<!--<link rel="icon" type="image/vnd.icon" href="favicon.ico">-->
|
<!--<link rel="icon" type="image/vnd.icon" href="favicon.ico">-->
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export async function initUpdate() {
|
|||||||
} else {
|
} else {
|
||||||
const release = releaseDetails[0];
|
const release = releaseDetails[0];
|
||||||
if (release?.tag_name) {
|
if (release?.tag_name) {
|
||||||
if (parseInt(release.tag_name) == parseInt(currentVer)) {
|
if (normalizeVersion(release.tag_name) === normalizeVersion(currentVer)) {
|
||||||
easyupdate.innerHTML = `Version ${currentVer}. You are up to date`;
|
easyupdate.innerHTML = `Version ${currentVer}. You are up to date`;
|
||||||
} else if (release.date < formatEpoch(currentBuildtime - 30 * 60)) {
|
} else if (release.date < formatEpoch(currentBuildtime - 30 * 60)) {
|
||||||
easyupdate.innerHTML = `Your version is newer than the latest release date.<br>Are you the developer? :-)`;
|
easyupdate.innerHTML = `Your version is newer than the latest release date.<br>Are you the developer? :-)`;
|
||||||
@@ -638,3 +638,7 @@ async function fetchAndCheckTagtypes(cleanup) {
|
|||||||
print("Error: " + error, "red");
|
print("Error: " + error, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function normalizeVersion(version) {
|
||||||
|
return version.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user