Files
speckle-server/packages/frontend-2/components/header/LogoBlock.vue
T
Kristaps Fabians Geikins 6af6c656a4 feat(fe2): app authorization workflow redesign [WBX-217] (#2044)
* 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
2024-02-23 16:50:07 +02:00

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>