Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Govt-Billing-React/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"short_name": "Ionic App",
"name": "My Ionic App",
"short_name": "GovtInvoice",
"name": "Government Invoice & Billing System",
"description": "Cross-platform invoicing and billing system for government institutions and educational bodies.",
"icons": [
{
"src": "pwa-64x64.png",
Expand All @@ -25,8 +26,11 @@
"purpose": "maskable"
}
],
"start_url": ".",
"start_url": "/",
"scope": "/",
"display": "standalone",
"theme_color": "#ffffff",
"background_color": "#ffffff"
"orientation": "portrait",
"theme_color": "#3880ff",
"background_color": "#ffffff",
"categories": ["finance", "productivity", "utilities"]
}
2 changes: 1 addition & 1 deletion Govt-Billing-React/src/app-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export let APP_NAME = "Inventory Tracker for FVM Warehouse";
export let APP_NAME = "Government Invoice & Billing System";

export let DATA = {
ledger: {
Expand Down
35 changes: 34 additions & 1 deletion Govt-Billing-React/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,39 @@ export default defineConfig({
react(),
legacy(),
commonjs(),
VitePWA({ registerType: "autoUpdate" }),
VitePWA({
registerType: "autoUpdate",
includeAssets: ["favicon.ico", "apple-touch-icon-180x180.png", "pwa-*.png"],
manifest: {
name: "Government Invoice & Billing System",
short_name: "GovtInvoice",
description: "Cross-platform invoicing and billing system for government institutions and educational bodies.",
theme_color: "#3880ff",
background_color: "#ffffff",
display: "standalone",
orientation: "portrait",
scope: "/",
start_url: "/",
icons: [
{ src: "pwa-64x64.png", sizes: "64x64", type: "image/png" },
{ src: "pwa-192x192.png", sizes: "192x192", type: "image/png" },
{ src: "pwa-512x512.png", sizes: "512x512", type: "image/png", purpose: "any" },
{ src: "maskable-icon-512x512.png", sizes: "512x512", type: "image/png", purpose: "maskable" },
],
},
workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg,woff2}"],
runtimeCaching: [
{
urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i,
handler: "CacheFirst",
options: {
cacheName: "google-fonts-cache",
expiration: { maxEntries: 10, maxAgeSeconds: 60 * 60 * 24 * 365 },
},
},
],
},
}),
],
});