Skip to content

Commit ad9b712

Browse files
committed
v1.1.2
1 parent b79a3fd commit ad9b712

8 files changed

Lines changed: 51 additions & 9 deletions

File tree

Interface Document.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# 2026-01-22 v1.1.1
1+
# 2026-01-23 v1.1.2
22

3-
# Interface Document (v1.1.1)
3+
# Interface Document (v1.1.2)
44

55
This document defines the core interfaces for the NoteConnection system, separating backend processing from frontend visualization.
66

@@ -1006,7 +1006,9 @@ To provide a clearer initial layout, v1.0.1 adjusts the default values and adjus
10061006

10071007
---
10081008

1009-
# 接口文档 (v1.0.1)
1009+
# 2026-01-23 v1.1.2
1010+
1011+
# 接口文档 (v1.1.2)
10101012

10111013
本文档定义了 NoteConnection 系统核心接口,分离了后端处理与前端可视化。
10121014

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2026-01-22 v1.1.1
1+
# 2026-01-23 v1.1.2
22

33
# NoteConnection Knowledge Graph
44

@@ -165,6 +165,7 @@ build_apk.bat
165165
```
166166

167167
This script automatically:
168+
168169
1. Checks your environment (Node, Java, Android SDK).
169170
2. Installs dependencies.
170171
3. Builds web assets.
@@ -265,6 +266,15 @@ For optimal performance with "GPU Optimised Rendering", especially on AMD RDNA c
265266

266267
## 📅 Changelog
267268

269+
### v1.1.2 - Path Resolution & UI Stability (2026-01-23)
270+
271+
- **Backend Protocol Fix**:
272+
- Improved `src/server.ts` to correctly handle URL query parameters (e.g., `?v=timestamp`) for static files.
273+
- Resolves issues where cache-busting URLs would return 404 on Windows.
274+
- **UI Interaction Fix**:
275+
- **Welcome Modal**: Fixed a bug in `welcome.js` where skipping the tutorial would cause the folder selection menu to become unresponsive due to `z-index` clobbering.
276+
- Guaranteed `z-index: 1000` preservation for `#source-control` across all modal dismissal paths.
277+
268278
### v1.1.1 - Mobile Build Automation (2026-01-22)
269279

270280
- **Mobile DevOps**:
@@ -836,6 +846,7 @@ build_apk.bat
836846
```
837847
838848
该脚本会自动:
849+
839850
1. 检查您的环境 (Node, Java, Android SDK)。
840851
2. 安装依赖项。
841852
3. 构建 Web 资源。
@@ -923,6 +934,15 @@ npm start -- --path "E:/Knowledge/ObsidianVault" --no-gpu
923934
924935
## 📅 更新日志 (Changelog)
925936
937+
### v1.1.2 - 路径解析与 UI 稳定性 (2026-01-23)
938+
939+
- **后端协议修复**:
940+
- 改进了 `src/server.ts`,使其能够正确处理静态文件的 URL 查询参数(如 `?v=timestamp`)。
941+
- 解决了 Windows 环境下带缓存刷新参数的 URL 返回 404 的问题。
942+
- **UI 交互修复**:
943+
- **欢迎弹窗**: 修复了 `welcome.js` 中的一个错误,即跳过教程会导致文件夹选择菜单因 `z-index` 被清除而无法响应的问题。
944+
- 确保 `#source-control` 在所有弹窗关闭路径下都能保持 `z-index: 1000`
945+
926946
### v1.1.1 - 移动端构建自动化 (2026-01-22)
927947
928948
- **移动端运维**:

TODO.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 2026-01-23 v1.1.2 - Path Resolution & UI Stability
2+
3+
**Goal**: Resolve static file serving issues on Windows and fix UI unresponsiveness in the Welcome Modal.
4+
5+
- [x] **Backend Fixes**
6+
- [x] **URL Parsing**: Improved `server.ts` to ignore query strings when mapping static files, enabling cache-busting `data.js?v=...` to work correctly.
7+
- [x] **UI Stability**
8+
- [x] **Z-Index Management**: Fixed `welcome.js` to explicitly restore `z-index: 1000` to the folder menu after skipping the tutorial.
9+
110
# 2026-01-22 v1.1.1 - Mobile Build Automation
211

312
**Goal**: Automate the Android APK build process to lower the barrier for mobile deployment.
@@ -1161,6 +1170,15 @@ This document outlines the roadmap for building `NoteConnection`, a system capab
11611170

11621171
---
11631172

1173+
# 2026-01-23 v1.1.2 - 路径解析与 UI 稳定性
1174+
1175+
**目标**: 解决 Windows 上的静态文件服务问题并修复欢迎模态框中的 UI 无响应。
1176+
1177+
- [x] **后端修复**
1178+
- [x] **URL 解析**: 改进了 `server.ts` 以在映射静态文件时忽略查询字符串,使缓存刷新 `data.js?v=...` 能够正常工作。
1179+
- [x] **UI 稳定性**
1180+
- [x] **Z-Index 管理**: 修复了 `welcome.js` 以在跳过教程后显式恢复文件夹菜单的 `z-index: 1000`
1181+
11641182
# 2026-01-22 v1.1.1 - 移动端构建自动化 (Mobile Build Automation)
11651183

11661184
**目标**: 自动化 Android APK 构建流程,降低移动端部署门槛。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "noteconnection",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Hierarchical Knowledge Graph Visualization System",
55
"main": "dist/src/electron/main.js",
66
"bin": {

src/frontend/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"app": {
33
"name": "NoteConnection",
4-
"version": "v1.0.0"
4+
"version": "v1.1.2"
55
},
66
"menu": {
77
"file": {

src/frontend/locales/zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"app": {
33
"name": "NoteConnection",
4-
"version": "v1.0.0"
4+
"version": "v1.1.2"
55
},
66
"menu": {
77
"file": {

src/frontend/welcome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ function showWelcomeModal(hasNodes = false) {
252252
// Remove highlight
253253
if (sourceControl) {
254254
sourceControl.style.boxShadow = '';
255-
sourceControl.style.zIndex = '';
255+
sourceControl.style.zIndex = '1000';
256256
}
257257

258258
// Mark as "seen" or just let them explore?

src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ export const startServer = async (options: { port?: number, targetPath?: string
273273
}
274274

275275
// Serve Static Files
276-
let urlPath = req.url === '/' ? 'index.html' : req.url!;
276+
// v0.9.83 Fix: Strip query parameters (e.g. ?v=123) to verify file existence on disk
277+
const urlObj = new URL(req.url!, `http://${req.headers.host}`);
278+
let urlPath = urlObj.pathname === '/' ? 'index.html' : urlObj.pathname;
277279

278280
// CLI Mode: Serve the specific CLI data file instead of the default data.js
279281
// This ensures the frontend loads the data calculated from the CLI parameters

0 commit comments

Comments
 (0)