Add logo and rename

This commit is contained in:
2025-11-12 17:16:13 +01:00
parent 584a4a0acd
commit f903e28728
49 changed files with 628 additions and 192 deletions

View File

@ -316,8 +316,8 @@ npm run build # Compile frontend modules to static/dist/
```
Output files (loaded by templates):
- `static/dist/project-notes-frontend.es.js` (ES module)
- `static/dist/project-notes-frontend.umd.js` (UMD format)
- `static/dist/personotes-frontend.es.js` (ES module)
- `static/dist/personotes-frontend.umd.js` (UMD format)
Frontend dependencies (from `frontend/package.json`):
- `@codemirror/basic-setup` (^0.20.0) - Base editor functionality
@ -388,8 +388,8 @@ The frontend uses Vite (`frontend/vite.config.js`) for bundling JavaScript modul
1. Vite reads all source files from `frontend/src/`
2. Resolves npm dependencies (@codemirror packages)
3. Bundles everything into two formats:
- ES module (`project-notes-frontend.es.js`) - 1.0 MB
- UMD (`project-notes-frontend.umd.js`) - 679 KB
- ES module (`personotes-frontend.es.js`) - 1.0 MB
- UMD (`personotes-frontend.umd.js`) - 679 KB
4. Outputs to `static/dist/` where Go server can serve them
5. Templates load the ES module version via `<script type="module">`
@ -737,13 +737,13 @@ Loaded in `templates/index.html`:
### Build Output
The Vite build process produces:
- `static/dist/project-notes-frontend.es.js` - ES module format (1.0 MB, includes all CodeMirror 6 dependencies)
- `static/dist/project-notes-frontend.umd.js` - UMD format (679 KB, legacy compatibility)
- `static/dist/personotes-frontend.es.js` - ES module format (1.0 MB, includes all CodeMirror 6 dependencies)
- `static/dist/personotes-frontend.umd.js` - UMD format (679 KB, legacy compatibility)
## Project Structure
```
project-notes/
personotes/
├── cmd/
│ └── server/
│ └── main.go # Server entry point
@ -776,8 +776,8 @@ project-notes/
│ └── vite.config.js # Vite build configuration
├── static/
│ ├── dist/ # Compiled frontend (generated)
│ │ ├── project-notes-frontend.es.js
│ │ └── project-notes-frontend.umd.js
│ │ ├── personotes-frontend.es.js
│ │ └── personotes-frontend.umd.js
│ └── theme.css # Material Darker theme
├── templates/
│ ├── index.html # Main page layout