Skip to content

Commit 1fcd86b

Browse files
committed
chore: update frontend dependencies
1 parent 8ff8491 commit 1fcd86b

34 files changed

+2879
-3172
lines changed

canister_ids.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"ic": "5szpn-tiaaa-aaaaj-qncoq-cai",
5656
"local": "5szpn-tiaaa-aaaaj-qncoq-cai"
5757
},
58-
"ic_panda_ai": {},
5958
"ic_panda_frontend": {
6059
"ic": "c63a7-6yaaa-aaaap-ab3gq-cai",
6160
"local": "c63a7-6yaaa-aaaap-ab3gq-cai"

dfx.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
},
8383
"ic_panda_frontend": {
8484
"dependencies": [],
85+
"build": [
86+
"echo 'Disable dfx build for ic_panda_frontend because some issue, you should run npm build manually'"
87+
],
8588
"source": [
8689
"src/ic_panda_frontend/dist"
8790
],
@@ -90,6 +93,9 @@
9093
},
9194
"ic_message_frontend": {
9295
"dependencies": [],
96+
"build": [
97+
"echo 'Disable dfx build for ic_panda_frontend because some issue, you should run npm build manually'"
98+
],
9399
"source": [
94100
"src/ic_message_frontend/dist"
95101
],

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"engines": {
3-
"node": ">=21.0.0",
4-
"npm": ">=7.0.0"
3+
"node": ">=22.0.0",
4+
"npm": ">=10.0.0"
55
},
66
"name": "ic_panda",
77
"private": true,
@@ -12,6 +12,7 @@
1212
"start": "npm start --workspaces --if-present",
1313
"test": "npm test --workspaces --if-present"
1414
},
15+
"packageManager": "[email protected]",
1516
"type": "module",
1617
"workspaces": [
1718
"src/ic_message_frontend",

pnpm-lock.yaml

Lines changed: 2676 additions & 2943 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/deployment_guide.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dfx start
1111
# Creates the canisters with the specified IDs
1212
dfx canister create --specified-id rdmx6-jaaaa-aaaaa-aaadq-cai internet_identity
1313
dfx canister create --specified-id ryjl3-tyaaa-aaaaa-aaaba-cai icp_ledger_canister
14+
dfx canister create --specified-id druyg-tyaaa-aaaaq-aactq-cai icrc1_ledger_canister
1415
dfx canister create --specified-id c63a7-6yaaa-aaaap-ab3gq-cai ic_panda_frontend
1516
dfx canister create --specified-id a7cug-2qaaa-aaaap-ab3la-cai ic_panda_luckypool
1617
dfx canister create --specified-id nscli-qiaaa-aaaaj-qa4pa-cai ic_message
@@ -65,7 +66,7 @@ export NUM_OF_BLOCK_TO_ARCHIVE=1000
6566
export CYCLE_FOR_ARCHIVE_CREATION=10000000000000
6667
export FEATURE_FLAGS=true
6768

68-
dfx deploy icrc1_ledger_canister --specified-id druyg-tyaaa-aaaaq-aactq-cai --argument "(variant {Init =
69+
dfx deploy icrc1_ledger_canister --argument "(variant {Init =
6970
record {
7071
token_symbol = \"${TOKEN_SYMBOL}\";
7172
token_name = \"${TOKEN_NAME}\";
@@ -83,15 +84,15 @@ record {
8384
}
8485
})"
8586

86-
dfx deploy ic_dmsg_minter --specified-id ql553-iqaaa-aaaap-anuyq-cai --argument "(opt variant {Init =
87+
dfx deploy ic_dmsg_minter --argument "(opt variant {Init =
8788
record {
8889
preparers = vec { principal \"nscli-qiaaa-aaaaj-qa4pa-cai\"};
8990
committers = vec { principal \"nvdn4-5qaaa-aaaaj-qa4pq-cai\";};
9091
}
9192
})"
9293

9394
# Deploys the ICRC-1 token Ledger canister with the specified initial values
94-
dfx deploy dmsg_ledger_canister --specified-id ocqzv-tyaaa-aaaar-qal4a-cai --argument "(variant {Init =
95+
dfx deploy dmsg_ledger_canister --argument "(variant {Init =
9596
record {
9697
token_symbol = \"DMSG\";
9798
token_name = \"dMsg.net\";
Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,69 @@
11
{
22
"dependencies": {
3-
"@dfinity/agent": "^2.3.0",
4-
"@dfinity/auth-client": "^2.3.0",
5-
"@dfinity/candid": "^2.3.0",
6-
"@dfinity/identity": "^2.3.0",
7-
"@dfinity/oisy-wallet-signer": "^0.1.7",
8-
"@dfinity/principal": "^2.3.0",
9-
"@dfinity/utils": "^2.10.1",
3+
"@dfinity/agent": "^2.4.1",
4+
"@dfinity/auth-client": "^2.4.1",
5+
"@dfinity/candid": "^2.4.1",
6+
"@dfinity/identity": "^2.4.1",
7+
"@dfinity/oisy-wallet-signer": "^0.1.8",
8+
"@dfinity/principal": "^2.4.1",
9+
"@dfinity/utils": "^2.13.0",
1010
"@ldclabs/cose-ts": "^1.3.2",
11-
"@ldclabs/ic_oss_ts": "^1.0.0",
12-
"@noble/hashes": "^1.7.1",
13-
"@paulmillr/qr": "^0.3.0",
14-
"@scure/base": "^1.2.4",
15-
"@scure/bip39": "^1.5.4",
16-
"cborg": "^4.2.8",
11+
"@ldclabs/ic_oss_ts": "^1.1.0",
12+
"@noble/hashes": "^1.8.0",
13+
"@scure/base": "^1.2.5",
14+
"@scure/bip39": "^1.6.0",
15+
"cborg": "^4.2.10",
1716
"debounce": "^2.2.0",
1817
"idb": "^8.0.2",
19-
"markdown-it": "^14.1.0"
18+
"markdown-it": "^14.1.0",
19+
"qr": "^0.4.2"
2020
},
2121
"devDependencies": {
22-
"@floating-ui/dom": "^1.6.13",
22+
"@floating-ui/dom": "^1.7.0",
2323
"@skeletonlabs/skeleton": "^2.11.0",
2424
"@skeletonlabs/tw-plugin": "^0.4.1",
2525
"@sveltejs/adapter-static": "^3.0.8",
26-
"@sveltejs/kit": "^2.18.0",
26+
"@sveltejs/kit": "^2.20.8",
2727
"@sveltejs/vite-plugin-svelte": "^5.0.3",
2828
"@tailwindcss/forms": "^0.5.10",
2929
"@testing-library/jest-dom": "^6.6.3",
3030
"@types/eslint": "^9.6.1",
3131
"@types/markdown-it": "^14.1.2",
32-
"@types/node": "^22.13.9",
33-
"@typescript-eslint/eslint-plugin": "^8.26.0",
34-
"@typescript-eslint/parser": "^8.26.0",
35-
"@vite-pwa/assets-generator": "^0.2.6",
36-
"@vite-pwa/sveltekit": "^0.6.7",
37-
"autoprefixer": "^10.4.20",
38-
"babel-plugin-formatjs": "^10.5.35",
32+
"@types/node": "^22.15.3",
33+
"@typescript-eslint/eslint-plugin": "^8.31.1",
34+
"@typescript-eslint/parser": "^8.31.1",
35+
"@vite-pwa/assets-generator": "^1.0.0",
36+
"@vite-pwa/sveltekit": "^1.0.0",
37+
"autoprefixer": "^10.4.21",
38+
"babel-plugin-formatjs": "^10.5.37",
3939
"cross-fetch": "^4.1.0",
40-
"cssnano": "^7.0.6",
41-
"dotenv": "^16.4.7",
42-
"eslint": "^9.21.0",
43-
"eslint-config-prettier": "^10.0.2",
40+
"dotenv": "^16.5.0",
41+
"eslint": "^9.26.0",
42+
"eslint-config-prettier": "^10.1.2",
4443
"eslint-plugin-import": "^2.31.0",
45-
"eslint-plugin-prettier": "^5.2.3",
46-
"eslint-plugin-svelte": "^3.0.2",
47-
"jsdom": "^26.0.0",
44+
"eslint-plugin-prettier": "^5.2.6",
45+
"eslint-plugin-svelte": "^3.5.1",
46+
"jsdom": "^26.1.0",
4847
"postcss": "^8.5.3",
4948
"postcss-load-config": "^6.0.1",
5049
"prettier": "^3.5.3",
5150
"prettier-plugin-svelte": "^3.3.3",
5251
"prettier-plugin-tailwindcss": "^0.6.11",
5352
"saos": "^1.3.1",
54-
"sort-package-json": "^3.0.0",
55-
"stylelint": "^16.15.0",
56-
"stylelint-config-standard": "^37.0.0",
57-
"svelte": "^5.22.1",
58-
"svelte-check": "^4.1.4",
59-
"svelte-easy-crop": "^4.0.0",
53+
"sort-package-json": "^3.1.0",
54+
"stylelint": "^16.19.1",
55+
"stylelint-config-standard": "^38.0.0",
56+
"svelte": "^5.28.2",
57+
"svelte-check": "^4.1.7",
58+
"svelte-easy-crop": "^4.0.1",
6059
"tailwindcss": "^3.4.17",
6160
"ts-node": "^10.9.2",
6261
"tslib": "^2.8.1",
63-
"typescript": "^5.8.2",
64-
"vite": "^6.2.0",
62+
"typescript": "^5.8.3",
63+
"vite": "^6.3.4",
6564
"vite-plugin-environment": "^1.1.3",
66-
"vite-plugin-pwa": "^0.21.1",
67-
"vitest": "^3.0.7",
65+
"vite-plugin-pwa": "^1.0.0",
66+
"vitest": "^3.1.2",
6867
"workbox-core": "^7.3.0",
6968
"workbox-expiration": "^7.3.0",
7069
"workbox-precaching": "^7.3.0",
@@ -85,5 +84,5 @@
8584
"test": "vitest run"
8685
},
8786
"type": "module",
88-
"version": "2.9.11"
87+
"version": "2.10.0"
8988
}

src/ic_message_frontend/postcss.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import autoprefixer from 'autoprefixer'
2-
import cssnano from 'cssnano'
32
import tailwindcss from 'tailwindcss'
43

54
const config = {
65
plugins: [
76
//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
87
tailwindcss(),
98
//But others, like autoprefixer, need to run after,
10-
autoprefixer,
11-
cssnano({ preset: 'default' })
9+
autoprefixer
1210
]
1311
}
1412

src/ic_message_frontend/src/lib/components/messages/Chat.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { goto } from '$app/navigation'
3-
import { page } from '$app/stores'
3+
import { page } from '$app/state'
44
import { type UserInfo } from '$lib/canisters/message'
55
import { ChannelAPI } from '$lib/canisters/messagechannel'
66
import { MyMessageState } from '$lib/stores/message'
@@ -24,7 +24,7 @@
2424
const myInfo: Readable<UserInfo> =
2525
myState.agent.subscribeUser() as Readable<UserInfo>
2626
27-
const channelParam = $derived(($page?.params || {})['channel'] || '')
27+
const channelParam = $derived((page?.params || {})['channel'] || '')
2828
const channelId = $derived(
2929
ChannelAPI.parseChannelParam(channelParam) as {
3030
canister: Principal

src/ic_message_frontend/src/lib/components/messages/MyChannelList.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { goto } from '$app/navigation'
3-
import { page } from '$app/stores'
3+
import { page } from '$app/state'
44
import IconAdd from '$lib/components/icons/IconAdd.svelte'
55
import IconNotificationOffLine from '$lib/components/icons/IconNotificationOffLine.svelte'
66
import Loading from '$lib/components/ui/Loading.svelte'
@@ -29,7 +29,7 @@
2929
let myChannels: Readable<ChannelBasicInfoEx[]> = $state(readable([]))
3030
let filterValue: string = $state('')
3131
32-
const currentChannel = $derived(($page?.params || {})['channel'] || '')
32+
const currentChannel = $derived((page?.params || {})['channel'] || '')
3333
const channels = $derived.by(() => {
3434
return ($myChannels || []).filter((c) => {
3535
const val = filterValue.trim().toLowerCase()

src/ic_message_frontend/src/lib/components/messages/MyProfile.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { page } from '$app/stores'
2+
import { page } from '$app/state'
33
import { type UserInfo } from '$lib/canisters/message'
44
import {
55
type Link,
@@ -77,7 +77,7 @@
7777
)
7878
let displayDebug = $state(false)
7979
80-
let pathname = $derived($page?.url?.pathname || '')
80+
let pathname = $derived(page?.url?.pathname || '')
8181
let links = $derived($myInfo?.links || [])
8282
let myUsername = $derived($myInfo?.username[0] || '')
8383
let isUsernameAccount = $state(!!authStore.identity?.username)

0 commit comments

Comments
 (0)