Skip to content

Commit 7de6a07

Browse files
committed
2 parents 1c1a800 + 70b3b2a commit 7de6a07

File tree

7 files changed

+29
-139
lines changed

7 files changed

+29
-139
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ jobs:
229229
LR_GITHUB_CLIENT_SECRET: ${{ secrets.ENV_GITHUB_CLIENT_SECRET }}
230230
LR_ARK_API_KEY: ${{ secrets.ENV_ARK_API_KEY }}
231231
LR_CF_API_KEY: ${{ secrets.LR_CF_API_KEY }}
232-
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
233-
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
234232

235233
- name: rename apk file
236234
run: |

docs/.vitepress/config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ export default defineConfig({
127127
quote: "若不改航向,持续寻觅,终将抵达彼岸。",
128128
linkText: "返回主页",
129129
},
130+
sidebarMenuLabel: "导航",
131+
darkModeSwitchLabel: "主题",
132+
docFooter: {
133+
prev: "上一页",
134+
next: "下一页",
135+
},
130136
},
131137
sitemap: {
132138
hostname: "https://project-graph.top",
@@ -135,6 +141,8 @@ export default defineConfig({
135141
image: {
136142
lazyLoading: true,
137143
},
144+
codeCopyButtonTitle: "复制",
145+
linkify: true,
138146
},
139147
lastUpdated: true,
140148
cleanUrls: true,
@@ -148,4 +156,5 @@ export default defineConfig({
148156
},
149157
],
150158
],
159+
lang: "zh-CN",
151160
});

docs/.vitepress/theme/custom.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
2828
--vp-font-family-base: "Misans", -apple-system, system-ui, sans-serif;
2929

3030
// 透明侧边栏
31-
--vp-sidebar-bg-color: transparent;
31+
--vp-sidebar-bg-color: #fff;
3232

3333
// 自定义配色
3434
--vp-c-bg: #ffffff;
@@ -43,6 +43,7 @@ $ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
4343
--vp-button-alt-active-bg: var(--vp-button-alt-bg);
4444

4545
&.dark {
46+
--vp-sidebar-bg-color: #000;
4647
--vp-c-bg: #000;
4748
--vp-c-bg-alt: #090909;
4849
--vp-c-bg-elv: #090909;

src-tauri/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ pub fn run() {
6363
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
6464

6565
tauri::Builder::default()
66-
.plugin(tauri_plugin_process::init())
67-
.plugin(tauri_plugin_updater::Builder::new().build())
6866
.plugin(tauri_plugin_store::Builder::new().build())
6967
.plugin(tauri_plugin_http::init())
7068
.plugin(tauri_plugin_dialog::init())
@@ -78,7 +76,12 @@ pub fn run() {
7876
window.open_devtools();
7977
}
8078
#[cfg(desktop)]
81-
app.handle().plugin(tauri_plugin_cli::init())?;
79+
{
80+
app.handle().plugin(tauri_plugin_cli::init())?;
81+
app.handle().plugin(tauri_plugin_process::init())?;
82+
app.handle()
83+
.plugin(tauri_plugin_updater::Builder::new().build())?;
84+
}
8285
Ok(())
8386
})
8487
.invoke_handler(tauri::generate_handler![

src/assets/versions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,15 @@
2323
"version": "1.2",
2424
"name": "2025年新纪元",
2525
"name_en": "The Great River"
26+
},
27+
{
28+
"version": "1.3",
29+
"name": "寰宇重塑之业",
30+
"name_en": "Cosmic Reform"
31+
},
32+
{
33+
"version": "1.4",
34+
"name": "星河跃迁之旅",
35+
"name_en": "Stellar Journey"
2636
}
2737
]

src/core/controller/ControllerGamepad.tsx

Lines changed: 0 additions & 123 deletions
This file was deleted.

src/core/stage/Stage.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { family } from "@tauri-apps/plugin-os";
33
import { Serialized } from "../../types/node";
44
import { PathString } from "../../utils/pathString";
55
import { Controller } from "../controller/Controller";
6-
import { ControllerGamepad } from "../controller/ControllerGamepad";
76
import { Line } from "../dataStruct/shape/Line";
87
import { Rectangle } from "../dataStruct/shape/Rectangle";
98
import { Vector } from "../dataStruct/Vector";
@@ -14,11 +13,11 @@ import { Edge } from "../stageObject/association/Edge";
1413
import { Section } from "../stageObject/entity/Section";
1514
import { TextNode } from "../stageObject/entity/TextNode";
1615
import { ConnectableEntity, Entity } from "../stageObject/StageObject";
16+
import { autoComputeEngineTick } from "./autoComputeEngine/mainTick";
17+
import { autoLayoutMainTick } from "./autoLayoutEngine/mainTick";
1718
import { StageDumper } from "./StageDumper";
1819
import { StageManager } from "./stageManager/StageManager";
1920
import { StageSaveManager } from "./StageSaveManager";
20-
import { autoComputeEngineTick } from "./autoComputeEngine/mainTick";
21-
import { autoLayoutMainTick } from "./autoLayoutEngine/mainTick";
2221
/**
2322
* 舞台对象
2423
* 更广义的舞台,
@@ -195,8 +194,6 @@ export namespace Stage {
195194
// eslint-disable-next-line prefer-const
196195
export let draggingLocation = Vector.getZero();
197196

198-
let controllerGamepad: ControllerGamepad | null = null;
199-
200197
/**
201198
* 自动保存是否处于暂停状态
202199
* 主要用于防止自动保存出bug,产生覆盖文件的问题
@@ -237,10 +234,6 @@ export namespace Stage {
237234
// 清理过时特效
238235
effects = effects.filter((effect) => !effect.timeProgress.isFull);
239236

240-
if (controllerGamepad) {
241-
controllerGamepad.tick();
242-
}
243-
244237
// 计算引擎
245238
autoComputeEngineTick();
246239
// 自动布局
@@ -283,7 +276,6 @@ export namespace Stage {
283276
Settings.watch("enableDragAutoAlign", (value) => {
284277
enableDragAutoAlign = value;
285278
});
286-
controllerGamepad = new ControllerGamepad();
287279
}
288280

289281
// private

0 commit comments

Comments
 (0)