seepur/resources/scripts/applications/home/app.vue

68 lines
1.3 KiB
Vue
Raw Normal View History

<template>
<div class="app">
<Header :appName="appName" />
2020-02-09 15:17:11 +00:00
<div class="columns m-t-xs is-fullheight">
<div class="column sidebar">
2020-02-02 22:42:18 +00:00
<SideBar :title="appName" :menu="menu" :appName="appName" />
</div>
2020-02-02 22:42:18 +00:00
<section class="section column app-content">
<div class="container">
<router-view></router-view>
</div>
2020-02-02 22:42:18 +00:00
</section>
</div>
</div>
</template>
2020-02-02 22:42:18 +00:00
<script lang="ts">
import Header from "./components/Header.vue";
2020-03-17 22:16:34 +00:00
import Services from "../services/index";
2020-02-02 22:42:18 +00:00
// import AppRouter from "./router/router.vue";
import {
default as SideBar,
IMenuItem
} from "../shared/components/SideBar/SideBar.vue";
const menu: IMenuItem[] = [
{
href: "/",
text: "Home",
isRouterLink: true,
icon: "fa fa-home"
},
{
href: "/applications",
text: "Applications",
isRouterLink: true,
icon: "fa fa-puzzle-piece"
},
{
href: "/settings",
isRouterLink: true,
text: "Settings",
icon: "fa fa-gears"
},
{
isRouterLink: false,
href: "/logout",
text: "Logout",
icon: "fa fa-sign-out"
}
];
2020-03-17 22:16:34 +00:00
// Services.ApiService.getConnections();
2020-02-02 22:42:18 +00:00
export default {
name: "App",
// router: AppRouter,
components: {
SideBar,
Header
},
data() {
return {
appName: "Seepur",
menu
};
}
};
</script>