From a2988f40b965fdcf2941ff6e62c5bac5cf0e6988 Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Fri, 17 Jan 2020 13:46:30 -0600 Subject: Create basic application using vue - Create vue app - Add AppHeader and AppNavigation - Set up routes for server overview and local user management - Add themes and set to gray-10 theme - Add active class for current navigation - Add a prototype method named $http to vue prototype - The UI uses console logs in production to communicate to users - Add boostrap vue component library Change-Id: Ib6618e6357ca01bdac6de4ed031a15c8552226f3 Signed-off-by: Derick Montague --- src/main.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.js (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js new file mode 100644 index 00000000..16687c5c --- /dev/null +++ b/src/main.js @@ -0,0 +1,26 @@ +import Vue from "vue"; +import App from "./App.vue"; +import router from "./router"; +import store from "./store"; +import Axios from "axios"; +import { + ButtonPlugin, + NavPlugin, + CollapsePlugin, + LinkPlugin, + NavbarPlugin +} from "bootstrap-vue"; + +Vue.use(ButtonPlugin); +Vue.use(NavPlugin); +Vue.use(CollapsePlugin); +Vue.use(LinkPlugin); +Vue.use(NavbarPlugin); + +Vue.prototype.$http = Axios; + +new Vue({ + router, + store, + render: h => h(App) +}).$mount("#app"); -- cgit v1.2.3