mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 02:21:42 -08:00
609bc4d97d
Some checks failed
Test Master / install-and-build (push) Has been cancelled
Test Master / Unit tests (18.x) (push) Has been cancelled
Test Master / Unit tests (20.x) (push) Has been cancelled
Test Master / Unit tests (22.4) (push) Has been cancelled
Test Master / Lint (push) Has been cancelled
Test Master / Notify Slack on failure (push) Has been cancelled
61 lines
1 KiB
Vue
61 lines
1 KiB
Vue
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import GoBackButton from '@/components/GoBackButton.vue';
|
|
|
|
export default defineComponent({
|
|
name: 'TemplatesView',
|
|
components: {
|
|
GoBackButton,
|
|
},
|
|
props: {
|
|
goBackEnabled: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div :class="$style.template">
|
|
<div :class="$style.container">
|
|
<div :class="$style.header">
|
|
<div v-if="goBackEnabled" :class="$style.goBack">
|
|
<GoBackButton />
|
|
</div>
|
|
<slot name="header"></slot>
|
|
</div>
|
|
<div>
|
|
<slot name="content"></slot>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" module>
|
|
.template {
|
|
display: flex;
|
|
width: 100%;
|
|
max-width: 1280px;
|
|
padding: var(--spacing-l) var(--spacing-l) 0;
|
|
justify-content: center;
|
|
@media (min-width: 1200px) {
|
|
padding: var(--spacing-2xl) var(--spacing-2xl) 0;
|
|
}
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: var(--spacing-2xl);
|
|
}
|
|
|
|
.goBack {
|
|
margin-bottom: var(--spacing-2xs);
|
|
}
|
|
</style>
|