Update imports to use the 'custom' UI module and bump package version to 0.0.6

This commit is contained in:
Huakun Shen 2025-02-07 00:23:23 -05:00
parent ee0a96f86f
commit d14e17eb3d
No known key found for this signature in database
5 changed files with 150 additions and 33 deletions

View File

@ -3,7 +3,7 @@
"name": "kunkun-ext-disk-speed",
"license": "MIT",
"repository": "https://github.com/kunkunsh/kunkun-ext-disk-speed",
"version": "0.0.5",
"version": "0.0.6",
"type": "module",
"kunkun": {
"name": "Disk Speed",
@ -63,7 +63,7 @@
},
"dependencies": {
"@iconify/svelte": "^4.0.2",
"@kksh/api": "^0.0.52",
"@kksh/api": "^0.1.1",
"@kksh/svelte": "0.1.7",
"bits-ui": "^0.21.16",
"clsx": "^2.1.1",

173
pnpm-lock.yaml generated
View File

@ -12,8 +12,8 @@ importers:
specifier: ^4.0.2
version: 4.0.2(svelte@5.1.4)
'@kksh/api':
specifier: ^0.0.52
version: 0.0.52(axios@1.7.9)(svelte@5.1.4)(typescript@5.6.3)
specifier: ^0.1.1
version: 0.1.1(axios@1.7.9)(svelte@5.1.4)(typescript@5.6.3)
'@kksh/svelte':
specifier: 0.1.7
version: 0.1.7(@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.10(@types/node@20.12.14)))(svelte@5.1.4)(vite@5.4.10(@types/node@20.12.14)))(@types/json-schema@7.0.15)(svelte@5.1.4)(tailwindcss@3.4.14)(typescript@5.6.3)
@ -525,8 +525,8 @@ packages:
'@jsdevtools/ono@7.1.3':
resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==}
'@kksh/api@0.0.52':
resolution: {integrity: sha512-ss1cGJaO58iGkUcuBCcKCaepX4iquf+78VT8wh0l409proGgN68cTPpSPECuK9r3BrqnIocTOtn9nDtfHdxj+A==}
'@kksh/api@0.1.1':
resolution: {integrity: sha512-/9JLyOSAK4/dZ74LKzbqJ8LRT0otwtecS+I/k1Bs25m+DfYX8ONaWUwuwc5yufus6vqNbfAF/PHOCEs0aAE39A==}
'@kksh/svelte@0.1.7':
resolution: {integrity: sha512-1kHdPHqY9R/mdhi/2IFovnxXaf3RhPENaIoMpvzKzwZLrx18PRCDzdDe1LHaAUkq0lWsEKvI4dJBLVYJXtyMLw==}
@ -553,6 +553,58 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
'@octokit/auth-token@5.1.2':
resolution: {integrity: sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==}
engines: {node: '>= 18'}
'@octokit/core@6.1.3':
resolution: {integrity: sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==}
engines: {node: '>= 18'}
'@octokit/endpoint@10.1.2':
resolution: {integrity: sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==}
engines: {node: '>= 18'}
'@octokit/graphql@8.2.0':
resolution: {integrity: sha512-gejfDywEml/45SqbWTWrhfwvLBrcGYhOn50sPOjIeVvH6i7D16/9xcFA8dAJNp2HMcd+g4vru41g4E2RBiZvfQ==}
engines: {node: '>= 18'}
'@octokit/openapi-types@23.0.1':
resolution: {integrity: sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==}
'@octokit/plugin-paginate-rest@11.4.0':
resolution: {integrity: sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==}
engines: {node: '>= 18'}
peerDependencies:
'@octokit/core': '>=6'
'@octokit/plugin-request-log@5.3.1':
resolution: {integrity: sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==}
engines: {node: '>= 18'}
peerDependencies:
'@octokit/core': '>=6'
'@octokit/plugin-rest-endpoint-methods@13.3.0':
resolution: {integrity: sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==}
engines: {node: '>= 18'}
peerDependencies:
'@octokit/core': '>=6'
'@octokit/request-error@6.1.6':
resolution: {integrity: sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==}
engines: {node: '>= 18'}
'@octokit/request@9.2.0':
resolution: {integrity: sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==}
engines: {node: '>= 18'}
'@octokit/rest@21.1.0':
resolution: {integrity: sha512-93iLxcKDJboUpmnUyeJ6cRIi7z7cqTZT1K7kRK4LobGxwTwpsa+2tQQbRQNGy7IFDEAmrtkf4F4wBj3D5rVlJQ==}
engines: {node: '>= 18'}
'@octokit/types@13.8.0':
resolution: {integrity: sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==}
'@pkgjs/parseargs@0.11.0':
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
@ -941,6 +993,9 @@ packages:
balanced-match@1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
before-after-hook@3.0.2:
resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==}
binary-extensions@2.3.0:
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
engines: {node: '>=8'}
@ -1152,6 +1207,9 @@ packages:
resolution: {integrity: sha512-8HKz3qXqnHYp/VCNn2qfjHdAdcI8zcSqOyX64GOMukp7SL2bfzfeDKjSd+UyECtejccaZv3LcvZTm9YDD22iCQ==}
engines: {node: '>=8.0.0'}
fast-content-type-parse@2.0.1:
resolution: {integrity: sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==}
fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
@ -1372,15 +1430,10 @@ packages:
just-clone@6.2.0:
resolution: {integrity: sha512-1IynUYEc/HAwxhi3WDpIpxJbZpMCvvrrmZVqvj9EhpvbH8lls7HhdhiByjL7DkAaWlLIzpC0Xc/VPvy/UxLNjA==}
kkrpc@0.0.12:
resolution: {integrity: sha512-PBk4AhGfkesIdAwmIoj7dHHIp7qN97XT4yr5Rl7h2WL79gxWQVgZRJYLt7Gb17GoLDh991rnL85mhCoPG5VC/Q==}
kkrpc@0.1.1:
resolution: {integrity: sha512-zS75NGmDbMEQNJ7Y1XVNVrLmfuCY94jMCrIcNFHoT+5qLaTzpK1lokXUD9VYrRVMQMwAx8U9BgKjdiS0eDKZHA==}
peerDependencies:
typescript: ^5.6.3
kkrpc@0.0.13:
resolution: {integrity: sha512-66ohRjbw2fLO45L1PMkGTP6KHk/Wa7nKJL6r4U/VCBsY+HoIncEdscSQcUgIdv2Da66/UyIC6UMWMvwIqXCZCg==}
peerDependencies:
typescript: ^5.6.3
typescript: ^5.0.0
kleur@4.1.5:
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
@ -1858,8 +1911,8 @@ packages:
tanu@0.1.13:
resolution: {integrity: sha512-UbRmX7ccZ4wMVOY/Uw+7ji4VOkEYSYJG1+I4qzbnn4qh/jtvVbrm6BFnF12NQQ4+jGv21wKmjb1iFyUSVnBWcQ==}
tauri-api-adapter@0.3.16:
resolution: {integrity: sha512-AoKWtRyhTPFaclM/XOtCSQg4OPmr/ssJqY209W+ELd4C11IpWyTVZ/Yfd7cCL03kB4OfvVTDWldA7Bzc7E72dg==}
tauri-api-adapter@0.3.20:
resolution: {integrity: sha512-tRK25c1d34ZRd5CJAXfrBeTr4eGh0UPshLac1DBm4TBF+EZ1TFCwLpvUj9DQ3VS2gHKA9fNc4J5pNpHh3OD4Og==}
peerDependencies:
typescript: ^5.0.0
@ -1954,6 +2007,9 @@ packages:
undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
universal-user-agent@7.0.2:
resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==}
universalify@2.0.1:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
@ -2485,9 +2541,10 @@ snapshots:
'@jsdevtools/ono@7.1.3': {}
'@kksh/api@0.0.52(axios@1.7.9)(svelte@5.1.4)(typescript@5.6.3)':
'@kksh/api@0.1.1(axios@1.7.9)(svelte@5.1.4)(typescript@5.6.3)':
dependencies:
'@huakunshen/jsr-client': 0.1.5(axios@1.7.9)(typescript@5.6.3)
'@octokit/rest': 21.1.0
'@tauri-apps/api': 2.2.0
'@tauri-apps/cli': 2.2.5
'@tauri-apps/plugin-deep-link': 2.2.0
@ -2503,13 +2560,13 @@ snapshots:
'@tauri-apps/plugin-store': 2.2.0
'@tauri-apps/plugin-updater': 2.3.1
'@tauri-apps/plugin-upload': 2.2.1
kkrpc: 0.0.13(typescript@5.6.3)
kkrpc: 0.1.1(typescript@5.6.3)
lodash: 4.17.21
minimatch: 10.0.1
node-fetch: 3.3.2
semver: 7.6.3
svelte-sonner: 0.3.28(svelte@5.1.4)
tauri-api-adapter: 0.3.16(typescript@5.6.3)
tauri-api-adapter: 0.3.20(typescript@5.6.3)
tauri-plugin-network-api: 2.0.5(typescript@5.6.3)
tauri-plugin-shellx-api: 2.0.14
tauri-plugin-system-info-api: 2.0.8(typescript@5.6.3)
@ -2578,6 +2635,68 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.17.1
'@octokit/auth-token@5.1.2': {}
'@octokit/core@6.1.3':
dependencies:
'@octokit/auth-token': 5.1.2
'@octokit/graphql': 8.2.0
'@octokit/request': 9.2.0
'@octokit/request-error': 6.1.6
'@octokit/types': 13.8.0
before-after-hook: 3.0.2
universal-user-agent: 7.0.2
'@octokit/endpoint@10.1.2':
dependencies:
'@octokit/types': 13.8.0
universal-user-agent: 7.0.2
'@octokit/graphql@8.2.0':
dependencies:
'@octokit/request': 9.2.0
'@octokit/types': 13.8.0
universal-user-agent: 7.0.2
'@octokit/openapi-types@23.0.1': {}
'@octokit/plugin-paginate-rest@11.4.0(@octokit/core@6.1.3)':
dependencies:
'@octokit/core': 6.1.3
'@octokit/types': 13.8.0
'@octokit/plugin-request-log@5.3.1(@octokit/core@6.1.3)':
dependencies:
'@octokit/core': 6.1.3
'@octokit/plugin-rest-endpoint-methods@13.3.0(@octokit/core@6.1.3)':
dependencies:
'@octokit/core': 6.1.3
'@octokit/types': 13.8.0
'@octokit/request-error@6.1.6':
dependencies:
'@octokit/types': 13.8.0
'@octokit/request@9.2.0':
dependencies:
'@octokit/endpoint': 10.1.2
'@octokit/request-error': 6.1.6
'@octokit/types': 13.8.0
fast-content-type-parse: 2.0.1
universal-user-agent: 7.0.2
'@octokit/rest@21.1.0':
dependencies:
'@octokit/core': 6.1.3
'@octokit/plugin-paginate-rest': 11.4.0(@octokit/core@6.1.3)
'@octokit/plugin-request-log': 5.3.1(@octokit/core@6.1.3)
'@octokit/plugin-rest-endpoint-methods': 13.3.0(@octokit/core@6.1.3)
'@octokit/types@13.8.0':
dependencies:
'@octokit/openapi-types': 23.0.1
'@pkgjs/parseargs@0.11.0':
optional: true
@ -2930,6 +3049,8 @@ snapshots:
balanced-match@1.0.2: {}
before-after-hook@3.0.2: {}
binary-extensions@2.3.0: {}
bits-ui@0.21.16(svelte@5.1.4):
@ -3169,6 +3290,8 @@ snapshots:
pure-rand: 6.1.0
optional: true
fast-content-type-parse@2.0.1: {}
fast-deep-equal@3.1.3: {}
fast-glob@3.3.2:
@ -3391,15 +3514,7 @@ snapshots:
just-clone@6.2.0: {}
kkrpc@0.0.12(typescript@5.6.3):
dependencies:
typescript: 5.6.3
ws: 8.18.0
transitivePeerDependencies:
- bufferutil
- utf-8-validate
kkrpc@0.0.13(typescript@5.6.3):
kkrpc@0.1.1(typescript@5.6.3):
dependencies:
typescript: 5.6.3
ws: 8.18.0
@ -3903,7 +4018,7 @@ snapshots:
tslib: 2.8.0
typescript: 4.9.5
tauri-api-adapter@0.3.16(typescript@5.6.3):
tauri-api-adapter@0.3.20(typescript@5.6.3):
dependencies:
'@tauri-apps/api': 2.2.0
'@tauri-apps/plugin-dialog': 2.2.0
@ -3914,7 +4029,7 @@ snapshots:
'@tauri-apps/plugin-os': 2.2.0
'@tauri-apps/plugin-shell': 2.2.0
'@tauri-apps/plugin-upload': 2.2.1
kkrpc: 0.0.12(typescript@5.6.3)
kkrpc: 0.1.1(typescript@5.6.3)
rimraf: 6.0.1
shx: 0.3.4
tauri-plugin-clipboard-api: 2.1.11(typescript@5.6.3)
@ -4019,6 +4134,8 @@ snapshots:
undici-types@5.26.5: {}
universal-user-agent@7.0.2: {}
universalify@2.0.1: {}
update-browserslist-db@1.1.1(browserslist@4.24.2):

View File

@ -1,5 +1,5 @@
<script lang="ts">
import { open, path, shell, toast, ui } from "@kksh/api/ui/iframe"
import { open, path, shell, toast, ui } from "@kksh/api/ui/custom"
import { Button, ModeWatcher, ThemeWrapper, updateTheme } from "@kksh/svelte"
import SpeedGauge from "$lib/components/SpeedGauge.svelte"
import StressSelect from "$lib/components/StressSelect.svelte"

View File

@ -1,6 +1,6 @@
<script lang="ts">
import Icon from "@iconify/svelte"
import { clipboard, dialog, notification, toast } from "@kksh/api/ui/iframe"
import { clipboard, dialog, notification, toast } from "@kksh/api/ui/custom"
import { Button } from "@kksh/svelte"
import { targetDir } from "$lib/store"

View File

@ -1,5 +1,5 @@
<script lang="ts">
import { ui } from "@kksh/api/ui/iframe"
import { ui } from "@kksh/api/ui/custom"
import { ThemeCustomizerButton, updateTheme, type ThemeConfig } from "@kksh/svelte"
import { onMount } from "svelte"