From 45ecd5c8ce3d54c7b26a0695adc543796695e70b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 28 Aug 2021 00:45:54 -0700 Subject: [PATCH] ui cleanups --- plugins/core/ui/package-lock.json | 13 ++++- plugins/core/ui/package.json | 17 +++--- .../core/ui/public/images/cameraloading.jpg | Bin 4969 -> 5763 bytes plugins/core/ui/src/App.vue | 6 +- plugins/core/ui/src/common/DeviceTable.vue | 2 +- .../core/ui/src/components/BasicComponent.vue | 4 +- plugins/core/ui/src/components/Device.vue | 21 ++++--- plugins/core/ui/src/components/Devices.vue | 4 +- plugins/core/ui/src/components/Drawer.vue | 14 ++--- .../components/aggregate/AggregateDevice.vue | 2 +- .../src/components/automation/Automation.vue | 12 ++-- .../ui/src/components/dashboard/Dashboard.vue | 12 ++-- .../components/dashboard/DashboardCamera.vue | 2 +- .../components/dashboard/DashboardLock.vue | 31 +++++++---- .../dashboard/DashboardMediaPlayer.vue | 19 ++++--- .../dashboard/DashboardPopupToggle.vue | 28 ++++++---- .../components/dashboard/DashboardSensors.vue | 4 +- .../dashboard/DashboardStartStop.vue | 25 +++++---- .../dashboard/DashboardThermostat.vue | 10 ++-- .../components/dashboard/DashboardToggle.vue | 47 ++++++++-------- .../core/ui/src/components/header-card.css | 40 -------------- plugins/core/ui/src/components/helpers.ts | 52 +++++++++--------- .../src/components/script/InstallPlugin.vue | 2 +- .../core/ui/src/components/script/Script.vue | 6 +- .../ui/src/components/script/ScriptDevice.vue | 4 +- plugins/core/ui/src/plugins/icons.ts | 5 +- plugins/core/ui/src/router.js | 11 ++-- 27 files changed, 195 insertions(+), 198 deletions(-) delete mode 100644 plugins/core/ui/src/components/header-card.css diff --git a/plugins/core/ui/package-lock.json b/plugins/core/ui/package-lock.json index b7eafb825..7b70e5b15 100644 --- a/plugins/core/ui/package-lock.json +++ b/plugins/core/ui/package-lock.json @@ -37,7 +37,8 @@ "vue-swatches": "^1.0.4", "vue2-google-maps": "^0.10.7", "vuetify": "^2.5.8", - "vuex": "^3.6.2" + "vuex": "^3.6.2", + "xterm": "^4.13.0" }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.13.0", @@ -18736,6 +18737,11 @@ "node": ">=0.4" } }, + "node_modules/xterm": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/xterm/-/xterm-4.13.0.tgz", + "integrity": "sha512-HVW1gdoLOTnkMaqQCr2r3mQy4fX9iSa5gWxKZ2UTYdLa4iqavv7QxJ8n1Ypse32shPVkhTYPLS6vHEFZp5ghzw==" + }, "node_modules/y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", @@ -33889,6 +33895,11 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, + "xterm": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/xterm/-/xterm-4.13.0.tgz", + "integrity": "sha512-HVW1gdoLOTnkMaqQCr2r3mQy4fX9iSa5gWxKZ2UTYdLa4iqavv7QxJ8n1Ypse32shPVkhTYPLS6vHEFZp5ghzw==" + }, "y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", diff --git a/plugins/core/ui/package.json b/plugins/core/ui/package.json index bbf7a326b..32bb049cb 100644 --- a/plugins/core/ui/package.json +++ b/plugins/core/ui/package.json @@ -39,11 +39,19 @@ "vue-swatches": "^1.0.4", "vue2-google-maps": "^0.10.7", "vuetify": "^2.5.8", - "vuex": "^3.6.2" + "vuex": "^3.6.2", + "xterm": "^4.13.0" }, "devDependencies": { + "@babel/plugin-proposal-class-properties": "^7.13.0", + "@babel/plugin-proposal-optional-chaining": "^7.13.8", + "@babel/plugin-transform-modules-commonjs": "^7.13.8", + "@babel/plugin-transform-typescript": "^7.13.0", + "@babel/preset-env": "^7.9.0", + "@babel/preset-typescript": "^7.13.0", "@types/blob-stream": "^0.1.30", "@types/dom-webcodecs": "^0.1.0", + "@types/lodash": "^4.14.172", "@types/mkdirp": "^1.0.1", "@types/node": "^16.0.0", "@types/plist": "^3.0.2", @@ -53,13 +61,6 @@ "@types/socket.io-client": "^1.4.33", "@types/streamsaver": "^2.0.0", "@types/tmp": "^0.2.1", - "@babel/preset-env": "^7.9.0", - "@babel/plugin-proposal-class-properties": "^7.13.0", - "@babel/plugin-proposal-optional-chaining": "^7.13.8", - "@babel/plugin-transform-modules-commonjs": "^7.13.8", - "@babel/plugin-transform-typescript": "^7.13.0", - "@babel/preset-typescript": "^7.13.0", - "@types/lodash": "^4.14.172", "@typescript-eslint/eslint-plugin": "^4.17.0", "@typescript-eslint/parser": "^4.17.0", "@vue/cli-plugin-babel": "^4.5.13", diff --git a/plugins/core/ui/public/images/cameraloading.jpg b/plugins/core/ui/public/images/cameraloading.jpg index 637b8372a04d2d975e290aa3d7281a4053388461..dc17629252d251c89ae80689fded261535a66d7c 100644 GIT binary patch literal 5763 zcmeHKNo*5W82;bPICjz=a7dugLx%}Vie%3c66_Ji0*5pp8HErE>2&qe`GLLihqS8C*FG5JRty z;8mzLpF`ms5%3+V@y|d~4p(8kVZ8=SzVBDKC4omItix@KW~tpt#ncV9#n4&FFZcrh zk{||Up+S}ctSAsrF9Fc~Xmn2fRDl=u_0t6mgJb}EsQmj*(@e`epUU`^gdS7-@UW!HdCQkQXFgl6*MBm+48FisegXY6=XEY9?-IX;afvEMZh) z`WiFD;gN@@luVD%j;Wm_rsXJ}Z9*}XM#WS^oFqu1PYC#=KpXK~l7-nThw~zaN|vTg z*Ska9SWA_s(-T^IPk~Gf`h*5TR#-ZY$MX5Sega2~oXa}lIN&(oIN&(oIN&(&|8rop z6jM{U{>tJ)3+$ud^}rzNqmdUVFQUE3J^`=cs?mjVL5e&Qh@u%+ncGud@e)orFb*h0 z(-cFyTnsKc(L4A(FkV;X6meeJ_$7*)TU{ls-MGb5Gk?#q>ehirQ|n^Jy7Gz%6JMD$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z4=F1B2ui!E2_ zV#_tU*m9jNwv6T%(#i_^|8&YPpyK!8dVvaaVDa1XCvwr9ALU2x$?lwV?%$zLW?dEP zon3p1lo?K)I?N(UV{4Egy#ZS`+8|2v)={GY*nYt2LlR*^v3;Jk|L!*L29r+1jd zbN=vm-T6_xbB}AW?A+GYIk`HY&ug=KJa%QBIkS&Jv^_rh-$DCNRq>ntGyLtl75}e4 IisAoF0HPwk5&!@I diff --git a/plugins/core/ui/src/App.vue b/plugins/core/ui/src/App.vue index ee9475739..552464ee8 100644 --- a/plugins/core/ui/src/App.vue +++ b/plugins/core/ui/src/App.vue @@ -46,7 +46,7 @@ @click="doAlert(alert)" > - + {{ getAlertIcon(alert) }} {{ alert.title }} @@ -62,7 +62,7 @@ - + fa-trash Clear All Alerts @@ -87,7 +87,7 @@ @click="menuItem.click" > - + {{ menuItem.icon }} {{ menuItem.title }} diff --git a/plugins/core/ui/src/common/DeviceTable.vue b/plugins/core/ui/src/common/DeviceTable.vue index cd257ea22..05b48f523 100644 --- a/plugins/core/ui/src/common/DeviceTable.vue +++ b/plugins/core/ui/src/common/DeviceTable.vue @@ -13,7 +13,7 @@ - + {{ typeToIcon(device.type) }} {{ device.name }} diff --git a/plugins/core/ui/src/components/BasicComponent.vue b/plugins/core/ui/src/components/BasicComponent.vue index aa297faca..c85cc7d92 100644 --- a/plugins/core/ui/src/components/BasicComponent.vue +++ b/plugins/core/ui/src/components/BasicComponent.vue @@ -7,7 +7,7 @@ xs12 :md6="deviceGroups.length > 1" > - + {{ card.title }} - + {{ deviceGroup.name }}
{{ alert.title }}
- + @@ -167,7 +166,7 @@ - + @@ -219,7 +218,7 @@ - + @@ -246,7 +245,7 @@ - + @@ -284,7 +283,7 @@ - + Storage diff --git a/plugins/core/ui/src/components/Devices.vue b/plugins/core/ui/src/components/Devices.vue index c3b0d4ef8..35630fab3 100644 --- a/plugins/core/ui/src/components/Devices.vue +++ b/plugins/core/ui/src/components/Devices.vue @@ -20,7 +20,9 @@ :search="search" >