diff --git a/view/main.js b/view/main.js index b4b62ff..a809545 100755 --- a/view/main.js +++ b/view/main.js @@ -20,8 +20,10 @@ window.api = new API("http://ndli1718/api/v/1.0/"); window.wsc = new WSClientBuilder("wss://websocket.xdrm.io"); /* (3) Render view */ - new Vue({ - el: '#main-vue', - render: h => h(main_vue) + el: '#main-vue', + render: h => h(main_vue), + data: { + 'server': window._SERVER + } }) diff --git a/view/vue/header.vue b/view/vue/header.vue new file mode 100644 index 0000000..40db7fc --- /dev/null +++ b/view/vue/header.vue @@ -0,0 +1,14 @@ + + + + HEADER CONTENT (component) + + + + + + \ No newline at end of file diff --git a/view/vue/main.vue b/view/vue/main.vue index 403e04c..a2cec9b 100755 --- a/view/vue/main.vue +++ b/view/vue/main.vue @@ -1,59 +1,55 @@ - - {{ msg }} - Essential Links - - Core Docs - Forum - Community Chat - Twitter - - Ecosystem - - vue-router - vuex - vue-loader - awesome-vue - - + + + + + message: {{ msg }} + + +