Skip to content

Commit

Permalink
Merge pull request #71 from HoraceHuang-ui/horace_dev
Browse files Browse the repository at this point in the history
Horace dev
  • Loading branch information
HoraceHuang-ui authored Mar 12, 2024
2 parents 7652f55 + 0fa3353 commit 33bdb4f
Show file tree
Hide file tree
Showing 46 changed files with 197 additions and 1,083 deletions.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,9 @@ const needsUpdate = (latestStr: string) => {
<TopHeader />
<router-view></router-view>
</template>

<style>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
6 changes: 1 addition & 5 deletions src/components/CustomSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ const valueChange = () => {
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
6 changes: 1 addition & 5 deletions src/components/CustomUIDInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ defineEmits(['submit', 'update:modelValue'])
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
6 changes: 1 addition & 5 deletions src/components/DialogListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ const props = defineProps({
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
6 changes: 1 addition & 5 deletions src/components/LauncherBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ const openLink = (url: string) => {
</MyCarousel>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
4 changes: 0 additions & 4 deletions src/components/LauncherPosts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ const openLink = (url: string) => {
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.truncated {
@apply inline-block max-w-full overflow-ellipsis whitespace-nowrap overflow-hidden;
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/LoadFailedBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,4 @@ const refresh = () => {
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
4 changes: 0 additions & 4 deletions src/components/LoadingIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ defineProps({
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.icon-loading {
animation: 1s linear 0s infinite running rotate;
}
Expand Down
4 changes: 0 additions & 4 deletions src/components/MyCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ defineExpose({
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.indicator-selected {
@apply w-7 bg-white;
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/MyCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,4 @@ const switchStatus = () => {
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
4 changes: 0 additions & 4 deletions src/components/MyDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ const onMouseLeave = () => {
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.fade-enter-from,
.fade-leave-to {
opacity: 0;
Expand Down
4 changes: 0 additions & 4 deletions src/components/MyTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ const selectTab = (idx: number) => {
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.tab-selected {
@apply text-white bg-blue-600 cursor-default;
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/MyTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ defineProps({
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
4 changes: 0 additions & 4 deletions src/components/MyTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ const onMouseLeave = () => {
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.fade-enter-from,
.fade-leave-to {
opacity: 0;
Expand Down
4 changes: 0 additions & 4 deletions src/components/ScrollWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,6 @@ defineExpose({
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
::-webkit-scrollbar {
width: 0 !important;
}
Expand Down
4 changes: 0 additions & 4 deletions src/components/TemplateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ defineExpose({
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.v-enter-active .outer {
transition: opacity 0.5s ease;
}
Expand Down
25 changes: 18 additions & 7 deletions src/components/TopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,30 @@ const home = () => {
}
const genshin = () => {
selection.value = 1
router.push('/gspage')
router.push({
name: 'tempPage',
query: {
from: 'gs',
},
})
}
const starRail = () => {
selection.value = 2
router.push('/srpage')
router.push({
name: 'tempPage',
query: {
from: 'sr',
},
})
}
const honkai3 = () => {
selection.value = 3
router.push('/hipage')
router.push({
name: 'tempPage',
query: {
from: 'hi3',
},
})
}
const settings = () => {
selection.value = 4
Expand Down Expand Up @@ -116,10 +131,6 @@ const winMin = () => {
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
.drag {
-webkit-app-region: drag;
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/UpdateDialogContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,4 @@ const offColor = computed(() => {
</div>
</template>

<style scoped>
@tailwind base;
@tailwind components;
@tailwind utilities;
</style>
<style scoped></style>
2 changes: 1 addition & 1 deletion src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "Image",
"mainpage_title": "miHoYo miXeD Launcher",
"mainpage_buttonText": "Launch {game}",
"genshin_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=en-us&launcher_id=10",
"gs_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=en-us&launcher_id=10",
"gs_enkaLangCode": "en",
"gs_emptyPlayerTip": "Player details will be displayed here",
"gs_showcaseTip": "Player details unavailable, please enable 'Show Character Details' in game and try again.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "Image",
"mainpage_title": "miHoYo miXeD Launcher",
"mainpage_buttonText": "Lancer {game}",
"genshin_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=fr-fr&launcher_id=10",
"gs_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=fr-fr&launcher_id=10",
"gs_enkaLangCode": "fr",
"gs_emptyPlayerTip": "Les détails du joueur s'afficheront ici",
"gs_showcaseTip": "Les détails du joueur ne sont pas disponibles, veuillez activer 'Afficher les détails du personnage' dans le jeu et réessayez.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "画像",
"mainpage_title": "miHoYo miXeD ランチャー",
"mainpage_buttonText": "{game}を起動!",
"genshin_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=ja-jp&launcher_id=10",
"gs_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=ja-jp&launcher_id=10",
"gs_enkaLangCode": "ja",
"gs_emptyPlayerTip": "キャラの詳細がここに表示されます",
"gs_showcaseTip": "キャラの詳細情報が利用できません。ゲーム内で「キャラクターの詳細を表示」を有効にして、もう一度お試しください。",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "Изображение",
"mainpage_title": "Запуск miHoYo miXeD",
"mainpage_buttonText": "Запустить {game}",
"genshin_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=ru-ru&launcher_id=10",
"gs_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=ru-ru&launcher_id=10",
"gs_enkaLangCode": "ru",
"gs_emptyPlayerTip": "Информация о игроке будет отображена здесь",
"gs_showcaseTip": "Информация о игроке недоступна. Включите 'Отображение деталей персонажей' в игре и попробуйте снова.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "图片",
"mainpage_title": "米哈游聚合启动器",
"mainpage_buttonText": "{game}启动",
"genshin_launcherContentsUrl": "https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/content?filter_adv=false&key=eYd89JmJ&language=zh-cn&launcher_id=18",
"gs_launcherContentsUrl": "https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/content?filter_adv=false&key=eYd89JmJ&language=zh-cn&launcher_id=18",
"gs_enkaLangCode": "chs",
"gs_emptyPlayerTip": "此处将显示角色的详细信息",
"gs_showcaseTip": "当前暂无详细信息,请在游戏内打开“显示角色详情”后再试。",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"mainBgDialog_filter": "圖片",
"mainpage_title": "米哈游聚合啓動器",
"mainpage_buttonText": "{game}啓動",
"genshin_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=zh-tw&launcher_id=10",
"gs_launcherContentsUrl": "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=zh-tw&launcher_id=10",
"gs_enkaLangCode": "cht",
"gs_emptyPlayerTip": "此處將顯示角色的詳細信息",
"gs_showcaseTip": "當前暫無詳細信息,請在游戲内打開”顯示角色詳情“后再試。",
Expand Down
Loading

0 comments on commit 33bdb4f

Please sign in to comment.