[feat] basic system info with tauri plugin

This commit is contained in:
Purp1e
2025-03-13 03:41:21 +08:00
parent 103e700a17
commit cb8eddf1af
14 changed files with 742 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["global-shortcut:default","store:default","store:allow-set","store:allow-get-store","store:allow-has","store:allow-delete","store:allow-clear","store:allow-values","store:allow-save","store:allow-load","store:allow-reset","store:allow-entries"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-read-file","fs:allow-write-file","fs:allow-read-dir","fs:allow-copy-file","fs:allow-mkdir","fs:allow-remove","fs:allow-remove","fs:allow-rename","fs:allow-exists","core:window:allow-create","core:window:allow-center","core:window:allow-request-user-attention","core:window:allow-set-resizable","core:window:allow-set-maximizable","core:window:allow-set-minimizable","core:window:allow-set-closable","core:window:allow-set-title","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-minimize","core:window:allow-unminimize","core:window:allow-show","core:window:allow-hide","core:window:allow-close","core:window:allow-set-decorations","core:window:allow-set-always-on-top","core:window:allow-set-content-protected","core:window:allow-set-size","core:window:allow-set-min-size","core:window:allow-set-max-size","core:window:allow-set-position","core:window:allow-set-fullscreen","core:window:allow-set-focus","core:window:allow-set-icon","core:window:allow-set-skip-taskbar","core:window:allow-set-cursor-grab","core:window:allow-set-cursor-visible","core:window:allow-set-cursor-icon","core:window:allow-set-cursor-position","core:window:allow-set-ignore-cursor-events","core:window:allow-start-dragging","core:webview:allow-print","shell:allow-execute","shell:allow-open","dialog:allow-open","dialog:allow-save","dialog:allow-message","dialog:allow-ask","dialog:allow-confirm","http:default","notification:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-register-all","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","os:allow-platform","os:allow-version","os:allow-os-type","os:allow-family","os:allow-arch","os:allow-exe-extension","os:allow-locale","os:allow-hostname","process:allow-restart","process:allow-exit","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text","core:app:allow-app-show","core:app:allow-app-hide","process:default","fs:default","dialog:default","os:default","clipboard-manager:default"]},"valtio":{"identifier":"valtio","description":"","local":true,"windows":["*"],"permissions":["valtio:default","core:event:default"]}}
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["global-shortcut:default","store:default","store:allow-set","store:allow-get-store","store:allow-has","store:allow-delete","store:allow-clear","store:allow-values","store:allow-save","store:allow-load","store:allow-reset","store:allow-entries"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-read-file","fs:allow-write-file","fs:allow-read-dir","fs:allow-copy-file","fs:allow-mkdir","fs:allow-remove","fs:allow-remove","fs:allow-rename","fs:allow-exists","core:window:allow-create","core:window:allow-center","core:window:allow-request-user-attention","core:window:allow-set-resizable","core:window:allow-set-maximizable","core:window:allow-set-minimizable","core:window:allow-set-closable","core:window:allow-set-title","core:window:allow-maximize","core:window:allow-unmaximize","core:window:allow-minimize","core:window:allow-unminimize","core:window:allow-show","core:window:allow-hide","core:window:allow-close","core:window:allow-set-decorations","core:window:allow-set-always-on-top","core:window:allow-set-content-protected","core:window:allow-set-size","core:window:allow-set-min-size","core:window:allow-set-max-size","core:window:allow-set-position","core:window:allow-set-fullscreen","core:window:allow-set-focus","core:window:allow-set-icon","core:window:allow-set-skip-taskbar","core:window:allow-set-cursor-grab","core:window:allow-set-cursor-visible","core:window:allow-set-cursor-icon","core:window:allow-set-cursor-position","core:window:allow-set-ignore-cursor-events","core:window:allow-start-dragging","core:webview:allow-print","shell:allow-execute","shell:allow-open","dialog:allow-open","dialog:allow-save","dialog:allow-message","dialog:allow-ask","dialog:allow-confirm","http:default","notification:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-register-all","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","os:allow-platform","os:allow-version","os:allow-os-type","os:allow-family","os:allow-arch","os:allow-exe-extension","os:allow-locale","os:allow-hostname","process:allow-restart","process:allow-exit","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text","core:app:allow-app-show","core:app:allow-app-hide","process:default","fs:default","dialog:default","os:default","clipboard-manager:default"]},"system-info":{"identifier":"system-info","description":"","local":true,"windows":["*"],"permissions":["system-info:allow-all"]},"valtio":{"identifier":"valtio","description":"","local":true,"windows":["*"],"permissions":["valtio:default","core:event:default"]}}

View File

@@ -5669,6 +5669,261 @@
"type": "string",
"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.",
"type": "string",

View File

@@ -5669,6 +5669,261 @@
"type": "string",
"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.",
"type": "string",