Generate asset versions during Docker builds
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { api, protectedFetch } from "./api.js?v=20260730-release2";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=20260730-release2";
|
||||
import { showToast } from "./toast.js?v=20260730-release2";
|
||||
import { api, protectedFetch } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=__ASSET_VERSION__";
|
||||
import { showToast } from "./toast.js?v=__ASSET_VERSION__";
|
||||
|
||||
function fmtDate(value) {
|
||||
return value ? new Date(value).toLocaleString() : "—";
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import { api, protectedFetch } from "./api.js?v=20260730-release2";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=20260730-release2";
|
||||
import { showToast } from "./toast.js?v=20260730-release2";
|
||||
import { api, protectedFetch } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=__ASSET_VERSION__";
|
||||
import { showToast } from "./toast.js?v=__ASSET_VERSION__";
|
||||
|
||||
let currentUsers = [];
|
||||
let planFilterUserId = null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { api, protectedFetch } from "./api.js?v=20260730-release2";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=20260730-release2";
|
||||
import { showToast } from "./toast.js?v=20260730-release2";
|
||||
import { wireWhyPanels } from "./why-panels.js?v=20260730-release2";
|
||||
import { api, protectedFetch } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=__ASSET_VERSION__";
|
||||
import { showToast } from "./toast.js?v=__ASSET_VERSION__";
|
||||
import { wireWhyPanels } from "./why-panels.js?v=__ASSET_VERSION__";
|
||||
import {
|
||||
SCORE_ATTRS,
|
||||
SCORE_LABELS,
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
MAX_FLAVOR_TAGS,
|
||||
MAX_CUP_COUNT,
|
||||
computeTotalScore,
|
||||
} from "/shared/cupping.js?v=20260730-release2";
|
||||
} from "/shared/cupping.js?v=__ASSET_VERSION__";
|
||||
|
||||
const sessionId = new URLSearchParams(location.search).get("session");
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { api, protectedFetch } from "./api.js?v=20260730-release2";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=20260730-release2";
|
||||
import { showToast } from "./toast.js?v=20260730-release2";
|
||||
import { api, protectedFetch } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { initSideNav, loadNavUser } from "./nav.js?v=__ASSET_VERSION__";
|
||||
import { showToast } from "./toast.js?v=__ASSET_VERSION__";
|
||||
|
||||
let lots = [];
|
||||
let showArchived = false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { api, protectedFetch } from "./api.js?v=20260730-release2";
|
||||
import { showToast } from "./toast.js?v=20260730-release2";
|
||||
import { api, protectedFetch } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { showToast } from "./toast.js?v=__ASSET_VERSION__";
|
||||
|
||||
let lots = [];
|
||||
|
||||
|
||||
+13
-13
@@ -1,19 +1,19 @@
|
||||
import { FIELD_IDS, blankPlan } from "/shared/fields.js?v=20260730-release2";
|
||||
import { computeLedger } from "/shared/ledger.js?v=20260730-release2";
|
||||
import { FIELD_IDS, blankPlan } from "/shared/fields.js?v=__ASSET_VERSION__";
|
||||
import { computeLedger } from "/shared/ledger.js?v=__ASSET_VERSION__";
|
||||
import {
|
||||
formatDuration,
|
||||
formatSigned,
|
||||
parseRangeMidpoint,
|
||||
} from "/shared/time.js?v=20260730-release2";
|
||||
import { CULTIVARS, findCultivar } from "/shared/reference-data.js?v=20260730-release2";
|
||||
import { buildPlanCurve, pointsToPathD, tToX, tempToY } from "/shared/curve.js?v=20260730-release2";
|
||||
import { initPrefillPanel } from "./prefill-ui.js?v=20260730-release2";
|
||||
import { initAlogPanel } from "./alog-ui.js?v=20260730-release2";
|
||||
import { initPrint } from "./print.js?v=20260730-release2";
|
||||
import { initLotPicker } from "./lot-picker.js?v=20260730-release2";
|
||||
import { protectedFetch, csrfToken } from "./api.js?v=20260730-release2";
|
||||
import { initSideNav } from "./nav.js?v=20260730-release2";
|
||||
import { wireWhyPanels } from "./why-panels.js?v=20260730-release2";
|
||||
} from "/shared/time.js?v=__ASSET_VERSION__";
|
||||
import { CULTIVARS, findCultivar } from "/shared/reference-data.js?v=__ASSET_VERSION__";
|
||||
import { buildPlanCurve, pointsToPathD, tToX, tempToY } from "/shared/curve.js?v=__ASSET_VERSION__";
|
||||
import { initPrefillPanel } from "./prefill-ui.js?v=__ASSET_VERSION__";
|
||||
import { initAlogPanel } from "./alog-ui.js?v=__ASSET_VERSION__";
|
||||
import { initPrint } from "./print.js?v=__ASSET_VERSION__";
|
||||
import { initLotPicker } from "./lot-picker.js?v=__ASSET_VERSION__";
|
||||
import { protectedFetch, csrfToken } from "./api.js?v=__ASSET_VERSION__";
|
||||
import { initSideNav } from "./nav.js?v=__ASSET_VERSION__";
|
||||
import { wireWhyPanels } from "./why-panels.js?v=__ASSET_VERSION__";
|
||||
|
||||
const FIELD_ID_SET = new Set(FIELD_IDS);
|
||||
const STORAGE_PREFIX = "roastPlannerPlan.v2";
|
||||
@@ -903,7 +903,7 @@ function wirePwa() {
|
||||
const hadController = !!navigator.serviceWorker.controller;
|
||||
window.addEventListener("load", () => {
|
||||
navigator.serviceWorker
|
||||
.register("/sw.js?v=20260730-release2")
|
||||
.register("/sw.js?v=__ASSET_VERSION__")
|
||||
.then((registration) => {
|
||||
const showUpdate = () =>
|
||||
document.getElementById("btn-refresh").classList.remove("hidden");
|
||||
|
||||
Reference in New Issue
Block a user