Skip to content

Commit

Permalink
upgrade: v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Sep 22, 2024
1 parent c5d8355 commit 63a86b8
Show file tree
Hide file tree
Showing 21 changed files with 6,420 additions and 9,432 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-21ad2b1333-8.zip
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-2882183fbf-8.zip
Binary file not shown.
356 changes: 244 additions & 112 deletions src-tauri/Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ members = [
]

[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }
tauri-build = { version = "2.0.0-rc.0", features = [] }

[dependencies]
systemicons = { path = "./ws-systemicons" }
chrono = { version = "0.4.23", features = ["serde"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-beta", features = ["tray-icon", "devtools"] }
tauri = { version = "2.0.0-rc.0", features = ["tray-icon", "devtools"] }
sysinfo = "0.30.12"


Expand All @@ -35,7 +35,7 @@ fs_extra = "1.3.0"
base64 = "0.22.1"
# surrealdb = { version = "1.5.2", features = ["kv-speedb"] }
anyhow = "1.0.86"
tauri-plugin-os = "2.0.0-beta.6"
tauri-plugin-os = "2.0.0-rc.0"


[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
Expand Down Expand Up @@ -68,7 +68,7 @@ features = ["winerror"]

[lib]
name = "app_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
crate-type = ["staticlib", "cdylib", "rlib", "lib"]

[features]
default = [ "custom-protocol" ]
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/capabilities/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"os:allow-hostname",
"os:allow-os-type",
"os:allow-platform",
"window:allow-start-dragging",
"core:window:allow-start-dragging",
"autostart:allow-enable",
"autostart:allow-disable",
"autostart:allow-is-enabled",
Expand All @@ -22,8 +22,8 @@
"log:allow-log",
"log:default",
"shell:allow-spawn",
"menu:allow-new",
"menu:allow-popup",
"core:menu:allow-new",
"core:menu:allow-popup",
{
"identifier": "shell:allow-execute",
"allow": [
Expand Down
14 changes: 7 additions & 7 deletions src-tauri/capabilities/migrated.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"main"
],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default"
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default"
]
}
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"main":{"identifier":"main","description":"permissions for pachtop","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","os:allow-arch","os:allow-hostname","os:allow-os-type","os:allow-platform","window:allow-start-dragging","autostart:allow-enable","autostart:allow-disable","autostart:allow-is-enabled","updater:allow-check","updater:default","log:allow-log","log:default","shell:allow-spawn","menu:allow-new","menu:allow-popup",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"powershell","name":"powershell"}]},"fs:read-all","fs:read-files","fs:read-meta"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default"]}}
{"main":{"identifier":"main","description":"permissions for pachtop","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","os:allow-arch","os:allow-hostname","os:allow-os-type","os:allow-platform","core:window:allow-start-dragging","autostart:allow-enable","autostart:allow-disable","autostart:allow-is-enabled","updater:allow-check","updater:default","log:allow-log","log:default","shell:allow-spawn","core:menu:allow-new","core:menu:allow-popup",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"powershell","name":"powershell"}]},"fs:read-all","fs:read-files","fs:read-meta"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default"]}}
7,747 changes: 2,979 additions & 4,768 deletions src-tauri/gen/schemas/desktop-schema.json

Large diffs are not rendered by default.

7,627 changes: 3,136 additions & 4,491 deletions src-tauri/gen/schemas/macOS-schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/providers/platform.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useEffectAsync from "@/hooks/useEffectAsync";
import useIsFirstRun from "@/hooks/useIsFirstRun";
import { streams } from "@/lib";
import store from "@/lib/store";
import { getCurrentWindow as appWindow } from "@tauri-apps/api/window";
import { getCurrentWindow as appWindow } from "webviewWindow";

Check failure on line 8 in src/providers/platform.provider.tsx

View workflow job for this annotation

GitHub Actions / test-tauri (macos-latest, --target universal-apple-darwin)

Cannot find module 'webviewWindow' or its corresponding type declarations.

Check failure on line 8 in src/providers/platform.provider.tsx

View workflow job for this annotation

GitHub Actions / test-tauri (macos-latest, --target aarch64-apple-darwin)

Cannot find module 'webviewWindow' or its corresponding type declarations.

Check failure on line 8 in src/providers/platform.provider.tsx

View workflow job for this annotation

GitHub Actions / test-tauri (macos-latest, --target x86_64-apple-darwin)

Cannot find module 'webviewWindow' or its corresponding type declarations.

Check failure on line 8 in src/providers/platform.provider.tsx

View workflow job for this annotation

GitHub Actions / test-tauri (ubuntu-22.04)

Cannot find module 'webviewWindow' or its corresponding type declarations.

Check failure on line 8 in src/providers/platform.provider.tsx

View workflow job for this annotation

GitHub Actions / test-tauri (windows-latest)

Cannot find module 'webviewWindow' or its corresponding type declarations.
import { Platform, platform as obtainPlatform } from "@tauri-apps/plugin-os";

interface PlatformProviderProps {
Expand Down
88 changes: 44 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3102,90 +3102,90 @@ __metadata:
languageName: node
linkType: hard

"@tauri-apps/cli-darwin-arm64@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-darwin-arm64@npm:2.0.0-beta.20"
"@tauri-apps/cli-darwin-arm64@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-darwin-arm64@npm:2.0.0-rc.16"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@tauri-apps/cli-darwin-x64@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-darwin-x64@npm:2.0.0-beta.20"
"@tauri-apps/cli-darwin-x64@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-darwin-x64@npm:2.0.0-rc.16"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@tauri-apps/cli-linux-arm-gnueabihf@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-linux-arm-gnueabihf@npm:2.0.0-beta.20"
"@tauri-apps/cli-linux-arm-gnueabihf@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-linux-arm-gnueabihf@npm:2.0.0-rc.16"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@tauri-apps/cli-linux-arm64-gnu@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-linux-arm64-gnu@npm:2.0.0-beta.20"
"@tauri-apps/cli-linux-arm64-gnu@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-linux-arm64-gnu@npm:2.0.0-rc.16"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@tauri-apps/cli-linux-arm64-musl@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-linux-arm64-musl@npm:2.0.0-beta.20"
"@tauri-apps/cli-linux-arm64-musl@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-linux-arm64-musl@npm:2.0.0-rc.16"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@tauri-apps/cli-linux-x64-gnu@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-linux-x64-gnu@npm:2.0.0-beta.20"
"@tauri-apps/cli-linux-x64-gnu@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-linux-x64-gnu@npm:2.0.0-rc.16"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@tauri-apps/cli-linux-x64-musl@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-linux-x64-musl@npm:2.0.0-beta.20"
"@tauri-apps/cli-linux-x64-musl@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-linux-x64-musl@npm:2.0.0-rc.16"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@tauri-apps/cli-win32-arm64-msvc@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-win32-arm64-msvc@npm:2.0.0-beta.20"
"@tauri-apps/cli-win32-arm64-msvc@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-win32-arm64-msvc@npm:2.0.0-rc.16"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@tauri-apps/cli-win32-ia32-msvc@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-win32-ia32-msvc@npm:2.0.0-beta.20"
"@tauri-apps/cli-win32-ia32-msvc@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-win32-ia32-msvc@npm:2.0.0-rc.16"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@tauri-apps/cli-win32-x64-msvc@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli-win32-x64-msvc@npm:2.0.0-beta.20"
"@tauri-apps/cli-win32-x64-msvc@npm:2.0.0-rc.16":
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli-win32-x64-msvc@npm:2.0.0-rc.16"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@tauri-apps/cli@npm:next":
version: 2.0.0-beta.20
resolution: "@tauri-apps/cli@npm:2.0.0-beta.20"
dependencies:
"@tauri-apps/cli-darwin-arm64": 2.0.0-beta.20
"@tauri-apps/cli-darwin-x64": 2.0.0-beta.20
"@tauri-apps/cli-linux-arm-gnueabihf": 2.0.0-beta.20
"@tauri-apps/cli-linux-arm64-gnu": 2.0.0-beta.20
"@tauri-apps/cli-linux-arm64-musl": 2.0.0-beta.20
"@tauri-apps/cli-linux-x64-gnu": 2.0.0-beta.20
"@tauri-apps/cli-linux-x64-musl": 2.0.0-beta.20
"@tauri-apps/cli-win32-arm64-msvc": 2.0.0-beta.20
"@tauri-apps/cli-win32-ia32-msvc": 2.0.0-beta.20
"@tauri-apps/cli-win32-x64-msvc": 2.0.0-beta.20
version: 2.0.0-rc.16
resolution: "@tauri-apps/cli@npm:2.0.0-rc.16"
dependencies:
"@tauri-apps/cli-darwin-arm64": 2.0.0-rc.16
"@tauri-apps/cli-darwin-x64": 2.0.0-rc.16
"@tauri-apps/cli-linux-arm-gnueabihf": 2.0.0-rc.16
"@tauri-apps/cli-linux-arm64-gnu": 2.0.0-rc.16
"@tauri-apps/cli-linux-arm64-musl": 2.0.0-rc.16
"@tauri-apps/cli-linux-x64-gnu": 2.0.0-rc.16
"@tauri-apps/cli-linux-x64-musl": 2.0.0-rc.16
"@tauri-apps/cli-win32-arm64-msvc": 2.0.0-rc.16
"@tauri-apps/cli-win32-ia32-msvc": 2.0.0-rc.16
"@tauri-apps/cli-win32-x64-msvc": 2.0.0-rc.16
dependenciesMeta:
"@tauri-apps/cli-darwin-arm64":
optional: true
Expand All @@ -3209,7 +3209,7 @@ __metadata:
optional: true
bin:
tauri: tauri.js
checksum: 7ad75a62adf12f0176fe02bef38150a64d8faeee2d242ae39d9b61b69c6c83165716f2b5762dbb343fce5bcdd41f10234ecfe2366928cd8fc53f448a3a6c0c31
checksum: fa38580785b08bd83e8c041ddfc04f3fa2e4f5b26913866275cd2c2818df67bbebd69e09b7aefc2106add1af5edc790b4f8af51df136a475703d5c99b118f826
languageName: node
linkType: hard

Expand Down

0 comments on commit 63a86b8

Please sign in to comment.