n8n/packages/editor-ui/src/components/Logo.vue
Iván Ovejero 5ca2148c7e
refactor(editor): Apply Prettier (no-changelog) (#4920)
*  Adjust `format` script

* 🔥 Remove exemption for `editor-ui`

* 🎨 Prettify

* 👕 Fix lint
2022-12-14 10:04:10 +01:00

25 lines
452 B
Vue

<template>
<img :src="basePath + 'n8n-logo-expanded.svg'" :class="$style.img" alt="n8n.io" />
</template>
<script lang="ts">
import { useRootStore } from '@/stores/n8nRootStore';
import { mapStores } from 'pinia';
import Vue from 'vue';
export default Vue.extend({
computed: {
...mapStores(useRootStore),
basePath(): string {
return this.rootStore.baseUrl;
},
},
});
</script>
<style lang="scss" module>
.img {
height: 32px;
}
</style>