Skip to content

Commit

Permalink
feat: Add PWA support with configuration and manifest for ThermoTrack
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanDev committed Jan 7, 2025
1 parent f50040f commit 8f7b1f3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
Binary file modified bun.lockb
Binary file not shown.
26 changes: 25 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,34 @@ export default defineNuxtConfig({
"@nuxtjs/google-fonts",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
"nuxt-swiper"
"nuxt-swiper",
'@nuxtjs/pwa',
],
css: ["~/static/css/base.css", "~/static/css/tailwind.css"],

pwa: {
icon: {
source: "~/public/favicon.png",
},

manifest: {
name: "ThermoTrack",
short_name: "ThermoTrack",
description: "ThermoTrack is a thermal contraception tracking PWA",
theme_color: "#e9ecef",
lang: "fr",
background_color: "#e9ecef",
scope: "/",
icons: [
{
src: "/favicon.png",
sizes: "512x512",
type: "image/png",
},
],
},
},

app: {
head: {
title: "ThermoTrack",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"vue-chartjs": "^5.3.2"
},
"devDependencies": {
"@nuxtjs/pwa": "^3.3.5",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"sass": "^1.80.6",
Expand Down
17 changes: 0 additions & 17 deletions public/manifest.json

This file was deleted.

0 comments on commit 8f7b1f3

Please sign in to comment.