mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
refactor: rename ManaDeck to Cards across entire monorepo
Rename the flashcard/deck management app from ManaDeck to Cards: - Directory: apps/manadeck → apps/cards, packages/manadeck-database → packages/cards-database - Packages: @manadeck/* → @cards/*, @manacore/manadeck-database → @manacore/cards-database - Domain: manadeck.mana.how → cards.mana.how - Storage: manadeck-storage → cards-storage - Database: manadeck → cards - All shared packages, infra configs, services, i18n, and docs updated - 244 files changed, zero remaining manadeck references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
29b77f22e4
commit
75a3ea2957
244 changed files with 907 additions and 924 deletions
|
|
@ -130,26 +130,26 @@ const APP_CONFIGS = [
|
|||
},
|
||||
},
|
||||
|
||||
// Manadeck Server (Hono/Bun)
|
||||
// Cards Server (Hono/Bun)
|
||||
{
|
||||
path: 'apps/manadeck/apps/server/.env',
|
||||
path: 'apps/cards/apps/server/.env',
|
||||
vars: {
|
||||
NODE_ENV: () => 'development',
|
||||
PORT: (env) => env.MANADECK_BACKEND_PORT || '3004',
|
||||
DATABASE_URL: (env) => env.MANADECK_DATABASE_URL,
|
||||
PORT: (env) => env.CARDS_BACKEND_PORT || '3004',
|
||||
DATABASE_URL: (env) => env.CARDS_DATABASE_URL,
|
||||
MANA_CORE_AUTH_URL: (env) => env.MANA_CORE_AUTH_URL,
|
||||
APP_ID: (env) => env.MANADECK_APP_ID,
|
||||
APP_ID: (env) => env.CARDS_APP_ID,
|
||||
GOOGLE_GENAI_API_KEY: (env) => env.GOOGLE_GENAI_API_KEY,
|
||||
},
|
||||
},
|
||||
|
||||
// Manadeck Web
|
||||
// Cards Web
|
||||
{
|
||||
path: 'apps/manadeck/apps/web/.env',
|
||||
path: 'apps/cards/apps/web/.env',
|
||||
vars: {
|
||||
PUBLIC_API_URL: (env) => `http://localhost:${env.MANADECK_BACKEND_PORT || '3004'}`,
|
||||
PUBLIC_API_URL: (env) => `http://localhost:${env.CARDS_BACKEND_PORT || '3004'}`,
|
||||
PUBLIC_MANA_CORE_AUTH_URL: (env) => env.MANA_CORE_AUTH_URL,
|
||||
PUBLIC_UMAMI_WEBSITE_ID: (env) => env.UMAMI_WEBSITE_ID_MANADECK || '',
|
||||
PUBLIC_UMAMI_WEBSITE_ID: (env) => env.UMAMI_WEBSITE_ID_CARDS || '',
|
||||
PUBLIC_GLITCHTIP_DSN: (env) => env.PUBLIC_GLITCHTIP_DSN || '',
|
||||
},
|
||||
},
|
||||
|
|
@ -692,11 +692,11 @@ const APP_CONFIGS = [
|
|||
},
|
||||
},
|
||||
|
||||
// ManaDeck Landing
|
||||
// Cards Landing
|
||||
{
|
||||
path: 'apps/manadeck/apps/landing/.env',
|
||||
path: 'apps/cards/apps/landing/.env',
|
||||
vars: {
|
||||
PUBLIC_UMAMI_WEBSITE_ID: (env) => env.UMAMI_WEBSITE_ID_MANADECK_LANDING || '',
|
||||
PUBLIC_UMAMI_WEBSITE_ID: (env) => env.UMAMI_WEBSITE_ID_CARDS_LANDING || '',
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare -A LANDINGS=(
|
|||
["zitare"]="apps/zitare/apps/landing"
|
||||
["presi"]="apps/presi/apps/landing"
|
||||
["clock"]="apps/clock/apps/landing"
|
||||
["manadeck"]="apps/manadeck/apps/landing"
|
||||
["cards"]="apps/cards/apps/landing"
|
||||
["nutriphi"]="apps/nutriphi/apps/landing"
|
||||
["citycorners"]="apps/citycorners/apps/landing"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ sleep 5
|
|||
|
||||
# Create all needed databases
|
||||
for db in mana_auth mana_credits mana_user mana_subscriptions mana_analytics mana_sync \
|
||||
chat todo calendar contacts storage manadeck mukke nutriphi planta \
|
||||
chat todo calendar contacts storage cards mukke nutriphi planta \
|
||||
questions traces context citycorners photos presi skilltree; do
|
||||
docker compose -f "$COMPOSE_FILE" exec -T postgres \
|
||||
psql -U postgres -c "CREATE DATABASE $db;" 2>/dev/null || true
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ ALL_DATABASES=(
|
|||
"calendar"
|
||||
"clock"
|
||||
"todo"
|
||||
"manadeck"
|
||||
"cards"
|
||||
"storage"
|
||||
"presi"
|
||||
"moodlit"
|
||||
|
|
@ -125,8 +125,8 @@ setup_service() {
|
|||
create_db_if_not_exists "todo"
|
||||
push_schema "@todo/server" "todo"
|
||||
;;
|
||||
manadeck)
|
||||
create_db_if_not_exists "manadeck"
|
||||
cards)
|
||||
create_db_if_not_exists "cards"
|
||||
# Schema managed by mana-sync (local-first)
|
||||
;;
|
||||
moodlit)
|
||||
|
|
@ -203,7 +203,7 @@ setup_service() {
|
|||
;;
|
||||
*)
|
||||
echo -e "${RED}Unknown service: $service${NC}"
|
||||
echo "Available services: auth, chat, zitare, contacts, calendar, clock, todo, manadeck, moodlit, picture, photos, planta, nutriphi, presi, storage, projectdoc, zitare_bot, todo_bot, nutriphi_bot, questions, skilltree, mukke, traces, context, citycorners, uload"
|
||||
echo "Available services: auth, chat, zitare, contacts, calendar, clock, todo, cards, moodlit, picture, photos, planta, nutriphi, presi, storage, projectdoc, zitare_bot, todo_bot, nutriphi_bot, questions, skilltree, mukke, traces, context, citycorners, uload"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
@ -227,7 +227,7 @@ echo -e "\n${GREEN}Step 2: Pushing schemas${NC}"
|
|||
echo "--------------------------------------"
|
||||
|
||||
# Push schemas for all known services
|
||||
for service in auth chat zitare contacts calendar clock todo manadeck picture photos moodlit planta nutriphi presi storage questions skilltree mukke traces context citycorners; do
|
||||
for service in auth chat zitare contacts calendar clock todo cards picture photos moodlit planta nutriphi presi storage questions skilltree mukke traces context citycorners; do
|
||||
setup_service "$service" 2>/dev/null || true
|
||||
done
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ function checkWorkspaceProtocol(packagePath, packageJson) {
|
|||
'@calendar/',
|
||||
'@contacts/',
|
||||
'@todo/',
|
||||
'@manadeck/',
|
||||
'@cards/',
|
||||
'@zitare/',
|
||||
'@voxel-lava/',
|
||||
'@mana-games/',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue