mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🌱 草创深渊数据库页面
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-navigation-drawer permanent :rail="rail" style="background: var(--sidebar-bg); color: #faf7e8">
|
<v-navigation-drawer :permanent="true" :rail="rail" class="tsb-box">
|
||||||
<v-list v-model:opened="open" class="side-list" density="compact" nav>
|
<v-list v-model:opened="open" class="side-list" density="compact" :nav="true">
|
||||||
<!-- 负责收缩侧边栏 -->
|
<!-- 负责收缩侧边栏 -->
|
||||||
<v-list-item @click="collapse()">
|
<v-list-item @click="collapse()">
|
||||||
<template v-if="rail" #prepend>
|
<template v-if="rail" #prepend>
|
||||||
@@ -19,38 +19,38 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<!-- 菜单项 -->
|
<!-- 菜单项 -->
|
||||||
<v-list-item value="home" title="首页" link href="/">
|
<v-list-item value="home" title="首页" :link="true" href="/">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/paimon.webp" alt="homeIcon" class="side-icon">
|
<img src="/source/UI/paimon.webp" alt="homeIcon" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="公告" value="announcements" link href="/announcements">
|
<v-list-item title="公告" value="announcements" :link="true" href="/announcements">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="../../assets/icons/board.svg" alt="annoIcon" class="side-icon">
|
<img src="../../assets/icons/board.svg" alt="annoIcon" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="咨讯" value="news" link href="/news/2">
|
<v-list-item title="咨讯" value="news" :link="true" href="/news/2">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/platforms/mhy/mys.webp" alt="mihoyo" class="side-icon">
|
<img src="/platforms/mhy/mys.webp" alt="mihoyo" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="成就" value="achievements" link href="/achievements">
|
<v-list-item title="成就" value="achievements" :link="true" href="/achievements">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="../../assets/icons/achievements.svg" alt="achievementsIcon" class="side-icon">
|
<img src="../../assets/icons/achievements.svg" alt="achievementsIcon" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list-item title="原神战绩" value="record" link href="/user/record">
|
<v-list-item title="原神战绩" value="record" :link="true" href="/user/record">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/userRecord.webp" alt="record" class="side-icon">
|
<img src="/source/UI/userRecord.webp" alt="record" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="我的角色" value="character" link href="/user/characters">
|
<v-list-item title="我的角色" value="character" :link="true" href="/user/characters">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/userAvatar.webp" alt="characters" class="side-icon">
|
<img src="/source/UI/userAvatar.webp" alt="characters" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="深渊记录" value="abyss" link href="/user/abyss">
|
<v-list-item title="深渊记录" value="abyss" :link="true" href="/user/abyss">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/userAbyss.webp" alt="abyss" class="side-icon">
|
<img src="/source/UI/userAbyss.webp" alt="abyss" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
@@ -62,13 +62,13 @@
|
|||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </v-list-item>-->
|
<!-- </v-list-item>-->
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list-item v-show="appStore.devEnv" title="测试" value="test" link href="/test">
|
<v-list-item v-show="appStore.devEnv" title="测试" value="test" :link="true" href="/test">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-icon>mdi-test-tube</v-icon>
|
<v-icon>mdi-test-tube</v-icon>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-divider v-show="appStore.devEnv" />
|
<v-divider v-show="appStore.devEnv" />
|
||||||
<v-list-group value="wiki" fluid>
|
<v-list-group value="wiki" :fluid="true">
|
||||||
<template #activator="{ props }">
|
<template #activator="{ props }">
|
||||||
<v-list-item title="图鉴" v-bind="props">
|
<v-list-item title="图鉴" v-bind="props">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
@@ -76,17 +76,22 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item title="GCG" value="wiki-GCG" link href="/wiki/GCG">
|
<v-list-item title="深渊数据库" value="wiki-abyss" :link="true" href="/wiki/abyss">
|
||||||
|
<template #prepend>
|
||||||
|
<img src="../../../public/icon/star/Abyss.webp" alt="abyssIcon" class="side-icon">
|
||||||
|
</template>
|
||||||
|
</v-list-item>
|
||||||
|
<v-list-item title="GCG" value="wiki-GCG" :link="true" href="/wiki/GCG">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="../../assets/icons/GCG.svg" alt="gcgIcon" class="side-icon">
|
<img src="../../assets/icons/GCG.svg" alt="gcgIcon" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="角色图鉴" value="wiki-character" link href="/wiki/character">
|
<v-list-item title="角色图鉴" value="wiki-character" :link="true" href="/wiki/character">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/avatarMini.webp" alt="characterIcon" class="side-icon-mini">
|
<img src="/source/UI/avatarMini.webp" alt="characterIcon" class="side-icon-mini">
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="武器图鉴" value="wiki-weapon" link href="/wiki/weapon">
|
<v-list-item title="武器图鉴" value="wiki-weapon" :link="true" href="/wiki/weapon">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="/source/UI/weaponMini.webp" alt="weaponIcon" class="side-icon-mini">
|
<img src="/source/UI/weaponMini.webp" alt="weaponIcon" class="side-icon-mini">
|
||||||
</template>
|
</template>
|
||||||
@@ -110,7 +115,7 @@
|
|||||||
</v-icon>
|
</v-icon>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item title="设置" value="config" link href="/config">
|
<v-list-item title="设置" value="config" :link="true" href="/config">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<img src="../../assets/icons/setting.svg" alt="setting" class="side-icon">
|
<img src="../../assets/icons/setting.svg" alt="setting" class="side-icon">
|
||||||
</template>
|
</template>
|
||||||
@@ -184,6 +189,15 @@ async function switchTheme () {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="css" scoped>
|
<style lang="css" scoped>
|
||||||
|
.tsb-box {
|
||||||
|
background: #4e7ca1; /* 蝴蝶蓝 */
|
||||||
|
color: #e2e1e4; /* 芡食白 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .tsb-box {
|
||||||
|
background: #21373d; /* 灰蓝 */
|
||||||
|
}
|
||||||
|
|
||||||
.side-list {
|
.side-list {
|
||||||
font-family: Genshin-Light, serif;
|
font-family: Genshin-Light, serif;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|||||||
3
src/pages/WIKI/Abyss.vue
Normal file
3
src/pages/WIKI/Abyss.vue
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<div>胡桃数据库</div>
|
||||||
|
</template>
|
||||||
@@ -1,47 +1,53 @@
|
|||||||
/**
|
/**
|
||||||
* @file router modules wiki.ts
|
* @file router modules wiki.ts
|
||||||
* @description wiki 路由模块
|
* @description wiki 路由模块
|
||||||
* @author BTMuli<bt-muli@outlook.com>
|
* @author BTMuli <bt-muli@outlook.com>
|
||||||
* @since Alpha v0.1.3
|
* @since Alpha v0.2.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Wiki main
|
// Wiki main
|
||||||
import GCG from "../../pages/WIKI/GCG.vue";
|
import Abyss from "../../pages/WIKI/Abyss.vue";
|
||||||
import Character from "../../pages/WIKI/Character.vue";
|
import Character from "../../pages/WIKI/Character.vue";
|
||||||
|
import GCG from "../../pages/WIKI/GCG.vue";
|
||||||
import Weapon from "../../pages/WIKI/Weapon.vue";
|
import Weapon from "../../pages/WIKI/Weapon.vue";
|
||||||
// Wiki sub
|
// Wiki sub
|
||||||
import TGCG from "../../views/WIKI/t-gcg.vue";
|
|
||||||
import TCharacter from "../../views/WIKI/t-character.vue";
|
import TCharacter from "../../views/WIKI/t-character.vue";
|
||||||
|
import TGCG from "../../views/WIKI/t-gcg.vue";
|
||||||
import TWeapon from "../../views/WIKI/t-weapon.vue";
|
import TWeapon from "../../views/WIKI/t-weapon.vue";
|
||||||
|
|
||||||
const wikiRoutes = [
|
const wikiRoutes = [
|
||||||
{
|
{
|
||||||
path: "/wiki/GCG",
|
path: "/wiki/abyss",
|
||||||
name: "卡牌图鉴",
|
name: "深渊数据库",
|
||||||
component: GCG,
|
component: Abyss,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/character",
|
path: "/wiki/character",
|
||||||
name: "角色图鉴",
|
name: "角色图鉴",
|
||||||
component: Character,
|
component: Character,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/wiki/GCG",
|
||||||
|
name: "卡牌图鉴",
|
||||||
|
component: GCG,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/weapon",
|
path: "/wiki/weapon",
|
||||||
name: "武器图鉴",
|
name: "武器图鉴",
|
||||||
component: Weapon,
|
component: Weapon,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/GCG_detail/:id",
|
path: "/wiki/detail/character/:id",
|
||||||
name: "卡牌详情",
|
|
||||||
component: TGCG,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/wiki/character_detail/:id",
|
|
||||||
name: "角色详情",
|
name: "角色详情",
|
||||||
component: TCharacter,
|
component: TCharacter,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/wiki/weapon_detail/:id",
|
path: "/wiki/detail/GCG/:id",
|
||||||
|
name: "卡牌详情",
|
||||||
|
component: TGCG,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/wiki/detail/weapon/:id",
|
||||||
name: "武器详情",
|
name: "武器详情",
|
||||||
component: TWeapon,
|
component: TWeapon,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user