diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 70fa38e..4e222fb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,29 +1,40 @@
-name: Deploy React App to GH pages
+name: Build & deploy
on:
push:
branches: [main]
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [20.12]
+ node-version: [22.10]
steps:
- - uses: actions/checkout@v3
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v3
+ - uses: actions/checkout@v4
+ - name: 💻 Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- - run: npm ci
- - run: npm test
- - run: npm run build
- - name: Deploy
- uses: peaceiris/actions-gh-pages@v3
+ - name: 📦 Install dependencies
+ run: npm ci
+
+ - name: 🏗️ Build static website
+ run: npm run build:gh
+
+ - name: 🚀 Upload artifact
+ uses: actions/upload-pages-artifact@v3
with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./dist
+ path: .output/public
+
+ - name: 🏁 Deploy to GitHub Pages
+ id: gh-pages
+ uses: actions/deploy-pages@v4
diff --git a/.gitignore b/.gitignore
index 0eb6091..4a7f73a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,25 +1,24 @@
+# Nuxt dev/build outputs
+.output
+.data
+.nuxt
+.nitro
+.cache
+dist
+
+# Node dependencies
+node_modules
+
# Logs
logs
*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-coverage
-node_modules
-dist
-dist-ssr
-*.local
-# Editor directories and files
-.vscode/*
-!.vscode/extensions.json
-.idea
+# Misc
.DS_Store
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+.fleet
+.idea
+
+# Local env files
+.env
+.env.*
+!.env.example
diff --git a/README.md b/README.md
index 044dfd2..3a5c616 100644
--- a/README.md
+++ b/README.md
@@ -70,11 +70,9 @@ open a browser at `http://localhost:3000` and you will see the application.
### What has been used
-- [Vue 3](https://vuejs.org/) - component framework
-- [Typescript](https://www.typescriptlang.org/) - static typed Javascript
+- [Nuxt 3](https://nuxt.com/) - main application framework based on [Vue 3](https://vuejs.org/)
- [Pinia](https://pinia.vuejs.org/) - state management
-- [Vite.js](https://vitejs.dev/) - project bootstrap and tooling
-- [Vitest](https://vitest.dev/) - unit testing
+
- [TailwindCSS](https://tailwindcss.com/) - CSS as utilility classes
- [DaisyUI](https://daisyui.com/) - UI components built on top of TailwindCSS
diff --git a/app.vue b/app.vue
new file mode 100644
index 0000000..c50fe65
--- /dev/null
+++ b/app.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Backup.vue b/components/Backup.vue
similarity index 97%
rename from src/components/Backup.vue
rename to components/Backup.vue
index 5e7d890..869e00c 100644
--- a/src/components/Backup.vue
+++ b/components/Backup.vue
@@ -1,5 +1,4 @@
-