mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
Description of Changes Adds folder kinds so the file manager can work with real directories on disk. Desktop - New folder is now a menu with two options: "Add local folder" and "New folder on the server". - Add local folder opens the native picker and mounts a directory. Files are listed straight from disk, nothing is copied in. - Subfolders show inside a mount and open like any folder. New folder inside a mount creates a real directory on disk. - Moving, dropping or uploading files into a mount writes them to the directory. The app copy is only removed after the write succeeds. Name clashes get a " (2)" suffix. - Mounted files get thumbnails. - Adding the same directory twice just returns the existing mount. - Removing a mount never touches the disk. - The server option is disabled in local mode with a sign in message. Web + desktop - Uploading or dropping files while inside a folder puts them in that folder instead of Local. - Files can be dragged onto folders in the grid and the tree to move them. - Folders show an origin badge (cloud or local). - The Local view now means files that are not in any folder. Follow ups for a future pr - Mount listing cap: large directories currently show the 500 most recent files with no notice. Will be removed as part of the virtualisation/performance PR. - Folders within folders need to be supported - Symlinks in mounts: currently not listed. Behaviour to be decided alongside the wider folder work.
81 lines
2.2 KiB
JSON
81 lines
2.2 KiB
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "enables the default permissions",
|
|
"windows": ["main", "main-*"],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:window:allow-destroy",
|
|
"http:default",
|
|
{
|
|
"identifier": "http:allow-fetch",
|
|
"allow": [
|
|
{ "url": "http://*" },
|
|
{ "url": "http://*:*" },
|
|
{ "url": "https://*" },
|
|
{ "url": "https://*:*" },
|
|
{ "url": "http://192.168.*.*" },
|
|
{ "url": "http://192.168.*.*:*" },
|
|
{ "url": "https://192.168.*.*" },
|
|
{ "url": "https://192.168.*.*:*" },
|
|
{ "url": "http://10.*.*.*" },
|
|
{ "url": "http://10.*.*.*:*" },
|
|
{ "url": "https://10.*.*.*" },
|
|
{ "url": "https://10.*.*.*:*" },
|
|
{ "url": "http://172.16.*.*" },
|
|
{ "url": "http://172.16.*.*:*" },
|
|
{ "url": "https://172.16.*.*" },
|
|
{ "url": "https://172.16.*.*:*" },
|
|
{ "url": "http://localhost:*" },
|
|
{ "url": "https://localhost:*" },
|
|
{ "url": "http://127.0.0.1:*" },
|
|
{ "url": "https://127.0.0.1:*" }
|
|
]
|
|
},
|
|
"http:allow-fetch-cancel",
|
|
"http:allow-fetch-read-body",
|
|
"http:allow-fetch-send",
|
|
{
|
|
"identifier": "fs:allow-read-file",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-read-dir",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-stat",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-mkdir",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-write-file",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-remove",
|
|
"allow": [{ "path": "**" }]
|
|
},
|
|
"dialog:default",
|
|
"dialog:allow-message",
|
|
"dialog:allow-open",
|
|
"dialog:allow-save",
|
|
"opener:default",
|
|
"shell:allow-open",
|
|
"notification:allow-notify",
|
|
"notification:allow-request-permission",
|
|
"notification:allow-is-permission-granted",
|
|
"window-state:allow-filename",
|
|
"window-state:allow-restore-state",
|
|
"window-state:allow-save-window-state",
|
|
"updater:default",
|
|
"updater:allow-check",
|
|
"updater:allow-download",
|
|
"updater:allow-download-and-install",
|
|
"updater:allow-install"
|
|
]
|
|
}
|