diff --git a/README.md b/README.md index 13825300..7f12b538 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,28 @@ npm install npm run dev ``` +By default, the Vite dev server proxies `/api/*` to the remote stable API at +`https://api-v2.truckwash.io/master/api`. This lets the Vue app run locally +without a local PHP API container. + +To develop against a local PHP API instead: + +```powershell +$env:VITE_API_PROXY_TARGET="http://localhost"; npm run dev +``` + +To use another remote API route: + +```powershell +$env:VITE_API_PROXY_BASE_PATH="/canary/api"; npm run dev +``` + +For compatible local gateways that expect the `/api` prefix to be preserved: + +```powershell +$env:VITE_API_PROXY_TARGET="http://localhost"; $env:VITE_API_PROXY_STRIP_PREFIX="false"; npm run dev +``` + ### Compile and Minify for Production ```sh diff --git a/src/App.vue b/src/App.vue index 7e5185ed..bcc69e36 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,7 +18,6 @@ const { t, te, locale } = useI18n({ useScope: "global" }); const APP_TITLE = "Truck Wash"; const LayoutV2 = defineAsyncComponent(() => import("@/components/page/wrappers/LayoutV2.vue")); const DefaultPageWrapper = defineAsyncComponent(() => import("@/components/page/wrappers/DefaultPageWrapper.vue")); -const VersionCheck = defineAsyncComponent(() => import("@/components/global/VersionCheck.vue")); const RequestQueueProgress = defineAsyncComponent(() => import("@/components/global/RequestQueueProgress.vue")); const ErrorReportLauncher = defineAsyncComponent(() => import("@/components/global/ErrorReportLauncher.vue")); const ReleaseChannelUnavailable = defineAsyncComponent(() => @@ -123,7 +122,6 @@ watch([() => route.fullPath, locale], updateDocumentTitle, { immediate: true });
-
diff --git a/src/components/displays/department/pos/PosDepartmentMVP.vue b/src/components/displays/department/pos/PosDepartmentMVP.vue index b2773aa8..a5fd67d0 100644 --- a/src/components/displays/department/pos/PosDepartmentMVP.vue +++ b/src/components/displays/department/pos/PosDepartmentMVP.vue @@ -1,7 +1,16 @@ diff --git a/src/components/displays/department/pos/steps/mobile/elements/PosDepartmentStepMobileButtonClearAll.vue b/src/components/displays/department/pos/steps/mobile/elements/PosDepartmentStepMobileButtonClearAll.vue index d9a3783f..dc05d66d 100644 --- a/src/components/displays/department/pos/steps/mobile/elements/PosDepartmentStepMobileButtonClearAll.vue +++ b/src/components/displays/department/pos/steps/mobile/elements/PosDepartmentStepMobileButtonClearAll.vue @@ -1,34 +1,27 @@