feat: Add npm dependencies and update vendor paths

- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker
- Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor
- Update view templates to use vendor paths instead of old /js/ or CDN URLs
- Clean up legacy commented-out scripts in master layout
This commit is contained in:
Mischa Spelt
2026-08-25 16:17:01 +02:00
parent e070c9f374
commit 7b9674110e
8454 changed files with 11623 additions and 27 deletions
+15
View File
@@ -0,0 +1,15 @@
* To add new packages, add a line below:
```json
"new-package": "^1.2.3"
```
* If the npm name differs from vendor folder name: Also update the mapping in setup-vendor.js:
```json
'npm-name': { folder: 'vendor-folder', subdir: 'dist' }
```
* Then regenerate lock file (do this locally, NOT in Docker)
```bash
rm package-lock.json
docker run --rm -v "$PWD:/workspace" -w /workspace node:20 npm install --package-lock-only
```