Bladeren bron

ref: minor stuff

Sv443 1 jaar geleden
bovenliggende
commit
2803286fe1
4 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 1 1
      src/constants.ts
  2. 1 1
      src/index.ts
  3. 1 1
      src/menu/menu_old.css
  4. 2 2
      src/menu/menu_old.ts

+ 1 - 1
src/constants.ts

@@ -19,5 +19,5 @@ export const scriptInfo = {
   name: GM.info.script.name,
   version: GM.info.script.version,
   namespace: GM.info.script.namespace,
-  lastCommit: "{{BUILD_NUMBER}}" as string, // assert as generic string instead of literal
+  buildNumber: "{{BUILD_NUMBER}}" as string, // assert as generic string instead of literal
 };

+ 1 - 1
src/index.ts

@@ -26,7 +26,7 @@ import {
 
   console.log();
   console.log(
-    `%c${scriptInfo.name}%cv${scriptInfo.version}%c\n\nBuild #${scriptInfo.lastCommit} ─ ${scriptInfo.namespace}`,
+    `%c${scriptInfo.name}%cv${scriptInfo.version}%c\n\nBuild #${scriptInfo.buildNumber} ─ ${scriptInfo.namespace}`,
     `font-weight: bold; ${styleCommon} ${styleGradient}`,
     `background-color: #333; ${styleCommon}`,
     "padding: initial;",

+ 1 - 1
src/menu/menu_old.css

@@ -2,7 +2,7 @@
   --bytm-menu-bg: #333333;
   --bytm-menu-bg-highlight: #1e1e1e;
   --bytm-menu-separator-color: #797979;
-  --bytm-menu-border-radius: 15px;
+  --bytm-menu-border-radius: 10px;
 }
 
 #bytm-cfg-menu-bg {

+ 2 - 2
src/menu/menu_old.ts

@@ -397,8 +397,8 @@ export async function addMenu() {
   const versionElem = document.createElement("a");
   versionElem.id = "bytm-menu-version";
   versionElem.role = "button";
-  versionElem.title = `Version ${scriptInfo.version} (build ${scriptInfo.lastCommit}) - click to open the changelog`;
-  versionElem.innerText = `v${scriptInfo.version} (${scriptInfo.lastCommit})`;
+  versionElem.title = `Version ${scriptInfo.version} (build ${scriptInfo.buildNumber}) - click to open the changelog`;
+  versionElem.innerText = `v${scriptInfo.version} (${scriptInfo.buildNumber})`;
 
   versionElem.addEventListener("click", (e) => {
     e.preventDefault();