diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..b947077 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 2e7e479..7d28b2b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,26 +1,21 @@ -# ── Étape 1 : Build du frontend Vue 3 + Vite ─────────────────────────────── +# ── Étape 1 : Build (bundle Swup + xterm via esbuild) ───────────────────── FROM node:22-alpine AS builder WORKDIR /build -# Copier les fichiers de dépendances en premier -COPY package.json package-lock.json* ./ -RUN npm install --frozen-lockfile +COPY package.json package-lock.json ./ +RUN npm ci -# Copier le code source et compiler COPY . . RUN npm run build -# ── Étape 2 : Image Nginx pour servir le frontend ────────────────────────── +# ── Étape 2 : Nginx pour servir les fichiers statiques ───────────────────── FROM nginx:1.27-alpine -# Supprimer la config Nginx par défaut RUN rm /etc/nginx/conf.d/default.conf -# Copier notre config Nginx personnalisée COPY nginx.conf /etc/nginx/nginx.conf -# Copier les fichiers compilés par Vite COPY --from=builder /build/dist /usr/share/nginx/html EXPOSE 80 diff --git a/frontend/build.mjs b/frontend/build.mjs new file mode 100644 index 0000000..75a21d6 --- /dev/null +++ b/frontend/build.mjs @@ -0,0 +1,92 @@ +/** + * Build script for ProxmoxPanel Alpine frontend. + * - Bundles Swup into an IIFE (browser-loadable) + * - Bundles xterm.js + addon-fit into IIFEs + * - Copies all static assets to dist/ + */ + +import * as esbuild from 'esbuild' +import * as fs from 'fs' +import * as path from 'path' + +const dist = 'dist' + +// Clean dist +fs.rmSync(dist, { recursive: true, force: true }) +fs.mkdirSync(`${dist}/js/vendors`, { recursive: true }) +fs.mkdirSync(`${dist}/js`, { recursive: true }) +fs.mkdirSync(`${dist}/css`, { recursive: true }) +fs.mkdirSync(`${dist}/locales`, { recursive: true }) + +// 1. Bundle Swup into IIFE +console.log('Bundling Swup...') +await esbuild.build({ + entryPoints: ['swup-bundle.entry.mjs'], + bundle: true, + format: 'iife', + globalName: '_swupExports', + outfile: `${dist}/js/vendors/swup.iife.js`, + minify: true, +}) +// Expose Swup on window +const swupOut = fs.readFileSync(`${dist}/js/vendors/swup.iife.js`, 'utf8') +fs.writeFileSync(`${dist}/js/vendors/swup.iife.js`, + swupOut + '\nwindow.Swup=_swupExports.Swup;') + +// 2. Bundle xterm.js +console.log('Bundling xterm...') +await esbuild.build({ + entryPoints: ['xterm-bundle.entry.mjs'], + bundle: true, + format: 'iife', + globalName: '_xtermExports', + outfile: `${dist}/js/vendors/xterm.iife.js`, + minify: true, +}) +const xtermOut = fs.readFileSync(`${dist}/js/vendors/xterm.iife.js`, 'utf8') +fs.writeFileSync(`${dist}/js/vendors/xterm.iife.js`, + xtermOut + '\nwindow.Terminal=_xtermExports.Terminal;window.FitAddon=_xtermExports.FitAddon;') + +// xterm CSS +const xtermCss = 'node_modules/@xterm/xterm/css/xterm.css' +if (fs.existsSync(xtermCss)) { + fs.copyFileSync(xtermCss, `${dist}/css/xterm.css`) +} + +// 3. Copy pre-downloaded vendors (Alpine, HTMX) +for (const f of ['alpine.min.js', 'htmx.min.js']) { + const src = `vendors/${f}` + if (fs.existsSync(src)) { + fs.copyFileSync(src, `${dist}/js/vendors/${f}`) + console.log(`Copied ${f}`) + } else { + console.warn(`WARN: ${src} not found`) + } +} + +// 4. Copy app JS files +for (const f of fs.readdirSync('js')) { + if (f.endsWith('.js')) { + fs.mkdirSync(`${dist}/js`, { recursive: true }) + fs.copyFileSync(`js/${f}`, `${dist}/js/${f}`) + } +} + +// 5. Copy CSS +for (const f of fs.readdirSync('css')) { + fs.copyFileSync(`css/${f}`, `${dist}/css/${f}`) +} + +// 6. Copy locales +for (const f of fs.readdirSync('locales')) { + fs.copyFileSync(`locales/${f}`, `${dist}/locales/${f}`) +} + +// 7. Copy HTML pages +for (const f of fs.readdirSync('.')) { + if (f.endsWith('.html')) { + fs.copyFileSync(f, `${dist}/${f}`) + } +} + +console.log('✓ Build complete → dist/') diff --git a/frontend/src/styles/dark.css b/frontend/css/dark.css similarity index 100% rename from frontend/src/styles/dark.css rename to frontend/css/dark.css diff --git a/frontend/src/styles/light.css b/frontend/css/light.css similarity index 100% rename from frontend/src/styles/light.css rename to frontend/css/light.css diff --git a/frontend/src/styles/neu.css b/frontend/css/neu.css similarity index 75% rename from frontend/src/styles/neu.css rename to frontend/css/neu.css index 7fb3981..8bf7bf3 100644 --- a/frontend/src/styles/neu.css +++ b/frontend/css/neu.css @@ -370,3 +370,202 @@ --sidebar-width: 100%; } } + +/* ── Layout Alpine (sidebar + navbar + page-content) ───────────────────────── */ + +:root { + --sidebar-width: 240px; + --sidebar-collapsed-width: 64px; + --navbar-height: 56px; +} + +body { + display: flex; + min-height: 100vh; + overflow: hidden; +} + +/* Sidebar */ +.sidebar { + width: var(--sidebar-width); + min-height: 100vh; + background: var(--bg-secondary); + border-right: 1px solid var(--border-color); + display: flex; + flex-direction: column; + transition: width 0.2s ease; + flex-shrink: 0; + position: fixed; + top: 0; + left: 0; + height: 100vh; + z-index: 100; + overflow: hidden; +} + +.sidebar.collapsed { + width: var(--sidebar-collapsed-width); +} + +.sidebar-header { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 1rem; + border-bottom: 1px solid var(--border-color); + min-height: var(--navbar-height); +} + +.sidebar-logo { + font-size: 1.5rem; + color: var(--accent-primary); + flex-shrink: 0; +} + +.sidebar-title { + font-weight: 700; + font-size: 1rem; + white-space: nowrap; + overflow: hidden; +} + +.sidebar-toggle { + margin-left: auto; + flex-shrink: 0; +} + +.sidebar-nav { + flex: 1; + padding: 0.5rem; + display: flex; + flex-direction: column; + gap: 0.25rem; + overflow-y: auto; + overflow-x: hidden; +} + +.sidebar-link { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 0.625rem 0.75rem; + border-radius: 0.5rem; + text-decoration: none; + color: var(--text-secondary); + font-size: 0.875rem; + font-weight: 500; + transition: all 0.15s; + white-space: nowrap; + overflow: hidden; +} + +.sidebar-link:hover { + background: var(--bg-hover, rgba(255,255,255,0.05)); + color: var(--text-primary); +} + +.sidebar-link.active { + background: rgba(99, 102, 241, 0.15); + color: var(--accent-primary); +} + +.sidebar-icon { + font-size: 1.1rem; + flex-shrink: 0; + width: 1.25rem; + text-align: center; +} + +.sidebar-label { + overflow: hidden; + text-overflow: ellipsis; +} + +.sidebar-footer { + padding: 0.75rem; + border-top: 1px solid var(--border-color); + display: flex; + align-items: center; + gap: 0.5rem; +} + +.sidebar-user { + flex: 1; + font-size: 0.8rem; + color: var(--text-secondary); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Main layout */ +.main-layout { + display: flex; + flex-direction: column; + flex: 1; + margin-left: var(--sidebar-width); + min-height: 100vh; + transition: margin-left 0.2s ease; + overflow: hidden; +} + +.sidebar.collapsed ~ .main-layout, +body:has(.sidebar.collapsed) .main-layout { + margin-left: var(--sidebar-collapsed-width); +} + +/* Navbar */ +.navbar { + height: var(--navbar-height); + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 1.5rem; + border-bottom: 1px solid var(--border-color); + background: var(--bg-primary); + flex-shrink: 0; + position: sticky; + top: 0; + z-index: 50; +} + +.navbar-title { + font-size: 1rem; + font-weight: 700; + margin: 0; +} + +.navbar-actions { + display: flex; + align-items: center; + gap: 0.5rem; +} + +/* Page content */ +.page-content { + flex: 1; + padding: 1.5rem; + overflow-y: auto; + height: calc(100vh - var(--navbar-height)); +} + +/* Swup fade transition */ +.transition-fade { + transition: opacity 0.2s ease; +} + +html.is-animating .transition-fade { + opacity: 0; +} + +/* Responsive */ +@media (max-width: 768px) { + .sidebar { + width: var(--sidebar-collapsed-width); + } + .main-layout { + margin-left: var(--sidebar-collapsed-width); + } +} + +[x-cloak] { display: none !important; } diff --git a/frontend/dashboard.html b/frontend/dashboard.html new file mode 100644 index 0000000..de74608 --- /dev/null +++ b/frontend/dashboard.html @@ -0,0 +1,158 @@ + + + + + + ProxmoxPanel — Dashboard + + + + + + + + + + + + + +
+ + + + +
+ +
+
+
+
+
En cours
+
+
+
+
+
Arrêtés
+
+
+
+
+
LXC
+
+
+
+
+
VM
+
+
+ + +
+ ⌛ Connexion… + ● Live + ⚠ Déconnecté (reconnexion…) + ✗ Erreur WebSocket +
+ + +
+

Containers LXC

+
+ +
+

Aucun container

+
Chargement…
+
+
+
+ + + + diff --git a/frontend/index.html b/frontend/index.html index b11eb63..43f81a1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,15 +1,18 @@ - - - - - ProxmoxPanel - - - - -
- - + + + + ProxmoxPanel + + + + + + + +
+ Chargement… +
+ diff --git a/frontend/install.html b/frontend/install.html new file mode 100644 index 0000000..0d8f10b --- /dev/null +++ b/frontend/install.html @@ -0,0 +1,175 @@ + + + + + + ProxmoxPanel — Installation + + + + + + + + + +
+
+ + + +
+ +
+ + +
+

+

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+

+

+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+ + +
+

+

+
+ + +
+
+ + +
+
+ + +
+

+
+ + +
+

+
+
+ Instance + +
+
+ URL + +
+
+ SSH + +
+
+ Proxmox + +
+
+
+
+ + +
+ + +
+
+
+ + + + diff --git a/frontend/js/app.js b/frontend/js/app.js new file mode 100644 index 0000000..1bda513 --- /dev/null +++ b/frontend/js/app.js @@ -0,0 +1,710 @@ +/** + * ProxmoxPanel — Alpine.js stores + composants + Swup init + HTMX config + * + * Chargé AVANT alpine.min.js (qui est defer). + * L'événement 'alpine:init' est déclenché par Alpine avant qu'il parcourt le DOM. + */ + +// ── Utilitaires ──────────────────────────────────────────────────────────── + +function apiFetch(path, opts = {}) { + const token = localStorage.getItem('pxp_token') + return fetch(path, { + ...opts, + headers: { + 'Content-Type': 'application/json', + ...(token ? { Authorization: 'Bearer ' + token } : {}), + ...(opts.headers || {}), + }, + }) +} + +// ── Alpine:init ──────────────────────────────────────────────────────────── + +document.addEventListener('alpine:init', () => { + + // ── Store auth ───────────────────────────────────────────────────────── + Alpine.store('auth', { + token: null, + user: null, + get isAuthenticated() { return !!this.token && !!this.user }, + + async init() { + this.token = localStorage.getItem('pxp_token') + if (this.token) { + try { + await this.fetchMe() + } catch { + await this.tryRefresh() + } + } + }, + + async fetchMe() { + const res = await apiFetch('/api/auth/me') + if (res.ok) { + this.user = await res.json() + } else if (res.status === 401) { + await this.tryRefresh() + } + }, + + async tryRefresh() { + const res = await fetch('/api/auth/refresh', { method: 'POST', credentials: 'include' }) + if (res.ok) { + const data = await res.json() + this.token = data.token + localStorage.setItem('pxp_token', data.token) + await this.fetchMe() + } else { + this.clear() + } + }, + + async login(username, password) { + const res = await fetch('/api/auth/login', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + credentials: 'include', + body: JSON.stringify({ username, password }), + }) + if (!res.ok) { + const err = await res.json().catch(() => ({})) + throw new Error(err.error || 'Identifiants invalides') + } + const data = await res.json() + this.token = data.token + this.user = data.user + localStorage.setItem('pxp_token', data.token) + }, + + async logout() { + await apiFetch('/api/auth/logout', { method: 'POST', credentials: 'include' }).catch(() => {}) + this.clear() + window.location.href = '/login.html' + }, + + clear() { + this.token = null + this.user = null + localStorage.removeItem('pxp_token') + }, + }) + + // ── Store UI ──────────────────────────────────────────────────────────── + Alpine.store('ui', { + theme: localStorage.getItem('pxp_theme') || 'dark', + sidebarCollapsed: localStorage.getItem('pxp_sidebar') === 'true', + currentPage: '', + + init() { + this.applyTheme() + // Detect current page from URL + const path = window.location.pathname + this.currentPage = path.replace(/^\/|\.html$/g, '') || 'index' + }, + + applyTheme() { + document.documentElement.setAttribute('data-theme', this.theme) + }, + + toggleTheme() { + this.theme = this.theme === 'dark' ? 'light' : 'dark' + localStorage.setItem('pxp_theme', this.theme) + this.applyTheme() + }, + + toggleSidebar() { + this.sidebarCollapsed = !this.sidebarCollapsed + localStorage.setItem('pxp_sidebar', this.sidebarCollapsed) + }, + }) + + // ── Store i18n ────────────────────────────────────────────────────────── + Alpine.store('i18n', { + lang: localStorage.getItem('pxp_lang') || 'fr', + msgs: {}, + loaded: false, + + async init() { + await this.load(this.lang) + }, + + async load(lang) { + try { + const res = await fetch(`/locales/${lang}.json`) + if (res.ok) { + this.msgs = await res.json() + this.lang = lang + localStorage.setItem('pxp_lang', lang) + this.loaded = true + } + } catch (e) { + console.error('i18n load error', e) + } + }, + + t(key, vars = {}) { + const parts = key.split('.') + let val = this.msgs + for (const p of parts) { + val = val?.[p] + if (val === undefined) return key + } + if (typeof val !== 'string') return key + return val.replace(/\{(\w+)\}/g, (_, k) => vars[k] ?? `{${k}}`) + }, + + async setLang(lang) { + await this.load(lang) + }, + }) + + // ── Composant: sidebar ────────────────────────────────────────────────── + Alpine.data('sidebar', () => ({ + get collapsed() { return Alpine.store('ui').sidebarCollapsed }, + get currentPage() { return Alpine.store('ui').currentPage }, + + navItems: [ + { id: 'dashboard', icon: '⊞', labelKey: 'nav.dashboard', href: '/dashboard.html' }, + { id: 'proxmox', icon: '⬡', labelKey: 'nav.proxmox', href: '/proxmox.html' }, + { id: 'updates', icon: '↑', labelKey: 'nav.updates', href: '/updates.html' }, + { id: 'terminal', icon: '❯', labelKey: 'nav.terminal', href: '/terminal.html' }, + { id: 'settings', icon: '⚙', labelKey: 'nav.settings', href: '/settings.html' }, + { id: 'modules', icon: '⬡', labelKey: 'nav.modules', href: '/modules.html' }, + ], + + isActive(id) { + return this.currentPage === id + }, + + navigate(href) { + if (window.swup) { + window.swup.navigate(href) + } else { + window.location.href = href + } + }, + + t(key) { return Alpine.store('i18n').t(key) }, + toggle() { Alpine.store('ui').toggleSidebar() }, + })) + + // ── Composant: navbar ─────────────────────────────────────────────────── + Alpine.data('navbar', () => ({ + get theme() { return Alpine.store('ui').theme }, + get user() { return Alpine.store('auth').user }, + get lang() { return Alpine.store('i18n').lang }, + + toggleTheme() { Alpine.store('ui').toggleTheme() }, + logout() { Alpine.store('auth').logout() }, + async setLang(lang) { await Alpine.store('i18n').setLang(lang) }, + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: loginPage ──────────────────────────────────────────────── + Alpine.data('loginPage', () => ({ + username: '', + password: '', + error: '', + loading: false, + + async submit() { + this.error = '' + this.loading = true + try { + await Alpine.store('auth').login(this.username, this.password) + window.location.href = '/dashboard.html' + } catch (e) { + this.error = e.message + } finally { + this.loading = false + } + }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: installPage ────────────────────────────────────────────── + Alpine.data('installPage', () => ({ + step: 1, + totalSteps: 4, + error: '', + loading: false, + sshTesting: false, + sshStatus: '', + + form: { + instance_name: 'ProxmoxPanel', + public_url: window.location.origin, + default_lang: 'fr', + ssh_host: '', + ssh_username: '', + ssh_password: '', + proxmox_url: '', + proxmox_token_id: '', + proxmox_token_secret: '', + }, + + async testSSH() { + this.sshTesting = true + this.sshStatus = '' + try { + const res = await fetch('/api/install/test-ssh', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + host: this.form.ssh_host, + username: this.form.ssh_username, + password: this.form.ssh_password, + }), + }) + this.sshStatus = res.ok ? 'ok' : 'error' + } catch { + this.sshStatus = 'error' + } finally { + this.sshTesting = false + } + }, + + nextStep() { + if (this.step < this.totalSteps) this.step++ + }, + prevStep() { + if (this.step > 1) this.step-- + }, + + async finish() { + this.loading = true + this.error = '' + try { + const res = await fetch('/api/install/configure', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(this.form), + }) + if (!res.ok) { + const d = await res.json().catch(() => ({})) + throw new Error(d.error || 'Erreur installation') + } + window.location.href = '/login.html' + } catch (e) { + this.error = e.message + } finally { + this.loading = false + } + }, + + t(key, vars) { return Alpine.store('i18n').t(key, vars) }, + })) + + // ── Composant: dashboardPage ──────────────────────────────────────────── + Alpine.data('dashboardPage', () => ({ + resources: [], + ws: null, + wsStatus: 'connecting', + + init() { + this.connectWS() + }, + + destroy() { + if (this.ws) this.ws.close() + }, + + connectWS() { + const proto = location.protocol === 'https:' ? 'wss' : 'ws' + this.ws = new WebSocket(`${proto}://${location.host}/ws/proxmox`) + this.ws.onmessage = (e) => { + const msg = JSON.parse(e.data) + if (msg.type === 'proxmox_resources') { + this.resources = msg.data || [] + this.wsStatus = 'ok' + } + } + this.ws.onclose = () => { + this.wsStatus = 'disconnected' + setTimeout(() => this.connectWS(), 5000) + } + this.ws.onerror = () => { this.wsStatus = 'error' } + }, + + get runningCount() { return this.resources.filter(r => r.status === 'running').length }, + get stoppedCount() { return this.resources.filter(r => r.status !== 'running').length }, + get lxcList() { return this.resources.filter(r => r.type === 'lxc') }, + get vmList() { return this.resources.filter(r => r.type === 'qemu') }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: proxmoxPage ────────────────────────────────────────────── + Alpine.data('proxmoxPage', () => ({ + resources: [], + ws: null, + wsStatus: 'connecting', + actionLoading: {}, + + init() { this.connectWS() }, + destroy() { if (this.ws) this.ws.close() }, + + connectWS() { + const proto = location.protocol === 'https:' ? 'wss' : 'ws' + this.ws = new WebSocket(`${proto}://${location.host}/ws/proxmox`) + this.ws.onmessage = (e) => { + const msg = JSON.parse(e.data) + if (msg.type === 'proxmox_resources') { + this.resources = msg.data || [] + this.wsStatus = 'ok' + } + } + this.ws.onclose = () => { + this.wsStatus = 'disconnected' + setTimeout(() => this.connectWS(), 5000) + } + this.ws.onerror = () => { this.wsStatus = 'error' } + }, + + async action(vmid, type, action) { + const key = `${vmid}-${action}` + this.actionLoading[key] = true + try { + await apiFetch(`/api/proxmox/${type}/${vmid}/${action}`, { method: 'POST' }) + } catch(e) { + console.error(e) + } finally { + this.actionLoading[key] = false + } + }, + + cpuColor(pct) { + if (pct > 80) return 'var(--color-error)' + if (pct > 50) return 'var(--color-warning)' + return 'var(--color-success)' + }, + + formatMem(bytes) { + if (!bytes) return '0 MB' + return Math.round(bytes / 1024 / 1024) + ' MB' + }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: updatesPage ────────────────────────────────────────────── + Alpine.data('updatesPage', () => ({ + targets: [], + loading: true, + ws: null, + currentJob: null, + output: '', + jobStatus: '', + + async init() { + await this.loadTargets() + await this.checkAll() + }, + + destroy() { if (this.ws) this.ws.close() }, + + async loadTargets() { + this.loading = true + try { + const res = await apiFetch('/api/proxmox/resources') + if (res.ok) { + const resources = await res.json() || [] + this.targets = [ + { id: 'host', name: 'Proxmox Host', status: 'running', packages: null, checking: false, updating: false }, + ...resources + .filter(r => r.type === 'lxc') + .map(r => ({ + id: `lxc:${r.vmid}`, + name: r.name || `LXC ${r.vmid}`, + status: r.status, + vmid: r.vmid, + packages: null, + checking: false, + updating: false, + })), + ] + } + } catch(e) { + console.error('loadTargets', e) + } finally { + this.loading = false + } + }, + + async checkTarget(target) { + target.checking = true + target.packages = null + try { + const res = await apiFetch(`/api/updates/packages?target=${encodeURIComponent(target.id)}`) + if (res.ok) { + target.packages = await res.json() + } + } catch(e) { + console.error('checkTarget', e) + } finally { + target.checking = false + } + }, + + async checkAll() { + for (const t of this.targets) { + await this.checkTarget(t) + } + }, + + async updateTarget(target) { + target.updating = true + this.output = '' + this.jobStatus = 'running' + try { + const res = await apiFetch('/api/updates/run', { + method: 'POST', + body: JSON.stringify({ target: target.id }), + }) + if (!res.ok) throw new Error('Erreur démarrage mise à jour') + const data = await res.json() + this.currentJob = data.job_id + await this.watchJob(data.job_id) + target.packages = [] + } catch(e) { + this.output += '\n[ERREUR] ' + e.message + this.jobStatus = 'error' + } finally { + target.updating = false + } + }, + + async updateAll() { + this.output = '' + this.jobStatus = 'running' + try { + const res = await apiFetch('/api/updates/run', { + method: 'POST', + body: JSON.stringify({ target: 'all' }), + }) + if (!res.ok) throw new Error('Erreur démarrage') + const data = await res.json() + this.currentJob = data.job_id + await this.watchJob(data.job_id) + for (const t of this.targets) t.packages = [] + } catch(e) { + this.output += '\n[ERREUR] ' + e.message + this.jobStatus = 'error' + } + }, + + watchJob(jobId) { + return new Promise((resolve) => { + if (this.ws) this.ws.close() + const proto = location.protocol === 'https:' ? 'wss' : 'ws' + const token = localStorage.getItem('pxp_token') + this.ws = new WebSocket(`${proto}://${location.host}/ws/updates/${jobId}?token=${token}`) + this.ws.onmessage = (e) => { + const msg = JSON.parse(e.data) + if (msg.type === 'update_output') { + this.output += msg.data?.chunk || '' + } else if (msg.type === 'update_done') { + this.jobStatus = 'success' + resolve() + } else if (msg.type === 'update_error') { + this.jobStatus = 'error' + this.output += '\n[ERREUR] ' + (msg.data?.error || '') + resolve() + } + } + this.ws.onerror = () => { this.jobStatus = 'error'; resolve() } + this.ws.onclose = () => { if (this.jobStatus === 'running') { this.jobStatus = 'error'; resolve() } } + }) + }, + + get totalPackages() { + return this.targets.reduce((sum, t) => sum + (t.packages?.length || 0), 0) + }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: settingsPage ───────────────────────────────────────────── + Alpine.data('settingsPage', () => ({ + tab: 'general', + loading: true, + saving: false, + saved: false, + error: '', + settings: { + instance_name: '', + public_url: '', + default_lang: 'fr', + ssh_host: '', + ssh_username: '', + ssh_password: '', + proxmox_url: '', + proxmox_token_id: '', + proxmox_token_secret: '', + }, + + async init() { + await this.load() + }, + + async load() { + this.loading = true + try { + const res = await apiFetch('/api/settings') + if (res.ok) { + const data = await res.json() + Object.assign(this.settings, data) + } + } finally { + this.loading = false + } + }, + + async save() { + this.saving = true + this.saved = false + this.error = '' + try { + const res = await apiFetch('/api/settings', { + method: 'PUT', + body: JSON.stringify(this.settings), + }) + if (!res.ok) { + const d = await res.json().catch(() => ({})) + throw new Error(d.error || 'Erreur sauvegarde') + } + this.saved = true + setTimeout(() => { this.saved = false }, 3000) + } catch(e) { + this.error = e.message + } finally { + this.saving = false + } + }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + + // ── Composant: modulesPage ────────────────────────────────────────────── + Alpine.data('modulesPage', () => ({ + modules: [], + loading: true, + toggling: {}, + + async init() { + await this.load() + }, + + async load() { + this.loading = true + try { + const res = await apiFetch('/api/modules') + if (res.ok) { + this.modules = await res.json() || [] + } + } finally { + this.loading = false + } + }, + + async toggle(mod) { + this.toggling[mod.id] = true + try { + const action = mod.enabled ? 'disable' : 'enable' + const res = await apiFetch(`/api/modules/${mod.id}/${action}`, { method: 'POST' }) + if (res.ok) { + mod.enabled = !mod.enabled + } + } catch(e) { + console.error(e) + } finally { + this.toggling[mod.id] = false + } + }, + + t(key) { return Alpine.store('i18n').t(key) }, + })) + +}) // end alpine:init + +// ── DOMContentLoaded : init stores + Swup ───────────────────────────────── + +document.addEventListener('DOMContentLoaded', async () => { + // Init stores + await Alpine.store('i18n').init() + await Alpine.store('auth').init() + Alpine.store('ui').init() + + // Guard auth : redirect si non authentifié + const publicPages = ['login', 'install', 'index', ''] + const currentPage = window.location.pathname.replace(/^\/|\.html$/g, '') || 'index' + + if (!publicPages.includes(currentPage)) { + if (!Alpine.store('auth').isAuthenticated) { + window.location.href = '/login.html' + return + } + } + + // Redirect depuis index + if (currentPage === 'index' || currentPage === '') { + const res = await fetch('/api/install/status').catch(() => null) + if (res && res.ok) { + const data = await res.json().catch(() => ({})) + window.location.href = data.installed ? '/login.html' : '/install.html' + } else { + window.location.href = '/login.html' + } + return + } + + // Init Swup pour transitions de page + if (typeof Swup !== 'undefined') { + const swup = new Swup({ + containers: ['#swup'], + animationSelector: '[class*="transition-"]', + }) + + window.swup = swup + + // Guard auth sur navigation + swup.hooks.on('visit:start', (visit) => { + const dest = new URL(visit.to.url, location.href).pathname + .replace(/^\/|\.html$/g, '') || 'index' + if (!publicPages.includes(dest) && !Alpine.store('auth').isAuthenticated) { + visit.abort() + window.location.href = '/login.html' + } + }) + + // Destroy Alpine scope de l'ancien contenu AVANT le swap + swup.hooks.on('animation:out:end', () => { + const container = document.getElementById('swup') + if (container && typeof Alpine.destroyTree === 'function') { + Alpine.destroyTree(container) + } + }) + + // Init Alpine sur le nouveau contenu APRÈS le swap + swup.hooks.on('content:replace', () => { + const container = document.getElementById('swup') + if (container) { + Alpine.initTree(container) + } + // Update current page dans UI store + Alpine.store('ui').currentPage = + window.location.pathname.replace(/^\/|\.html$/g, '') || 'index' + }) + } + + // HTMX : inject Authorization header sur toutes les requêtes + document.addEventListener('htmx:configRequest', (e) => { + const token = localStorage.getItem('pxp_token') + if (token) { + e.detail.headers['Authorization'] = 'Bearer ' + token + } + }) +}) diff --git a/frontend/js/terminal.js b/frontend/js/terminal.js new file mode 100644 index 0000000..d9d4c4d --- /dev/null +++ b/frontend/js/terminal.js @@ -0,0 +1,110 @@ +/** + * ProxmoxPanel — Terminal page logic + * xterm.js + WebSocket PTY + * Chargé uniquement sur terminal.html + */ + +document.addEventListener('DOMContentLoaded', () => { + // Les classes Terminal et FitAddon sont exposées par xterm.iife.js + if (typeof Terminal === 'undefined' || typeof FitAddon === 'undefined') { + console.error('xterm.js not loaded') + return + } + + const term = new Terminal({ + cursorBlink: true, + fontFamily: '"JetBrains Mono", "Fira Code", "Cascadia Code", monospace', + fontSize: 14, + theme: { + background: 'var(--bg-secondary, #1a1a2e)', + foreground: 'var(--text-primary, #e2e8f0)', + cursor: 'var(--accent-primary, #6366f1)', + }, + }) + + const fitAddon = new FitAddon() + term.loadAddon(fitAddon) + + const container = document.getElementById('terminal-container') + if (!container) return + + term.open(container) + fitAddon.fit() + + // Connexion WebSocket PTY + const proto = location.protocol === 'https:' ? 'wss' : 'ws' + const token = localStorage.getItem('pxp_token') + const ws = new WebSocket(`${proto}://${location.host}/ws/terminal?token=${encodeURIComponent(token || '')}`) + ws.binaryType = 'arraybuffer' + + const statusEl = document.getElementById('terminal-status') + function setStatus(text, cls) { + if (statusEl) { + statusEl.textContent = text + statusEl.className = 'terminal-status ' + (cls || '') + } + } + + setStatus('Connexion…', 'connecting') + + ws.onopen = () => { + setStatus('Connecté', 'connected') + // Envoyer la taille initiale du terminal + sendResize() + } + + ws.onmessage = (e) => { + if (e.data instanceof ArrayBuffer) { + term.write(new Uint8Array(e.data)) + } else { + term.write(e.data) + } + } + + ws.onclose = () => { + setStatus('Déconnecté', 'disconnected') + term.writeln('\r\n\x1b[31m[Connexion terminée]\x1b[0m') + } + + ws.onerror = () => { + setStatus('Erreur', 'error') + } + + // Envoyer l'input utilisateur au serveur + term.onData((data) => { + if (ws.readyState === WebSocket.OPEN) { + ws.send(data) + } + }) + + // Envoyer la taille du terminal lors du redimensionnement + function sendResize() { + if (ws.readyState === WebSocket.OPEN) { + ws.send(JSON.stringify({ + type: 'resize', + cols: term.cols, + rows: term.rows, + })) + } + } + + const resizeObserver = new ResizeObserver(() => { + fitAddon.fit() + sendResize() + }) + resizeObserver.observe(container) + + // Nettoyage quand Swup navigue hors de la page + document.addEventListener('swup:page:view', () => { + if (!document.getElementById('terminal-container')) { + ws.close() + resizeObserver.disconnect() + } + }) + + // Bouton "Effacer" + const clearBtn = document.getElementById('terminal-clear') + if (clearBtn) { + clearBtn.addEventListener('click', () => term.clear()) + } +}) diff --git a/frontend/src/locales/en.json b/frontend/locales/en.json similarity index 100% rename from frontend/src/locales/en.json rename to frontend/locales/en.json diff --git a/frontend/src/locales/fr.json b/frontend/locales/fr.json similarity index 100% rename from frontend/src/locales/fr.json rename to frontend/locales/fr.json diff --git a/frontend/login.html b/frontend/login.html new file mode 100644 index 0000000..bf15ae8 --- /dev/null +++ b/frontend/login.html @@ -0,0 +1,131 @@ + + + + + + ProxmoxPanel — Connexion + + + + + + + + + +
+
+ + +
+
+ + +
+ +
+ + +
+ + + + +
+
+
+ + + + diff --git a/frontend/modules.html b/frontend/modules.html new file mode 100644 index 0000000..b739817 --- /dev/null +++ b/frontend/modules.html @@ -0,0 +1,109 @@ + + + + + + ProxmoxPanel — Modules + + + + + + + + + + + + +
+ + +
+
+ +
+
+ Chargement… +
+ +
+ + +

Aucun module trouvé

+
+
+
+
+ + + + diff --git a/frontend/nginx.conf b/frontend/nginx.conf index ac4f5a0..e75429a 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,6 +1,3 @@ -# Configuration Nginx pour le frontend ProxmoxPanel -# Sert les fichiers statiques et proxy les requêtes API/WebSocket vers le backend Go - user nginx; worker_processes auto; error_log /var/log/nginx/error.log warn; @@ -14,7 +11,6 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - # Logs au format JSON pour faciliter l'analyse log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent"'; @@ -23,7 +19,6 @@ http { sendfile on; keepalive_timeout 65; - # Compression gzip pour les assets statiques gzip on; gzip_vary on; gzip_min_length 1024; @@ -36,13 +31,13 @@ http { root /usr/share/nginx/html; index index.html; - # Cache agressif pour les assets avec hash dans le nom (Vite) + # Cache agressif pour JS/CSS location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y; add_header Cache-Control "public, immutable"; } - # Proxy des requêtes API vers le backend Go + # Proxy API → backend Go location /api/ { proxy_pass http://backend:3001; proxy_http_version 1.1; @@ -50,10 +45,10 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 300s; # Timeout long pour les mises à jour apt + proxy_read_timeout 300s; } - # Proxy des connexions WebSocket + # Proxy WebSocket → backend Go location /ws/ { proxy_pass http://backend:3001; proxy_http_version 1.1; @@ -61,13 +56,13 @@ http { proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; - proxy_read_timeout 3600s; # 1 heure pour les sessions terminal + proxy_read_timeout 3600s; proxy_send_timeout 3600s; } - # SPA : toutes les autres routes servent index.html (Vue Router) + # URLs propres : /dashboard → /dashboard.html location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri.html $uri/ /index.html; } } } diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 63eef78..43c5341 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,255 +1,23 @@ { "name": "proxmoxpanel-frontend", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "proxmoxpanel-frontend", - "version": "1.0.0", - "dependencies": { - "@codemirror/commands": "^6.8.0", - "@codemirror/lang-css": "^6.3.1", - "@codemirror/lang-html": "^6.4.10", - "@codemirror/lang-javascript": "^6.2.2", - "@codemirror/lang-json": "^6.0.1", - "@codemirror/lang-markdown": "^6.3.2", - "@codemirror/lang-python": "^6.1.7", - "@codemirror/language": "^6.10.8", - "@codemirror/state": "^6.5.1", - "@codemirror/theme-one-dark": "^6.1.2", - "@codemirror/view": "^6.36.3", - "@xterm/addon-attach": "^0.11.0", + "version": "2.0.0", + "devDependencies": { "@xterm/addon-fit": "^0.10.0", "@xterm/xterm": "^5.5.0", - "pinia": "^2.3.0", - "vue": "^3.5.13", - "vue-draggable-plus": "^0.6.0", - "vue-i18n": "^11.0.0", - "vue-router": "^4.5.0" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^5.2.1", - "typescript": "^5.7.3", - "vite": "^6.3.3", - "vue-tsc": "^2.2.10" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", - "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.29.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", - "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@codemirror/autocomplete": { - "version": "6.20.1", - "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.20.1.tgz", - "integrity": "sha512-1cvg3Vz1dSSToCNlJfRA2WSI4ht3K+WplO0UMOgmUYPivCyy2oueZY6Lx7M9wThm7SDUBViRmuT+OG/i8+ON9A==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.17.0", - "@lezer/common": "^1.0.0" - } - }, - "node_modules/@codemirror/commands": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.10.3.tgz", - "integrity": "sha512-JFRiqhKu+bvSkDLI+rUhJwSxQxYb759W5GBezE8Uc8mHLqC9aV/9aTC7yJSqCtB3F00pylrLCwnyS91Ap5ej4Q==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.6.0", - "@codemirror/view": "^6.27.0", - "@lezer/common": "^1.1.0" - } - }, - "node_modules/@codemirror/lang-css": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.3.1.tgz", - "integrity": "sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==", - "license": "MIT", - "dependencies": { - "@codemirror/autocomplete": "^6.0.0", - "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@lezer/common": "^1.0.2", - "@lezer/css": "^1.1.7" - } - }, - "node_modules/@codemirror/lang-html": { - "version": "6.4.11", - "resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.11.tgz", - "integrity": "sha512-9NsXp7Nwp891pQchI7gPdTwBuSuT3K65NGTHWHNJ55HjYcHLllr0rbIZNdOzas9ztc1EUVBlHou85FFZS4BNnw==", - "license": "MIT", - "dependencies": { - "@codemirror/autocomplete": "^6.0.0", - "@codemirror/lang-css": "^6.0.0", - "@codemirror/lang-javascript": "^6.0.0", - "@codemirror/language": "^6.4.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.17.0", - "@lezer/common": "^1.0.0", - "@lezer/css": "^1.1.0", - "@lezer/html": "^1.3.12" - } - }, - "node_modules/@codemirror/lang-javascript": { - "version": "6.2.5", - "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.5.tgz", - "integrity": "sha512-zD4e5mS+50htS7F+TYjBPsiIFGanfVqg4HyUz6WNFikgOPf2BgKlx+TQedI1w6n/IqRBVBbBWmGFdLB/7uxO4A==", - "license": "MIT", - "dependencies": { - "@codemirror/autocomplete": "^6.0.0", - "@codemirror/language": "^6.6.0", - "@codemirror/lint": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.17.0", - "@lezer/common": "^1.0.0", - "@lezer/javascript": "^1.0.0" - } - }, - "node_modules/@codemirror/lang-json": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.2.tgz", - "integrity": "sha512-x2OtO+AvwEHrEwR0FyyPtfDUiloG3rnVTSZV1W8UteaLL8/MajQd8DpvUb2YVzC+/T18aSDv0H9mu+xw0EStoQ==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.0.0", - "@lezer/json": "^1.0.0" - } - }, - "node_modules/@codemirror/lang-markdown": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.5.0.tgz", - "integrity": "sha512-0K40bZ35jpHya6FriukbgaleaqzBLZfOh7HuzqbMxBXkbYMJDxfF39c23xOgxFezR+3G+tR2/Mup+Xk865OMvw==", - "license": "MIT", - "dependencies": { - "@codemirror/autocomplete": "^6.7.1", - "@codemirror/lang-html": "^6.0.0", - "@codemirror/language": "^6.3.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.0.0", - "@lezer/common": "^1.2.1", - "@lezer/markdown": "^1.0.0" - } - }, - "node_modules/@codemirror/lang-python": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@codemirror/lang-python/-/lang-python-6.2.1.tgz", - "integrity": "sha512-IRjC8RUBhn9mGR9ywecNhB51yePWCGgvHfY1lWN/Mrp3cKuHr0isDKia+9HnvhiWNnMpbGhWrkhuWOc09exRyw==", - "license": "MIT", - "dependencies": { - "@codemirror/autocomplete": "^6.3.2", - "@codemirror/language": "^6.8.0", - "@codemirror/state": "^6.0.0", - "@lezer/common": "^1.2.1", - "@lezer/python": "^1.1.4" - } - }, - "node_modules/@codemirror/language": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.12.2.tgz", - "integrity": "sha512-jEPmz2nGGDxhRTg3lTpzmIyGKxz3Gp3SJES4b0nAuE5SWQoKdT5GoQ69cwMmFd+wvFUhYirtDTr0/DRHpQAyWg==", - "license": "MIT", - "dependencies": { - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.23.0", - "@lezer/common": "^1.5.0", - "@lezer/highlight": "^1.0.0", - "@lezer/lr": "^1.0.0", - "style-mod": "^4.0.0" - } - }, - "node_modules/@codemirror/lint": { - "version": "6.9.5", - "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.9.5.tgz", - "integrity": "sha512-GElsbU9G7QT9xXhpUg1zWGmftA/7jamh+7+ydKRuT0ORpWS3wOSP0yT1FOlIZa7mIJjpVPipErsyvVqB9cfTFA==", - "license": "MIT", - "dependencies": { - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.35.0", - "crelt": "^1.0.5" - } - }, - "node_modules/@codemirror/state": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.6.0.tgz", - "integrity": "sha512-4nbvra5R5EtiCzr9BTHiTLc+MLXK2QGiAVYMyi8PkQd3SR+6ixar/Q/01Fa21TBIDOZXgeWV4WppsQolSreAPQ==", - "license": "MIT", - "dependencies": { - "@marijn/find-cluster-break": "^1.0.0" - } - }, - "node_modules/@codemirror/theme-one-dark": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.1.3.tgz", - "integrity": "sha512-NzBdIvEJmx6fjeremiGp3t/okrLPYT0d9orIc7AFun8oZcRk58aejkqhv6spnz4MLAevrKNPMQYXEWMg4s+sKA==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", - "@codemirror/view": "^6.0.0", - "@lezer/highlight": "^1.0.0" - } - }, - "node_modules/@codemirror/view": { - "version": "6.40.0", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.40.0.tgz", - "integrity": "sha512-WA0zdU7xfF10+5I3HhUUq3kqOx3KjqmtQ9lqZjfK7jtYk4G72YW9rezcSywpaUMCWOMlq+6E0pO1IWg1TNIhtg==", - "license": "MIT", - "dependencies": { - "@codemirror/state": "^6.6.0", - "crelt": "^1.0.6", - "style-mod": "^4.1.0", - "w3c-keyname": "^2.2.4" + "esbuild": "^0.24.0", + "swup": "^4.8.0" } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", - "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", + "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", "cpu": [ "ppc64" ], @@ -264,9 +32,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", - "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", + "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", "cpu": [ "arm" ], @@ -281,9 +49,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", - "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", + "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", "cpu": [ "arm64" ], @@ -298,9 +66,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", - "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", + "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", "cpu": [ "x64" ], @@ -315,9 +83,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", - "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", + "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", "cpu": [ "arm64" ], @@ -332,9 +100,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", - "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", + "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", "cpu": [ "x64" ], @@ -349,9 +117,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", - "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", + "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", "cpu": [ "arm64" ], @@ -366,9 +134,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", - "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", + "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", "cpu": [ "x64" ], @@ -383,9 +151,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", - "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", + "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", "cpu": [ "arm" ], @@ -400,9 +168,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", - "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", + "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", "cpu": [ "arm64" ], @@ -417,9 +185,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", - "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", + "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", "cpu": [ "ia32" ], @@ -434,9 +202,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", - "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", + "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", "cpu": [ "loong64" ], @@ -451,9 +219,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", - "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", + "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", "cpu": [ "mips64el" ], @@ -468,9 +236,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", - "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", + "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", "cpu": [ "ppc64" ], @@ -485,9 +253,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", - "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", + "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", "cpu": [ "riscv64" ], @@ -502,9 +270,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", - "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", + "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", "cpu": [ "s390x" ], @@ -519,9 +287,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", - "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", + "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", "cpu": [ "x64" ], @@ -536,9 +304,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", - "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", + "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", "cpu": [ "arm64" ], @@ -553,9 +321,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", - "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", + "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", "cpu": [ "x64" ], @@ -570,9 +338,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", - "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", + "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", "cpu": [ "arm64" ], @@ -587,9 +355,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", - "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", + "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", "cpu": [ "x64" ], @@ -603,27 +371,10 @@ "node": ">=18" } }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", - "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", - "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", + "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", "cpu": [ "x64" ], @@ -638,9 +389,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", - "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", + "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", "cpu": [ "arm64" ], @@ -655,9 +406,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", - "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", + "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", "cpu": [ "ia32" ], @@ -672,9 +423,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", - "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", + "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", "cpu": [ "x64" ], @@ -688,729 +439,11 @@ "node": ">=18" } }, - "node_modules/@intlify/core-base": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.3.0.tgz", - "integrity": "sha512-NNX5jIwF4TJBe7RtSKDMOA6JD9mp2mRcBHAwt2X+Q8PvnZub0yj5YYXlFu2AcESdgQpEv/5Yx2uOCV/yh7YkZg==", - "license": "MIT", - "dependencies": { - "@intlify/devtools-types": "11.3.0", - "@intlify/message-compiler": "11.3.0", - "@intlify/shared": "11.3.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/devtools-types": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.3.0.tgz", - "integrity": "sha512-G9CNL4WpANWVdUjubOIIS7/D2j/0j+1KJmhBJxHilWNKr9mmt3IjFV3Hq4JoBP23uOoC5ynxz/FHZ42M+YxfGw==", - "license": "MIT", - "dependencies": { - "@intlify/core-base": "11.3.0", - "@intlify/shared": "11.3.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/message-compiler": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.3.0.tgz", - "integrity": "sha512-RAJp3TMsqohg/Wa7bVF3cChRhecSYBLrTCQSj7j0UtWVFLP+6iEJoE2zb7GU5fp+fmG5kCbUdzhmlAUCWXiUJw==", - "license": "MIT", - "dependencies": { - "@intlify/shared": "11.3.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/shared": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.3.0.tgz", - "integrity": "sha512-LC6P/uay7rXL5zZ5+5iRJfLs/iUN8apu9tm8YqQVmW3Uq3X4A0dOFUIDuAmB7gAC29wTHOS3EiN/IosNSz0eNQ==", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@lezer/common": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.5.1.tgz", - "integrity": "sha512-6YRVG9vBkaY7p1IVxL4s44n5nUnaNnGM2/AckNgYOnxTG2kWh1vR8BMxPseWPjRNpb5VtXnMpeYAEAADoRV1Iw==", - "license": "MIT" - }, - "node_modules/@lezer/css": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.3.1.tgz", - "integrity": "sha512-PYAKeUVBo3HFThruRyp/iK91SwiZJnzXh8QzkQlwijB5y+N5iB28+iLk78o2zmKqqV0uolNhCwFqB8LA7b0Svg==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.2.0", - "@lezer/highlight": "^1.0.0", - "@lezer/lr": "^1.3.0" - } - }, - "node_modules/@lezer/highlight": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.3.tgz", - "integrity": "sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.3.0" - } - }, - "node_modules/@lezer/html": { - "version": "1.3.13", - "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.13.tgz", - "integrity": "sha512-oI7n6NJml729m7pjm9lvLvmXbdoMoi2f+1pwSDJkl9d68zGr7a9Btz8NdHTGQZtW2DA25ybeuv/SyDb9D5tseg==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.2.0", - "@lezer/highlight": "^1.0.0", - "@lezer/lr": "^1.0.0" - } - }, - "node_modules/@lezer/javascript": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.5.4.tgz", - "integrity": "sha512-vvYx3MhWqeZtGPwDStM2dwgljd5smolYD2lR2UyFcHfxbBQebqx8yjmFmxtJ/E6nN6u1D9srOiVWm3Rb4tmcUA==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.2.0", - "@lezer/highlight": "^1.1.3", - "@lezer/lr": "^1.3.0" - } - }, - "node_modules/@lezer/json": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.3.tgz", - "integrity": "sha512-BP9KzdF9Y35PDpv04r0VeSTKDeox5vVr3efE7eBbx3r4s3oNLfunchejZhjArmeieBH+nVOpgIiBJpEAv8ilqQ==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.2.0", - "@lezer/highlight": "^1.0.0", - "@lezer/lr": "^1.0.0" - } - }, - "node_modules/@lezer/lr": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.8.tgz", - "integrity": "sha512-bPWa0Pgx69ylNlMlPvBPryqeLYQjyJjqPx+Aupm5zydLIF3NE+6MMLT8Yi23Bd9cif9VS00aUebn+6fDIGBcDA==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.0.0" - } - }, - "node_modules/@lezer/markdown": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.6.3.tgz", - "integrity": "sha512-jpGm5Ps+XErS+xA4urw7ogEGkeZOahVQF21Z6oECF0sj+2liwZopd2+I8uH5I/vZsRuuze3OxBREIANLf6KKUw==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.5.0", - "@lezer/highlight": "^1.0.0" - } - }, - "node_modules/@lezer/python": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/@lezer/python/-/python-1.1.18.tgz", - "integrity": "sha512-31FiUrU7z9+d/ElGQLJFXl+dKOdx0jALlP3KEOsGTex8mvj+SoE1FgItcHWK/axkxCHGUSpqIHt6JAWfWu9Rhg==", - "license": "MIT", - "dependencies": { - "@lezer/common": "^1.2.0", - "@lezer/highlight": "^1.0.0", - "@lezer/lr": "^1.0.0" - } - }, - "node_modules/@marijn/find-cluster-break": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz", - "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==", - "license": "MIT" - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", - "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", - "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", - "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", - "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", - "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", - "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", - "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", - "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", - "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", - "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", - "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", - "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", - "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", - "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", - "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", - "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", - "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", - "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", - "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", - "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", - "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", - "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", - "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", - "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", - "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/sortablejs": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.15.9.tgz", - "integrity": "sha512-7HP+rZGE2p886PKV9c9OJzLBI6BBJu1O7lJGYnPyG3fS4/duUCcngkNCjsLwIMV+WMqANe3tt4irrXHSIe68OQ==", - "license": "MIT" - }, - "node_modules/@vitejs/plugin-vue": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", - "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "vite": "^5.0.0 || ^6.0.0", - "vue": "^3.2.25" - } - }, - "node_modules/@volar/language-core": { - "version": "2.4.15", - "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.15.tgz", - "integrity": "sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@volar/source-map": "2.4.15" - } - }, - "node_modules/@volar/source-map": { - "version": "2.4.15", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.15.tgz", - "integrity": "sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@volar/typescript": { - "version": "2.4.15", - "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.15.tgz", - "integrity": "sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@volar/language-core": "2.4.15", - "path-browserify": "^1.0.1", - "vscode-uri": "^3.0.8" - } - }, - "node_modules/@vue/compiler-core": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.30.tgz", - "integrity": "sha512-s3DfdZkcu/qExZ+td75015ljzHc6vE+30cFMGRPROYjqkroYI5NV2X1yAMX9UeyBNWB9MxCfPcsjpLS11nzkkw==", - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.0", - "@vue/shared": "3.5.30", - "entities": "^7.0.1", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-dom": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.30.tgz", - "integrity": "sha512-eCFYESUEVYHhiMuK4SQTldO3RYxyMR/UQL4KdGD1Yrkfdx4m/HYuZ9jSfPdA+nWJY34VWndiYdW/wZXyiPEB9g==", - "license": "MIT", - "dependencies": { - "@vue/compiler-core": "3.5.30", - "@vue/shared": "3.5.30" - } - }, - "node_modules/@vue/compiler-sfc": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.30.tgz", - "integrity": "sha512-LqmFPDn89dtU9vI3wHJnwaV6GfTRD87AjWpTWpyrdVOObVtjIuSeZr181z5C4PmVx/V3j2p+0f7edFKGRMpQ5A==", - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.0", - "@vue/compiler-core": "3.5.30", - "@vue/compiler-dom": "3.5.30", - "@vue/compiler-ssr": "3.5.30", - "@vue/shared": "3.5.30", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.21", - "postcss": "^8.5.8", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-ssr": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.30.tgz", - "integrity": "sha512-NsYK6OMTnx109PSL2IAyf62JP6EUdk4Dmj6AkWcJGBvN0dQoMYtVekAmdqgTtWQgEJo+Okstbf/1p7qZr5H+bA==", - "license": "MIT", - "dependencies": { - "@vue/compiler-dom": "3.5.30", - "@vue/shared": "3.5.30" - } - }, - "node_modules/@vue/compiler-vue2": { - "version": "2.7.16", - "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", - "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", - "dev": true, - "license": "MIT", - "dependencies": { - "de-indent": "^1.0.2", - "he": "^1.2.0" - } - }, - "node_modules/@vue/devtools-api": { - "version": "6.6.4", - "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", - "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", - "license": "MIT" - }, - "node_modules/@vue/language-core": { - "version": "2.2.12", - "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.12.tgz", - "integrity": "sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@volar/language-core": "2.4.15", - "@vue/compiler-dom": "^3.5.0", - "@vue/compiler-vue2": "^2.7.16", - "@vue/shared": "^3.5.0", - "alien-signals": "^1.0.3", - "minimatch": "^9.0.3", - "muggle-string": "^0.4.1", - "path-browserify": "^1.0.1" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@vue/reactivity": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.30.tgz", - "integrity": "sha512-179YNgKATuwj9gB+66snskRDOitDiuOZqkYia7mHKJaidOMo/WJxHKF8DuGc4V4XbYTJANlfEKb0yxTQotnx4Q==", - "license": "MIT", - "dependencies": { - "@vue/shared": "3.5.30" - } - }, - "node_modules/@vue/runtime-core": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.30.tgz", - "integrity": "sha512-e0Z+8PQsUTdwV8TtEsLzUM7SzC7lQwYKePydb7K2ZnmS6jjND+WJXkmmfh/swYzRyfP1EY3fpdesyYoymCzYfg==", - "license": "MIT", - "dependencies": { - "@vue/reactivity": "3.5.30", - "@vue/shared": "3.5.30" - } - }, - "node_modules/@vue/runtime-dom": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.30.tgz", - "integrity": "sha512-2UIGakjU4WSQ0T4iwDEW0W7vQj6n7AFn7taqZ9Cvm0Q/RA2FFOziLESrDL4GmtI1wV3jXg5nMoJSYO66egDUBw==", - "license": "MIT", - "dependencies": { - "@vue/reactivity": "3.5.30", - "@vue/runtime-core": "3.5.30", - "@vue/shared": "3.5.30", - "csstype": "^3.2.3" - } - }, - "node_modules/@vue/server-renderer": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.30.tgz", - "integrity": "sha512-v+R34icapydRwbZRD0sXwtHqrQJv38JuMB4JxbOxd8NEpGLny7cncMp53W9UH/zo4j8eDHjQ1dEJXwzFQknjtQ==", - "license": "MIT", - "dependencies": { - "@vue/compiler-ssr": "3.5.30", - "@vue/shared": "3.5.30" - }, - "peerDependencies": { - "vue": "3.5.30" - } - }, - "node_modules/@vue/shared": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.30.tgz", - "integrity": "sha512-YXgQ7JjaO18NeK2K9VTbDHaFy62WrObMa6XERNfNOkAhD1F1oDSf3ZJ7K6GqabZ0BvSDHajp8qfS5Sa2I9n8uQ==", - "license": "MIT" - }, - "node_modules/@xterm/addon-attach": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@xterm/addon-attach/-/addon-attach-0.11.0.tgz", - "integrity": "sha512-JboCN0QAY6ZLY/SSB/Zl2cQ5zW1Eh4X3fH7BnuR1NB7xGRhzbqU2Npmpiw/3zFlxDaU88vtKzok44JKi2L2V2Q==", - "license": "MIT", - "peerDependencies": { - "@xterm/xterm": "^5.0.0" - } - }, "node_modules/@xterm/addon-fit": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/@xterm/addon-fit/-/addon-fit-0.10.0.tgz", "integrity": "sha512-UFYkDm4HUahf2lnEyHvio51TNGiLK66mqP2JoATy7hRZeXaGMRDr00JiSF7m63vR5WKATF605yEggJKsw0JpMQ==", + "dev": true, "license": "MIT", "peerDependencies": { "@xterm/xterm": "^5.0.0" @@ -1420,67 +453,26 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-5.5.0.tgz", "integrity": "sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A==", - "license": "MIT" - }, - "node_modules/alien-signals": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-1.0.13.tgz", - "integrity": "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==", "dev": true, "license": "MIT" }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "node_modules/delegate-it": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/delegate-it/-/delegate-it-6.3.0.tgz", + "integrity": "sha512-WAa6cA61M5mfDR31PBgMNQQ3LY1q++TxnZzcm7E9XV8ODBPxDutxH0toTR/BXqIkLaVuU7ntFe1uOqDllhA22A==", "dev": true, "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/crelt": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", - "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==", - "license": "MIT" - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "license": "MIT" - }, - "node_modules/de-indent": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", - "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", - "dev": true, - "license": "MIT" - }, - "node_modules/entities": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", - "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" + "typed-query-selector": "^2.11.2" }, "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" + "url": "https://github.com/sponsors/fregante" } }, "node_modules/esbuild": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", - "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "version": "0.24.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", + "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -1491,503 +483,67 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.12", - "@esbuild/android-arm": "0.25.12", - "@esbuild/android-arm64": "0.25.12", - "@esbuild/android-x64": "0.25.12", - "@esbuild/darwin-arm64": "0.25.12", - "@esbuild/darwin-x64": "0.25.12", - "@esbuild/freebsd-arm64": "0.25.12", - "@esbuild/freebsd-x64": "0.25.12", - "@esbuild/linux-arm": "0.25.12", - "@esbuild/linux-arm64": "0.25.12", - "@esbuild/linux-ia32": "0.25.12", - "@esbuild/linux-loong64": "0.25.12", - "@esbuild/linux-mips64el": "0.25.12", - "@esbuild/linux-ppc64": "0.25.12", - "@esbuild/linux-riscv64": "0.25.12", - "@esbuild/linux-s390x": "0.25.12", - "@esbuild/linux-x64": "0.25.12", - "@esbuild/netbsd-arm64": "0.25.12", - "@esbuild/netbsd-x64": "0.25.12", - "@esbuild/openbsd-arm64": "0.25.12", - "@esbuild/openbsd-x64": "0.25.12", - "@esbuild/openharmony-arm64": "0.25.12", - "@esbuild/sunos-x64": "0.25.12", - "@esbuild/win32-arm64": "0.25.12", - "@esbuild/win32-ia32": "0.25.12", - "@esbuild/win32-x64": "0.25.12" + "@esbuild/aix-ppc64": "0.24.2", + "@esbuild/android-arm": "0.24.2", + "@esbuild/android-arm64": "0.24.2", + "@esbuild/android-x64": "0.24.2", + "@esbuild/darwin-arm64": "0.24.2", + "@esbuild/darwin-x64": "0.24.2", + "@esbuild/freebsd-arm64": "0.24.2", + "@esbuild/freebsd-x64": "0.24.2", + "@esbuild/linux-arm": "0.24.2", + "@esbuild/linux-arm64": "0.24.2", + "@esbuild/linux-ia32": "0.24.2", + "@esbuild/linux-loong64": "0.24.2", + "@esbuild/linux-mips64el": "0.24.2", + "@esbuild/linux-ppc64": "0.24.2", + "@esbuild/linux-riscv64": "0.24.2", + "@esbuild/linux-s390x": "0.24.2", + "@esbuild/linux-x64": "0.24.2", + "@esbuild/netbsd-arm64": "0.24.2", + "@esbuild/netbsd-x64": "0.24.2", + "@esbuild/openbsd-arm64": "0.24.2", + "@esbuild/openbsd-x64": "0.24.2", + "@esbuild/sunos-x64": "0.24.2", + "@esbuild/win32-arm64": "0.24.2", + "@esbuild/win32-ia32": "0.24.2", + "@esbuild/win32-x64": "0.24.2" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "node_modules/opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", "dev": true, "license": "MIT", "bin": { - "he": "bin/he" + "opencollective-postinstall": "index.js" } }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/muggle-string": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", - "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "node_modules/path-to-regexp": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", + "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", "dev": true, "license": "MIT" }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pinia": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.3.1.tgz", - "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", - "license": "MIT", - "dependencies": { - "@vue/devtools-api": "^6.6.3", - "vue-demi": "^0.14.10" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "typescript": ">=4.4.4", - "vue": "^2.7.0 || ^3.5.11" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/postcss": { - "version": "8.5.8", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", - "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/rollup": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", - "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", + "node_modules/swup": { + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/swup/-/swup-4.8.3.tgz", + "integrity": "sha512-2U+mE7SnU4Jm+H82C2FChML04v5kb+fnf+2aYP2e0MX7vWOnmd6SHvjSBF8MH3HOrwalaXnynQVImgCaxGZxtA==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.59.0", - "@rollup/rollup-android-arm64": "4.59.0", - "@rollup/rollup-darwin-arm64": "4.59.0", - "@rollup/rollup-darwin-x64": "4.59.0", - "@rollup/rollup-freebsd-arm64": "4.59.0", - "@rollup/rollup-freebsd-x64": "4.59.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", - "@rollup/rollup-linux-arm-musleabihf": "4.59.0", - "@rollup/rollup-linux-arm64-gnu": "4.59.0", - "@rollup/rollup-linux-arm64-musl": "4.59.0", - "@rollup/rollup-linux-loong64-gnu": "4.59.0", - "@rollup/rollup-linux-loong64-musl": "4.59.0", - "@rollup/rollup-linux-ppc64-gnu": "4.59.0", - "@rollup/rollup-linux-ppc64-musl": "4.59.0", - "@rollup/rollup-linux-riscv64-gnu": "4.59.0", - "@rollup/rollup-linux-riscv64-musl": "4.59.0", - "@rollup/rollup-linux-s390x-gnu": "4.59.0", - "@rollup/rollup-linux-x64-gnu": "4.59.0", - "@rollup/rollup-linux-x64-musl": "4.59.0", - "@rollup/rollup-openbsd-x64": "4.59.0", - "@rollup/rollup-openharmony-arm64": "4.59.0", - "@rollup/rollup-win32-arm64-msvc": "4.59.0", - "@rollup/rollup-win32-ia32-msvc": "4.59.0", - "@rollup/rollup-win32-x64-gnu": "4.59.0", - "@rollup/rollup-win32-x64-msvc": "4.59.0", - "fsevents": "~2.3.2" + "delegate-it": "^6.0.0", + "opencollective-postinstall": "^2.0.2", + "path-to-regexp": "^6.2.1" } }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/style-mod": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.3.tgz", - "integrity": "sha512-i/n8VsZydrugj3Iuzll8+x/00GH2vnYsk1eomD8QiRrSAeW6ItbCQDtfXCeJHd0iwiNagqjQkvpvREEPtW3IoQ==", - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "node_modules/typed-query-selector": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.1.tgz", + "integrity": "sha512-uzR+FzI8qrUEIu96oaeBJmd9E7CFEiQ3goA5qCVgc4s5llSubcfGHq9yUstZx/k4s9dXHVKsE35YWoFyvEqEHA==", "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "devOptional": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/vite": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz", - "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vscode-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", - "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/vue": { - "version": "3.5.30", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.30.tgz", - "integrity": "sha512-hTHLc6VNZyzzEH/l7PFGjpcTvUgiaPK5mdLkbjrTeWSRcEfxFrv56g/XckIYlE9ckuobsdwqd5mk2g1sBkMewg==", - "license": "MIT", - "dependencies": { - "@vue/compiler-dom": "3.5.30", - "@vue/compiler-sfc": "3.5.30", - "@vue/runtime-dom": "3.5.30", - "@vue/server-renderer": "3.5.30", - "@vue/shared": "3.5.30" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/vue-demi": { - "version": "0.14.10", - "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", - "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, - "node_modules/vue-draggable-plus": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/vue-draggable-plus/-/vue-draggable-plus-0.6.1.tgz", - "integrity": "sha512-FbtQ/fuoixiOfTZzG3yoPl4JAo9HJXRHmBQZFB9x2NYCh6pq0TomHf7g5MUmpaDYv+LU2n6BPq2YN9sBO+FbIg==", - "license": "MIT", - "dependencies": { - "@types/sortablejs": "^1.15.8" - }, - "peerDependencies": { - "@types/sortablejs": "^1.15.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, - "node_modules/vue-i18n": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.3.0.tgz", - "integrity": "sha512-1J+xDfDJTLhDxElkd3+XUhT7FYSZd2b8pa7IRKGxhWH/8yt6PTvi3xmWhGwhYT5EaXdatui11pF2R6tL73/zPA==", - "license": "MIT", - "dependencies": { - "@intlify/core-base": "11.3.0", - "@intlify/devtools-types": "11.3.0", - "@intlify/shared": "11.3.0", - "@vue/devtools-api": "^6.5.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - }, - "peerDependencies": { - "vue": "^3.0.0" - } - }, - "node_modules/vue-router": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", - "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", - "license": "MIT", - "dependencies": { - "@vue/devtools-api": "^6.6.4" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "vue": "^3.5.0" - } - }, - "node_modules/vue-tsc": { - "version": "2.2.12", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.2.12.tgz", - "integrity": "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@volar/typescript": "2.4.15", - "@vue/language-core": "2.2.12" - }, - "bin": { - "vue-tsc": "bin/vue-tsc.js" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - } - }, - "node_modules/w3c-keyname": { - "version": "2.2.8", - "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", - "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", "license": "MIT" } } diff --git a/frontend/package.json b/frontend/package.json index d06edf2..b7d4f4a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,37 +1,15 @@ { "name": "proxmoxpanel-frontend", - "version": "1.0.0", + "version": "2.0.0", "private": true, + "type": "module", "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview" - }, - "dependencies": { - "vue": "^3.5.13", - "vue-router": "^4.5.0", - "pinia": "^2.3.0", - "vue-i18n": "^11.0.0", - "@xterm/xterm": "^5.5.0", - "@xterm/addon-fit": "^0.10.0", - "@xterm/addon-attach": "^0.11.0", - "@codemirror/state": "^6.5.1", - "@codemirror/view": "^6.36.3", - "@codemirror/commands": "^6.8.0", - "@codemirror/language": "^6.10.8", - "@codemirror/lang-javascript": "^6.2.2", - "@codemirror/lang-json": "^6.0.1", - "@codemirror/lang-css": "^6.3.1", - "@codemirror/lang-html": "^6.4.10", - "@codemirror/lang-python": "^6.1.7", - "@codemirror/lang-markdown": "^6.3.2", - "@codemirror/theme-one-dark": "^6.1.2", - "vue-draggable-plus": "^0.6.0" + "build": "node build.mjs" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.2.1", - "typescript": "^5.7.3", - "vite": "^6.3.3", - "vue-tsc": "^2.2.10" + "swup": "^4.8.0", + "@xterm/xterm": "^5.5.0", + "@xterm/addon-fit": "^0.10.0", + "esbuild": "^0.24.0" } } diff --git a/frontend/proxmox.html b/frontend/proxmox.html new file mode 100644 index 0000000..e9939d1 --- /dev/null +++ b/frontend/proxmox.html @@ -0,0 +1,158 @@ + + + + + + ProxmoxPanel — Proxmox + + + + + + + + + + + + +
+ + +
+
+ +
+ ⌛ Connexion WebSocket… + ● Live + ⚠ Reconnexion… + ✗ Erreur WebSocket +
+ + +
+

Containers LXC

+
+ +
+

Aucun container LXC

+
+ + +
+

Machines virtuelles

+
+ +
+

Aucune VM

+
+
+
+
+ + + + diff --git a/frontend/settings.html b/frontend/settings.html new file mode 100644 index 0000000..08b4aca --- /dev/null +++ b/frontend/settings.html @@ -0,0 +1,163 @@ + + + + + + ProxmoxPanel — Paramètres + + + + + + + + + + + + +
+ + +
+
+ + +
+
+ Chargement… +
+ + +
+
+
+ + + + diff --git a/frontend/src/App.vue b/frontend/src/App.vue deleted file mode 100644 index 23cc868..0000000 --- a/frontend/src/App.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - - - diff --git a/frontend/src/components/Layout.vue b/frontend/src/components/Layout.vue deleted file mode 100644 index e057acf..0000000 --- a/frontend/src/components/Layout.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/frontend/src/components/Navbar.vue b/frontend/src/components/Navbar.vue deleted file mode 100644 index 970093b..0000000 --- a/frontend/src/components/Navbar.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue deleted file mode 100644 index cace0ae..0000000 --- a/frontend/src/components/Sidebar.vue +++ /dev/null @@ -1,292 +0,0 @@ - - - - - diff --git a/frontend/src/main.ts b/frontend/src/main.ts deleted file mode 100644 index b2ecc37..0000000 --- a/frontend/src/main.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Point d'entrée de l'application ProxmoxPanel Frontend. -// Initialise Vue 3, Pinia, Vue Router et vue-i18n. -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import { createI18n } from 'vue-i18n' - -import App from './App.vue' -import router from './router/index' - -// Imports des fichiers de traduction (locaux, pas de CDN) -import fr from './locales/fr.json' -import en from './locales/en.json' - -// Styles Neumorphism — chargés globalement -import './styles/neu.css' -import './styles/dark.css' -import './styles/light.css' - -// Déterminer la locale initiale (localStorage > défaut 'fr') -const savedLocale = localStorage.getItem('pxp_locale') || 'fr' - -// Initialisation vue-i18n -const i18n = createI18n({ - legacy: false, // Utiliser la Composition API - locale: savedLocale, - fallbackLocale: 'en', - messages: { fr, en }, -}) - -const pinia = createPinia() -const app = createApp(App) - -app.use(pinia) -app.use(router) -app.use(i18n) - -app.mount('#app') diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts deleted file mode 100644 index 029db82..0000000 --- a/frontend/src/router/index.ts +++ /dev/null @@ -1,129 +0,0 @@ -// Configuration du routeur Vue — gère la navigation et la protection des routes. -import { createRouter, createWebHistory } from 'vue-router' -import { useAuthStore } from '@/stores/auth.store' - -const router = createRouter({ - history: createWebHistory(), - routes: [ - // Page d'installation (premier lancement) - { - path: '/install', - name: 'install', - component: () => import('@/views/Install.vue'), - meta: { public: true, hideLayout: true }, - }, - - // Authentification - { - path: '/login', - name: 'login', - component: () => import('@/views/Login.vue'), - meta: { public: true, hideLayout: true }, - }, - - // Application principale (protégée) - { - path: '/', - component: () => import('@/components/Layout.vue'), - meta: { requiresAuth: true }, - children: [ - { - path: '', - name: 'dashboard', - component: () => import('@/views/Dashboard.vue'), - }, - { - path: 'proxmox', - name: 'proxmox', - component: () => import('@/views/Proxmox.vue'), - }, - { - path: 'updates', - name: 'updates', - component: () => import('@/views/Updates.vue'), - }, - { - path: 'files', - name: 'files', - component: () => import('@/views/Files.vue'), - meta: { module: 'files' }, - }, - { - path: 'terminal', - name: 'terminal', - component: () => import('@/views/Terminal.vue'), - meta: { module: 'terminal' }, - }, - { - path: 'logs', - name: 'logs', - component: () => import('@/views/Logs.vue'), - meta: { module: 'logs' }, - }, - { - path: 'services', - name: 'services', - component: () => import('@/views/Services.vue'), - meta: { module: 'services' }, - }, - { - path: 'settings', - name: 'settings', - component: () => import('@/views/Settings.vue'), - }, - { - path: 'modules', - name: 'modules', - component: () => import('@/views/Modules.vue'), - meta: { requiresAdmin: true }, - }, - ], - }, - - // Redirection 404 - { - path: '/:pathMatch(.*)*', - redirect: '/', - }, - ], -}) - -// Guard de navigation : vérification authentification et installation -router.beforeEach(async (to) => { - const authStore = useAuthStore() - - // Au premier chargement : vérifier l'installation ET restaurer la session - if (!authStore.installChecked) { - await authStore.checkInstallation() - await authStore.restoreSession() - } - - // Rediriger vers l'installation si pas encore configuré - if (!authStore.isInstalled && to.name !== 'install') { - return { name: 'install' } - } - - // Si installé et route d'install → rediriger vers le dashboard - if (authStore.isInstalled && to.name === 'install') { - return { name: 'dashboard' } - } - - // Routes publiques — passer directement - if (to.meta.public) return true - - // Routes protégées — vérifier l'authentification - if (to.meta.requiresAuth || to.matched.some(r => r.meta.requiresAuth)) { - if (!authStore.isAuthenticated) { - return { name: 'login', query: { redirect: to.fullPath } } - } - } - - // Routes admin uniquement - if (to.meta.requiresAdmin && !authStore.user?.is_admin) { - return { name: 'dashboard' } - } - - return true -}) - -export default router diff --git a/frontend/src/stores/auth.store.ts b/frontend/src/stores/auth.store.ts deleted file mode 100644 index 8886723..0000000 --- a/frontend/src/stores/auth.store.ts +++ /dev/null @@ -1,218 +0,0 @@ -// Store d'authentification — gère la session JWT, le profil utilisateur et l'état d'installation. -import { defineStore } from 'pinia' -import { ref, computed } from 'vue' - -export interface User { - id: number - username: string - is_admin: boolean - lang: string - theme: string - sidebar_position: string -} - -export const useAuthStore = defineStore('auth', () => { - // État - const user = ref(null) - const accessToken = ref(localStorage.getItem('pxp_token')) - const isInstalled = ref(false) - const installChecked = ref(false) - - // Computed - const isAuthenticated = computed(() => !!accessToken.value && !!user.value) - - // ── Actions ────────────────────────────────────────────────────────────── - - /** - * Vérifie si l'application est installée via l'API. - * Appelé une seule fois au démarrage par le router guard. - */ - async function checkInstallation(): Promise { - try { - const res = await fetch('/api/install/check') - if (res.ok) { - const data = await res.json() - isInstalled.value = data.installed - } - } catch { - // En cas d'erreur réseau, on suppose installé pour éviter une boucle - isInstalled.value = true - } finally { - installChecked.value = true - } - } - - /** - * Authentifie l'utilisateur avec ses credentials Linux. - */ - async function login(username: string, password: string): Promise { - const res = await fetch('/api/auth/login', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ username, password }), - }) - - if (!res.ok) { - const contentType = res.headers.get('content-type') || '' - if (contentType.includes('application/json')) { - const err = await res.json() - throw new Error(err.error || 'Erreur d\'authentification') - } - throw new Error(`Erreur ${res.status} — réponse inattendue du serveur`) - } - - const data = await res.json() - accessToken.value = data.access_token - localStorage.setItem('pxp_token', data.access_token) - user.value = data.user - - // Planifier le renouvellement automatique avant expiration (14 min) - scheduleRefresh(14 * 60 * 1000) - } - - /** - * Restaure la session au démarrage de l'application (après F5). - * 1. Essaie fetchMe() avec le token existant (marche si < 15 min) - * 2. Si le token est expiré, tente le refresh via le cookie httpOnly - */ - async function restoreSession(): Promise { - if (!accessToken.value) return - - // Le token est peut-être encore valide : évite d'avoir besoin du cookie - await fetchMe() - if (user.value) { - scheduleRefresh(14 * 60 * 1000) - return - } - - // Token expiré — tenter le refresh via le cookie httpOnly - try { - const res = await fetch('/api/auth/refresh', { - method: 'POST', - credentials: 'include', - }) - if (res.ok) { - const data = await res.json() - accessToken.value = data.access_token - localStorage.setItem('pxp_token', data.access_token) - await fetchMe() - if (user.value) scheduleRefresh(14 * 60 * 1000) - } else { - // Le refresh a explicitement échoué (cookie absent ou expiré) - clearSession() - } - } catch { - // Erreur réseau transitoire — ne pas effacer le token, laisser le guard rediriger - } - } - - /** - * Tente de renouveler le token via le cookie httpOnly (pxp_refresh). - * Utilisé par le timer automatique (14 min après login). - */ - async function tryRefresh(): Promise { - const token = localStorage.getItem('pxp_token') - if (!token) return - - try { - const res = await fetch('/api/auth/refresh', { - method: 'POST', - credentials: 'include', - }) - - if (res.ok) { - const data = await res.json() - accessToken.value = data.access_token - localStorage.setItem('pxp_token', data.access_token) - await fetchMe() - scheduleRefresh(14 * 60 * 1000) - } else { - clearSession() - } - } catch { - clearSession() - } - } - - /** - * Charge le profil de l'utilisateur connecté. - */ - async function fetchMe(): Promise { - if (!accessToken.value) return - - const res = await fetch('/api/auth/me', { - headers: { Authorization: `Bearer ${accessToken.value}` }, - }) - - if (res.ok) { - user.value = await res.json() - } - } - - /** - * Déconnecte l'utilisateur. - */ - async function logout(): Promise { - try { - await fetch('/api/auth/logout', { - method: 'POST', - headers: { Authorization: `Bearer ${accessToken.value}` }, - credentials: 'include', - }) - } finally { - clearSession() - } - } - - /** - * Met à jour les préférences de l'utilisateur (thème, langue, sidebar). - */ - async function updatePreferences(prefs: Partial>): Promise { - if (!accessToken.value) return - - await fetch('/api/auth/preferences', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${accessToken.value}`, - }, - body: JSON.stringify(prefs), - }) - - // Mettre à jour localement - if (user.value) { - Object.assign(user.value, prefs) - } - } - - // ── Helpers privés ──────────────────────────────────────────────────────── - - let refreshTimer: ReturnType | null = null - - function scheduleRefresh(delayMs: number): void { - if (refreshTimer) clearTimeout(refreshTimer) - refreshTimer = setTimeout(() => tryRefresh(), delayMs) - } - - function clearSession(): void { - user.value = null - accessToken.value = null - localStorage.removeItem('pxp_token') - if (refreshTimer) clearTimeout(refreshTimer) - } - - return { - user, - accessToken, - isInstalled, - installChecked, - isAuthenticated, - checkInstallation, - login, - logout, - restoreSession, - tryRefresh, - fetchMe, - updatePreferences, - } -}) diff --git a/frontend/src/stores/ui.store.ts b/frontend/src/stores/ui.store.ts deleted file mode 100644 index ee4f1f7..0000000 --- a/frontend/src/stores/ui.store.ts +++ /dev/null @@ -1,84 +0,0 @@ -// Store UI — gère le thème (dark/light) et la position de la sidebar. -// Les préférences sont persistées localement et synchronisées avec le serveur. -import { defineStore } from 'pinia' -import { ref } from 'vue' - -export type Theme = 'dark' | 'light' -export type SidebarPosition = 'left' | 'right' - -export const useUiStore = defineStore('ui', () => { - const theme = ref('dark') - const sidebarPosition = ref('left') - const sidebarCollapsed = ref(false) - const mobileMenuOpen = ref(false) - - /** - * Initialise le thème depuis les préférences locales. - * Appelé au montage de App.vue. - */ - function initTheme(): void { - const savedTheme = localStorage.getItem('pxp_theme') as Theme | null - const savedSidebar = localStorage.getItem('pxp_sidebar') as SidebarPosition | null - - if (savedTheme === 'dark' || savedTheme === 'light') { - theme.value = savedTheme - } - if (savedSidebar === 'left' || savedSidebar === 'right') { - sidebarPosition.value = savedSidebar - } - - applyTheme(theme.value) - } - - /** - * Bascule entre thème sombre et clair. - */ - function toggleTheme(): void { - theme.value = theme.value === 'dark' ? 'light' : 'dark' - localStorage.setItem('pxp_theme', theme.value) - applyTheme(theme.value) - } - - /** - * Définit le thème explicitement. - */ - function setTheme(newTheme: Theme): void { - theme.value = newTheme - localStorage.setItem('pxp_theme', newTheme) - applyTheme(newTheme) - } - - /** - * Définit la position de la sidebar. - */ - function setSidebarPosition(pos: SidebarPosition): void { - sidebarPosition.value = pos - localStorage.setItem('pxp_sidebar', pos) - } - - /** - * Bascule l'état réduit de la sidebar. - */ - function toggleSidebarCollapse(): void { - sidebarCollapsed.value = !sidebarCollapsed.value - } - - /** - * Applique le thème sur l'élément via data-theme. - */ - function applyTheme(t: Theme): void { - document.documentElement.setAttribute('data-theme', t) - } - - return { - theme, - sidebarPosition, - sidebarCollapsed, - mobileMenuOpen, - initTheme, - toggleTheme, - setTheme, - setSidebarPosition, - toggleSidebarCollapse, - } -}) diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue deleted file mode 100644 index 7be64e3..0000000 --- a/frontend/src/views/Dashboard.vue +++ /dev/null @@ -1,393 +0,0 @@ - - - - - diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue deleted file mode 100644 index b8a2080..0000000 --- a/frontend/src/views/Files.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/frontend/src/views/Install.vue b/frontend/src/views/Install.vue deleted file mode 100644 index d3111a3..0000000 --- a/frontend/src/views/Install.vue +++ /dev/null @@ -1,487 +0,0 @@ - - - - - diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue deleted file mode 100644 index c99e37f..0000000 --- a/frontend/src/views/Login.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - - diff --git a/frontend/src/views/Logs.vue b/frontend/src/views/Logs.vue deleted file mode 100644 index e8d97be..0000000 --- a/frontend/src/views/Logs.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/frontend/src/views/Modules.vue b/frontend/src/views/Modules.vue deleted file mode 100644 index bb7112a..0000000 --- a/frontend/src/views/Modules.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - diff --git a/frontend/src/views/Proxmox.vue b/frontend/src/views/Proxmox.vue deleted file mode 100644 index 975adf3..0000000 --- a/frontend/src/views/Proxmox.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - - diff --git a/frontend/src/views/Services.vue b/frontend/src/views/Services.vue deleted file mode 100644 index 2e2485d..0000000 --- a/frontend/src/views/Services.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue deleted file mode 100644 index 5fef691..0000000 --- a/frontend/src/views/Settings.vue +++ /dev/null @@ -1,403 +0,0 @@ - - - - - diff --git a/frontend/src/views/Terminal.vue b/frontend/src/views/Terminal.vue deleted file mode 100644 index d4b849f..0000000 --- a/frontend/src/views/Terminal.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - diff --git a/frontend/src/views/Updates.vue b/frontend/src/views/Updates.vue deleted file mode 100644 index 233f3db..0000000 --- a/frontend/src/views/Updates.vue +++ /dev/null @@ -1,424 +0,0 @@ - - - - - diff --git a/frontend/swup-bundle.entry.mjs b/frontend/swup-bundle.entry.mjs new file mode 100644 index 0000000..9184051 --- /dev/null +++ b/frontend/swup-bundle.entry.mjs @@ -0,0 +1 @@ +export { default as Swup } from 'swup' diff --git a/frontend/terminal.html b/frontend/terminal.html new file mode 100644 index 0000000..7ccaeb4 --- /dev/null +++ b/frontend/terminal.html @@ -0,0 +1,72 @@ + + + + + + ProxmoxPanel — Terminal + + + + + + + + + + + + + + + +
+ + +
+
+ ⌛ Connexion… + +
+
+
+
+ + + + diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json deleted file mode 100644 index 66a5553..0000000 --- a/frontend/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "useDefineForClassFields": true, - "module": "ESNext", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "skipLibCheck": true, - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "preserve", - "strict": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noFallthroughCasesInSwitch": true, - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], - "references": [{ "path": "./tsconfig.node.json" }] -} diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json deleted file mode 100644 index 97ede7e..0000000 --- a/frontend/tsconfig.node.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true, - "strict": true - }, - "include": ["vite.config.ts"] -} diff --git a/frontend/updates.html b/frontend/updates.html new file mode 100644 index 0000000..36e01a0 --- /dev/null +++ b/frontend/updates.html @@ -0,0 +1,190 @@ + + + + + + ProxmoxPanel — Mises à jour + + + + + + + + + + + + +
+ + +
+
+ + +
+
+ + paquets à mettre à jour + +
+
+ + +
+
+ + +
+
+ Chargement des cibles… +
+ + +
+ +
+ + +
+
+ Job + +
+

+      
+
+
+
+ + + + diff --git a/frontend/vendors/alpine.min.js b/frontend/vendors/alpine.min.js new file mode 100644 index 0000000..2fdd6ec --- /dev/null +++ b/frontend/vendors/alpine.min.js @@ -0,0 +1,5 @@ +(()=>{var nt=!1,it=!1,W=[],ot=-1;function Ut(e){Rn(e)}function Rn(e){W.includes(e)||W.push(e),Mn()}function Wt(e){let t=W.indexOf(e);t!==-1&&t>ot&&W.splice(t,1)}function Mn(){!it&&!nt&&(nt=!0,queueMicrotask(Nn))}function Nn(){nt=!1,it=!0;for(let e=0;ee.effect(t,{scheduler:r=>{st?Ut(r):r()}}),at=e.raw}function ct(e){N=e}function Yt(e){let t=()=>{};return[n=>{let i=N(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),$(i))},i},()=>{t()}]}function ve(e,t){let r=!0,n,i=N(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$(i)}var Xt=[],Zt=[],Qt=[];function er(e){Qt.push(e)}function te(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Zt.push(t))}function Ae(e){Xt.push(e)}function Oe(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function lt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function tr(e){for(e._x_effects?.forEach(Wt);e._x_cleanups?.length;)e._x_cleanups.pop()()}var ut=new MutationObserver(mt),ft=!1;function ue(){ut.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ft=!0}function dt(){kn(),ut.disconnect(),ft=!1}var le=[];function kn(){let e=ut.takeRecords();le.push(()=>e.length>0&&mt(e));let t=le.length;queueMicrotask(()=>{if(le.length===t)for(;le.length>0;)le.shift()()})}function m(e){if(!ft)return e();dt();let t=e();return ue(),t}var pt=!1,Se=[];function rr(){pt=!0}function nr(){pt=!1,mt(Se),Se=[]}function mt(e){if(pt){Se=Se.concat(e);return}let t=[],r=new Set,n=new Map,i=new Map;for(let o=0;o{s.nodeType===1&&s._x_marker&&r.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(r.has(s)){r.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(u(),l()):u()}i.forEach((o,s)=>{lt(s,o)}),n.forEach((o,s)=>{Xt.forEach(a=>a(s,o))});for(let o of r)t.some(s=>s.contains(o))||Zt.forEach(s=>s(o));for(let o of t)o.isConnected&&Qt.forEach(s=>s(o));t=null,r=null,n=null,i=null}function Ce(e){return z(B(e))}function k(e,t,r){return e._x_dataStack=[t,...B(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function B(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function z(e){return new Proxy({objects:e},Dn)}var Dn={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?Pn:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(n,r)||!0:Reflect.set(i,t,r)}};function Pn(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Te(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,c,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,c)})};return r(e)}function Re(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>In(n,i),s=>ht(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let c=n.initialize(o,s,a);return r.initialValue=c,i(o,s,a)}}else r.initialValue=n;return r}}function In(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function ht(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),ht(e[t[0]],t.slice(1),r)}}var ir={};function y(e,t){ir[e]=t}function fe(e,t){let r=Ln(t);return Object.entries(ir).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){return i(t,r)},enumerable:!1})}),e}function Ln(e){let[t,r]=_t(e),n={interceptor:Re,...t};return te(e,r),n}function or(e,t,r,...n){try{return r(...n)}catch(i){re(i,e,t)}}function re(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message} + +${r?'Expression: "'+r+`" + +`:""}`,t),setTimeout(()=>{throw e},0)}var Me=!0;function ke(e){let t=Me;Me=!1;let r=e();return Me=t,r}function R(e,t,r={}){let n;return x(e,t)(i=>n=i,r),n}function x(...e){return sr(...e)}var sr=xt;function ar(e){sr=e}function xt(e,t){let r={};fe(r,e);let n=[r,...B(e)],i=typeof t=="function"?$n(n,t):Fn(n,t,e);return or.bind(null,e,t,i)}function $n(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(z([n,...e]),i);Ne(r,o)}}var gt={};function jn(e,t){if(gt[e])return gt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return re(s,t,e),Promise.resolve()}})();return gt[e]=o,o}function Fn(e,t,r){let n=jn(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=z([o,...e]);if(typeof n=="function"){let c=n(n,a).catch(l=>re(l,r,t));n.finished?(Ne(i,n.result,a,s,r),n.result=void 0):c.then(l=>{Ne(i,l,a,s,r)}).catch(l=>re(l,r,t)).finally(()=>n.result=void 0)}}}function Ne(e,t,r,n,i){if(Me&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ne(e,s,r,n)).catch(s=>re(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var wt="x-";function C(e=""){return wt+e}function cr(e){wt=e}var De={};function d(e,t){return De[e]=t,{before(r){if(!De[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=G.indexOf(r);G.splice(n>=0?n:G.indexOf("DEFAULT"),0,e)}}}function lr(e){return Object.keys(De).includes(e)}function pe(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=Et(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(dr((o,s)=>n[o]=s)).filter(mr).map(zn(n,r)).sort(Kn).map(o=>Bn(e,o))}function Et(e){return Array.from(e).map(dr()).filter(t=>!mr(t))}var yt=!1,de=new Map,ur=Symbol();function fr(e){yt=!0;let t=Symbol();ur=t,de.set(t,[]);let r=()=>{for(;de.get(t).length;)de.get(t).shift()();de.delete(t)},n=()=>{yt=!1,r()};e(r),n()}function _t(e){let t=[],r=a=>t.push(a),[n,i]=Yt(e);return t.push(i),[{Alpine:K,effect:n,cleanup:r,evaluateLater:x.bind(x,e),evaluate:R.bind(R,e)},()=>t.forEach(a=>a())]}function Bn(e,t){let r=()=>{},n=De[t.type]||r,[i,o]=_t(e);Oe(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),yt?de.get(ur).push(n):n())};return s.runCleanups=o,s}var Pe=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ie=e=>e;function dr(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=pr.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var pr=[];function ne(e){pr.push(e)}function mr({name:e}){return hr().test(e)}var hr=()=>new RegExp(`^${wt}([^:^.]+)\\b`);function zn(e,t){return({name:r,value:n})=>{let i=r.match(hr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var bt="DEFAULT",G=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",bt,"teleport"];function Kn(e,t){let r=G.indexOf(e.type)===-1?bt:e.type,n=G.indexOf(t.type)===-1?bt:t.type;return G.indexOf(r)-G.indexOf(n)}function J(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function D(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>D(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)D(n,t,!1),n=n.nextElementSibling}function E(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var _r=!1;function gr(){_r&&E("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),_r=!0,document.body||E("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `