mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
2125f25791
* Tweaks to events * more tweaks and fixes
60 lines
791 B
Vue
60 lines
791 B
Vue
<template>
|
|
<div id="app">
|
|
<div id="header">
|
|
<router-view name="header"></router-view>
|
|
</div>
|
|
<div id="sidebar">
|
|
<router-view name="sidebar"></router-view>
|
|
</div>
|
|
<div id="content">
|
|
<router-view />
|
|
</div>
|
|
<Telemetry />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import Telemetry from './components/Telemetry.vue';
|
|
|
|
export default Vue.extend({
|
|
name: 'App',
|
|
components: {
|
|
Telemetry,
|
|
},
|
|
watch: {
|
|
'$route'(route) {
|
|
this.$telemetry.page('Editor', route.name);
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
#app {
|
|
padding: 0;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#content {
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#header {
|
|
z-index: 10;
|
|
position: fixed;
|
|
width: 100%;
|
|
}
|
|
|
|
#sidebar {
|
|
z-index: 15;
|
|
position: fixed;
|
|
}
|
|
|
|
</style>
|