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
40 lines
785 B
Vue
40 lines
785 B
Vue
<template>
|
|
<Component
|
|
:is="mainComponent"
|
|
class="flex items-center shrink-0"
|
|
:to="to"
|
|
:target="target"
|
|
>
|
|
<img
|
|
class="h-8 w-8 block"
|
|
src="~~/assets/images/speckle_logo_big.png"
|
|
alt="Speckle"
|
|
/>
|
|
|
|
<div
|
|
v-if="!minimal"
|
|
class="text-primary text-base mt-0 font-bold leading-7"
|
|
:class="showTextOnMobile ? '' : 'hidden md:flex'"
|
|
>
|
|
Speckle
|
|
</div>
|
|
</Component>
|
|
</template>
|
|
<script setup lang="ts">
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
minimal?: boolean
|
|
to?: string
|
|
showTextOnMobile?: boolean
|
|
target?: string
|
|
noLink?: boolean
|
|
}>(),
|
|
{
|
|
to: '/'
|
|
}
|
|
)
|
|
|
|
const NuxtLink = resolveComponent('NuxtLink')
|
|
const mainComponent = computed(() => (props.noLink ? 'div' : NuxtLink))
|
|
</script>
|