Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Tania installer #95

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 8 additions & 22 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
<template>
<div id="app">
<div class="row">
<div class="col-md-3 col-lg-2 d-none d-md-block">
<AppAside />
</div>
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-10">
<div class="main-content">
<div class="app-content-body">
<router-view/>
<Footer />
</div>
</div>
</div>
</div>
<component :is="layout">
<router-view />
</component>
</div>
</template>

<script>
import AppAside from '@/components/AppAside.vue';
import Footer from '@/components/Footer.vue';
const defaultLayout = 'default';

export default {
components: {
AppAside,
Footer,
computed: {
layout() {
return `${(this.$route.meta.layout || defaultLayout)}-layout`;
},
},
};
</script>

<style lang="scss">

</style>
27 changes: 27 additions & 0 deletions frontend/src/layouts/Default.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<div class="row">
<div class="col-md-3 col-lg-2 d-none d-md-block">
<AppAside />
</div>
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-10">
<div class="main-content">
<div class="app-content-body">
<router-view/>
<Footer />
</div>
</div>
</div>
</div>
</template>

<script>
import AppAside from '@/components/AppAside.vue';
import Footer from '@/components/Footer.vue';

export default {
components: {
AppAside,
Footer,
},
};
</script>
22 changes: 22 additions & 0 deletions frontend/src/layouts/NoSidebar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-10">
<div class="main-content">
<div class="app-content-body">
<router-view/>
<Footer />
</div>
</div>
</div>
</div>
</template>

<script>
import Footer from '@/components/Footer.vue';

export default {
components: {
Footer,
},
};
</script>
6 changes: 6 additions & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import store from './store';
import './registerServiceWorker';
import '../scss/app.scss';

import Default from './layouts/Default.vue';
import NoSidebar from './layouts/NoSidebar.vue';

Vue.component('default-layout', Default);
Vue.component('no-sidebar-layout', NoSidebar);

Vue.config.productionTip = false;

Vue.use(BootstrapVue);
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Vue from 'vue';
import Router from 'vue-router';
import Dashboard from './views/dashboard/Index.vue';
import Installer from './views/installer/Index.vue';

Vue.use(Router);

Expand All @@ -14,12 +15,13 @@ export default new Router({
component: Dashboard,
},
{
path: '/about',
name: 'about',
path: '/installer',
name: 'installer',
meta: { layout: 'no-sidebar' },
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
component: Installer,
},
],
});
5 changes: 0 additions & 5 deletions frontend/src/views/About.vue

This file was deleted.

18 changes: 0 additions & 18 deletions frontend/src/views/Home.vue

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/src/views/installer/Index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div class="container-fluid">

</div>
</template>