angular-develop-client/dist/client/main.js
Dawid Kubicki e162f1758c edit works
2019-01-19 00:44:53 +01:00

915 lines
81 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
/*!**************************************************!*\
!*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./af": "./node_modules/moment/locale/af.js",
"./af.js": "./node_modules/moment/locale/af.js",
"./ar": "./node_modules/moment/locale/ar.js",
"./ar-dz": "./node_modules/moment/locale/ar-dz.js",
"./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
"./ar-kw": "./node_modules/moment/locale/ar-kw.js",
"./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
"./ar-ly": "./node_modules/moment/locale/ar-ly.js",
"./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
"./ar-ma": "./node_modules/moment/locale/ar-ma.js",
"./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
"./ar-sa": "./node_modules/moment/locale/ar-sa.js",
"./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
"./ar-tn": "./node_modules/moment/locale/ar-tn.js",
"./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
"./ar.js": "./node_modules/moment/locale/ar.js",
"./az": "./node_modules/moment/locale/az.js",
"./az.js": "./node_modules/moment/locale/az.js",
"./be": "./node_modules/moment/locale/be.js",
"./be.js": "./node_modules/moment/locale/be.js",
"./bg": "./node_modules/moment/locale/bg.js",
"./bg.js": "./node_modules/moment/locale/bg.js",
"./bm": "./node_modules/moment/locale/bm.js",
"./bm.js": "./node_modules/moment/locale/bm.js",
"./bn": "./node_modules/moment/locale/bn.js",
"./bn.js": "./node_modules/moment/locale/bn.js",
"./bo": "./node_modules/moment/locale/bo.js",
"./bo.js": "./node_modules/moment/locale/bo.js",
"./br": "./node_modules/moment/locale/br.js",
"./br.js": "./node_modules/moment/locale/br.js",
"./bs": "./node_modules/moment/locale/bs.js",
"./bs.js": "./node_modules/moment/locale/bs.js",
"./ca": "./node_modules/moment/locale/ca.js",
"./ca.js": "./node_modules/moment/locale/ca.js",
"./cs": "./node_modules/moment/locale/cs.js",
"./cs.js": "./node_modules/moment/locale/cs.js",
"./cv": "./node_modules/moment/locale/cv.js",
"./cv.js": "./node_modules/moment/locale/cv.js",
"./cy": "./node_modules/moment/locale/cy.js",
"./cy.js": "./node_modules/moment/locale/cy.js",
"./da": "./node_modules/moment/locale/da.js",
"./da.js": "./node_modules/moment/locale/da.js",
"./de": "./node_modules/moment/locale/de.js",
"./de-at": "./node_modules/moment/locale/de-at.js",
"./de-at.js": "./node_modules/moment/locale/de-at.js",
"./de-ch": "./node_modules/moment/locale/de-ch.js",
"./de-ch.js": "./node_modules/moment/locale/de-ch.js",
"./de.js": "./node_modules/moment/locale/de.js",
"./dv": "./node_modules/moment/locale/dv.js",
"./dv.js": "./node_modules/moment/locale/dv.js",
"./el": "./node_modules/moment/locale/el.js",
"./el.js": "./node_modules/moment/locale/el.js",
"./en-au": "./node_modules/moment/locale/en-au.js",
"./en-au.js": "./node_modules/moment/locale/en-au.js",
"./en-ca": "./node_modules/moment/locale/en-ca.js",
"./en-ca.js": "./node_modules/moment/locale/en-ca.js",
"./en-gb": "./node_modules/moment/locale/en-gb.js",
"./en-gb.js": "./node_modules/moment/locale/en-gb.js",
"./en-ie": "./node_modules/moment/locale/en-ie.js",
"./en-ie.js": "./node_modules/moment/locale/en-ie.js",
"./en-il": "./node_modules/moment/locale/en-il.js",
"./en-il.js": "./node_modules/moment/locale/en-il.js",
"./en-nz": "./node_modules/moment/locale/en-nz.js",
"./en-nz.js": "./node_modules/moment/locale/en-nz.js",
"./eo": "./node_modules/moment/locale/eo.js",
"./eo.js": "./node_modules/moment/locale/eo.js",
"./es": "./node_modules/moment/locale/es.js",
"./es-do": "./node_modules/moment/locale/es-do.js",
"./es-do.js": "./node_modules/moment/locale/es-do.js",
"./es-us": "./node_modules/moment/locale/es-us.js",
"./es-us.js": "./node_modules/moment/locale/es-us.js",
"./es.js": "./node_modules/moment/locale/es.js",
"./et": "./node_modules/moment/locale/et.js",
"./et.js": "./node_modules/moment/locale/et.js",
"./eu": "./node_modules/moment/locale/eu.js",
"./eu.js": "./node_modules/moment/locale/eu.js",
"./fa": "./node_modules/moment/locale/fa.js",
"./fa.js": "./node_modules/moment/locale/fa.js",
"./fi": "./node_modules/moment/locale/fi.js",
"./fi.js": "./node_modules/moment/locale/fi.js",
"./fo": "./node_modules/moment/locale/fo.js",
"./fo.js": "./node_modules/moment/locale/fo.js",
"./fr": "./node_modules/moment/locale/fr.js",
"./fr-ca": "./node_modules/moment/locale/fr-ca.js",
"./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
"./fr-ch": "./node_modules/moment/locale/fr-ch.js",
"./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
"./fr.js": "./node_modules/moment/locale/fr.js",
"./fy": "./node_modules/moment/locale/fy.js",
"./fy.js": "./node_modules/moment/locale/fy.js",
"./gd": "./node_modules/moment/locale/gd.js",
"./gd.js": "./node_modules/moment/locale/gd.js",
"./gl": "./node_modules/moment/locale/gl.js",
"./gl.js": "./node_modules/moment/locale/gl.js",
"./gom-latn": "./node_modules/moment/locale/gom-latn.js",
"./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
"./gu": "./node_modules/moment/locale/gu.js",
"./gu.js": "./node_modules/moment/locale/gu.js",
"./he": "./node_modules/moment/locale/he.js",
"./he.js": "./node_modules/moment/locale/he.js",
"./hi": "./node_modules/moment/locale/hi.js",
"./hi.js": "./node_modules/moment/locale/hi.js",
"./hr": "./node_modules/moment/locale/hr.js",
"./hr.js": "./node_modules/moment/locale/hr.js",
"./hu": "./node_modules/moment/locale/hu.js",
"./hu.js": "./node_modules/moment/locale/hu.js",
"./hy-am": "./node_modules/moment/locale/hy-am.js",
"./hy-am.js": "./node_modules/moment/locale/hy-am.js",
"./id": "./node_modules/moment/locale/id.js",
"./id.js": "./node_modules/moment/locale/id.js",
"./is": "./node_modules/moment/locale/is.js",
"./is.js": "./node_modules/moment/locale/is.js",
"./it": "./node_modules/moment/locale/it.js",
"./it.js": "./node_modules/moment/locale/it.js",
"./ja": "./node_modules/moment/locale/ja.js",
"./ja.js": "./node_modules/moment/locale/ja.js",
"./jv": "./node_modules/moment/locale/jv.js",
"./jv.js": "./node_modules/moment/locale/jv.js",
"./ka": "./node_modules/moment/locale/ka.js",
"./ka.js": "./node_modules/moment/locale/ka.js",
"./kk": "./node_modules/moment/locale/kk.js",
"./kk.js": "./node_modules/moment/locale/kk.js",
"./km": "./node_modules/moment/locale/km.js",
"./km.js": "./node_modules/moment/locale/km.js",
"./kn": "./node_modules/moment/locale/kn.js",
"./kn.js": "./node_modules/moment/locale/kn.js",
"./ko": "./node_modules/moment/locale/ko.js",
"./ko.js": "./node_modules/moment/locale/ko.js",
"./ku": "./node_modules/moment/locale/ku.js",
"./ku.js": "./node_modules/moment/locale/ku.js",
"./ky": "./node_modules/moment/locale/ky.js",
"./ky.js": "./node_modules/moment/locale/ky.js",
"./lb": "./node_modules/moment/locale/lb.js",
"./lb.js": "./node_modules/moment/locale/lb.js",
"./lo": "./node_modules/moment/locale/lo.js",
"./lo.js": "./node_modules/moment/locale/lo.js",
"./lt": "./node_modules/moment/locale/lt.js",
"./lt.js": "./node_modules/moment/locale/lt.js",
"./lv": "./node_modules/moment/locale/lv.js",
"./lv.js": "./node_modules/moment/locale/lv.js",
"./me": "./node_modules/moment/locale/me.js",
"./me.js": "./node_modules/moment/locale/me.js",
"./mi": "./node_modules/moment/locale/mi.js",
"./mi.js": "./node_modules/moment/locale/mi.js",
"./mk": "./node_modules/moment/locale/mk.js",
"./mk.js": "./node_modules/moment/locale/mk.js",
"./ml": "./node_modules/moment/locale/ml.js",
"./ml.js": "./node_modules/moment/locale/ml.js",
"./mn": "./node_modules/moment/locale/mn.js",
"./mn.js": "./node_modules/moment/locale/mn.js",
"./mr": "./node_modules/moment/locale/mr.js",
"./mr.js": "./node_modules/moment/locale/mr.js",
"./ms": "./node_modules/moment/locale/ms.js",
"./ms-my": "./node_modules/moment/locale/ms-my.js",
"./ms-my.js": "./node_modules/moment/locale/ms-my.js",
"./ms.js": "./node_modules/moment/locale/ms.js",
"./mt": "./node_modules/moment/locale/mt.js",
"./mt.js": "./node_modules/moment/locale/mt.js",
"./my": "./node_modules/moment/locale/my.js",
"./my.js": "./node_modules/moment/locale/my.js",
"./nb": "./node_modules/moment/locale/nb.js",
"./nb.js": "./node_modules/moment/locale/nb.js",
"./ne": "./node_modules/moment/locale/ne.js",
"./ne.js": "./node_modules/moment/locale/ne.js",
"./nl": "./node_modules/moment/locale/nl.js",
"./nl-be": "./node_modules/moment/locale/nl-be.js",
"./nl-be.js": "./node_modules/moment/locale/nl-be.js",
"./nl.js": "./node_modules/moment/locale/nl.js",
"./nn": "./node_modules/moment/locale/nn.js",
"./nn.js": "./node_modules/moment/locale/nn.js",
"./pa-in": "./node_modules/moment/locale/pa-in.js",
"./pa-in.js": "./node_modules/moment/locale/pa-in.js",
"./pl": "./node_modules/moment/locale/pl.js",
"./pl.js": "./node_modules/moment/locale/pl.js",
"./pt": "./node_modules/moment/locale/pt.js",
"./pt-br": "./node_modules/moment/locale/pt-br.js",
"./pt-br.js": "./node_modules/moment/locale/pt-br.js",
"./pt.js": "./node_modules/moment/locale/pt.js",
"./ro": "./node_modules/moment/locale/ro.js",
"./ro.js": "./node_modules/moment/locale/ro.js",
"./ru": "./node_modules/moment/locale/ru.js",
"./ru.js": "./node_modules/moment/locale/ru.js",
"./sd": "./node_modules/moment/locale/sd.js",
"./sd.js": "./node_modules/moment/locale/sd.js",
"./se": "./node_modules/moment/locale/se.js",
"./se.js": "./node_modules/moment/locale/se.js",
"./si": "./node_modules/moment/locale/si.js",
"./si.js": "./node_modules/moment/locale/si.js",
"./sk": "./node_modules/moment/locale/sk.js",
"./sk.js": "./node_modules/moment/locale/sk.js",
"./sl": "./node_modules/moment/locale/sl.js",
"./sl.js": "./node_modules/moment/locale/sl.js",
"./sq": "./node_modules/moment/locale/sq.js",
"./sq.js": "./node_modules/moment/locale/sq.js",
"./sr": "./node_modules/moment/locale/sr.js",
"./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
"./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
"./sr.js": "./node_modules/moment/locale/sr.js",
"./ss": "./node_modules/moment/locale/ss.js",
"./ss.js": "./node_modules/moment/locale/ss.js",
"./sv": "./node_modules/moment/locale/sv.js",
"./sv.js": "./node_modules/moment/locale/sv.js",
"./sw": "./node_modules/moment/locale/sw.js",
"./sw.js": "./node_modules/moment/locale/sw.js",
"./ta": "./node_modules/moment/locale/ta.js",
"./ta.js": "./node_modules/moment/locale/ta.js",
"./te": "./node_modules/moment/locale/te.js",
"./te.js": "./node_modules/moment/locale/te.js",
"./tet": "./node_modules/moment/locale/tet.js",
"./tet.js": "./node_modules/moment/locale/tet.js",
"./tg": "./node_modules/moment/locale/tg.js",
"./tg.js": "./node_modules/moment/locale/tg.js",
"./th": "./node_modules/moment/locale/th.js",
"./th.js": "./node_modules/moment/locale/th.js",
"./tl-ph": "./node_modules/moment/locale/tl-ph.js",
"./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
"./tlh": "./node_modules/moment/locale/tlh.js",
"./tlh.js": "./node_modules/moment/locale/tlh.js",
"./tr": "./node_modules/moment/locale/tr.js",
"./tr.js": "./node_modules/moment/locale/tr.js",
"./tzl": "./node_modules/moment/locale/tzl.js",
"./tzl.js": "./node_modules/moment/locale/tzl.js",
"./tzm": "./node_modules/moment/locale/tzm.js",
"./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
"./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
"./tzm.js": "./node_modules/moment/locale/tzm.js",
"./ug-cn": "./node_modules/moment/locale/ug-cn.js",
"./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
"./uk": "./node_modules/moment/locale/uk.js",
"./uk.js": "./node_modules/moment/locale/uk.js",
"./ur": "./node_modules/moment/locale/ur.js",
"./ur.js": "./node_modules/moment/locale/ur.js",
"./uz": "./node_modules/moment/locale/uz.js",
"./uz-latn": "./node_modules/moment/locale/uz-latn.js",
"./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
"./uz.js": "./node_modules/moment/locale/uz.js",
"./vi": "./node_modules/moment/locale/vi.js",
"./vi.js": "./node_modules/moment/locale/vi.js",
"./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
"./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
"./yo": "./node_modules/moment/locale/yo.js",
"./yo.js": "./node_modules/moment/locale/yo.js",
"./zh-cn": "./node_modules/moment/locale/zh-cn.js",
"./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
"./zh-hk": "./node_modules/moment/locale/zh-hk.js",
"./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
"./zh-tw": "./node_modules/moment/locale/zh-tw.js",
"./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
};
function webpackContext(req) {
var id = webpackContextResolve(req);
return __webpack_require__(id);
}
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) { // check for number or string
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
return id;
}
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
/***/ }),
/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
/***/ }),
/***/ "./src/app/admin/admin.component.html":
/*!********************************************!*\
!*** ./src/app/admin/admin.component.html ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-6\">\n <h3>Dodawanie nowych urządzeń</h3>\n <form class=\"admin-form\" (ngSubmit)=\"onAddDevice()\">\n <div class=\"input-wrapper\">\n <mat-form-field class=\"admin-full-width\">\n <input\n matInput\n #nameDevice\n maxlength=\"256\"\n placeholder=\"Nazwa urządzenia\"\n [formControl]=\"name\"\n />\n <mat-hint align=\"start\"\n ><strong\n >Podaj nazwę czujnika (w przypadku ESPEasy name device)</strong\n >\n </mat-hint>\n <mat-hint align=\"end\">{{ nameDevice.value.length }} / 100</mat-hint>\n </mat-form-field>\n </div>\n <div class=\"input-wrapper\">\n <mat-form-field class=\"admin-full-width\">\n <input\n matInput\n #ipDevice\n maxlength=\"256\"\n placeholder=\"Adres IP urządzenia\"\n [formControl]=\"ip\"\n />\n <mat-hint align=\"start\"\n ><strong>Podaj przypisany do urządzenia stały adres IP</strong>\n </mat-hint>\n <mat-hint align=\"end\">{{ ipDevice.value.length }} / 15</mat-hint>\n </mat-form-field>\n </div>\n <div class=\"example-button-row\">\n <button mat-flat-button color=\"primary\">Dodaj urządzenie</button>\n </div>\n </form>\n </div>\n <div class=\"col-md-6\">\n <h3>Usuwanie urządzeń</h3>\n <form class=\"admin-form\" (ngSubmit)=\"onDeviceDelete()\">\n <div class=\"input-wrapper\">\n <mat-form-field class=\"admin-full-width\">\n <input\n matInput\n #ipDeviceDel\n maxlength=\"256\"\n placeholder=\"Adres IP urządzenia\"\n [formControl]=\"ipDelete\"\n />\n <mat-hint align=\"start\"\n ><strong>Podaj przypisany do urządzenia stały adres IP</strong>\n </mat-hint>\n <mat-hint align=\"end\">{{ ipDeviceDel.value.length }} / 15</mat-hint>\n </mat-form-field>\n </div>\n <div class=\"example-button-row\">\n <button mat-flat-button color=\"accent\">Usuń urządzenie</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n"
/***/ }),
/***/ "./src/app/admin/admin.component.less":
/*!********************************************!*\
!*** ./src/app/admin/admin.component.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".container .row {\n margin-top: 40px;\n}\n.container .row .admin-form {\n min-width: 150px;\n max-width: 500px;\n width: 100%;\n margin-top: 50px;\n}\n.container .row .admin-form .input-wrapper {\n margin-bottom: 30px;\n}\n.container .row .admin-form .admin-full-width {\n width: 100%;\n}\n.container .example-button-row button,\n.container .example-button-row a {\n margin-right: 8px;\n}\ntable {\n width: 100%;\n}\n.machine-row {\n margin-top: 60px;\n}\n.machine-row .machine-text {\n color: #000000;\n font-size: 36px;\n font-weight: 300;\n letter-spacing: 2px;\n}\n.machine-row .machine-status {\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n margin-left: 30px;\n margin-top: 50px;\n letter-spacing: 0.5px;\n}\n.machine-row .machine-status img {\n width: 15px;\n margin-top: -3px;\n margin-left: 10px;\n}\n.machine-row .machine-status span {\n font-size: 24px;\n margin-left: 15px;\n top: -10px;\n}\n.machine-row .machine-status2 {\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n margin-left: 30px;\n margin-top: 10px;\n letter-spacing: 0.5px;\n}\n.machine-row .machine-status2 img {\n width: 15px;\n margin-top: -3px;\n margin-left: 10px;\n}\n.machine-row .machine-status2 span {\n font-size: 24px;\n margin-left: 15px;\n top: -10px;\n}\n.machine-row .machine-image {\n width: 230px;\n margin-top: 0px;\n margin-left: 50px;\n}\n.stat-wrapper {\n margin-left: 30px;\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n}\n.stat-wrapper .stat-text {\n color: #000000;\n font-size: 36px;\n font-weight: 300;\n letter-spacing: 2px;\n margin-bottom: 30px;\n}\n.button-use {\n margin-left: 30px;\n margin-top: 20px;\n}\n.boldMe {\n font-weight: 400;\n}\n.lists {\n text-align: center;\n font-size: 20px;\n}\n.machine-list {\n margin-right: 0px;\n margin-top: 60px;\n text-align: center;\n}\n.row-list {\n width: 700px;\n display: inline-block;\n}\n.room-button {\n border-radius: 12px;\n background-color: white;\n border: solid 1px red;\n color: red;\n padding: 10px;\n width: 120px;\n margin-bottom: 20px;\n}\n.room-button:hover {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n.room-button:active {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n.room-button:focus {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n@media only screen and (max-width: 1000px) {\n .machine-image {\n margin-left: 50px;\n display: none;\n }\n}\n@media only screen and (max-width: 800px) {\n .machine-row .machine-text {\n font-size: 30px;\n }\n .stat-wrapper .stat-text {\n font-size: 30px;\n }\n}\n.col-xs-3 {\n margin-left: -5px;\n}\n@media only screen and (max-width: 700px) {\n .row-list {\n width: 100%;\n }\n}\n@media only screen and (max-width: 600px) {\n .room-button {\n width: 100px;\n font-size: 12px;\n padding: 3px;\n }\n .machine-list {\n margin-top: 60px;\n }\n}\n@media only screen and (max-width: 500px) {\n table {\n width: 50%;\n }\n .room-button {\n width: 80px;\n font-size: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n .machine-row .machine-text {\n font-size: 24px;\n }\n .stat-wrapper .stat-text {\n font-size: 20px;\n font-weight: 600;\n }\n .stat-wrapper .list-group span {\n font-size: 18px;\n }\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9kYXdpZGt1Ymlja2kvRG9jdW1lbnRzL3VjemVsbmlhL3ByaS9hbmd1bGFyLWRldmVsb3AtY2xpZW50L3NyYy9hcHAvYWRtaW4vYWRtaW4uY29tcG9uZW50Lmxlc3MiLCJzcmMvYXBwL2Fk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lzdCB7XG4gICAgbWFyZ2luLXRvcDogNjBweDtcbiAgfVxufVxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA1MDBweCkge1xuICB0YWJsZSB7XG4gICAgd2lkdGg6IDUwJTtcbiAgfVxuICAucm9vbS1idXR0b24ge1xuICAgIHdpZHRoOiA4MHB4O1xuICAgIGZvbnQtc2l6ZTogMTBweDtcbiAgICBwYWRkaW5nLXRvcDogMTBweDtcbiAgICBwYWRkaW5nLWJvdHRvbTogMTBweDtcbiAgfVxuICAubWFjaGluZS1yb3cgLm1hY2hpbmUtdGV4dCB7XG4gICAgZm9udC1zaXplOiAyNHB4O1xuICB9XG4gIC5zdGF0LXdyYXBwZXIgLnN0YXQtdGV4dCB7XG4gICAgZm9udC1zaXplOiAyMHB4O1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIH1cbiAgLnN0YXQtd3JhcHBlciAubGlzdC1ncm91cCBzcGFuIHtcbiAgICBmb250LXNpemU6IDE4cHg7XG4gIH1cbn1cbiJdfQ== */"
/***/ }),
/***/ "./src/app/admin/admin.component.ts":
/*!******************************************!*\
!*** ./src/app/admin/admin.component.ts ***!
\******************************************/
/*! exports provided: AdminComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminComponent", function() { return AdminComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_Rx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/Rx */ "./node_modules/rxjs-compat/_esm5/Rx.js");
var AdminComponent = /** @class */ (function () {
function AdminComponent(http) {
this.http = http;
this.name = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]("");
this.ip = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]("");
this.ipDelete = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]("");
}
AdminComponent.prototype.onAddDevice = function () {
var _this = this;
if (this.name.value.length > 0 && this.ip.value.length > 0) {
this.http
.post("http://192.168.8.101:3000/device", {
name: this.name.value,
ip: this.ip.value
})
.subscribe(function (data) {
_this.name.reset();
_this.ip.reset();
});
}
};
AdminComponent.prototype.onDeviceDelete = function () {
var _this = this;
if (this.ipDelete.value.length > 0) {
this.http
.delete("http://192.168.8.101:3000/device/" + this.ipDelete.value)
.subscribe(function (data) {
_this.ipDelete.reset();
});
}
};
AdminComponent.prototype.ngOnInit = function () { };
AdminComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: "app-admin",
template: __webpack_require__(/*! ./admin.component.html */ "./src/app/admin/admin.component.html"),
styles: [__webpack_require__(/*! ./admin.component.less */ "./src/app/admin/admin.component.less")]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]])
], AdminComponent);
return AdminComponent;
}());
/***/ }),
/***/ "./src/app/app-routing.module.ts":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _admin_admin_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./admin/admin.component */ "./src/app/admin/admin.component.ts");
/* harmony import */ var _status_list_status_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./status-list/status-list.component */ "./src/app/status-list/status-list.component.ts");
var routes = [
{ path: "", component: _status_list_status_list_component__WEBPACK_IMPORTED_MODULE_4__["StatusListComponent"] },
{
path: "admin",
component: _admin_admin_component__WEBPACK_IMPORTED_MODULE_3__["AdminComponent"]
}
];
var AppRoutingModule = /** @class */ (function () {
function AppRoutingModule() {
}
AppRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})
], AppRoutingModule);
return AppRoutingModule;
}());
/***/ }),
/***/ "./src/app/app.component.html":
/*!************************************!*\
!*** ./src/app/app.component.html ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div class=\"container\">\n <app-header></app-header>\n <router-outlet></router-outlet>\n</div>\n"
/***/ }),
/***/ "./src/app/app.component.less":
/*!************************************!*\
!*** ./src/app/app.component.less ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQubGVzcyJ9 */"
/***/ }),
/***/ "./src/app/app.component.ts":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var AppComponent = /** @class */ (function () {
function AppComponent() {
this.title = 'client';
}
AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-root',
template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"),
styles: [__webpack_require__(/*! ./app.component.less */ "./src/app/app.component.less")]
})
], AppComponent);
return AppComponent;
}());
/***/ }),
/***/ "./src/app/app.module.ts":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: AppModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts");
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
/* harmony import */ var _shared_status_status_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shared/status/status.service */ "./src/app/shared/status/status.service.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _status_list_status_list_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./status-list/status-list.component */ "./src/app/status-list/status-list.component.ts");
/* harmony import */ var _header_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header/header.component */ "./src/app/header/header.component.ts");
/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/fesm5/animations.js");
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
/* harmony import */ var _admin_admin_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./admin/admin.component */ "./src/app/admin/admin.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var AppModule = /** @class */ (function () {
function AppModule() {
}
AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
declarations: [
_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"],
_status_list_status_list_component__WEBPACK_IMPORTED_MODULE_7__["StatusListComponent"],
_header_header_component__WEBPACK_IMPORTED_MODULE_8__["HeaderComponent"],
_admin_admin_component__WEBPACK_IMPORTED_MODULE_11__["AdminComponent"]
],
imports: [
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"],
_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"],
_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClientModule"],
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"],
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["BrowserAnimationsModule"],
_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClientModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatButtonModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatMenuModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatCardModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatToolbarModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatIconModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatSidenavModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatListModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_12__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_12__["ReactiveFormsModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatFormFieldModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_10__["MatInputModule"]
],
providers: [_shared_status_status_service__WEBPACK_IMPORTED_MODULE_5__["StatusService"]],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]]
})
], AppModule);
return AppModule;
}());
/***/ }),
/***/ "./src/app/header/header.component.html":
/*!**********************************************!*\
!*** ./src/app/header/header.component.html ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<nav class=\"navbar\">\n <div class=\"row\">\n <div class=\"logo col-md-9 col-xs-9\">\n <a routerLinkActive=\"/\">\n <img src=\"/assets/img/logo.png\" routerLink=\"/\" class=\"logo-img\" alt=\"logo\">\n </a>\n </div>\n <div class=\"battery col-md-3 col-xs-3\">\n <img src=\"/assets/img/battery.png\" class=\"battery-img\" alt=\"battery\">\n <div class=\"battery-percent\">\n <span>98</span>\n <span>%</span>\n </div>\n </div>\n \n </div>\n \n \n</nav>\n\n <!-- <p><span matBadge=\"4\" matBadgeOverlap=\"false\">Status serwerals</span></p> -->\n "
/***/ }),
/***/ "./src/app/header/header.component.less":
/*!**********************************************!*\
!*** ./src/app/header/header.component.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".navbar {\n margin-top: 30px;\n outline: none !important;\n}\n.navbar .row span {\n font-size: 20px;\n font-weight: 200;\n color: #000000;\n}\n.navbar .row .logo-img {\n width: 200px;\n margin-top: -1px;\n cursor: pointer;\n}\n.navbar .row .battery-img {\n width: 13px;\n margin-top: -6px;\n position: relative;\n}\n.navbar .row .battery .battery-percent {\n position: relative;\n display: inline-block;\n margin-left: 10px;\n}\n.navbar .row .flag {\n outline: none !important;\n cursor: pointer;\n text-align: center;\n}\n.navbar .row .flag .flag-img {\n width: 28px;\n}\n.navbar .row .flag .lang-change {\n position: relative;\n display: inline-block;\n outline: none !important;\n}\n.navbar .row .flag .lang-change .active {\n border-bottom: 1px solid black;\n outline: none !important;\n}\n.navbar .row .flag .lang-change span {\n font-weight: 300;\n color: #000000;\n margin-left: 5px;\n margin-right: 5px;\n outline: none !important;\n}\n.navbar .row .flag .lang-change span:hover {\n opacity: 0.5;\n cursor: pointer;\n outline: none !important;\n}\n.navbar .row .menu-img {\n cursor: pointer;\n float: right;\n margin-top: 5px;\n}\n@media only screen and (max-width: 600px) {\n .navbar .row .logo-img {\n width: 140px;\n }\n .navbar .row span {\n font-size: 15px;\n }\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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G9ydGFudDtcbn1cbi5uYXZiYXIgLnJvdyAuZmxhZyAubGFuZy1jaGFuZ2Ugc3Bhbjpob3ZlciB7XG4gIG9wYWNpdHk6IDAuNTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBvdXRsaW5lOiBub25lICFpbXBvcnRhbnQ7XG59XG4ubmF2YmFyIC5yb3cgLm1lbnUtaW1nIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBmbG9hdDogcmlnaHQ7XG4gIG1hcmdpbi10b3A6IDVweDtcbn1cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNjAwcHgpIHtcbiAgLm5hdmJhciAucm93IC5sb2dvLWltZyB7XG4gICAgd2lkdGg6IDE0MHB4O1xuICB9XG4gIC5uYXZiYXIgLnJvdyBzcGFuIHtcbiAgICBmb250LXNpemU6IDE1cHg7XG4gIH1cbn1cbiJdfQ== */"
/***/ }),
/***/ "./src/app/header/header.component.ts":
/*!********************************************!*\
!*** ./src/app/header/header.component.ts ***!
\********************************************/
/*! exports provided: HeaderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderComponent", function() { return HeaderComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var HeaderComponent = /** @class */ (function () {
function HeaderComponent() {
}
HeaderComponent.prototype.ngOnInit = function () { };
HeaderComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: "app-header",
template: __webpack_require__(/*! ./header.component.html */ "./src/app/header/header.component.html"),
styles: [__webpack_require__(/*! ./header.component.less */ "./src/app/header/header.component.less")]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])
], HeaderComponent);
return HeaderComponent;
}());
/***/ }),
/***/ "./src/app/shared/status/status.service.ts":
/*!*************************************************!*\
!*** ./src/app/shared/status/status.service.ts ***!
\*************************************************/
/*! exports provided: StatusService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatusService", function() { return StatusService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_Rx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/Rx */ "./node_modules/rxjs-compat/_esm5/Rx.js");
var StatusService = /** @class */ (function () {
function StatusService(http) {
var _this = this;
this.http = http;
// private url_pilkarzyki1 =
// "http://localhost:3000/chillroom-server?ip=192.168.8.107";
this.url_db = "http://192.168.8.101:3000/all";
this.status_url = "http://192.168.8.101:3000/status/";
this.getStatus = function (ip) {
return _this.http.get(_this.status_url + ip);
};
}
// getPilkarzyki1(): Observable<any> {
// return this.http.get(this.url_pilkarzyki1);
// }
StatusService.prototype.getDB = function () {
return this.http.get(this.url_db);
};
StatusService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: "root"
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
], StatusService);
return StatusService;
}());
/***/ }),
/***/ "./src/app/status-list/status-list.component.html":
/*!********************************************************!*\
!*** ./src/app/status-list/status-list.component.html ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<div class=\"lists\"><span>Wybierz urządzenie:</span></div>\n<div class=\"machine-list\">\n <div class=\"row row-list\">\n <div\n class=\"col-md-3 col-xs-3\"\n *ngFor=\"let device of devices; let i = index\"\n [attr.data-index]=\"i\"\n >\n <button\n class=\"room-button\"\n [ngStyle]=\"{\n color: 'white',\n backgroundColor:\n device.lastStatus == 1\n ? '#D13'\n : device.lastStatus == 0\n ? '#4CC355'\n : '#5A17ED',\n borderColor:\n device.lastStatus == 1\n ? '#D13'\n : device.lastStatus == 0\n ? '#4CC355'\n : '#5A17ED'\n }\"\n (click)=\"onChangeDevice(i)\"\n >\n {{ device.name }}\n </button>\n <b>{{\n device.lastStatus == 1\n ? \"Zajęte\"\n : device.lastStatus == 0\n ? \"Wolne\"\n : \"Brak połączenia z czujnikiem\"\n }}</b>\n </div>\n </div>\n</div>\n\n<div class=\"row machine-row\">\n <div class=\"col-md-5 col-xs-11\">\n <p class=\"text-center machine-text\">\n - <span>{{ activeDevice.name }}</span> -\n </p>\n\n <p class=\"machine-status\">\n Status:\n <img\n [src]=\"\n activeDevice.lastStatus == 1\n ? '../assets/img/busy.png'\n : '../assets/img/free.png'\n \"\n alt=\"\"\n />\n <span>{{\n activeDevice.lastStatus == 1\n ? \"Zajęte\"\n : activeDevice.lastStatus == 0\n ? \"Wolne\"\n : \"Brak połączenia z czujnikiem\"\n }}</span>\n </p>\n <p class=\"machine-status2\">\n {{\n activeDevice.lastStatus == 1\n ? \"Zajęte\"\n : activeDevice.lastStatus == 0\n ? \"Wolne\"\n : \"Brak połączenia z czujnikiem\"\n }}\n od:\n <span\n >{{ time > 60 ? this.Math.floor(time / 60) : this.Math.floor(time) }}\n {{ time > 60 ? \"min\" : \"sek\" }}\n </span>\n </p>\n </div>\n <div class=\"col-md-7 col-xs-1\">\n <img\n class=\"machine-image\"\n src=\"../assets/img/football2.jpg\"\n alt=\"{{ status }}\"\n />\n </div>\n</div>\n<div class=\"row statistics-row\">\n <div class=\"col-md-6 stat-wrapper\">\n <p class=\"stat-text\"><span>Statystyki szczegółowe:</span></p>\n <ul class=\"list-group\">\n <p style=\"margin-bottom:15px\">\n <span>Średni czas gry: </span> <span class=\"boldMe\">23</span\n ><span> min</span><br />\n </p>\n\n <span>Przewidywane zakończenie: </span>\n <span class=\"boldMe\">10</span\n ><span> min</span>\n </ul>\n </div>\n</div>\n<div class=\"row\">\n <div id=\"tabel\" class=\"col-md-6\"><canvas id=\"lineChart\"></canvas></div>\n <div id=\"tabel\" class=\"col-md-6\"><canvas id=\"barChart\"></canvas></div>\n</div>\n"
/***/ }),
/***/ "./src/app/status-list/status-list.component.less":
/*!********************************************************!*\
!*** ./src/app/status-list/status-list.component.less ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "table {\n width: 100%;\n}\n.machine-row {\n margin-top: 60px;\n}\n.machine-row .machine-text {\n color: #000000;\n font-size: 36px;\n font-weight: 300;\n letter-spacing: 2px;\n}\n.machine-row .machine-status {\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n margin-left: 30px;\n margin-top: 50px;\n letter-spacing: 0.5px;\n}\n.machine-row .machine-status img {\n width: 15px;\n margin-top: -3px;\n margin-left: 10px;\n}\n.machine-row .machine-status span {\n font-size: 24px;\n margin-left: 15px;\n top: -10px;\n}\n.machine-row .machine-status2 {\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n margin-left: 30px;\n margin-top: 10px;\n letter-spacing: 0.5px;\n}\n.machine-row .machine-status2 img {\n width: 15px;\n margin-top: -3px;\n margin-left: 10px;\n}\n.machine-row .machine-status2 span {\n font-size: 24px;\n margin-left: 15px;\n top: -10px;\n}\n.machine-row .machine-image {\n width: 230px;\n margin-top: 0px;\n margin-left: 50px;\n}\n.stat-wrapper {\n margin-left: 30px;\n color: #000000;\n font-size: 23px;\n font-weight: 300;\n}\n.stat-wrapper .stat-text {\n color: #000000;\n font-size: 36px;\n font-weight: 300;\n letter-spacing: 2px;\n margin-bottom: 30px;\n}\n.button-use {\n margin-left: 30px;\n margin-top: 20px;\n}\n.boldMe {\n font-weight: 400;\n}\n.lists {\n text-align: center;\n font-size: 20px;\n}\n.machine-list {\n margin-right: 0px;\n margin-top: 60px;\n text-align: center;\n}\n.row-list {\n width: 700px;\n display: inline-block;\n}\n.room-button {\n border-radius: 12px;\n background-color: white;\n border: solid 1px red;\n color: red;\n padding: 10px;\n width: 120px;\n margin-bottom: 20px;\n}\n.room-button:hover {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n.room-button:active {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n.room-button:focus {\n box-shadow: inset 0 0 0 2px #24a1fc;\n}\n@media only screen and (max-width: 1000px) {\n .machine-image {\n margin-left: 50px;\n display: none;\n }\n}\n@media only screen and (max-width: 800px) {\n .machine-row .machine-text {\n font-size: 30px;\n }\n .stat-wrapper .stat-text {\n font-size: 30px;\n }\n}\n.col-xs-3 {\n margin-left: -5px;\n}\n@media only screen and (max-width: 700px) {\n .row-list {\n width: 100%;\n }\n}\n@media only screen and (max-width: 600px) {\n .room-button {\n width: 100px;\n font-size: 12px;\n padding: 3px;\n }\n .machine-list {\n margin-top: 60px;\n }\n}\n@media only screen and (max-width: 500px) {\n table {\n width: 50%;\n }\n .room-button {\n width: 80px;\n font-size: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n .machine-row .machine-text {\n font-size: 24px;\n }\n .stat-wrapper .stat-text {\n font-size: 20px;\n font-weight: 600;\n }\n .stat-wrapper .list-group span {\n font-size: 18px;\n }\n}\n.example-button-row button,\n.example-button-row a {\n margin-right: 8px;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9kYXdpZGt1Ymlja2kvRG9jdW1lbnRzL3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BtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNjAwcHgpIHtcbiAgLnJvb20tYnV0dG9uIHtcbiAgICB3aWR0aDogMTAwcHg7XG4gICAgZm9udC1zaXplOiAxMnB4O1xuICAgIHBhZGRpbmc6IDNweDtcbiAgfVxuICAubWFjaGluZS1saXN0IHtcbiAgICBtYXJnaW4tdG9wOiA2MHB4O1xuICB9XG59XG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDUwMHB4KSB7XG4gIHRhYmxlIHtcbiAgICB3aWR0aDogNTAlO1xuICB9XG4gIC5yb29tLWJ1dHRvbiB7XG4gICAgd2lkdGg6IDgwcHg7XG4gICAgZm9udC1zaXplOiAxMHB4O1xuICAgIHBhZGRpbmctdG9wOiAxMHB4O1xuICAgIHBhZGRpbmctYm90dG9tOiAxMHB4O1xuICB9XG4gIC5tYWNoaW5lLXJvdyAubWFjaGluZS10ZXh0IHtcbiAgICBmb250LXNpemU6IDI0cHg7XG4gIH1cbiAgLnN0YXQtd3JhcHBlciAuc3RhdC10ZXh0IHtcbiAgICBmb250LXNpemU6IDIwcHg7XG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgfVxuICAuc3RhdC13cmFwcGVyIC5saXN0LWdyb3VwIHNwYW4ge1xuICAgIGZvbnQtc2l6ZTogMThweDtcbiAgfVxufVxuLmV4YW1wbGUtYnV0dG9uLXJvdyBidXR0b24sXG4uZXhhbXBsZS1idXR0b24tcm93IGEge1xuICBtYXJnaW4tcmlnaHQ6IDhweDtcbn1cbiJdfQ== */"
/***/ }),
/***/ "./src/app/status-list/status-list.component.ts":
/*!******************************************************!*\
!*** ./src/app/status-list/status-list.component.ts ***!
\******************************************************/
/*! exports provided: StatusListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatusListComponent", function() { return StatusListComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_status_status_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/status/status.service */ "./src/app/shared/status/status.service.ts");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/src/chart.js");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chart_js__WEBPACK_IMPORTED_MODULE_3__);
var StatusListComponent = /** @class */ (function () {
function StatusListComponent(statusService) {
var _this = this;
this.statusService = statusService;
//statuses: {} = {};
//statusesKeys = Object.keys(this.statuses);
this.LineChart = [];
this.BarChart = [];
this.devices = [];
this.activeDevice = { name: "", lastStatus: "", ip: "", _id: "" };
this.activeID = 0;
this.time = 0;
this.onChangeDevice = function (index) {
_this.activeID = index;
_this.activeDevice = _this.devices[index];
//console.log(this.activeDevice);
_this.statusService.getStatus(_this.activeDevice._id).subscribe(function (status) {
var i = status.findIndex(function (item) {
return item.value != status[0].value;
});
//console.log(i);
var newStatus;
if (i == -1) {
newStatus = status;
}
else {
newStatus = status.splice(0, i);
}
var first = new Date(newStatus[0].time).getTime();
var last = new Date(newStatus[newStatus.length - 1].time).getTime();
var time = first - last;
//console.log(this);
_this.time = time / 1000;
//console.log(this.time);
});
};
this.readSensors = function (data) {
console.log(data);
//const parsedData = data.split(",");
//this.statuses = { ...this.statuses, [parsedData[0]]: parsedData[1] };
//this.statusesKeys = Object.keys(this.statuses);
//this.statuses = [JSON.parse(data)];
};
this.Math = Math;
}
StatusListComponent.prototype.ngOnInit = function () {
var _this = this;
this.statusService.getDB().subscribe(function (data) {
_this.devices = data;
_this.onChangeDevice(0);
});
setInterval(function () {
_this.statusService.getDB().subscribe(function (data) {
_this.devices = data;
_this.onChangeDevice(_this.activeID);
});
}, 5000);
this.showChart();
};
StatusListComponent.prototype.showChart = function () {
this.LineChart = new chart_js__WEBPACK_IMPORTED_MODULE_3__["Chart"]("lineChart", {
type: "line",
data: {
labels: ["8:00", "10:00", "12:00", "14:00", "16:00"],
datasets: [
{
label: "Ruch w ciągu dnia",
data: [6, 7, 8, 5, 4],
fill: false,
lineTension: 0.2,
borderColor: "rgba(75,192,192,0.6)",
borderWidth: 1
}
]
},
scales: {
yAxes: [
{
ticks: {
beginAtZero: true
}
}
]
}
});
this.BarChart = new chart_js__WEBPACK_IMPORTED_MODULE_3__["Chart"]("barChart", {
type: "bar",
data: {
labels: ["Jan", "Feb", "March", "Apr", "May"],
datasets: [
{
label: "Rozegranych gier",
data: [60, 70, 80, 50, 40],
fill: true,
lineTension: 0.2,
borderColor: "white",
borderWidth: 1,
backgroundColor: [
"rgba(255,99,132,0.6)",
"rgba(54,162,235,0.6)",
"rgba(255,206,86,0.6)",
"rgba(75,192,192,0.6)",
"rgba(153,102,255,0.6)"
]
}
]
},
scales: {
yAxes: [
{
ticks: {
beginAtZero: true
}
}
]
}
});
};
StatusListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: "app-status-list",
template: __webpack_require__(/*! ./status-list.component.html */ "./src/app/status-list/status-list.component.html"),
styles: [__webpack_require__(/*! ./status-list.component.less */ "./src/app/status-list/status-list.component.less")]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_shared_status_status_service__WEBPACK_IMPORTED_MODULE_2__["StatusService"]])
], StatusListComponent);
return StatusListComponent;
}());
/***/ }),
/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! exports provided: environment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
var environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/ }),
/***/ "./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
.catch(function (err) { return console.error(err); });
/***/ }),
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! /Users/dawidkubicki/Documents/uczelnia/pri/angular-develop-client/src/main.ts */"./src/main.ts");
/***/ })
},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map