Skip to content

Commit

Permalink
chore(viewer): 更新目录
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Sep 2, 2023
1 parent 5f82b44 commit b6cd858
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ export interface HomeDisplayInfo {
}
const homepageDisplayInfoList: HomeDisplayInfo[] = [
// {
// type: "minigame",
// title: "白子",
// icon: "https://shiroko.blue-archive.io/favicon.gif",
// jumpTo: "https://shiroko.blue-archive.io",
// startDate: "2023/05/16",
// endDate: "2023/06/30",
// style: "pixelize",
// },
{
type: "minigame",
title: "小春幸存者游戏",
icon: "https://games.blue-archive.io/koharu-dream/image/favicon.png",
jumpTo: "https://games.blue-archive.io/koharu-dream/",
startDate: "2023/09/01",
style: "pixelize",
},
{
type: "student",
jumpTo: 10075,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,20 @@ function getDialogTitle() {
}
)}`;
case "minigame":
return `${getI18nString(userLanguage.value, "updates.minigameUpdated", {
name: props.info.title,
date: props.info.endDate || "",
})}`;
if (props.info.endDate) {
return `${getI18nString(userLanguage.value, "updates.minigameUpdated", {
name: props.info.title,
date: props.info.endDate,
})}`;
}
return `${getI18nString(
userLanguage.value,
"updates.minigameUpdatedNoDate",
{
name: props.info.title,
date: props.info.endDate || "",
}
)}`;
default:
return `${getI18nString(userLanguage.value, "updates.updated", {
title: props.info.title,
Expand Down Expand Up @@ -113,7 +123,7 @@ function handleJumpToRequest() {
>
<template #title-before>
<img v-if="props.info?.icon" :src="props.info?.icon" alt="info" />
<img src="/src/assets/info.svg" alt="info" v-else />
<img src="@assets/info.svg" alt="info" v-else />
</template>
</neu-dialog>
</template>
Expand Down
4 changes: 2 additions & 2 deletions apps/blue-archive-story-viewer/src/i18n/localeString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const localeString = {
updates: {
updated: "{title}已更新",
favorScheduleUpdated: "{name}的好感剧情已更新",
minigameUpdated: "{name}主题小游戏已更新(至{date}前有效)",
minigameUpdatedNoDate: "{name}主题小游戏已更新",
minigameUpdated: "{name}已发布(至{date}前有效)",
minigameUpdatedNoDate: "{name}已发布",
},
},
jp: {
Expand Down

0 comments on commit b6cd858

Please sign in to comment.