Generate asset versions during Docker builds
This commit is contained in:
+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