-
Notifications
You must be signed in to change notification settings - Fork 6
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
114 changed files
with
354 additions
and
523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ dist | |
src-tauri/target | ||
# Submodules | ||
TGAssistant | ||
# Package files | ||
pnpm-lock.yaml |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"name": "TeyvatGuide", | ||
"version": "0.3.3", | ||
"description": "A Genshin Tool build with Tauri", | ||
"private": true, | ||
"version": "0.3.3", | ||
"author": "BTMuli <[email protected]>", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "tauri build", | ||
|
@@ -28,26 +27,27 @@ | |
"*.{vue,css}": "stylelint --fix", | ||
"*.{ts,vue,css,yml,json,md}": "prettier --write" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/BTMuli/TeyvatGuide/issues" | ||
}, | ||
"directories": { | ||
"doc": "docs" | ||
}, | ||
"homepage": "https://github.com/BTMuli/TeyvatGuide#readme", | ||
"keywords": [ | ||
"Tauri", | ||
"Genshin Impact", | ||
"Node", | ||
"Tauri", | ||
"Typescript", | ||
"Vite", | ||
"Genshin Impact", | ||
"Vuetify" | ||
], | ||
"author": "BTMuli <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BTMuli/TeyvatGuide.git" | ||
}, | ||
"homepage": "https://github.com/BTMuli/TeyvatGuide#readme", | ||
"bugs": { | ||
"url": "https://github.com/BTMuli/TeyvatGuide/issues" | ||
}, | ||
"directories": { | ||
"doc": "docs" | ||
}, | ||
"dependencies": { | ||
"@mdi/font": "7.2.96", | ||
"@tauri-apps/api": "^1.4.0", | ||
|
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,32 +1,32 @@ | ||
#-------------------------------------------------------------------------------# | ||
# -------------------------------------------------------------------------------# | ||
# Qodana analysis is configured by qodana.yaml file # | ||
# https://www.jetbrains.com/help/qodana/qodana-yaml.html # | ||
#-------------------------------------------------------------------------------# | ||
# -------------------------------------------------------------------------------# | ||
version: "1.0" | ||
|
||
#Specify inspection profile for code analysis | ||
# Specify inspection profile for code analysis | ||
profile: | ||
name: qodana.starter | ||
|
||
#Enable inspections | ||
#include: | ||
# Enable inspections | ||
# include: | ||
# - name: <SomeEnabledInspectionId> | ||
|
||
#Disable inspections | ||
#exclude: | ||
# Disable inspections | ||
# exclude: | ||
# - name: <SomeDisabledInspectionId> | ||
# paths: | ||
# - <path/where/not/run/inspection> | ||
|
||
#The following options are only applied in CI/CD environment | ||
#These options are ignored during local run | ||
# The following options are only applied in CI/CD environment | ||
# These options are ignored during local run | ||
|
||
#Execute shell command before Qodana execution | ||
#bootstrap: sh ./prepare-qodana.sh | ||
# Execute shell command before Qodana execution | ||
# bootstrap: sh ./prepare-qodana.sh | ||
|
||
#Install IDE plugins before Qodana execution | ||
#plugins: | ||
# Install IDE plugins before Qodana execution | ||
# plugins: | ||
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com) | ||
|
||
#Specify Qodana linter for analysis | ||
# Specify Qodana linter for analysis | ||
linter: jetbrains/qodana-js:latest |
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 |
---|---|---|
|
@@ -21,23 +21,23 @@ | |
"all": true, | ||
"request": true, | ||
"scope": [ | ||
"https://api-takumi.mihoyo.com/*", | ||
"https://api-takumi-record.mihoyo.com/*", | ||
"https://act-webstatic.mihoyo.com/*", | ||
"https://api-static.mihoyo.com/*", | ||
"https://api-takumi-record.mihoyo.com/*", | ||
"https://api-takumi.mihoyo.com/*", | ||
"https://api.geetest.com/*", | ||
"https://bbs-api-static.miyoushe.com/*", | ||
"https://bbs-api.mihoyo.com/*", | ||
"https://bbs-api.miyoushe.com/*", | ||
"https://bbs-api-static.miyoushe.com/*", | ||
"https://bbs.mihoyo.com/*", | ||
"https://enka-api.hut.ao/*", | ||
"https://hk4e-api.mihoyo.com/*", | ||
"https://hk4e-sdk.mihoyo.com/*", | ||
"https://homa.snapgenshin.com/*", | ||
"https://passport-api-v4.mihoyo.com/*", | ||
"https://passport-api.mihoyo.com/*", | ||
"https://passport-api.miyoushe.com/*", | ||
"https://passport-api-v4.mihoyo.com/*", | ||
"https://act-webstatic.mihoyo.com/*", | ||
"https://sdk-webstatic.mihoyo.com/*", | ||
"https://homa.snapgenshin.com/*", | ||
"https://enka-api.hut.ao/*", | ||
"https://api.geetest.com/*" | ||
"https://sdk-webstatic.mihoyo.com/*" | ||
] | ||
}, | ||
"shell": { | ||
|
@@ -48,21 +48,21 @@ | |
"bundle": { | ||
"active": true, | ||
"icon": [ | ||
"icons/32x32.png", | ||
"icons/128x128.png", | ||
"icons/[email protected]", | ||
"icons/icon.ico", | ||
"icons/icon.png", | ||
"icons/Square30x30Logo.png", | ||
"icons/Square44x44Logo.png", | ||
"icons/Square71x71Logo.png", | ||
"icons/Square89x89Logo.png", | ||
"icons/32x32.png", | ||
"icons/Square107x107Logo.png", | ||
"icons/Square142x142Logo.png", | ||
"icons/Square150x150Logo.png", | ||
"icons/Square284x284Logo.png", | ||
"icons/Square30x30Logo.png", | ||
"icons/Square310x310Logo.png", | ||
"icons/StoreLogo.png" | ||
"icons/Square44x44Logo.png", | ||
"icons/Square71x71Logo.png", | ||
"icons/Square89x89Logo.png", | ||
"icons/StoreLogo.png", | ||
"icons/icon.ico", | ||
"icons/icon.png" | ||
], | ||
"identifier": "TeyvatGuide", | ||
"targets": ["msi"], | ||
|
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @file component func confirm.ts | ||
* @description 封装自定义 confirm 组件,通过函数调用的方式,简化 confirm 的使用 | ||
* @author BTMuli <[email protected]> | ||
* @since Alpha v0.2.3 | ||
* @since Beta v0.3.3 | ||
*/ | ||
|
||
// vue | ||
import { h, render, type VNode } from "vue"; | ||
// confirm | ||
|
||
import confirm from "./confirm.vue"; | ||
|
||
const confirmId = "tg-func-confirm"; | ||
|
@@ -24,7 +22,7 @@ const renderBox = (props: TGApp.Component.Confirm.Params): VNode => { | |
let confirmInstance: VNode; | ||
|
||
const showConfirm = async (props: TGApp.Component.Confirm.Params): Promise<string | boolean> => { | ||
if (confirmInstance) { | ||
if (confirmInstance !== undefined) { | ||
const boxVue = confirmInstance.component; | ||
return boxVue?.exposeProxy?.displayBox(props); | ||
} else { | ||
|
Oops, something went wrong.