File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import Identifier from ' $lib/components/ui/Identifier.svelte' ;
3+ import Value from ' $lib/components/ui/Value.svelte' ;
4+ import { devId } from ' $lib/derived/dev.derived' ;
5+ import { i18n } from ' $lib/stores/app/i18n.store' ;
6+ </script >
7+
8+ <Value >
9+ {#snippet label ()}
10+ {$i18n .profile .dev_id }
11+ {/ snippet }
12+
13+ <Identifier identifier ={$devId ?.toText () ?? ' ' } />
14+ </Value >
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import Identifier from ' $lib/components/ui/Identifier.svelte' ;
3+ import Value from ' $lib/components/ui/Value.svelte' ;
4+ import { i18n } from ' $lib/stores/app/i18n.store' ;
5+ import type { MissionControlId } from ' $lib/types/mission-control' ;
6+
7+ interface Props {
8+ missionControlId: MissionControlId ;
9+ }
10+
11+ let { missionControlId }: Props = $props ();
12+ </script >
13+
14+ <Value >
15+ {#snippet label ()}
16+ {$i18n .mission_control .id }
17+ {/ snippet }
18+
19+ <Identifier identifier ={missionControlId .toText ()} shorten ={false } small ={false } />
20+ </Value >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { fade } from ' svelte/transition' ;
3+ import MissionControlId from ' $lib/components/mission-control/MissionControlId.svelte' ;
34 import MissionControlOverviewActions from ' $lib/components/mission-control/MissionControlOverviewActions.svelte' ;
45 import MissionControlRuntimeActions from ' $lib/components/mission-control/MissionControlRuntimeActions.svelte' ;
56 import CanisterOverview from ' $lib/components/modules/canister/display/CanisterOverview.svelte' ;
67 import CanisterSubnet from ' $lib/components/modules/canister/display/CanisterSubnet.svelte' ;
78 import SegmentVersion from ' $lib/components/modules/segments/SegmentVersion.svelte' ;
8- import Identifier from ' $lib/components/ui/Identifier.svelte' ;
9- import Value from ' $lib/components/ui/Value.svelte' ;
109 import { authSignedIn } from ' $lib/derived/auth.derived' ;
1110 import { missionControlVersion } from ' $lib/derived/version.derived' ;
1211 import { i18n } from ' $lib/stores/app/i18n.store' ;
13- import type { MissionControlId } from ' $lib/types/mission-control' ;
12+ import type { MissionControlId as MissionControlIdType } from ' $lib/types/mission-control' ;
1413
1514 interface Props {
16- missionControlId: MissionControlId ;
15+ missionControlId: MissionControlIdType ;
1716 }
1817
1918 let { missionControlId }: Props = $props ();
2625 <div class =" columns-3 fit-column-1" >
2726 <div class =" id" >
2827 <div >
29- <Value >
30- {#snippet label ()}
31- {$i18n .mission_control .id }
32- {/ snippet }
33- <Identifier identifier ={missionControlId .toText ()} shorten ={false } small ={false } />
34- </Value >
28+ <MissionControlId {missionControlId } />
3529 </div >
3630
3731 <CanisterSubnet canisterId ={missionControlId } />
Original file line number Diff line number Diff line change 33 import { Principal } from ' @icp-sdk/core/principal' ;
44 import InputCanisterId from ' $lib/components/app/core/InputCanisterId.svelte' ;
55 import IconLink from ' $lib/components/icons/IconLink.svelte' ;
6+ import AttachSegmentInfo from ' $lib/components/modules/attach-detach/AttachSegmentInfo.svelte' ;
67 import CheckboxInline from ' $lib/components/ui/CheckboxInline.svelte' ;
7- import Html from ' $lib/components/ui/Html.svelte' ;
88 import Popover from ' $lib/components/ui/Popover.svelte' ;
99 import Value from ' $lib/components/ui/Value.svelte' ;
1010 import { isBusy } from ' $lib/derived/app/busy.derived' ;
103103 </CheckboxInline >
104104 {/if }
105105
106+ <AttachSegmentInfo />
107+
106108 <button class ="submit" disabled ={$isBusy || ! validConfirm } type =" submit" >
107109 {$i18n .core .submit }
108110 </button >
118120 margin : var (--padding-1_5x ) 0 0 ;
119121 }
120122
121- p ,
122123 span {
123124 font-size : var (--font-size-small );
124125 }
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import { nonNullish } from ' @dfinity/utils' ;
3+ import DevId from ' $lib/components/app/core/DevId.svelte' ;
4+ import MissionControlId from ' $lib/components/mission-control/MissionControlId.svelte' ;
5+ import Hr from ' $lib/components/ui/Hr.svelte' ;
6+ import { missionControlId } from ' $lib/derived/console/account.mission-control.derived' ;
7+ </script >
8+
9+ <div class =" info" >
10+ <Hr />
11+
12+ <div class =" dev-id" >
13+ <DevId />
14+ </div >
15+
16+ {#if nonNullish ($missionControlId )}
17+ <div >
18+ <MissionControlId missionControlId ={$missionControlId } />
19+ </div >
20+ {/if }
21+
22+ <Hr />
23+ </div >
24+
25+ <style lang =" scss" >
26+ .info {
27+ margin : var (--padding-2x ) 0 0 ;
28+ font-size : var (--font-size-small );
29+ }
30+
31+ .dev-id {
32+ padding : var (--padding-2x ) 0 0 ;
33+ }
34+ </style >
Original file line number Diff line number Diff line change 22 import { nonNullish } from ' @dfinity/utils' ;
33 import { onMount } from ' svelte' ;
44 import { fade } from ' svelte/transition' ;
5+ import DevId from ' $lib/components/app/core/DevId.svelte' ;
56 import IdentityGuard from ' $lib/components/auth/guards/IdentityGuard.svelte' ;
6- import Identifier from ' $lib/components/ui/Identifier.svelte' ;
77 import Value from ' $lib/components/ui/Value.svelte' ;
88 import { authSignedOut } from ' $lib/derived/auth.derived' ;
99 import { credits } from ' $lib/derived/console/credits.derived' ;
3232 <div class =" columns-3 fit-column-1" >
3333 <div >
3434 <div class =" dev-id" >
35- <Value >
36- {#snippet label ()}
37- {$i18n .profile .dev_id }
38- {/ snippet }
39- <Identifier identifier ={$authStore .identity ?.getPrincipal ().toText () ?? ' ' } />
40- </Value >
35+ <DevId />
4136 </div >
4237
4338 <Value >
You can’t perform that action at this time.
0 commit comments