feat: add ListPage component for player profile display
- Implemented ListPage component to render player information including profile picture, namecard, nickname, level, world level, and signature. - Integrated asset loading for profile picture and namecard using assets.load. - Utilized Tailwind CSS for styling the layout and components.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { t } from "elysia";
|
||||
|
||||
export type AvatarStore = Record<number, Avatar>;
|
||||
|
||||
export interface Avatar {
|
||||
@@ -148,3 +150,37 @@ export const SubstatOrder: Record<string, number> = {
|
||||
FIGHT_PROP_HP: 9,
|
||||
FIGHT_PROP_DEFENSE: 10,
|
||||
};
|
||||
|
||||
export type NumberLike = `${number}`;
|
||||
export type CdnPath = `/ui/UI_${string}.jpg`;
|
||||
|
||||
export type EnkaPfps = Record<NumberLike, { IconPath: CdnPath }>;
|
||||
|
||||
export type EnkaNamecards = Record<NumberLike, { Icon: CdnPath }>;
|
||||
|
||||
export const Locale = t.Enum(
|
||||
Object.fromEntries(
|
||||
(
|
||||
[
|
||||
"zh-cn",
|
||||
"zh-tw",
|
||||
"de",
|
||||
"en",
|
||||
"es",
|
||||
"fr",
|
||||
"id",
|
||||
"ja",
|
||||
"ko",
|
||||
"pt",
|
||||
"ru",
|
||||
"th",
|
||||
"vi",
|
||||
"tr",
|
||||
"it",
|
||||
] as const
|
||||
).map((v) => [v, v]),
|
||||
),
|
||||
{
|
||||
default: "en",
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user