-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/redo-invitation-code
- Loading branch information
Showing
28 changed files
with
277 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@junobuild/juno", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"private": true, | ||
"author": "David Dal Busco <[email protected]>", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/frontend/src/lib/components/analytics/NoAnalyticsActions.svelte
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/frontend/src/lib/components/mission-control/MissionControlAttachOrbiter.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
import { i18n } from '$lib/stores/i18n.store'; | ||
import { Principal } from '@dfinity/principal'; | ||
import IconLink from '$lib/components/icons/IconLink.svelte'; | ||
import { attachOrbiter } from '$lib/services/mission-control.services'; | ||
import CanisterAttach from '$lib/components/canister/CanisterAttach.svelte'; | ||
import { createEventDispatcher } from 'svelte'; | ||
import { toasts } from '$lib/stores/toasts.store'; | ||
import { i18nCapitalize, i18nFormat } from '$lib/utils/i18n.utils'; | ||
let visible: boolean | undefined; | ||
const setOrbiter = async ({ | ||
missionControlId, | ||
canisterId | ||
}: { | ||
missionControlId: Principal; | ||
canisterId: Principal; | ||
}) => { | ||
await attachOrbiter({ | ||
missionControlId, | ||
orbiterId: canisterId | ||
}); | ||
}; | ||
const dispatch = createEventDispatcher(); | ||
const onSuccess = () => { | ||
toasts.success( | ||
i18nCapitalize( | ||
i18nFormat($i18n.canisters.attach_success, [ | ||
{ | ||
placeholder: '{0}', | ||
value: 'orbiter' | ||
} | ||
]) | ||
) | ||
); | ||
dispatch('junoAttach'); | ||
}; | ||
</script> | ||
|
||
<button on:click={() => (visible = true)} class="menu"><IconLink /> {$i18n.analytics.attach}</button | ||
> | ||
|
||
<CanisterAttach on:junoAttach={onSuccess} bind:visible setFn={setOrbiter}> | ||
<svelte:fragment slot="title">{$i18n.analytics.attach}</svelte:fragment> | ||
<svelte:fragment slot="input">{$i18n.analytics.attach_id}</svelte:fragment> | ||
</CanisterAttach> |
51 changes: 51 additions & 0 deletions
51
src/frontend/src/lib/components/mission-control/MissionControlAttachSatellite.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<script lang="ts"> | ||
import CanisterAttach from '$lib/components/canister/CanisterAttach.svelte'; | ||
import IconLink from '$lib/components/icons/IconLink.svelte'; | ||
import { Principal } from '@dfinity/principal'; | ||
import { attachSatellite } from '$lib/services/mission-control.services'; | ||
import { i18n } from '$lib/stores/i18n.store'; | ||
import { createEventDispatcher } from 'svelte'; | ||
import { toasts } from '$lib/stores/toasts.store'; | ||
import { i18nCapitalize, i18nFormat } from '$lib/utils/i18n.utils'; | ||
let visible = false; | ||
const setSatellite = async ({ | ||
missionControlId, | ||
canisterId | ||
}: { | ||
missionControlId: Principal; | ||
canisterId: Principal; | ||
}) => { | ||
await attachSatellite({ | ||
missionControlId, | ||
satelliteId: canisterId | ||
}); | ||
}; | ||
const dispatch = createEventDispatcher(); | ||
const onSuccess = () => { | ||
toasts.success( | ||
i18nCapitalize( | ||
i18nFormat($i18n.canisters.attach_success, [ | ||
{ | ||
placeholder: '{0}', | ||
value: 'satellite' | ||
} | ||
]) | ||
) | ||
); | ||
dispatch('junoAttach'); | ||
}; | ||
</script> | ||
|
||
<button on:click={() => (visible = true)} class="menu" | ||
><IconLink /> {$i18n.satellites.attach}</button | ||
> | ||
|
||
<CanisterAttach on:junoAttach={onSuccess} bind:visible setFn={setSatellite}> | ||
<svelte:fragment slot="title">{$i18n.satellites.attach}</svelte:fragment> | ||
<svelte:fragment slot="input">{$i18n.satellites.id}</svelte:fragment> | ||
</CanisterAttach> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.