完善功能

This commit is contained in:
2026-07-21 18:49:30 +08:00
parent abd9f2912f
commit 63d1f0b729
59 changed files with 93 additions and 4 deletions

View File

@@ -64,5 +64,11 @@
"userTurns": 3,
"basisHash": "de6e56c00454cedd",
"updatedAt": 1784540365461
},
"topic_20260720-095943_8dd2c8de3f143692": {
"stage": 1,
"userTurns": 1,
"basisHash": "b2acebe8a17318f4",
"updatedAt": 1784541735771
}
}

View File

@@ -1,3 +1,4 @@
{
"topic_20260707-131941_481a70d2be9881dd": 1783430381000
"topic_20260707-131941_481a70d2be9881dd": 1783430381000,
"topic_20260720-095943_8dd2c8de3f143692": 1784541583642
}

View File

@@ -49,5 +49,6 @@
"topic_20260710-034724_3c6fb29d8d0a4119": "auto",
"topic_20260710-054543_5e7c427932aecd7b": "auto",
"topic_20260710-063053_353d579222d3b70b": "auto",
"topic_20260710-090003_60717bd90da5ec68": "auto"
"topic_20260710-090003_60717bd90da5ec68": "auto",
"topic_20260720-095943_8dd2c8de3f143692": "auto"
}

View File

@@ -50,5 +50,6 @@
"topic_20260710-034724_3c6fb29d8d0a4119": "目录树中鼠标悬浮弹框dropmenu…",
"topic_20260710-054543_5e7c427932aecd7b": "现在在markdown的编辑区域中…",
"topic_20260710-063053_353d579222d3b70b": "这个应用里有一个全局搜索的功能,帮我…",
"topic_20260710-090003_60717bd90da5ec68": "D:\\code\\yurou\\src…"
"topic_20260710-090003_60717bd90da5ec68": "D:\\code\\yurou\\src…",
"topic_20260720-095943_8dd2c8de3f143692": "帮我调整一下项目的logo用D…"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 974 B

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src-tauri/icons/64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 903 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@color/ic_launcher_background"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#fff</color>
</resources>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

53
src-tauri/nsis-hooks.nsh Normal file
View File

@@ -0,0 +1,53 @@
; NSIS installer hooks for yurou
; Override file association DefaultIcon to use custom file icon (yurou-sys.png → file-icon.ico)
!macro NSIS_HOOK_POSTINSTALL
; Read the file class (ProgID) registered by Tauri's APP_ASSOCIATE,
; then overwrite its DefaultIcon to point to our custom file-icon.ico
; instead of the application exe icon.
;
; This repeats for every extension we registered.
; If the extension was not associated (backup value is empty) we skip it.
!define YUROU_FILE_ICON '"$INSTDIR\file-icon.ico"'
; .md
ReadRegStr $0 SHCTX "Software\Classes\.md" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
; .markdown
ReadRegStr $0 SHCTX "Software\Classes\.markdown" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
; .mdown
ReadRegStr $0 SHCTX "Software\Classes\.mdown" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
; .mkdn
ReadRegStr $0 SHCTX "Software\Classes\.mkdn" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
; .mkd
ReadRegStr $0 SHCTX "Software\Classes\.mkd" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
; .mdwn
ReadRegStr $0 SHCTX "Software\Classes\.mdwn" ""
StrCmp $0 "" +2 +1
WriteRegStr SHCTX "Software\Classes\$0\DefaultIcon" "" ${YUROU_FILE_ICON}
!undef YUROU_FILE_ICON
; Notify Windows shell about the association change
System::Call "shell32::SHChangeNotify(i,i,i,i) (0x08000000, 0x1000, 0, 0)"
!macroend
!macro NSIS_HOOK_PREUNINSTALL
; Cleanup is handled automatically by APP_UNASSOCIATE which deletes the
; entire ProgID key — our custom DefaultIcon is removed along with it.
!macroend

View File

@@ -34,10 +34,28 @@
"targets": ["nsis"],
"icon": [
"icons/32x32.png",
"icons/64x64.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
],
"resources": {
"icons/file-icon.ico": "file-icon.ico"
},
"fileAssociations": [
{
"ext": ["md", "markdown", "mdown", "mkdn", "mkd", "mdwn"],
"name": "Markdown",
"description": "Markdown Document",
"role": "Editor",
"mimeType": "text/markdown"
}
],
"windows": {
"nsis": {
"installerHooks": "nsis-hooks.nsh"
}
}
}
}