From 5894aecae3e2ed083e8189d811522ca12a0f4c4b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 30 Nov 2017 16:46:30 +0100 Subject: [PATCH] upd: view.vue.main (now can include component (import + CamelCase)) --- view/main.js | 8 +++--- view/vue/header.vue | 14 ++++++++++ view/vue/main.vue | 66 +++++++++++++++++++++------------------------ 3 files changed, 50 insertions(+), 38 deletions(-) create mode 100644 view/vue/header.vue 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 @@ + + + + \ 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 @@ +