diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..378499b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +on: +push: +branches: + - develop + +jobs: +release: +runs-on: ubuntu-latest +permissions: +contents: write +issues: write +pull-requests: write + +steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - run: npm install + + - run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..44c2c5a --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,20 @@ +{ + "branches": [ + "develop" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/github", + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md" + ], + "message": "chore(release): ${nextRelease.version}" + } + ] + ] +} \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 8a0b386..f7e9629 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,54 +1,159 @@ -# Repository Guidelines +# AGENTS.md -## Project Structure & Module Organization -This repository is a Nuxt 4 application. -- `pages/`: route pages (for example `pages/index.vue`). -- `components/`: reusable Vue components (for example `DiskSidebarWidget.vue`, `ApiStatusBubble.vue`). -- `layouts/`: shared page shells (`layouts/default.vue`). -- `server/api/`: Nitro server endpoints (for example `disk.get.ts`, `version-status.get.ts`). -- `assets/css/`: global styles and theme tokens (`main.css`, `malio.css`). -- `public/`: static files served as-is. +## Objectif -Keep feature logic close to usage: UI in `components/`, page composition in `pages/`, backend checks in `server/api/`. +Ce fichier définit les règles que tout agent de code doit respecter dans ce dépôt. -## Build, Test, and Development Commands -Use npm scripts from `package.json`: -- `npm run dev`: start local dev server with hot reload. -- `npm run build`: production build (client + server). -- `npm run preview`: run the built app locally. -- `npm run generate`: static generation when needed. +Les objectifs sont : +- maintenir un code clair et cohérent +- éviter la complexité inutile +- empêcher la génération de code mort +- garantir des modifications prévisibles -There is no dedicated test script currently. At minimum, run `npm run build` before opening a PR. +Ce fichier est la source de vérité concernant le comportement de l’agent. -## Coding Style & Naming Conventions -- Language: TypeScript + Vue SFCs (` + diff --git a/components/BackupList.vue b/components/BackupList.vue index b1c4508..71d570f 100644 --- a/components/BackupList.vue +++ b/components/BackupList.vue @@ -1,44 +1,58 @@ + + + diff --git a/components/DiagramStorage.vue b/components/DiagramStorage.vue index 143ad17..66e9b31 100644 --- a/components/DiagramStorage.vue +++ b/components/DiagramStorage.vue @@ -1,35 +1,48 @@ + + diff --git a/components/Speedtest.vue b/components/Speedtest.vue index c5c766b..582e20e 100644 --- a/components/Speedtest.vue +++ b/components/Speedtest.vue @@ -1,103 +1,64 @@