-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from EliHaugu/82-node-api-connections
82 node api connections
- Loading branch information
Showing
27 changed files
with
611 additions
and
389 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<teleport to="body"> | ||
<dialog | ||
:aria-label="title" | ||
:id="id" | ||
class="absolute top-1/2 z-50 -translate-y-1/2 rounded-xl bg-primary-100 p-4 shadow-md dark:text-white-100" | ||
> | ||
<form method="dialog" @submit.prevent="submit" class="flex w-96 flex-col gap-2"> | ||
<h3 v-if="title" class="text-xl font-semibold">{{ title }}</h3> | ||
<slot /> | ||
<div class="flex gap-2"> | ||
<base-button class="flex-grow" type="button" @click="close" :variant="'outline'" | ||
>Cancel</base-button | ||
> | ||
<base-button class="flex-grow" type="submit">{{ submitButtonText }}</base-button> | ||
</div> | ||
</form> | ||
</dialog> | ||
</teleport> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import BaseButton from './BaseButton.vue' | ||
const props = defineProps<{ | ||
id: string | ||
submitButtonText: string | ||
title?: string | ||
onSubmit: () => void | ||
}>() | ||
const close = () => { | ||
;(document.getElementById(props.id) as HTMLDialogElement).close() | ||
} | ||
const submit = () => { | ||
props.onSubmit() | ||
close() | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
dialog[open]::backdrop { | ||
background-color: rgba(0, 0, 0, 0.5); | ||
backdrop-filter: blur(2px); | ||
height: 100vh; | ||
width: 100vw; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.