From 3a66599c2310549511f0a200989930af91857054 Mon Sep 17 00:00:00 2001 From: Grzesiek Bylica Date: Wed, 17 Oct 2018 15:51:01 +0200 Subject: [PATCH] #721 Added component isAlive (IsAlive.vue, main.js, package.json, MiscDwr.java, common.js, views.jsp) and some correct messages_fi.properties --- ScadaLTS-UI-1/package.json | 6 +- ScadaLTS-UI-1/src/components/IsAlive.vue | 89 +++++++++++++++++++ ScadaLTS-UI-1/src/main.js | 17 +++- .../WEB-INF/classes/messages_fi.properties | 1 + WebContent/WEB-INF/jsp/views.jsp | 10 ++- WebContent/resources/common.js | 8 +- src/com/serotonin/mango/web/dwr/MiscDwr.java | 6 +- 7 files changed, 128 insertions(+), 9 deletions(-) create mode 100644 ScadaLTS-UI-1/src/components/IsAlive.vue diff --git a/ScadaLTS-UI-1/package.json b/ScadaLTS-UI-1/package.json index 3cf5bd3c17..ed17722077 100644 --- a/ScadaLTS-UI-1/package.json +++ b/ScadaLTS-UI-1/package.json @@ -16,9 +16,11 @@ "dependencies": { "ajv": "^6.5.2", "axios": "^0.18.0", + "bootstrap": "^3.3.7", "material-design-icons-iconfont": "^3.0.3", "moment": "^2.22.2", - "vue": "^2.5.2", + "uiv": "^0.27.0", + "vue": "2.5.2", "vue-jsoneditor": "^1.0.13", "vue-router": "^3.0.1", "vuetify": "^1.0.19" @@ -75,7 +77,7 @@ "vue-jest": "^1.0.2", "vue-loader": "^13.3.0", "vue-style-loader": "^3.0.1", - "vue-template-compiler": "^2.5.2", + "vue-template-compiler": "2.5.2", "webpack": "^3.6.0", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1", diff --git a/ScadaLTS-UI-1/src/components/IsAlive.vue b/ScadaLTS-UI-1/src/components/IsAlive.vue new file mode 100644 index 0000000000..f5132dc285 --- /dev/null +++ b/ScadaLTS-UI-1/src/components/IsAlive.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/ScadaLTS-UI-1/src/main.js b/ScadaLTS-UI-1/src/main.js index 0f3dd34011..793acd7f79 100644 --- a/ScadaLTS-UI-1/src/main.js +++ b/ScadaLTS-UI-1/src/main.js @@ -1,17 +1,25 @@ // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. +import 'bootstrap/dist/css/bootstrap.min.css' + import Vue from 'vue' import App from './App' import Test from './components/Test' +import IsAlive from './components/IsAlive' import ExportImportPointHierarchy from './components/ExportImportPointHierarchy' import SimpleComponentSVG from './components/SimpleComponentSVG' import router from './router' import VJsoneditor from 'vue-jsoneditor'; import Vuetify from 'vuetify'; +import * as uiv from 'uiv' + +import 'bootstrap/dist/css/bootstrap.min.css' + Vue.config.productionTip = false Vue.use(VJsoneditor); Vue.use(Vuetify); +Vue.use(uiv); /*eslint-disable no-new */ new Vue({ @@ -21,13 +29,18 @@ new Vue({ template: '' }) - new Vue({ el: '#test', components: { Test }, template: '' }) +new Vue({ + el: '#app-is-alive', + components: { + "is-alive": IsAlive + }, +}) new Vue({ el: '#export-import-ph', @@ -35,7 +48,6 @@ new Vue({ template: '' }) - new Vue({ el: '#app', components: { @@ -43,3 +55,4 @@ new Vue({ "export-import-ph": ExportImportPointHierarchy } }) + diff --git a/WebContent/WEB-INF/classes/messages_fi.properties b/WebContent/WEB-INF/classes/messages_fi.properties index e856446adf..a9ae340030 100644 --- a/WebContent/WEB-INF/classes/messages_fi.properties +++ b/WebContent/WEB-INF/classes/messages_fi.properties @@ -2903,4 +2903,5 @@ menu.point_hierarchy.add.tooltip=Add folder menu.point_hierarchy.delete.tooltip=Delete folder / Move point to root menu.point_hierarchy.refresh.tooltip=Refresh menu.point_hierarchy.info.tooltip=Info +dsList.statusDescribe=Status description diff --git a/WebContent/WEB-INF/jsp/views.jsp b/WebContent/WEB-INF/jsp/views.jsp index e5155f6e50..bbf78493a8 100644 --- a/WebContent/WEB-INF/jsp/views.jsp +++ b/WebContent/WEB-INF/jsp/views.jsp @@ -24,12 +24,18 @@ + - + - +