about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-11 21:02:02 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-11 21:02:02 +0300
commite4020e8dfefc7df71114b14195e331fb7fb5bf83 (patch)
tree48ef7b3d87b552bdcca966afaa6f5639eaf5e33d /src
parent24187f28d3d8f5af06a56b89a74e4be7a7b0573d (diff)
downloadthe-epube-e4020e8dfefc7df71114b14195e331fb7fb5bf83.tar.gz
the-epube-e4020e8dfefc7df71114b14195e331fb7fb5bf83.tar.xz
add cosmetic git-based version to the UI, set on build
Diffstat (limited to 'src')
-rw-r--r--src/app.js4
-rw-r--r--src/index.d.ts2
-rw-r--r--src/reader.js4
3 files changed, 9 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index fd02999..095df1c 100644
--- a/src/app.js
+++ b/src/app.js
@@ -124,6 +124,8 @@ class AppClass extends AppCommon {
 
     version = BUILD_CACHE_VERSION;
 
+    cosmeticVersion = BUILD_VERSION;
+
     // cacheManifest = [];
 
     csrf_token = "";
@@ -186,6 +188,8 @@ class AppClass extends AppCommon {
             this.getAll();
         });
 
+        $(".cosmetic_version").attr('title', this.cosmeticVersion);
+
     }
 
     logout() {
diff --git a/src/index.d.ts b/src/index.d.ts
index d84c22a..4bf1153 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -16,3 +16,5 @@ declare var localforage: LocalForage;
 
 declare const BUILD_CACHE_VERSION: string;
 declare const BUILD_MANIFEST_ASSETS: [];
+
+declare const BUILD_VERSION: string;
diff --git a/src/reader.js b/src/reader.js
index 259e66d..e1b2ab1 100644
--- a/src/reader.js
+++ b/src/reader.js
@@ -30,6 +30,8 @@ class ReaderClass extends AppCommon {
 
     version = BUILD_CACHE_VERSION;
 
+    cosmeticVersion = BUILD_VERSION;
+
     /**
      * @type {ePub.Book}
      */
@@ -696,7 +698,7 @@ class ReaderClass extends AppCommon {
                 });
             }
 
-            $(".last-mod-timestamp").html(`${this.version}
+            $(".last-mod-timestamp").html(`${this.cosmeticVersion} &mdash; ${this.version}
                 (${this.isOnline() ? `<span class='text-success'>Online</span>` : `<span class='text-danger'>Offline</span>`})
                 `);