diff --git a/.agents/.claude-plugin/plugin.json b/.agents/.claude-plugin/plugin.json new file mode 100644 index 0000000..4bd1b21 --- /dev/null +++ b/.agents/.claude-plugin/plugin.json @@ -0,0 +1,8 @@ +{ + "name": "remanso-skills", + "version": "1.0.0", + "description": "Local skills for the Remanso project", + "author": { + "name": "julien" + } +} diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 2d1b127..62ace94 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -1,7 +1,7 @@ { "$schema": "./node_modules/oxfmt/configuration_schema.json", "semi": false, - "singleQuote": true, + "singleQuote": false, "trailingComma": "none", "printWidth": 80, "sortPackageJson": false, diff --git a/_scripts/change-theme-dark.ts b/_scripts/change-theme-dark.ts index 293fa01..65ce595 100644 --- a/_scripts/change-theme-dark.ts +++ b/_scripts/change-theme-dark.ts @@ -3,28 +3,28 @@ // Script pour changer facilement le thème sombre de l'application Remanso // Usage: pnpm run theme:dark [theme-name] -import { readFileSync, writeFileSync } from 'fs' -import { join } from 'path' +import { readFileSync, writeFileSync } from "fs" +import { join } from "path" -import { commitTheme } from './change-theme' +import { commitTheme } from "./change-theme" // Chemins vers les fichiers -const themeConfigPath = join(__dirname, '..', 'src', 'theme.config.ts') -const appCssPath = join(__dirname, '..', 'src', 'styles', 'app.css') +const themeConfigPath = join(__dirname, "..", "src", "theme.config.ts") +const appCssPath = join(__dirname, "..", "src", "styles", "app.css") // Vérifier les arguments if (process.argv.length < 3) { - console.log('Usage: pnpm run theme:dark [theme-name]') - console.log('Exemple: pnpm run theme:dark business') + console.log("Usage: pnpm run theme:dark [theme-name]") + console.log("Exemple: pnpm run theme:dark business") process.exit(1) } // Mode fixé à dark pour ce script -const mode = 'dark' +const mode = "dark" const newTheme = process.argv[2] // nom du nouveau thème // Lire le contenu actuel du fichier de configuration -let themeConfigContent = readFileSync(themeConfigPath, 'utf8') +let themeConfigContent = readFileSync(themeConfigPath, "utf8") // Remplacer la valeur du thème sombre themeConfigContent = themeConfigContent.replace( @@ -36,7 +36,7 @@ themeConfigContent = themeConfigContent.replace( writeFileSync(themeConfigPath, themeConfigContent) // Mettre à jour également le fichier app.css pour le thème --prefersdark -let appCssContent = readFileSync(appCssPath, 'utf8') +let appCssContent = readFileSync(appCssPath, "utf8") appCssContent = appCssContent.replace( /(\s+)([a-zA-Z0-9-]+)(\s+--prefersdark;)/, `$1${newTheme}$3` diff --git a/_scripts/change-theme-light.ts b/_scripts/change-theme-light.ts index b3d703a..6f9fcb8 100644 --- a/_scripts/change-theme-light.ts +++ b/_scripts/change-theme-light.ts @@ -3,29 +3,29 @@ // Script pour changer facilement le thème clair de l'application Remanso // Usage: pnpm run theme:light [theme-name] -import { readFileSync, writeFileSync } from 'fs' -import { join } from 'path' +import { readFileSync, writeFileSync } from "fs" +import { join } from "path" -import { commitTheme } from './change-theme' +import { commitTheme } from "./change-theme" // Chemins vers les fichiers -const themeConfigPath = join(__dirname, '..', 'src', 'theme.config.ts') -const indexPath = join(__dirname, '..', 'index.html') -const appCssPath = join(__dirname, '..', 'src', 'styles', 'app.css') +const themeConfigPath = join(__dirname, "..", "src", "theme.config.ts") +const indexPath = join(__dirname, "..", "index.html") +const appCssPath = join(__dirname, "..", "src", "styles", "app.css") // Vérifier les arguments if (process.argv.length < 3) { - console.log('Usage: pnpm run theme:light [theme-name]') - console.log('Exemple: pnpm run theme:light cupcake') + console.log("Usage: pnpm run theme:light [theme-name]") + console.log("Exemple: pnpm run theme:light cupcake") process.exit(1) } // Mode fixé à light pour ce script -const mode = 'light' +const mode = "light" const newTheme = process.argv[2] // nom du nouveau thème // Lire le contenu actuel du fichier de configuration -let themeConfigContent = readFileSync(themeConfigPath, 'utf8') +let themeConfigContent = readFileSync(themeConfigPath, "utf8") // Remplacer la valeur du thème clair themeConfigContent = themeConfigContent.replace( @@ -37,7 +37,7 @@ themeConfigContent = themeConfigContent.replace( writeFileSync(themeConfigPath, themeConfigContent) // Mettre à jour également le fichier index.html -let indexContent = readFileSync(indexPath, 'utf8') +let indexContent = readFileSync(indexPath, "utf8") indexContent = indexContent.replace( /data-theme="[^"]*"/, `data-theme="${newTheme}"` @@ -45,7 +45,7 @@ indexContent = indexContent.replace( writeFileSync(indexPath, indexContent) // Mettre à jour également le fichier app.css pour le thème --default -let appCssContent = readFileSync(appCssPath, 'utf8') +let appCssContent = readFileSync(appCssPath, "utf8") appCssContent = appCssContent.replace( /(\s+)([a-zA-Z0-9-]+)(\s+--default,)/, `$1${newTheme}$3` diff --git a/_scripts/change-theme.ts b/_scripts/change-theme.ts index 556d263..56be997 100644 --- a/_scripts/change-theme.ts +++ b/_scripts/change-theme.ts @@ -1,22 +1,22 @@ -import { execSync } from 'child_process' +import { execSync } from "child_process" export const commitTheme = (mode: string, newTheme: string) => { // Créer un commit avec les changements try { // Ajouter tous les fichiers modifiés - execSync('git add .', { stdio: 'inherit' }) + execSync("git add .", { stdio: "inherit" }) // Créer le commit avec le message approprié const commitMessage = `design: change ${mode} theme to ${newTheme}` - execSync(`git commit -m "${commitMessage}"`, { stdio: 'inherit' }) + execSync(`git commit -m "${commitMessage}"`, { stdio: "inherit" }) console.log(`Commit créé avec succès: "${commitMessage}"`) - execSync(`git push`, { stdio: 'inherit' }) + execSync(`git push`, { stdio: "inherit" }) console.log(`Push sur origin`) } catch (error) { - console.error('Erreur lors de la création du commit:', error) + console.error("Erreur lors de la création du commit:", error) process.exit(1) } } diff --git a/babel.config.js b/babel.config.js index 716b023..db68ff1 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ['@vue/cli-plugin-babel/preset'] + presets: ["@vue/cli-plugin-babel/preset"] } diff --git a/docs/bugs/rolldown-while-in-globalThis.md b/docs/bugs/rolldown-while-in-globalThis.md index f977cf1..b0b2dd4 100644 --- a/docs/bugs/rolldown-while-in-globalThis.md +++ b/docs/bugs/rolldown-while-in-globalThis.md @@ -26,7 +26,7 @@ Rolldown's minifier drops the `while(`/`for(;` keyword when a `while (x in globa File: `node_modules/@ark/schema/out/shared/registry.js` ```js -let _registryName = '$ark' +let _registryName = "$ark" let suffix = 2 while (_registryName in globalThis) _registryName = `$ark${suffix++}` export const registryName = _registryName diff --git a/postcss.config.js b/postcss.config.js index 375342d..586b12c 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,3 +1,3 @@ module.exports = { - plugins: { '@tailwindcss/postcss': {}, autoprefixer: {} } + plugins: { "@tailwindcss/postcss": {}, autoprefixer: {} } } diff --git a/pwa-assets.config.ts b/pwa-assets.config.ts index 145bd5f..d661d2a 100644 --- a/pwa-assets.config.ts +++ b/pwa-assets.config.ts @@ -1,9 +1,9 @@ import { defineConfig, minimal2023Preset as preset -} from '@vite-pwa/assets-generator/config' +} from "@vite-pwa/assets-generator/config" export default defineConfig({ preset, - images: ['public/favicon.png'] + images: ["public/favicon.png"] }) diff --git a/src/analytics/openpanel.ts b/src/analytics/openpanel.ts index 241f100..2470997 100644 --- a/src/analytics/openpanel.ts +++ b/src/analytics/openpanel.ts @@ -5,5 +5,5 @@ export const op = new OpenPanel({ clientId: "038a6aac-19bb-4a7f-9aae-2d0201fead5b", trackScreenViews: true, trackOutgoingLinks: true, - trackAttributes: true, + trackAttributes: true }) diff --git a/src/bus/backlinkEventBus.ts b/src/bus/backlinkEventBus.ts index 94b1133..6de6873 100644 --- a/src/bus/backlinkEventBus.ts +++ b/src/bus/backlinkEventBus.ts @@ -1,4 +1,4 @@ -import { createEventBus } from 'retrobus' +import { createEventBus } from "retrobus" interface EventBusParams { fileSha: string diff --git a/src/bus/noteEventBus.ts b/src/bus/noteEventBus.ts index 0cd507a..62698a4 100644 --- a/src/bus/noteEventBus.ts +++ b/src/bus/noteEventBus.ts @@ -1,4 +1,4 @@ -import { createEventBus } from 'retrobus' +import { createEventBus } from "retrobus" interface EventBusParams { user: string diff --git a/src/components/AuthorizeUser.vue b/src/components/AuthorizeUser.vue index f46a861..2aed7f0 100644 --- a/src/components/AuthorizeUser.vue +++ b/src/components/AuthorizeUser.vue @@ -1,9 +1,9 @@ diff --git a/src/components/BackButton.vue b/src/components/BackButton.vue index d8e3471..22a385f 100644 --- a/src/components/BackButton.vue +++ b/src/components/BackButton.vue @@ -1,9 +1,9 @@ diff --git a/src/components/GoBack.vue b/src/components/GoBack.vue index 507b691..2ed98c5 100644 --- a/src/components/GoBack.vue +++ b/src/components/GoBack.vue @@ -1,11 +1,11 @@ diff --git a/src/components/LoginGithub.vue b/src/components/LoginGithub.vue index 7fb0371..3ab8551 100644 --- a/src/components/LoginGithub.vue +++ b/src/components/LoginGithub.vue @@ -1,8 +1,8 @@