[chore] update styles and remove path select tests at launch page
This commit is contained in:
@@ -140,7 +140,7 @@
|
|||||||
"identifier": {
|
"identifier": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",
|
"description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n#### Included permissions within this default permission set:\n",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:default"
|
"const": "fs:default"
|
||||||
},
|
},
|
||||||
@@ -984,6 +984,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:allow-seek"
|
"const": "fs:allow-seek"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the size command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "fs:allow-size"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Enables the stat command without any pre-configured scope.",
|
"description": "Enables the stat command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -1109,6 +1114,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:deny-seek"
|
"const": "fs:deny-seek"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the size command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "fs:deny-size"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Denies the stat command without any pre-configured scope.",
|
"description": "Denies the stat command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -1581,7 +1591,7 @@
|
|||||||
"description": "FS scope entry.",
|
"description": "FS scope entry.",
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"description": "FS scope path.",
|
"description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1591,7 +1601,7 @@
|
|||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"path": {
|
"path": {
|
||||||
"description": "FS scope path.",
|
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1605,7 +1615,7 @@
|
|||||||
"description": "FS scope entry.",
|
"description": "FS scope entry.",
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"description": "FS scope path.",
|
"description": "A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1615,7 +1625,7 @@
|
|||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"path": {
|
"path": {
|
||||||
"description": "FS scope path.",
|
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2719,6 +2729,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:webview:allow-reparent"
|
"const": "core:webview:allow-reparent"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:webview:allow-set-webview-background-color"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Enables the set_webview_focus command without any pre-configured scope.",
|
"description": "Enables the set_webview_focus command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -2799,6 +2814,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:webview:deny-reparent"
|
"const": "core:webview:deny-reparent"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:webview:deny-set-webview-background-color"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Denies the set_webview_focus command without any pre-configured scope.",
|
"description": "Denies the set_webview_focus command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -3014,6 +3034,21 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:window:allow-set-always-on-top"
|
"const": "core:window:allow-set-always-on-top"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the set_background_color command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:allow-set-background-color"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the set_badge_count command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:allow-set-badge-count"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the set_badge_label command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:allow-set-badge-label"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Enables the set_closable command without any pre-configured scope.",
|
"description": "Enables the set_closable command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -3099,6 +3134,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:window:allow-set-minimizable"
|
"const": "core:window:allow-set-minimizable"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:allow-set-overlay-icon"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Enables the set_position command without any pre-configured scope.",
|
"description": "Enables the set_position command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -3359,6 +3399,21 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:window:deny-set-always-on-top"
|
"const": "core:window:deny-set-always-on-top"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the set_background_color command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:deny-set-background-color"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the set_badge_count command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:deny-set-badge-count"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the set_badge_label command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:deny-set-badge-label"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Denies the set_closable command without any pre-configured scope.",
|
"description": "Denies the set_closable command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -3444,6 +3499,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "core:window:deny-set-minimizable"
|
"const": "core:window:deny-set-minimizable"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "core:window:deny-set-overlay-icon"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Denies the set_position command without any pre-configured scope.",
|
"description": "Denies the set_position command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -3595,7 +3655,7 @@
|
|||||||
"const": "dialog:deny-save"
|
"const": "dialog:deny-save"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",
|
"description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n#### Included permissions within this default permission set:\n",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:default"
|
"const": "fs:default"
|
||||||
},
|
},
|
||||||
@@ -4439,6 +4499,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:allow-seek"
|
"const": "fs:allow-seek"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the size command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "fs:allow-size"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Enables the stat command without any pre-configured scope.",
|
"description": "Enables the stat command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -4564,6 +4629,11 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "fs:deny-seek"
|
"const": "fs:deny-seek"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the size command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "fs:deny-size"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Denies the stat command without any pre-configured scope.",
|
"description": "Denies the stat command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -5599,6 +5669,261 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "store:deny-values"
|
"const": "store:deny-values"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "This enables all permissions for system info plugin",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the all_sys_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-all-sys-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the batteries command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-batteries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the components command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-components"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the cpu_count command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-cpu-count"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the cpu_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-cpu-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the cpus command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-cpus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the disks command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-disks"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the execute command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-execute"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the hostname command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-hostname"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the kernel_version command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-kernel-version"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the memory_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-memory-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the name command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the networks command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-networks"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the os_version command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-os-version"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the ping command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-ping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the processes command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-processes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the refresh_all command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-refresh-all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the refresh_cpu command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-refresh-cpu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the refresh_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-refresh-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the refresh_processes command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-refresh-processes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the static_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-static-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the total_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-total-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the total_swap command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-total-swap"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the used_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-used-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the used_swap command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:allow-used-swap"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the all_sys_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-all-sys-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the batteries command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-batteries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the components command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-components"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the cpu_count command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-cpu-count"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the cpu_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-cpu-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the cpus command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-cpus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the disks command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-disks"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the execute command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-execute"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the hostname command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-hostname"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the kernel_version command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-kernel-version"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the memory_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-memory-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the name command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the networks command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-networks"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the os_version command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-os-version"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the ping command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-ping"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the processes command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-processes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the refresh_all command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-refresh-all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the refresh_cpu command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-refresh-cpu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the refresh_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-refresh-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the refresh_processes command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-refresh-processes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the static_info command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-static-info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the total_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-total-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the total_swap command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-total-swap"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the used_memory command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-used-memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the used_swap command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "system-info:deny-used-swap"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "Default permissions for tauri-plugin-valtio.",
|
"description": "Default permissions for tauri-plugin-valtio.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ body {
|
|||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
||||||
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default function RootLayout({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className="bg-[rgba(242, 241, 243, 0.65)] dark:bg-zinc-900">
|
<body className="bg-zinc-100 dark:bg-zinc-900">
|
||||||
<Providers>{children}</Providers>
|
<Providers>{children}</Providers>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,44 +1,46 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { open } from "@tauri-apps/plugin-dialog"
|
import { Button } from "@heroui/react"
|
||||||
|
// import { open } from "@tauri-apps/plugin-dialog"
|
||||||
import { useRouter } from "next/navigation"
|
import { useRouter } from "next/navigation"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [file, setFile] = React.useState<string | null>("")
|
// const [file, setFile] = React.useState<string | null>("")
|
||||||
|
|
||||||
const openFile = async () => {
|
// const openFile = async () => {
|
||||||
const filePath = await open({
|
// const filePath = await open({
|
||||||
multiple: true,
|
// multiple: true,
|
||||||
directory: false,
|
// directory: false,
|
||||||
})
|
// })
|
||||||
|
|
||||||
setFile(filePath?.join("\n") || " ")
|
// setFile(filePath?.join("\n") || " ")
|
||||||
}
|
// }
|
||||||
return (
|
return (
|
||||||
<main
|
<main
|
||||||
className="flex flex-col items-center justify-center w-full h-screen gap-6"
|
className="flex flex-col items-center justify-center w-full h-screen gap-6"
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
>
|
>
|
||||||
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">
|
<h1 className="text-4xl font-bold tracking-wide">
|
||||||
CS 工具箱
|
CS 工具箱
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<Button
|
||||||
type="button"
|
onPress={() => router.push("/home")}
|
||||||
onClick={() => router.push("/home")}
|
variant="solid"
|
||||||
className="px-4 py-1 rounded bg-zinc-200"
|
color="primary"
|
||||||
|
size="sm"
|
||||||
>
|
>
|
||||||
进入
|
进入
|
||||||
</button>
|
</Button>
|
||||||
<button
|
{/* <button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openFile}
|
onClick={openFile}
|
||||||
className="px-4 py-1 text-white bg-blue-500 rounded"
|
className="px-4 py-1 text-white bg-blue-500 rounded"
|
||||||
>
|
>
|
||||||
选择文件
|
选择文件
|
||||||
</button>
|
</button>
|
||||||
<p className="text-center bg-zinc-50">{file}</p>
|
<p className="text-center bg-zinc-50">{file}</p> */}
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,15 @@ interface RoundedButtonProps {
|
|||||||
children?: React.ReactNode
|
children?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
const RoundedButton = ({ children }: RoundedButtonProps) => {
|
const RoundedButton = ({
|
||||||
|
children,
|
||||||
|
...props
|
||||||
|
}: RoundedButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => {
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="flex items-center justify-center px-3 py-1 transition rounded-full select-none min-w-fit active:scale-95 hover:bg-black/10 text-zinc-700 dark:text-zinc-100 bg-black/5"
|
className="flex items-center justify-center px-3 py-1 transition rounded-full select-none min-w-fit active:scale-95 hover:bg-black/10 text-zinc-700 dark:text-zinc-100 bg-black/5"
|
||||||
|
{...props}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
@@ -26,13 +30,13 @@ const CommonDir = () => {
|
|||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<div className="flex gap-1.5">
|
<div className="flex gap-1.5">
|
||||||
<RoundedButton>Steam安装位置</RoundedButton>
|
<RoundedButton onClick={()=> {alert("hello")}}>Steam安装位置</RoundedButton>
|
||||||
<RoundedButton>CS2游戏目录</RoundedButton>
|
<RoundedButton onClick={()=> {}}>CS2游戏目录</RoundedButton>
|
||||||
<RoundedButton>地图文件</RoundedButton>
|
<RoundedButton onClick={()=> {}}>地图文件</RoundedButton>
|
||||||
<RoundedButton>游戏CFG目录</RoundedButton>
|
<RoundedButton onClick={()=> {}}>游戏CFG目录</RoundedButton>
|
||||||
<RoundedButton>个人CFG目录</RoundedButton>
|
<RoundedButton onClick={()=> {}}>个人CFG目录</RoundedButton>
|
||||||
<RoundedButton>完美平台录像</RoundedButton>
|
<RoundedButton onClick={()=> {}}>完美平台录像</RoundedButton>
|
||||||
<RoundedButton>5E平台录像</RoundedButton>
|
<RoundedButton onClick={()=> {}}>5E平台录像</RoundedButton>
|
||||||
</div>
|
</div>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user