refactor: remove hardcoded display values and unused lib/id.ts

Delete hardcoded marketing stats in auth layout and ¥12,800
placeholder in owner dashboard. Remove lib/id.ts which is no
longer referenced by any module.
This commit is contained in:
zetaloop
2026-05-01 04:22:33 +08:00
parent cd469d3d54
commit b6002f5691
5 changed files with 7 additions and 30 deletions
+1 -1
View File
@@ -37,5 +37,5 @@ export async function getPlayerById(playerId: string): Promise<Player | undefine
export async function listPlayersByShop(shopId: string): Promise<Player[]> {
const players = await listPlayers()
return players.filter((player) => player.shopId === shopId)
return players.filter((player) => String(player.shopId) === shopId)
}
-10
View File
@@ -1,10 +0,0 @@
let counter = 0
export function generateId(prefix: string) {
void prefix
counter += 1
const now = Date.now().toString()
const suffix = counter.toString().padStart(3, "0")
return `${now}${suffix}`
}