Files
note-gen/src-tauri/capabilities/default.json
codexu fc44a77ee8 refactor: 重构界面布局,整合写作与记录页面 (#795)
* feat: 创建自定义 titlebar

* feat: 移除侧边栏,转移至 titlebar

* feat: Windows 支持自定义 titlebar

* feat: 兼容 MacOS

* Add window management and app setup modules for system tray functionality

* feat: Optimize window event handling with platform-specific implementations

* feat: Refactor title bar navigation to use centered tabs layout

* feat: Adjust note sidebar width constraints and remove border styling

* feat: Add sidebar toggle translations and update i18n files across multiple languages

* feat: Implement collapsible sidebar panels with imperative control and size constraints

* feat: Refactor sidebar toolbars by moving action buttons to tab headers and simplifying file/mark sidebars

* feat: Refactor chat interface by moving action buttons from input toolbar to dedicated header and footer sections

* feat: Add fetchMarks call to tag management initialization and update effect dependencies

* feat: Implement persistent sidebar state with localStorage sync and dynamic toggle icons

* feat: Adjust sheet overlay and content positioning to account for 36px title bar height

* feat: Add bottom tooltip positioning to chat header buttons and update footer text styling

* feat: Remove article and record page routes and simplify quick record text handler by eliminating router navigation

* feat: Implement dynamic responsive minimum panel sizes based on window width with resize listener

* feat: Implement responsive toolbar with dynamic button visibility based on editor width using ResizeObserver

* feat: Add toggle functionality to settings button with dynamic icon and tooltip switching between settings and back states

* feat: Replace search button with centered search input in title bar displaying active filename or placeholder text

* feat: Add persistent left sidebar tab state with localStorage sync and automatic tab switching in search dialog navigation
2025-12-12 10:51:48 +08:00

129 lines
2.5 KiB
JSON

{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": [
"main",
"screenshot"
],
"permissions": [
"core:default",
"shell:allow-open",
"sql:default",
"sql:allow-load",
"sql:allow-execute",
"sql:allow-select",
"sql:allow-close",
"store:default",
"store:allow-get",
"store:allow-set",
"store:allow-save",
"store:allow-load",
"fs:default",
{
"identifier": "fs:scope",
"allow": [
{
"path": "$APPDATA"
},
{
"path": "$APPDATA/**"
},
{
"path": "**"
}
]
},
{
"identifier": "fs:read-all",
"allow": [
{
"path": "**"
}
]
},
"fs:allow-exists",
{
"identifier": "fs:allow-mkdir",
"allow": [
{
"path": "**"
}
]
},
{
"identifier": "fs:write-files",
"allow": [
{
"path": "**"
}
]
},
{
"identifier": "fs:read-dirs",
"allow": [
{
"path": "**"
}
]
},
{
"identifier": "fs:read-files",
"allow": [
{
"path": "**"
}
]
},
"fs:write-all",
"core:webview:default",
"core:webview:allow-create-webview-window",
"core:webview:allow-webview-show",
"core:webview:allow-webview-hide",
"core:window:default",
"core:window:allow-close",
"core:window:allow-maximize",
"core:window:allow-minimize",
"core:window:allow-unmaximize",
"core:window:allow-set-focus",
"core:window:allow-set-size",
"core:window:allow-set-position",
"core:window:allow-hide",
"core:window:allow-show",
"core:window:allow-destroy",
"core:path:allow-resolve-directory",
"shell:default",
"core:app:allow-default-window-icon",
"core:window:allow-unminimize",
"core:window:allow-start-dragging",
"core:window:allow-toggle-maximize",
{
"identifier": "http:allow-fetch",
"allow": [
{
"url": "http://**"
},
{
"url": "https://**"
},
{
"url": "http://*:*"
},
{
"url": "https://*:*"
}
]
},
"os:default",
"dialog:default",
"http:default",
{
"identifier": "opener:allow-open-path",
"allow": [
{
"path": "**"
}
]
}
]
}