File tree Expand file tree Collapse file tree 9 files changed +46
-13
lines changed
declarations/ic_panda_frontend Expand file tree Collapse file tree 9 files changed +46
-13
lines changed Original file line number Diff line number Diff line change 55
55
"ic" : " 5szpn-tiaaa-aaaaj-qncoq-cai" ,
56
56
"local" : " 5szpn-tiaaa-aaaaj-qncoq-cai"
57
57
},
58
- "ic_panda_ai" : {
59
- "ic" : " bwwuq-byaaa-aaaan-qmk4q-cai"
60
- },
58
+ "ic_panda_ai" : {},
61
59
"ic_panda_frontend" : {
62
60
"ic" : " c63a7-6yaaa-aaaap-ab3gq-cai" ,
63
61
"local" : " c63a7-6yaaa-aaaap-ab3gq-cai"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Load the environment variables
4
+ source " $( pwd) " /proposals/env.sh
5
+
6
+ # build and get batch_id, evidence:
7
+ # dfx deploy ic_message_frontend --ic --by-proposal
8
+
9
+ export BLOB=" $( didc encode --format blob ' (record {batch_id=49:nat; evidence=blob "\3c\ff\dd\7c\42\8c\af\8e\6a\c7\64\d9\e2\da\62\b6\6b\f6\7f\b2\dd\60\1e\0e\17\f6\f6\ec\11\e0\4b\de"})' ) "
10
+
11
+ quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal " (
12
+ record {
13
+ title = \" Execute commit_proposed_batch() to release ic_message_frontend v2.9.7\" ;
14
+ url = \" https://dMsg.net/\" ;
15
+ summary = \" This proposal executes commit_proposed_batch() on 2fvu6-tqaaa-aaaap-akksa-cai to release ic_message_frontend v2.9.7.\n\n1. chore: improve dMsg app.\" ;
16
+ action = opt variant {
17
+ ExecuteGenericNervousSystemFunction = record {
18
+ function_id = 1100 : nat64;
19
+ payload = ${BLOB} ;
20
+ }
21
+ };
22
+ }
23
+ )" > proposal-message.json
24
+
25
+ # quill send proposal-message.json
Original file line number Diff line number Diff line change 84
84
"test" : " vitest run"
85
85
},
86
86
"type" : " module" ,
87
- "version" : " 2.9.6 "
87
+ "version" : " 2.9.7 "
88
88
}
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ type AssetCanisterArgs = variant {
144
144
Upgrade: UpgradeArgs;
145
145
};
146
146
147
- type InitArgs = record {};
147
+ type InitArgs = record {
148
+ set_permissions: opt SetPermissions;
149
+ };
148
150
149
151
type UpgradeArgs = record {
150
152
set_permissions: opt SetPermissions;
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export interface HttpResponse {
65
65
'streaming_strategy' : [ ] | [ StreamingStrategy ] ,
66
66
'status_code' : number ,
67
67
}
68
- export type InitArgs = { } ;
68
+ export interface InitArgs { 'set_permissions' : [ ] | [ SetPermissions ] }
69
69
export type Key = string ;
70
70
export interface ListPermitted { 'permission' : Permission }
71
71
export type Permission = { 'Prepare' : null } |
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const idlFactory = ({ IDL }) => {
7
7
const UpgradeArgs = IDL . Record ( {
8
8
'set_permissions' : IDL . Opt ( SetPermissions ) ,
9
9
} ) ;
10
- const InitArgs = IDL . Record ( { } ) ;
10
+ const InitArgs = IDL . Record ( { 'set_permissions' : IDL . Opt ( SetPermissions ) } ) ;
11
11
const AssetCanisterArgs = IDL . Variant ( {
12
12
'Upgrade' : UpgradeArgs ,
13
13
'Init' : InitArgs ,
@@ -287,7 +287,7 @@ export const init = ({ IDL }) => {
287
287
const UpgradeArgs = IDL . Record ( {
288
288
'set_permissions' : IDL . Opt ( SetPermissions ) ,
289
289
} ) ;
290
- const InitArgs = IDL . Record ( { } ) ;
290
+ const InitArgs = IDL . Record ( { 'set_permissions' : IDL . Opt ( SetPermissions ) } ) ;
291
291
const AssetCanisterArgs = IDL . Variant ( {
292
292
'Upgrade' : UpgradeArgs ,
293
293
'Init' : InitArgs ,
Original file line number Diff line number Diff line change 28
28
import { ErrorLogs , toastRun } from ' $lib/stores/toast'
29
29
import { errMessage , unwrapOption } from ' $lib/types/result'
30
30
import { shortId } from ' $lib/utils/auth'
31
- import { sleep } from ' $lib/utils/helper'
31
+ import { getCurrentTimeString , sleep } from ' $lib/utils/helper'
32
32
import { md } from ' $lib/utils/markdown'
33
33
import { isNotificationSupported } from ' $lib/utils/window'
34
34
import LinkItem from ' $src/lib/components/ui/LinkItem.svelte'
57
57
58
58
type DisplayUserInfoEx = DisplayUserInfo & {
59
59
role: number
60
- sign_in_at: number
60
+ sign_in_at: bigint
61
61
}
62
62
63
63
// local: gnhwq-7p3rq-chahe-22f7s-btty6-ntken-g6dff-xwbyd-4qfse-37euh-5ae
123
123
) as DisplayUserInfoEx
124
124
if (info ) {
125
125
info .role = user .role
126
- info .sign_in_at = Number ( user .sign_in_at )
126
+ info .sign_in_at = user .sign_in_at
127
127
res .push (info )
128
128
} else {
129
129
res .push ({
132
132
name: ' Unknown' ,
133
133
image: ' ' ,
134
134
role: user .role ,
135
- sign_in_at: Number ( user .sign_in_at )
135
+ sign_in_at: user .sign_in_at
136
136
})
137
137
}
138
138
}
639
639
><IconUserForbidLine /></span
640
640
>
641
641
{/if }
642
+ {#if member .sign_in_at > 0 }
643
+ <span class =" text-neutral-500"
644
+ >(Sign in at {getCurrentTimeString (
645
+ member .sign_in_at
646
+ )})</span
647
+ >
648
+ {/if }
642
649
</div >
643
650
<div class =" flex flex-row items-center space-x-2" >
644
651
{#if isManager && member .role != 1 }
Original file line number Diff line number Diff line change 1
1
const src = globalThis . location ?. href || ''
2
2
3
- export const APP_VERSION = '2.9.6 '
3
+ export const APP_VERSION = '2.9.7 '
4
4
export const IS_LOCAL = src . includes ( 'localhost' ) || src . includes ( '127.0.0.1' )
5
5
export const ENV = IS_LOCAL ? 'local' : 'ic'
6
6
export const APP_ORIGIN = IS_LOCAL
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export interface TokenPrice {
11
11
12
12
const priceCache : Record < string , TokenPrice > = { }
13
13
14
+ // Or get from: https://uvevg-iyaaa-aaaak-ac27q-cai.raw.ic0.app/tickers
14
15
export function getTokenPrice (
15
16
token : string ,
16
17
syncing : boolean = false
You can’t perform that action at this time.
0 commit comments