File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 cp -r main-content/* _site/ 2>/dev/null || true
5050
5151 # MAIN: inject release version into root site
52- sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">'"${RELEASE_VERSION}"'</span>|' _site/index.html
52+ sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0 ">'"${RELEASE_VERSION}"'</span>|' _site/index.html
5353 sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "'"${RELEASE_VERSION}"'";|' _site/content/wardrive.js
5454
5555 # DEV: copy dev site under /dev
5959
6060 # DEV: inject DEV-EPOCH
6161 DEV_EPOCH=$(date -u +%s)
62- sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">DEV-'"${DEV_EPOCH}"'</span>|' _site/dev/index.html
62+ sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0 ">DEV-'"${DEV_EPOCH}"'</span>|' _site/dev/index.html
6363 sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js
6464
6565 find _site -name ".git" -exec rm -rf {} + 2>/dev/null || true
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ <h1 class="flex items-center gap-3 text-lg sm:text-xl font-bold truncate min-w-0
4040 < img class ="h-12 w-12 sm:h-14 sm:w-14 flex-shrink-0 " src ="content/wardrive.png " alt ="MeshCore " />
4141 < span class ="truncate "> MeshMapper</ span >
4242 </ h1 >
43- < span id ="appVersion " class ="text-xs bg-slate-800 border border-slate-700 text-slate-400 flex-shrink-0 " style =" padding: 0.25rem 0.5rem; border-radius: 9999px; "> v1.0</ span >
43+ < span id ="appVersion " class ="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0 "> v1.0</ span >
4444 </ header >
4545
4646 <!-- Connection Status Bar with Settings Panel -->
You can’t perform that action at this time.
0 commit comments