-
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.
Signed-off-by: David Dal Busco <[email protected]>
- Loading branch information
1 parent
615dcaa
commit 69a70e5
Showing
10 changed files
with
111 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts"> | ||
import Popover from '$lib/components/ui/Popover.svelte'; | ||
import IconMore from '$lib/components/icons/IconMore.svelte'; | ||
export let visible: boolean | undefined; | ||
let button: HTMLButtonElement | undefined; | ||
</script> | ||
|
||
<button class="square" bind:this={button} on:click={() => (visible = true)}><IconMore /></button> | ||
|
||
<Popover bind:visible anchor={button} direction="rtl"> | ||
<div class="container"> | ||
<slot /> | ||
</div> | ||
</Popover> | ||
|
||
<style lang="scss"> | ||
@use '../../styles/mixins/overlay'; | ||
@include overlay.popover-container; | ||
button { | ||
position: absolute; | ||
top: var(--padding-2x); | ||
right: var(--padding-2x); | ||
} | ||
</style> |
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
11 changes: 11 additions & 0 deletions
11
src/frontend/src/lib/components/mission-control/MissionControlActions.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,11 @@ | ||
<script lang="ts"> | ||
import TopUp from '$lib/components/canister/TopUp.svelte'; | ||
import Actions from '$lib/components/core/Actions.svelte'; | ||
let visible: boolean | undefined; | ||
const close = () => (visible = false); | ||
</script> | ||
|
||
<Actions bind:visible> | ||
<TopUp type="topup_mission_control" on:junoTopUp={close} /> | ||
</Actions> |
5 changes: 0 additions & 5 deletions
5
src/frontend/src/lib/components/mission-control/MissionControlTopUp.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
11 changes: 11 additions & 0 deletions
11
src/frontend/src/lib/components/orbiter/OrbiterActions.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,11 @@ | ||
<script lang="ts"> | ||
import TopUp from '$lib/components/canister/TopUp.svelte'; | ||
import Actions from '$lib/components/core/Actions.svelte'; | ||
let visible: boolean | undefined; | ||
const close = () => (visible = false); | ||
</script> | ||
|
||
<Actions bind:visible> | ||
<TopUp type="topup_orbiter" /> | ||
</Actions> |
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