diff --git a/README.md b/README.md index 6e53bb7..675d039 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# glossa +# lila diff --git a/apps/api/package.json b/apps/api/package.json index 6fd7208..80c30d6 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -1,5 +1,5 @@ { - "name": "@glossa/api", + "name": "@lila/api", "version": "1.0.0", "private": true, "type": "module", @@ -10,8 +10,8 @@ "test": "vitest" }, "dependencies": { - "@glossa/db": "workspace:*", - "@glossa/shared": "workspace:*", + "@lila/db": "workspace:*", + "@lila/shared": "workspace:*", "better-auth": "^1.6.2", "cors": "^2.8.6", "express": "^5.2.1" diff --git a/apps/api/src/controllers/gameController.test.ts b/apps/api/src/controllers/gameController.test.ts index dd3823a..9746328 100644 --- a/apps/api/src/controllers/gameController.test.ts +++ b/apps/api/src/controllers/gameController.test.ts @@ -1,12 +1,9 @@ import { describe, it, expect, vi, beforeEach } from "vitest"; import request from "supertest"; -vi.mock("@glossa/db", () => ({ - getGameTerms: vi.fn(), - getDistractors: vi.fn(), -})); +vi.mock("@lila/db", () => ({ getGameTerms: vi.fn(), getDistractors: vi.fn() })); -import { getGameTerms, getDistractors } from "@glossa/db"; +import { getGameTerms, getDistractors } from "@lila/db"; import { createApp } from "../app.js"; const app = createApp(); diff --git a/apps/api/src/controllers/gameController.ts b/apps/api/src/controllers/gameController.ts index 5c05482..fa43369 100644 --- a/apps/api/src/controllers/gameController.ts +++ b/apps/api/src/controllers/gameController.ts @@ -1,5 +1,5 @@ import type { Request, Response, NextFunction } from "express"; -import { GameRequestSchema, AnswerSubmissionSchema } from "@glossa/shared"; +import { GameRequestSchema, AnswerSubmissionSchema } from "@lila/shared"; import { createGameSession, evaluateAnswer } from "../services/gameService.js"; import { ValidationError } from "../errors/AppError.js"; diff --git a/apps/api/src/lib/auth.ts b/apps/api/src/lib/auth.ts index d3bc934..85afbf6 100644 --- a/apps/api/src/lib/auth.ts +++ b/apps/api/src/lib/auth.ts @@ -1,7 +1,7 @@ import { betterAuth } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; -import { db } from "@glossa/db"; -import * as schema from "@glossa/db/schema"; +import { db } from "@lila/db"; +import * as schema from "@lila/db/schema"; export const auth = betterAuth({ database: drizzleAdapter(db, { provider: "pg", schema }), diff --git a/apps/api/src/services/gameService.test.ts b/apps/api/src/services/gameService.test.ts index fae7159..d1453f4 100644 --- a/apps/api/src/services/gameService.test.ts +++ b/apps/api/src/services/gameService.test.ts @@ -1,12 +1,9 @@ import { describe, it, expect, vi, beforeEach } from "vitest"; -import type { GameRequest, AnswerSubmission } from "@glossa/shared"; +import type { GameRequest, AnswerSubmission } from "@lila/shared"; -vi.mock("@glossa/db", () => ({ - getGameTerms: vi.fn(), - getDistractors: vi.fn(), -})); +vi.mock("@lila/db", () => ({ getGameTerms: vi.fn(), getDistractors: vi.fn() })); -import { getGameTerms, getDistractors } from "@glossa/db"; +import { getGameTerms, getDistractors } from "@lila/db"; import { createGameSession, evaluateAnswer } from "./gameService.js"; const mockGetGameTerms = vi.mocked(getGameTerms); diff --git a/apps/api/src/services/gameService.ts b/apps/api/src/services/gameService.ts index 45a1579..b015271 100644 --- a/apps/api/src/services/gameService.ts +++ b/apps/api/src/services/gameService.ts @@ -1,5 +1,5 @@ import { randomUUID } from "crypto"; -import { getGameTerms, getDistractors } from "@glossa/db"; +import { getGameTerms, getDistractors } from "@lila/db"; import type { GameRequest, GameSession, @@ -7,7 +7,7 @@ import type { AnswerOption, AnswerSubmission, AnswerResult, -} from "@glossa/shared"; +} from "@lila/shared"; import { InMemoryGameSessionStore } from "../gameSessionStore/index.js"; import { NotFoundError } from "../errors/AppError.js"; diff --git a/apps/web/index.html b/apps/web/index.html index 1430b91..b036f97 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -3,7 +3,7 @@ - glossa + lila diff --git a/apps/web/package.json b/apps/web/package.json index 16ab5aa..922f6f9 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,5 +1,5 @@ { - "name": "@glossa/web", + "name": "@lila/web", "private": true, "version": "0.0.0", "type": "module", @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@glossa/shared": "workspace:*", + "@lila/shared": "workspace:*", "@tailwindcss/vite": "^4.2.2", "@tanstack/react-router": "^1.168.1", "@tanstack/react-router-devtools": "^1.166.10", diff --git a/apps/web/src/components/game/GameSetup.tsx b/apps/web/src/components/game/GameSetup.tsx index b6e16b8..0266342 100644 --- a/apps/web/src/components/game/GameSetup.tsx +++ b/apps/web/src/components/game/GameSetup.tsx @@ -4,8 +4,8 @@ import { SUPPORTED_POS, DIFFICULTY_LEVELS, GAME_ROUNDS, -} from "@glossa/shared"; -import type { GameRequest } from "@glossa/shared"; +} from "@lila/shared"; +import type { GameRequest } from "@lila/shared"; const LABELS: Record = { en: "English", @@ -92,7 +92,7 @@ export const GameSetup = ({ onStart }: GameSetupProps) => { return (
-

Glossa

+

lila

Set up your quiz

diff --git a/apps/web/src/components/game/QuestionCard.tsx b/apps/web/src/components/game/QuestionCard.tsx index 439cb0e..f81ec0d 100644 --- a/apps/web/src/components/game/QuestionCard.tsx +++ b/apps/web/src/components/game/QuestionCard.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import type { GameQuestion, AnswerResult } from "@glossa/shared"; +import type { GameQuestion, AnswerResult } from "@lila/shared"; import { OptionButton } from "./OptionButton"; type QuestionCardProps = { diff --git a/apps/web/src/components/game/ScoreScreen.tsx b/apps/web/src/components/game/ScoreScreen.tsx index 44b3250..afd3295 100644 --- a/apps/web/src/components/game/ScoreScreen.tsx +++ b/apps/web/src/components/game/ScoreScreen.tsx @@ -1,4 +1,4 @@ -import type { AnswerResult } from "@glossa/shared"; +import type { AnswerResult } from "@lila/shared"; type ScoreScreenProps = { results: AnswerResult[]; onPlayAgain: () => void }; diff --git a/apps/web/src/routes/login.tsx b/apps/web/src/routes/login.tsx index b14a734..fd191fd 100644 --- a/apps/web/src/routes/login.tsx +++ b/apps/web/src/routes/login.tsx @@ -14,7 +14,7 @@ const LoginPage = () => { return (
-

Sign in to Glossa

+

sign in to lila