- Add `PosDepartmentStepMobileFixedBottomControl.vue` for consistent bottom control layout. - Implement overflow control in `ViewportHeaderSettings.vue` with `isOverflowVisible`. - Enhance `PosPopup.vue` with `defineComponent` and dynamic popup content. - Add scroll prevention for mobile scanning views in `PosDepartmentStepMobile1.vue`. - Improve registration number UI in `PosDepartmentStepMobile1RegistrationNumbers.vue`. - Refactor service worker updates and PWA behavior in `main.js`. - Update routing default path in `router.js`. - Improve scanner UI in `ScannerOutline.vue` with responsive dimensions.
54 lines
1.8 KiB
JavaScript
54 lines
1.8 KiB
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
import { viteSingleFile } from 'vite-plugin-singlefile'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [
|
|
vue(),
|
|
VueJsx(),
|
|
vueDevTools(),
|
|
viteSingleFile(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
devOptions: {
|
|
enabled: true // keep for local dev; it's ok
|
|
},
|
|
workbox: {
|
|
maximumFileSizeToCacheInBytes: 12 * 1024 * 1024,
|
|
skipWaiting: true,
|
|
clientsClaim: true
|
|
},
|
|
manifest: {
|
|
name: 'Pleno',
|
|
short_name: 'Pleno',
|
|
description: 'Access your Pleno accounts and transactions from anywhere.',
|
|
theme_color: '#063651',
|
|
background_color: '#0787bb',
|
|
// If you deploy at domain root, keep '/'.
|
|
// If you deploy under a subpath, change BOTH to '.' (relative scope).
|
|
start_url: '/',
|
|
scope: '/',
|
|
display: 'standalone',
|
|
orientation: 'portrait',
|
|
launch_handler: { client_mode: 'navigate-existing' },
|
|
icons: [
|
|
{ src: '/icons/icon-192x192.png', sizes: '192x192', type: 'image/png' },
|
|
{ src: '/icons/icon-512x512.png', sizes: '512x512', type: 'image/png' }
|
|
],
|
|
id: 'pleno-pwa-test'
|
|
}
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
}
|
|
})
|