This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/resources/scripts/applications/admin/app.vue

71 lines
1.4 KiB
Vue
Raw Normal View History

2020-03-17 22:16:34 +00:00
<template>
<div class="app">
<Header :appName="appName" />
<div class="columns m-t-xs is-fullheight">
<div class="column sidebar">
<SideBar :title="appName" :menu="menu" :appName="appName" />
</div>
<section class="section column app-content">
<div class="container">
<router-view></router-view>
</div>
</section>
</div>
</div>
</template>
<script lang="ts">
import Header from "./components/Header.vue";
import Services from "../services/index";
// 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"
}
];
// Services.ApiService.getConnections();
export default {
name: "App",
// router: AppRouter,
components: {
SideBar,
Header
},
async created() {
console.log(this.$store.getters.users);
},
data() {
return {
appName: "Admin",
menu
};
}
};
</script>