Skip to content
Merged

pwa #131

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
10 changes: 10 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<template>
<UApp>
<Head>
<Link
rel="manifest"
href="/manifest.json"
/>
<Meta
name="theme-color"
content="#00786F"
/>
</Head>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
Expand Down
70 changes: 65 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@nuxt/ui', '@nuxt/eslint', 'nuxt-maplibre'],
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
// css: ['assets/css/main.css']
modules: [
'@nuxt/ui',
'@nuxt/eslint',
'nuxt-maplibre',
'@vite-pwa/nuxt',
],
devtools: {
enabled: true,
},
css: [
'~/assets/css/main.css',
],
ui: {
theme: {
colors: [
Expand All @@ -27,12 +35,64 @@ export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
vite: {
optimizeDeps: {
include: ['maplibre-gl'],
include: ['maplibre-gl', 'vue3-carousel', 'better-auth/vue'],
},
},
eslint: {
config: {
stylistic: true,
},
},

pwa: {
registerType: 'autoUpdate',
manifest: {
name: 'Abide Connect',
short_name: 'Abide',
description: 'Abide Women\'s Health Volunteer App',
theme_color: '#00786F',
background_color: '#ffffff',
display: 'standalone',
orientation: 'portrait',
id: '/',
start_url: '/',
icons: [
{
src: '/icon-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icon-512.png',
sizes: '512x512',
type: 'image/png',
},
],

/* screenshots: [
{
src: '/images/image1.jpeg', // ← use your existing image
sizes: '540x720',
type: 'image/jpeg',
form_factor: 'narrow' // ← for mobile
},
{
src: '/images/image1.jpeg',
sizes: '720x540',
type: 'image/jpeg',
form_factor: 'wide' // ← for desktop
}
] */

},
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
navigateFallbackAllowlist: [/^\/(?!api)/],
},
devOptions: {
enabled: false,
type: 'module',
},
},
})
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
},
"dependencies": {
"@internationalized/date": "^3.10.0",
"@nuxt/ui": "^4.1.0",
"@prisma/adapter-better-sqlite3": "7.3.0",
"@nuxt/ui": "^4.7.1",
"@prisma/adapter-better-sqlite3": "^7.3.0",
"@prisma/client": "7.3.0",
"better-auth": "^1.3.25",
"dotenv": "^17.2.3",
"maplibre-gl": "^5.11.0",
"nodemailer": "^7.0.6",
"nuxt": "^4.1.2",
"nuxt": "^4.4.4",
"nuxt-maplibre": "^1.1.1",
"resend": "^6.12.0",
"tailwindcss": "^4.1.14",
"vue": "^3.5.20",
"vue-router": "^4.5.1",
Expand All @@ -32,14 +33,13 @@
},
"devDependencies": {
"@iconify-json/heroicons": "^1.2.3",
"@iconify-json/lucide": "^1.2.105",
"@nuxt/eslint": "^1.15.0",
"@types/node": "^24.3.1",
"@types/parse-path": "^7.1.0",
"autoprefixer": "^10.4.21",
"@vite-pwa/nuxt": "^1.1.1",
"eslint": "^9.34.0",
"postcss": "^8.5.6",
"prisma": "7.3.0",
"tailwindcss": "^3.4.18",
"tsx": "^4.21.0",
"typescript": "^5.9.2"
}
Expand Down
Loading