76cbcef4e6
* WIP Developer Settings * Access Tokens * scopes load fix * mapping to correct struct * Updates to Application * Update to apps.js to fix scopes error * Application table done * Token confirmation done. * Application Success * Fix ts * Darkmode fixes * Responsive fix * Fixes for PR * Pass size prop to Editable Avatar * Updates from PR comments * Section Header - TS Types * Add Typeguard to Delete Dialog * Add Description to scopes query * minor type guard fix * edit application cache update fix * Fix Dialog Expansion * Rename mutations to correct casing * Remove unneeded import for defineProps --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
39 lines
777 B
Vue
39 lines
777 B
Vue
<template>
|
|
<div class="flex flex-col gap-4">
|
|
<div class="flex flex-col md:flex-row gap-3 md:gap-0 justify-between">
|
|
<h1 class="text-2xl font-bold">{{ title }}</h1>
|
|
<div class="flex gap-2">
|
|
<FormButton
|
|
v-for="(button, index) in buttons"
|
|
:key="index"
|
|
v-bind="button.props"
|
|
class="shrink-0 whitespace-nowrap"
|
|
>
|
|
{{ button.label }}
|
|
</FormButton>
|
|
</div>
|
|
</div>
|
|
<p class="text-sm max-w-5xl">
|
|
<slot></slot>
|
|
</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
interface Button {
|
|
label: string
|
|
props: Record<string, unknown>
|
|
}
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
title: string
|
|
text?: string
|
|
buttons?: Button[]
|
|
}>(),
|
|
{
|
|
buttons: () => []
|
|
}
|
|
)
|
|
</script>
|