🚚 tauri-genshin → Teyvat Guide

This commit is contained in:
BTMuli
2023-09-15 17:19:33 +08:00
parent f907c798bc
commit a7dd069930
9 changed files with 33 additions and 54 deletions

View File

@@ -13,7 +13,7 @@ Update: 2023-09-15
![](https://img.shields.io/badge/UIAF-v1.1-orange?style=for-the-badge) ![](https://img.shields.io/badge/UIGF-v2.3-red?style=for-the-badge) ![](https://img.shields.io/github/license/BTMuli/Tauri.Genshin?style=for-the-badge)
# Tauri.Genshin
# Teyvat Guide
基于 Tauri 的原神助手应用。

View File

@@ -1,5 +1,5 @@
{
"name": "tauri-genshin",
"name": "TeyvatGuide",
"description": "A Genshin Tool build with Tauri",
"private": true,
"version": "0.3.1",
@@ -27,12 +27,12 @@
"*.{ts,vue,css,yml,json,md}": "prettier --write"
},
"bugs": {
"url": "https://github.com/BTMuli/Tauri.Genshin/issues"
"url": "https://github.com/BTMuli/TeyvatGuide/issues"
},
"directories": {
"doc": "docs"
},
"homepage": "https://github.com/BTMuli/Tauri.Genshin#readme",
"homepage": "https://github.com/BTMuli/TeyvatGuide#readme",
"keywords": [
"Tauri",
"Node",
@@ -44,7 +44,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/BTMuli/Tauri.Genshin.git"
"url": "https://github.com/BTMuli/TeyvatGuide.git"
},
"dependencies": {
"@mdi/font": "7.2.96",

43
src-tauri/Cargo.lock generated
View File

@@ -2,6 +2,17 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "TeyvatGuide"
version = "0.3.1"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-sql",
]
[[package]]
name = "addr2line"
version = "0.21.0"
@@ -2069,12 +2080,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "minisign-verify"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881"
[[package]]
name = "miniz_oxide"
version = "0.7.1"
@@ -3964,7 +3969,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fbe522898e35407a8e60dc3870f7579fea2fc262a6a6072eccdd37ae1e1d91e"
dependencies = [
"anyhow",
"base64 0.21.3",
"bytes",
"cocoa",
"dirs-next",
@@ -3978,7 +3982,6 @@ dependencies = [
"heck 0.4.1",
"http",
"ignore",
"minisign-verify",
"notify-rust",
"objc",
"once_cell",
@@ -4006,14 +4009,12 @@ dependencies = [
"tauri-utils",
"tempfile",
"thiserror",
"time",
"tokio",
"url",
"uuid",
"webkit2gtk",
"webview2-com",
"windows 0.39.0",
"zip",
]
[[package]]
@@ -4059,17 +4060,6 @@ dependencies = [
"walkdir",
]
[[package]]
name = "tauri-genshin"
version = "0.3.1"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-sql",
]
[[package]]
name = "tauri-macros"
version = "1.4.0"
@@ -5314,17 +5304,6 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9"
[[package]]
name = "zip"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261"
dependencies = [
"byteorder",
"crc32fast",
"crossbeam-utils",
]
[[package]]
name = "zvariant"
version = "3.15.0"

View File

@@ -1,10 +1,10 @@
[package]
name = "tauri-genshin"
name = "TeyvatGuide"
version = "0.3.1"
description = "A Genshin Tool build with Tauri"
authors = ["BTMuli<bt-muli@outlook.com>"]
license = "MIT"
repository = "https://github.com/BTMuli/Tauri.Genshin"
repository = "https://github.com/BTMuli/TeyvatGuide"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -13,7 +13,7 @@ edition = "2021"
tauri-build = { version = "1.4", features = [] }
[dependencies]
tauri = { version = "1.4", features = ["api-all", "updater"] }
tauri = { version = "1.4", features = ["api-all"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@@ -7,7 +7,7 @@ fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_sql::Builder::default().build())
.setup(|_app| {
let _window = _app.get_window("tauri-genshin").unwrap();
let _window = _app.get_window("TeyvatGuide").unwrap();
#[cfg(debug_assertions)] // only include this code on debug builds
_window.open_devtools(); // open the devtools on startup
Ok(())

View File

@@ -7,7 +7,7 @@
"withGlobalTauri": true
},
"package": {
"productName": "tauri-genshin",
"productName": "TeyvatGuide",
"version": "0.3.1"
},
"tauri": {
@@ -47,7 +47,7 @@
"bundle": {
"active": true,
"icon": ["icons/icon.png", "icons/icon.ico"],
"identifier": "tauri-genshin",
"identifier": "TeyvatGuide",
"targets": ["msi", "updater"],
"windows": {
"wix": {
@@ -59,11 +59,11 @@
"csp": null
},
"updater": {
"active": true,
"active": false,
"dialog": true,
"endpoints": [
"https://raw.fastgit.org/BTMuli/Tauri.Genshin/master/latest.json",
"https://raw.kgithub.com/BTMuli/Tauri.Genshin/master/latest.json"
"https://raw.fastgit.org/BTMuli/TeyvatGuide/master/latest.json",
"https://raw.kgithub.com/BTMuli/TeyvatGuide/master/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDg2MkVGRjMxQzJDQzFBNTkKUldSWkdzekNNZjh1aHJGRXBEOGtwbUxLaU1wdWNVeUJaeGhoV2ZlZ3VlYmQ0b2tYZWQwODdnTHkK"
},
@@ -71,8 +71,8 @@
{
"fullscreen": false,
"resizable": true,
"title": "Tauri.Genshin",
"label": "tauri-genshin",
"title": "Teyvat Guide",
"label": "TeyvatGuide",
"width": 1600,
"height": 900,
"center": true,

View File

@@ -30,9 +30,9 @@ const theme = ref<string>(appStore.theme);
onBeforeMount(async () => {
// 获取当前窗口
const win = window.getCurrent();
isMain.value = win.label === "tauri-genshin";
isMain.value = win.label === "TeyvatGuide";
if (isMain.value) {
const title = "Tauri.Genshin v" + (await app.getVersion()) + " Beta";
const title = "Teyvat Guide v" + (await app.getVersion()) + " Beta";
await win.setTitle(title);
await emojiLoad();
await checkLoad();

View File

@@ -2,7 +2,7 @@
* @file plugins Sqlite index.ts
* @description Sqlite 数据库操作类
* @author BTMuli<bt-muli@outlook.com>
* @since Beta v0.3.0
* @since Beta v0.3.1
*/
// tauri
@@ -27,7 +27,7 @@ class Sqlite {
* @since Alpha v0.2.0
* @private
*/
private readonly dbPath: string = "sqlite:tauri-genshin.db";
private readonly dbPath: string = "sqlite:TeyvatGuide.db";
/**
* @description 数据库包含的表
* @since Alpha v0.2.3

View File

@@ -2,7 +2,7 @@
* @file store modules app.ts
* @description App store module
* @author BTMuli <bt-muli@outlook.com>
* @since Beta v0.3.0
* @since Beta v0.3.1
*/
// vue
@@ -15,7 +15,7 @@ import { path } from "@tauri-apps/api";
// 用于存储用户数据的路径
const userDataDir = `${await path.appLocalDataDir()}userData`;
// 用于存放数据库的路径
const dbDataPath = `${await path.appConfigDir()}tauri-genshin.db`;
const dbDataPath = `${await path.appConfigDir()}TeyvatGuide.db`;
export const useAppStore = defineStore(
"app",