Phase 2: scaffold Waiter PWA — React+Vite, PWA manifest, all pages and components

This commit is contained in:
2026-04-20 12:03:26 +03:00
parent 803358e52c
commit 36cc67dbbc
30 changed files with 8129 additions and 0 deletions

28
waiter_pwa/vite.config.js Normal file
View File

@@ -0,0 +1,28 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'TableServe',
short_name: 'TableServe',
start_url: '/',
display: 'standalone',
background_color: '#0f172a',
theme_color: '#0f172a',
icons: [
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' },
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
runtimeCaching: [],
},
}),
],
})