mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 10:46:41 +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
25
uload/scripts/fix-imports.sh
Executable file
25
uload/scripts/fix-imports.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Fix all problematic card imports
|
||||
FILES=$(find src -name "*.svelte" -type f -exec grep -l "from '\$lib/components/cards/\(BaseCard\|ThemeProvider\|SafeHTMLCard\|CardListV2\|Card\)\.svelte'" {} \; 2>/dev/null)
|
||||
|
||||
for file in $FILES; do
|
||||
echo "Fixing imports in: $file"
|
||||
|
||||
# Replace imports
|
||||
sed -i '' "s|import.*from '\$lib/components/cards/Card\.svelte'.*|import CardRenderer from '\$lib/components/cards/CardRenderer.svelte';|g" "$file"
|
||||
sed -i '' "s|import.*from '\$lib/components/cards/BaseCard\.svelte'.*||g" "$file"
|
||||
sed -i '' "s|import.*from '\$lib/components/cards/ThemeProvider\.svelte'.*||g" "$file"
|
||||
sed -i '' "s|import.*from '\$lib/components/cards/SafeHTMLCard\.svelte'.*||g" "$file"
|
||||
sed -i '' "s|import.*from '\$lib/components/cards/CardListV2\.svelte'.*||g" "$file"
|
||||
|
||||
# Replace component usage (common patterns)
|
||||
sed -i '' "s|<Card |<CardRenderer |g" "$file"
|
||||
sed -i '' "s|<BaseCard |<CardRenderer |g" "$file"
|
||||
sed -i '' "s|<SafeHTMLCard |<CardRenderer |g" "$file"
|
||||
|
||||
# Fix type imports
|
||||
sed -i '' "s|UnifiedCard|Card|g" "$file"
|
||||
done
|
||||
|
||||
echo "Import fixes completed!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue