mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 13:46:42 +02:00
feat: integrate uload and picture, unify package naming
- Add uload project with apps/web structure
- Reorganize from flat to monorepo structure
- Remove PocketBase binary and local data
- Update to pnpm and @uload/web namespace
- Add picture project to monorepo
- Remove embedded git repository
- Unify all package names to @{project}/{app} schema:
- @maerchenzauber/* (was @storyteller/*)
- @manacore/* (was manacore-*, manacore)
- @manadeck/* (was web, backend, manadeck)
- @memoro/* (was memoro-web, landing, memoro)
- @picture/* (already unified)
- @uload/web
- Add convenient dev scripts for all apps:
- pnpm dev:{project}:web
- pnpm dev:{project}:landing
- pnpm dev:{project}:mobile
- pnpm dev:{project}:backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c6c4c5a552
commit
c712a2504a
1031 changed files with 189301 additions and 290 deletions
23
uload/scripts/fix-field-names.sh
Executable file
23
uload/scripts/fix-field-names.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Fix field names to match PocketBase schema
|
||||
|
||||
echo "Fixing field names in source files..."
|
||||
|
||||
# Fix user -> user_id in filters and create statements
|
||||
find src -type f \( -name "*.ts" -o -name "*.svelte" \) -exec sed -i '' \
|
||||
-e 's/filter: `user="/filter: `user_id="/g' \
|
||||
-e 's/filter: `link="/filter: `link_id="/g' \
|
||||
-e 's/filter: `folder="/filter: `folder_id="/g' \
|
||||
-e 's/\&\& user="/\&\& user_id="/g' \
|
||||
-e 's/\&\& link="/\&\& link_id="/g' \
|
||||
-e 's/\&\& folder="/\&\& folder_id="/g' {} \;
|
||||
|
||||
# Fix field names in create/update operations
|
||||
find src -type f \( -name "*.ts" -o -name "*.svelte" \) -exec sed -i '' \
|
||||
-e 's/^\([[:space:]]*\)user: /\1user_id: /g' \
|
||||
-e 's/^\([[:space:]]*\)link: /\1link_id: /g' \
|
||||
-e 's/^\([[:space:]]*\)folder: /\1folder_id: /g' {} \;
|
||||
|
||||
echo "Done! Field names have been updated."
|
||||
echo "Please restart your dev server to apply changes."
|
||||
Loading…
Add table
Add a link
Reference in a new issue