Refactor to Vue 3 + FastAPI + SQLite architecture
Some checks failed
Some checks failed
- Backend: FastAPI + SQLite (WAL mode), 22 tables, ~40 API endpoints - Frontend: Vue 3 + Vite + Pinia + Vue Router, 8 views, 3 stores - Database: migrate from JSON file to SQLite with proper schema - Dockerfile: multi-stage build (node + python) - Deploy: K8s manifests (namespace, deployment, service, ingress, pvc, backup) - CI/CD: Gitea Actions (test, deploy, PR preview at pr-$id.planner.oci.euphon.net) - Tests: 20 Cypress E2E test files, 196 test cases, ~85% coverage - Doc: test-coverage.md with full feature coverage report Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
13
frontend/public/favicon.svg
Normal file
13
frontend/public/favicon.svg
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<rect x="4" y="10" width="56" height="48" rx="8" fill="#667eea"/>
|
||||
<rect x="4" y="10" width="56" height="16" rx="8" fill="#764ba2"/>
|
||||
<rect x="4" y="20" width="56" height="6" fill="#764ba2"/>
|
||||
<circle cx="18" cy="10" r="3" fill="#fff"/>
|
||||
<circle cx="46" cy="10" r="3" fill="#fff"/>
|
||||
<rect x="14" y="34" width="10" height="8" rx="2" fill="#e8f5e9"/>
|
||||
<rect x="27" y="34" width="10" height="8" rx="2" fill="#e3f2fd"/>
|
||||
<rect x="40" y="34" width="10" height="8" rx="2" fill="#fff3e0"/>
|
||||
<rect x="14" y="46" width="10" height="8" rx="2" fill="#fce4ec"/>
|
||||
<rect x="27" y="46" width="10" height="8" rx="2" fill="#f3e5f5"/>
|
||||
<rect x="40" y="46" width="10" height="8" rx="2" fill="#e0f7fa"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 764 B |
BIN
frontend/public/icon-180.png
Normal file
BIN
frontend/public/icon-180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
11
frontend/public/manifest.json
Normal file
11
frontend/public/manifest.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Hera's Planner",
|
||||
"short_name": "Planner",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#f0f2f5",
|
||||
"theme_color": "#667eea",
|
||||
"icons": [
|
||||
{ "src": "icon-180.png", "sizes": "180x180", "type": "image/png" }
|
||||
]
|
||||
}
|
||||
BIN
frontend/public/notebook.jpg
Normal file
BIN
frontend/public/notebook.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 405 KiB |
25
frontend/public/sw.js
Normal file
25
frontend/public/sw.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// Service Worker for Hera's Planner — 后台提醒通知
|
||||
self.addEventListener('install', () => self.skipWaiting());
|
||||
self.addEventListener('activate', () => self.clients.claim());
|
||||
|
||||
self.addEventListener('message', event => {
|
||||
if (event.data && event.data.type === 'SHOW_NOTIFICATION') {
|
||||
self.registration.showNotification(event.data.title, {
|
||||
body: event.data.body,
|
||||
icon: 'icon-180.png',
|
||||
badge: 'icon-180.png',
|
||||
requireInteraction: true,
|
||||
tag: event.data.tag || 'planner-reminder',
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
self.addEventListener('notificationclick', event => {
|
||||
event.notification.close();
|
||||
event.waitUntil(
|
||||
self.clients.matchAll({ type: 'window' }).then(clients => {
|
||||
if (clients.length > 0) { clients[0].focus(); }
|
||||
else { self.clients.openWindow('/'); }
|
||||
})
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user