vk
630d944092
[P3 Maintenance] Veraltete JS-Packages aktualisieren (nostr-tools, shiki, autoprefixer, NDK) (vibe-kanban ea7879c3)
...
## Security Audit: Veraltete JavaScript-Dependencies
### Problem
Mehrere JavaScript-Packages sind signifikant veraltet. Veraltete Packages können ungepatche Sicherheitslücken enthalten und sind inkompatibel mit neueren Versionen anderer Dependencies.
### Betroffene Packages
| Package | Aktuell | Verfügbar | Upgrade-Typ | Risiko |
|---------|---------|-----------|-------------|--------|
| `nostr-tools` | 2.19.4 | 2.23.0 | Minor | Niedrig – Bugfixes & neue Features |
| `autoprefixer` | 10.4.23 | 10.4.24 | Patch | Sehr niedrig – Bugfix |
| `shiki` | 1.29.2 | 3.22.0 | Major | Mittel – Breaking Changes |
| `@nostr-dev-kit/ndk` | 2.18.1 | 3.0.0 | Major | Mittel – Breaking Changes |
### Lösung
**Phase 1 – Sichere Minor/Patch-Updates (kein Risiko):**
```bash
yarn add -D nostr-tools@^2.23.0 autoprefixer@^10.4.24
```
Diese Updates sind rückwärtskompatibel und können sofort durchgeführt werden.
**Phase 2 – Major-Updates (Breaking Changes möglich):**
**`shiki` 1.x → 3.x:**
- Shiki wird in der App für Code-Highlighting genutzt (konfiguriert in `config/markdown.php`)
- Prüfe ob Spatie's `laravel-markdown` mit Shiki 3.x kompatibel ist
- Lese die Shiki Migration Guides: v1→v2 und v2→v3
- Teste die Markdown-Rendering-Pipline nach dem Upgrade
**`@nostr-dev-kit/ndk` 2.x → 3.x:**
- NDK ist ein Nostr Development Kit – wird vermutlich für Nostr-Protokoll-Integration genutzt
- Suche im Projekt nach NDK-Imports: `grep -r '@nostr-dev-kit/ndk'` in `resources/js/`
- Prüfe den NDK 3.0 Changelog auf Breaking Changes
- Teste alle Nostr-bezogenen Features nach dem Upgrade
### Vorgehen
1. **Phase 1 durchführen:** Minor/Patch Updates installieren
2. **Build testen:** `yarn run build` nach Phase 1
3. **Tests laufen lassen:** `php artisan test --compact`
4. **Phase 2 vorbereiten:** Für jedes Major-Update den Changelog/Migration-Guide lesen
5. **Shiki upgraden:** `yarn add shiki@^3` – dann `yarn run build` und Markdown-Rendering testen
6. **NDK upgraden:** `yarn add -D @nostr-dev-kit/ndk@^3` – dann alle Nostr-Features testen
7. **Nach jedem Upgrade:** `yarn run build` und `yarn audit`
### Betroffene Dateien
- `package.json` – Version-Bumps
- `yarn.lock` – Dependency-Tree
- `config/markdown.php` – Falls Shiki-Konfiguration angepasst werden muss
- `resources/js/**` – Falls NDK API-Änderungen Code-Anpassungen erfordern
- `resources/views/**` – Falls Shiki-Rendering sich ändert
### Akzeptanzkriterien
- Alle Minor/Patch-Updates installiert
- `yarn run build` läuft fehlerfrei
- `yarn audit` zeigt keine neuen Vulnerabilities
- Major-Updates einzeln durchgeführt und getestet
- Bestehende Tests bestehen weiterhin
2026-02-12 00:05:01 +01:00
vk
9b4930f419
[P1 Security] Vite auf v6+ upgraden – esbuild CVE fixen (vibe-kanban 3d74a242)
...
## Security Audit: Vite/esbuild Sicherheitslücke
### Problem
`yarn audit` meldet eine **Moderate Vulnerability** in `esbuild` (Dependency von Vite 5.x):
- **Package:** `esbuild` (transitive Dependency von `vite@5.4.21`)
- **Schwachstelle:** Dev-Server erlaubt beliebige Cross-Origin-Requests – ein Angreifer könnte über einen bösartigen Browser-Tab auf den lokalen Dev-Server zugreifen
- **Fix:** `esbuild >= 0.25.0` (enthalten in Vite 6+)
Aktuelle Versionen:
```
vite: 5.4.21 → 7.3.1 (Major)
laravel-vite-plugin: 1.3.0 → 2.1.0 (Major)
```
### Lösung
**Upgrade-Pfad:**
1. **Vite upgraden:** `yarn add -D vite@^7` (oder mindestens `vite@^6` für den Security-Fix)
2. **Laravel Vite Plugin upgraden:** `yarn add -D laravel-vite-plugin@^2`
3. **Vite-Config anpassen:** `vite.config.js` / `vite.config.ts` prüfen – breaking Changes zwischen v5 und v6/v7 beachten
### Vorgehen
1. **Dokumentation lesen:** Nutze `search-docs` mit `queries: ['vite', 'vite upgrade']` und `packages: ['laravel-vite-plugin']`
2. **Aktuellen Build prüfen:** `yarn run build` ausführen und sicherstellen dass es funktioniert (Baseline)
3. **Backup:** Aktuellen `yarn.lock` sichern
4. **Upgrade durchführen:**
```bash
yarn add -D vite@^7 laravel-vite-plugin@^2
```
5. **`vite.config.js` lesen und auf Breaking Changes prüfen** – insbesondere:
- Plugin-API Änderungen
- CSS-Processing-Änderungen (PostCSS, Tailwind v4 Kompatibilität)
- Asset-Handling-Änderungen
6. **Build testen:** `yarn run build` – muss fehlerfrei durchlaufen
7. **Dev-Server testen:** `yarn run dev` kurz starten und prüfen
8. **Security Audit bestätigen:** `yarn audit` erneut ausführen – die esbuild-Vulnerability sollte verschwunden sein
9. `php artisan test --compact` laufen lassen
### Betroffene Dateien
- `package.json` – Version-Bumps
- `yarn.lock` – Dependency-Tree Update
- `vite.config.js` oder `vite.config.ts` – Ggf. Anpassungen für Breaking Changes
- `resources/css/app.css` – Prüfen ob Tailwind v4 + PostCSS weiterhin funktioniert
### Risiken
- Major-Version-Upgrade kann Breaking Changes haben
- Tailwind v4 CSS-Import muss kompatibel bleiben
- Flux UI Assets müssen weiterhin korrekt gebundelt werden
### Akzeptanzkriterien
- `yarn audit` zeigt keine Vulnerabilities mehr
- `yarn run build` läuft fehlerfrei
- Dev-Server funktioniert
- Alle bestehenden Tests bestehen
- Tailwind CSS und Flux UI Components werden korrekt gerendert
2026-02-11 23:24:29 +01:00
HolgerHatGarKeineNode
c5793872af
🛠️ Refactor Blade templates: improve HTML structure, standardize indentation, and enhance readability in layouts and component definitions.
2026-01-19 22:14:49 +01:00
HolgerHatGarKeineNode
a4aad6ebb6
🗑️ Remove deprecated and unused layouts, components, and assets; update dependencies and integrate TailwindCSS v4 for improved consistency.
2026-01-18 19:18:51 +01:00
HolgerHatGarKeineNode
5476a74c8c
🗑️ Remove unused Nova app.css file to streamline vendor assets
2026-01-18 15:26:42 +01:00
HolgerHatGarKeineNode
087b7a4997
🗑️ Remove Pulse and Sanctum configuration files due to deprecation
...
🛠️ Upgrade to Laravel 12 and update dependencies, including `laravel-echo` and `pusher-js`
🗑️ Remove `laravel/folio` package and related configurations
2026-01-18 00:50:27 +01:00
user
aff3f32c9b
Remove nostr-login dependency and update lockfile.
2025-11-20 21:01:08 +01:00
user
0c0fec948a
Remove obsolete packageManager field from package.json.
2025-11-16 18:47:42 +01:00
user
52e7535d84
Update dependency versions in package.json and yarn.lock
2025-11-16 18:46:50 +01:00
fsociety
9016663929
✨ feat(markdown): add spatie/laravel-markdown for enhanced markdown rendering and code highlighting
2024-10-23 18:29:02 +02:00
fsociety
c84f91e287
new yarn.lock
2024-10-06 13:46:04 +02:00
fsociety
1d5079bfa0
feat: handle logout events in nostr-login
...
This commit introduces handling for logout events in nostr-login across various pages. When a user logs out, the current public key and other related information are reset to null. The nostrLogin.js file has also been updated to dispatch a 'nostrLoggedOut' event when this occurs. Additionally, the nostr-login package has been added to the project dependencies.
2024-10-06 13:38:49 +02:00
fsociety
e0a34d9376
feat: add QR code generator and Nostr event handling
...
- Added the `simplesoftwareio/simple-qrcode` package to the project
- Created a new JavaScript file `nostrZap.js` to handle Nostr events
- Added the `nostrZap` function to the Alpine.js data property in `app.js`
- Updated the `services.php` configuration file to include the `nostr` environment variable
- Created a new database migration to add a `payment_event` field to the `einundzwanzig_plebs` table
- Made adjustments in the `Election:year.blade.php` view file to handle potential null values
- Updated `composer.lock` and `package.json` with the new dependencies
2024-09-30 14:46:30 +02:00
fsociety
ef0650f4d5
real-time-admin-dashboard added
2024-09-29 16:18:44 +02:00
fsociety
354680f702
voting system with nostr added
2024-09-29 01:02:04 +02:00
fsociety
a0ef037b2d
first copies from portal
2024-09-04 19:37:46 +02:00
fsociety
0769adfba3
Set up a fresh Laravel app
2024-08-29 13:36:49 +02:00