6af6c656a4
* WIP * new permissions table * permissions grouped * updated scope descriptions * more scope copy adjustments * allow auth error handling * manually closable toast notification * fixed mentions rendering * error view * not you? feature * cleanup * minor styling changes * WIP table * finished authorized apps table * minor cleanup * cleaning up comment * testing changes
41 lines
879 B
Vue
41 lines
879 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">
|
|
<h2 v-if="subheading" class="h5 font-bold">{{ title }}</h2>
|
|
<h1 v-else class="h4 font-bold">{{ title }}</h1>
|
|
<div class="flex flex-wrap 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[]
|
|
subheading?: boolean
|
|
}>(),
|
|
{
|
|
buttons: () => []
|
|
}
|
|
)
|
|
</script>
|