编辑器模块(笔记)初版
This commit is contained in:
1 parent
7e65825d3e
commit
ad987111a3
66 files changed
+17470
-283
No files matched your search
@@ -27,6 +27,8 @@ export const WINDOWS = {
|
||||
* 时,webview 仍可正常加载与交互,只是拿不到 IPC)。
|
||||
*/
|
||||
dshWeb: 'dsh-web',
|
||||
/** 笔记独立窗口前缀,实际 label = `${notesWindow}-<n>`(可多开) */
|
||||
notesWindow: 'notes-window',
|
||||
} as const
|
||||
|
||||
/** Tauri 事件名(前端 emit / listen 与 Rust constants::events 对应) */
|
||||
@@ -147,6 +149,20 @@ export const EVENTS = {
|
||||
dshServerState: 'dsh-server-state',
|
||||
/** 全局快捷键按下:打开 dsh 独立窗口(无负载) */
|
||||
dshOpenWindow: 'dsh-open-window',
|
||||
/** 笔记:设置已保存(无负载)。各窗口据此重读设置,实现跨窗口同步 */
|
||||
notesSettings: 'notes-settings',
|
||||
/** 笔记:库内容已变更(新建/保存/重命名/删除/切换库根,无负载) */
|
||||
notesLibraryChanged: 'notes-library-changed',
|
||||
/** 笔记:库内文件在应用外被改动(负载见 src/types/notes.ts 的 NoteFileEvent) */
|
||||
notesFileChanged: 'notes-file-changed',
|
||||
/** 笔记:WebDAV 同步进度(负载见 src/types/notes.ts 的 SyncProgress) */
|
||||
notesSyncProgress: 'notes-sync-progress',
|
||||
/** 笔记:全局快捷键「新建笔记」被按下(无负载;主窗口据此打开新建对话框) */
|
||||
notesNewNote: 'notes-new-note',
|
||||
/** 笔记:全局快捷键「打开编辑器」被按下(无负载) */
|
||||
notesOpenEditor: 'notes-open-editor',
|
||||
/** 笔记:需要打开一个磁盘文件(负载 `{ path }`;来自文件关联 / 命令行) */
|
||||
notesOpenFile: 'notes-open-file',
|
||||
} as const
|
||||
|
||||
/** localStorage 存储键 */
|
||||
@@ -172,4 +188,6 @@ export const STORAGE_KEYS = {
|
||||
monitorOverviewCards: 'thing_monitor_overview_cards',
|
||||
screenshotHistory: 'thing_screenshot_history',
|
||||
screenshotPinIndex: 'thing_screenshot_pin_index',
|
||||
/** 笔记模块:最近打开(`{ relPath, name, at }[]`) */
|
||||
notesRecent: 'thing_notes_recent',
|
||||
} as const
|
||||
Reference in new issue
Block a user