mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
📦 feat(calendar): 资源本地化
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @file data app index
|
||||
* @description data app index
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha
|
||||
* @since Alpha v0.1.2
|
||||
*/
|
||||
|
||||
// Data
|
||||
@@ -10,11 +10,13 @@ import achievements from "./achievements.json";
|
||||
import achievementSeries from "./achievementSeries.json";
|
||||
import GCG from "./GCG.json";
|
||||
import nameCards from "./nameCards.json";
|
||||
import calendar from "./calendar.json";
|
||||
// Interface
|
||||
import { type Achievement, type AchievementSeries } from "../../interface/Achievements";
|
||||
import { type Map } from "../../interface/Base";
|
||||
import { type BaseCard } from "../../interface/GCG";
|
||||
import { type NameCard } from "../../interface/NameCard";
|
||||
import { type CalendarData } from "../../interface/Calendar";
|
||||
|
||||
export const AppDataList = [
|
||||
{
|
||||
@@ -33,6 +35,10 @@ export const AppDataList = [
|
||||
name: "nameCards.json",
|
||||
data: nameCards as unknown as Map<NameCard[]>,
|
||||
},
|
||||
{
|
||||
name: "calendar.json",
|
||||
data: calendar as Map<CalendarData>,
|
||||
},
|
||||
];
|
||||
|
||||
export const AppData = {
|
||||
@@ -40,4 +46,5 @@ export const AppData = {
|
||||
achievementSeries: achievementSeries as Map<AchievementSeries>,
|
||||
GCG: GCG as BaseCard[],
|
||||
nameCards: nameCards as unknown as Map<NameCard[]>,
|
||||
calendar: calendar as Map<CalendarData>,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user