feat: stabilize admin dashboard, refactor group management, implement PWA, and fix routing
This commit is contained in:
+18
-38
@@ -8,52 +8,32 @@ export default defineNuxtConfig({
|
||||
'@vueuse/nuxt'
|
||||
],
|
||||
|
||||
experimental: {
|
||||
appManifest: false
|
||||
},
|
||||
|
||||
css: ['~/assets/css/main.css'],
|
||||
|
||||
tailwindcss: {
|
||||
cssPath: '~/assets/css/main.css'
|
||||
},
|
||||
|
||||
pwa: {
|
||||
registerType: 'autoUpdate',
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
|
||||
},
|
||||
client: {
|
||||
installPrompt: true,
|
||||
},
|
||||
manifest: {
|
||||
name: 'XFlow',
|
||||
short_name: 'XFlow',
|
||||
description: 'XFlow Obsidian Canvas PWA',
|
||||
theme_color: '#0f172a',
|
||||
background_color: '#0f172a',
|
||||
display: 'standalone',
|
||||
orientation: 'portrait',
|
||||
scope: '/',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{
|
||||
src: 'pwa-192x192.svg',
|
||||
sizes: '192x192',
|
||||
type: 'image/svg+xml'
|
||||
},
|
||||
{
|
||||
src: 'pwa-512x512.svg',
|
||||
sizes: '512x512',
|
||||
type: 'image/svg+xml',
|
||||
purpose: 'any'
|
||||
},
|
||||
{
|
||||
src: 'maskable-icon-512x512.svg',
|
||||
sizes: '512x512',
|
||||
type: 'image/svg+xml',
|
||||
purpose: 'maskable'
|
||||
}
|
||||
app: {
|
||||
head: {
|
||||
title: 'XFlow',
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||
{ rel: 'manifest', href: '/manifest.json' }
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
pwa: {
|
||||
injectRegister: 'script',
|
||||
registerType: 'autoUpdate',
|
||||
devOptions: {
|
||||
enabled: false
|
||||
enabled: false,
|
||||
suppressWarnings: true
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user