-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
2,241 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
<template> | ||
|
||
<v-list lines="two"> | ||
|
||
<v-list-item v-for="(v, i) in WISH.characters" :key="imgName(v)" :title="v.name" :subtitle="v.shortName" | ||
:prepend-avatar="combineCharImage(v.wish5star)" :value="imgName(v)" | ||
:active-color="colorCharEle(v.wish5star)" rounded="xl" | ||
|
||
></v-list-item> | ||
|
||
<!-- @click="showBannerPage(combineWishImage(imgName(v.name)))" --> | ||
|
||
</v-list> | ||
|
||
<BannerPage :img="combineCharImage('klee')"></BannerPage> | ||
|
||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { WISH } from '../script/genshin/wish' | ||
import { replaceAndLow, ElementColor } from '../script/genshin/utils' | ||
import { CHARACTER, Characters } from '../script/genshin/characters' | ||
import BannerPage from './BannerPage.vue'; | ||
const imgName = (value: any) => value.name.concat('_' + value.image + '.jpg').toLowerCase().replace(/ /g, '_') | ||
const combineCharImage = (v: string) => 'https://github.com/DrAugus/data/blob/master/game/genshin/characters/' + v + '.png?raw=true' | ||
const combineWishImage = (v:string ) => 'https://github.com/DrAugus/data/blob/master/game/genshin/wish/' + v + '?raw=true' | ||
const colorCharEle = (v: string) => { | ||
const index_ele = Object.values(CHARACTER)[Object.keys(CHARACTER).indexOf(v)].ele; | ||
return ElementColor[index_ele] | ||
} | ||
// https://vuejs.org/guide/typescript/composition-api.html#typing-component-emits | ||
// type-based | ||
const emit = defineEmits<{ | ||
(e: 'showBannerPage', value: string): { | ||
} | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<template> | ||
<v-img class="bg-white" width="300" :aspect-ratio="1" :src="img" cover></v-img> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps({ | ||
img: { | ||
type: String, | ||
default: '' | ||
}, | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<v-card> | ||
<v-layout> | ||
<v-navigation-drawer theme="auto" rail permanent> | ||
<v-list-item nav prepend-avatar="../assets/logo.jpg"></v-list-item> | ||
|
||
<v-divider></v-divider> | ||
|
||
<v-list density="compact" nav> | ||
<v-list-item prepend-icon="mdi-view-dashboard" value="dashboard"></v-list-item> | ||
|
||
<v-list-item prepend-icon="mdi-forum" value="messages"></v-list-item> | ||
</v-list> | ||
</v-navigation-drawer> | ||
|
||
<v-navigation-drawer permanent> | ||
|
||
<BannerList @on-click=""></BannerList> | ||
</v-navigation-drawer> | ||
|
||
<v-main> | ||
<slot></slot> | ||
</v-main> | ||
</v-layout> | ||
</v-card> | ||
</template> | ||
|
||
|
||
<script setup lang="ts"> | ||
import BannerList from './BannerList.vue' | ||
import BannerPage from './BannerPage.vue' | ||
import HelloWorld from './HelloWorld.vue'; | ||
defineProps({ | ||
icon: { | ||
type: String, | ||
default: '' | ||
}, | ||
iconClass: { | ||
type: String, | ||
default: '' | ||
}, | ||
blurry: { | ||
type: Boolean, | ||
default: true, | ||
required: false | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import {createApp} from 'vue' | ||
import App from './App.vue' | ||
|
||
createApp(App).mount('#app') | ||
// Vuetify | ||
import 'vuetify/styles' | ||
import { createVuetify } from 'vuetify' | ||
import * as components from 'vuetify/components' | ||
import * as directives from 'vuetify/directives' | ||
|
||
const vuetify = createVuetify({ | ||
components, | ||
directives, | ||
}) | ||
|
||
createApp(App).use(vuetify).mount('#app') |
Oops, something went wrong.