From 75223ae5b2df21045adcbf5058d347857159f06e Mon Sep 17 00:00:00 2001 From: Paolo Possanzini Date: Fri, 6 Apr 2018 11:22:08 +0200 Subject: [PATCH 01/26] server online/offline --- Step/wwwroot/assets/styles/base/layout.less | 12 +- Step/wwwroot/assets/styles/style.css | 801 -------------------- Step/wwwroot/src/services/hub.ts | 41 +- 3 files changed, 44 insertions(+), 810 deletions(-) diff --git a/Step/wwwroot/assets/styles/base/layout.less b/Step/wwwroot/assets/styles/base/layout.less index 8df1b0cf..32fa3da7 100644 --- a/Step/wwwroot/assets/styles/base/layout.less +++ b/Step/wwwroot/assets/styles/base/layout.less @@ -16,12 +16,12 @@ @import "back-view.less"; @import "head.less"; -@import "tooling.less"; -@import "card.less"; -@import "depot.less"; -@import "summary-depot.less"; -@import "assisted-tooling.less"; -@import "tooling-equipment.less"; +// @import "tooling.less"; +// @import "card.less"; +// @import "depot.less"; +// @import "summary-depot.less"; +// @import "assisted-tooling.less"; +// @import "tooling-equipment.less"; @background-color: rgb(216, 216, 216); diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index ae5551ac..f1a7e112 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -2480,807 +2480,6 @@ footer .container button.big:before { .heads-container-lt4 { right: -12px; } -.test-container { - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; -} -.tooling-container { - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; -} -.tooling-container .tooling-box { - width: 1504px; - height: 759px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} -.tooling-container .tooling-box .header { - font-size: 24px; - font-weight: 600; - color: #002680; - margin-top: 18px; - margin-left: 24px; - margin-bottom: 19px; -} -.tooling-container .tooling-box .tooling-boxbody { - width: calc(100% - 160px); - height: calc(100% - 65px); - top: 65px; - background-color: #bbbcbc; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - display: flex; - flex-flow: column; - padding: 0 80px; -} -.tooling-container .tooling-box .tooling-boxbody .list-top, -.tooling-container .tooling-box .tooling-boxbody .list-bottom { - display: flex; - align-items: center; - width: 100%; - height: 90%; - margin-bottom: 10px; - overflow-y: hidden; - overflow-x: auto; -} -.tool { - width: 360px; - height: 64px; - background-color: #fff; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - display: flex; - flex-flow: row; - align-self: center; - justify-items: center; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; - margin-bottom: 4px; -} -.tool .image { - display: flex; - align-items: center; - justify-content: center; - margin-left: 21px; - margin-right: 29px; -} -.tool .image img { - width: 48px; - height: 48px; -} -.tool .text-body { - text-align: left; - width: 145px; - margin-top: 11px; -} -.tool .text-right { - display: flex; - align-items: center; - color: #1791ff; -} -.tool .fa { - display: flex; - align-items: center; - font-size: 24px; - margin-left: 20px; - color: #002680; -} -.card { - width: 288px; - height: 216px; - background-color: #fff; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - margin: 8px; -} -.card > header { - width: 288px; - height: 64px; - border-radius: 2px; - background-color: #f1f1f1; -} -.card > header span { - font-size: 18px; - float: left; - color: #002680; - margin-top: 22px; - margin-left: 24px; -} -.card > header button { - float: right; - margin: 8px 8px 8px; - width: 48px; - height: 48px; - color: #002680; - padding: 0; -} -.card > header button .fa { - height: 22px; - font-size: 24px; - width: 25px; -} -.card > section { - height: calc(100% - 64px); - display: flex; - justify-content: center; - align-items: center; -} -.detail-card { - width: 288px; - height: 216px; - background-color: #fff; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - margin-right: 32px; -} -.detail-card header { - width: 288px; - height: 64px; - border-radius: 2px; - background-color: #f1f1f1; - border-bottom: 2px solid #fff; -} -.detail-card header .title { - width: 64px; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - font-weight: 600; - float: left; - color: #4b4b4b; - border-right: 2px solid #fff; -} -.detail-card header button { - float: right; - margin: 8px 8px 8px; - width: 48px; - height: 48px; - color: #002680; - padding: 0; -} -.detail-card header button .fa { - height: 22px; - font-size: 24px; - width: 25px; -} -.detail-card section { - height: calc(100% - 66px); - display: flex; - background-color: #f1f1f1; -} -.detail-card section slot { - text-align: center; -} -.equipment { - width: 360px; - height: 64px; - background-color: #fff; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - display: flex; - flex-flow: row; - align-self: center; - justify-items: center; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; - margin-bottom: 4px; -} -.equipment .image { - display: flex; - align-items: center; - justify-content: center; - margin: 16px 14px 16px 16px; -} -.equipment .image img { - width: 48px; - height: 48px; -} -.equipment .text-body { - text-align: left; - width: 145px; - margin-top: 11px; -} -.skill-equipment { - width: 656px; - height: 80px; - border-radius: 2px; - display: flex; - flex-flow: row; - background-color: #fff; - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -} -.skill-equipment .skill-equipment-title { - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; - height: 100%; - display: flex; - align-items: center; - margin-left: 15px; -} -.skill-equipment .skill-equipment-control { - height: 100%; - display: flex; - margin-right: 16px; - align-items: center; - margin-left: auto; -} -.skill-equipment .skill-equipment-control input, -.skill-equipment .skill-equipment-control select { - width: 304px; - height: 48px; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; -} -.load-equipment { - width: 495px; - height: 64px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - display: flex; - flex-flow: row; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; -} -.load-equipment .image { - display: flex; - align-items: center; - justify-content: center; - margin-left: 16px; - margin-right: 15px; -} -.load-equipment .text-body { - display: flex; - align-items: center; - justify-content: center; -} -.load-equipment .arrow { - display: flex; - align-items: center; - justify-content: center; - margin-left: auto; - margin-right: 20px; -} -.load-equipment .arrow .fa-arrow-up, -.load-equipment .arrow .fa-arrow-down { - font-size: 24px; -} -.load-equipment .arrow .fa-arrow-up { - color: #54AEFF; -} -.load-equipment .arrow .fa-arrow-down { - color: #DC4557; -} -.depot-container { - height: 100%; - width: 100%; - display: flex; - /* align-items: center; */ - justify-content: center; - padding-top: 104px; -} -.depot-container .depot-box { - width: 1808px; - height: 872px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} -.depot-container .depot-box .header { - font-size: 20px; - color: #002680; - height: 81px; - display: flex; - align-items: center; -} -.depot-container .depot-box .header .fa { - height: 18px; - width: 13px; - margin: 0 22px 0 29px; -} -.depot-container .depot-box .depot-boxbody { - width: 100%; - height: calc(100% - 161px); - border-radius: 2px; - background-color: #bbbcbc; - display: flex; - flex-flow: row; -} -.depot-container .depot-box .depot-boxbody .list-left { - height: 100%; - width: 440px; - float: left; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - background-color: #fff; - font-size: 18px; - line-height: 1.11; - text-align: center; - color: #4b4b4b; - display: flex; - flex-flow: column; -} -.depot-container .depot-box .depot-boxbody .list-left span { - display: block; - margin-top: 15px; -} -.depot-container .depot-box .depot-boxbody .list-left .depot-search { - display: flex; - flex-flow: row; - justify-content: center; - margin-top: 16px; -} -.depot-container .depot-box .depot-boxbody .list-left .depot-search input { - width: 288px; - height: 48px; -} -.depot-container .depot-box .depot-boxbody .list-left .depot-search button { - width: 48px; - height: 48px; - padding: 0; -} -.depot-container .depot-box .depot-boxbody .list-left .list-vertical { - height: calc(100% - 143px); - width: 95%; - margin-top: 24px; - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: center; - padding-right: 5px; -} -.depot-container .depot-box .depot-boxbody .box-right { - height: 100%; - min-width: calc(100% - 440px); - max-width: calc(100% - 92px); - display: flex; - flex-flow: column; - align-items: center; - justify-content: center; - background-color: #bbbcbc; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot { - width: calc(100% - 92px); - height: calc(100% - 32px); - margin: 16px; - background-color: #fff; - padding: 0 30px 0 30px; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header { - width: 100%; - height: 63px; - display: flex; - align-items: center; - justify-content: center; - border-bottom: 2px solid #f1f1f1; - font-size: 18px; - font-weight: 600; - line-height: 1.11; - color: #4b4b4b; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header button { - width: 48px; - height: 48px; - padding: 0; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header span { - margin: 0 30px 0 30px; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-section { - display: flex; - align-items: center; - margin-top: 111px; - overflow-x: auto; - padding-bottom: 30px; - overflow-y: hidden; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container { - height: calc(100% - 439px); - width: calc(100% - 223px); - display: flex; - align-items: center; - flex-flow: row; - flex-wrap: nowrap; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .square { - display: flex; - flex-grow: 0; - height: 24px; - width: 24px; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .empty { - height: 20px; - width: 20px; - border: solid 2px #002680; - background-color: white; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .full { - background-color: #002680; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .selected-full { - background-color: #1791ff; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .selected-empty { - height: 20px; - width: 20px; - border: solid 2px #1791ff; -} -.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .linesquare { - display: flex; - height: 2px; - width: 100%; - align-items: center; - justify-content: space-between; - background-color: #002680; -} -.depot-container .depot-box .footer { - height: 80px; - float: right; - display: flex; - align-items: center; -} -.depot-container .depot-box .footer button.blue-reverse { - background-image: linear-gradient(to bottom, #1756ad, #002680); - color: #fff; - font-size: 18px; - font-weight: 600; -} -.summary-depot-container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.summary-depot-container .summary-depot-box { - width: 896px; - height: 800px; - background-color: #fff; - border-radius: 2px; - box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.4); -} -.summary-depot-container .summary-depot-box .summary-header-depot { - width: 100%; - height: 60px; - color: #002680; - border-bottom: solid 2px #bbbcbc; -} -.summary-depot-container .summary-depot-box .summary-header-depot .summary-depot-header-label { - font-size: 20px; - padding: 19px 0 17px 23px; -} -.summary-depot-container .summary-depot-box .summary-header-depot > .fa { - float: right; - font-size: 24px; - margin-top: 19px; - margin-right: 18px; -} -.summary-depot-container .summary-depot-box .summary-body-depot { - width: 100%; - height: calc(100% - 202px); - display: flex; - flex-flow: column; -} -.summary-depot-container .summary-depot-box .summary-body-depot .summary-body-depot-header { - height: 78px; -} -.summary-depot-container .summary-depot-box .summary-body-depot .summary-body-depot-header .summary-depot-body-label { - display: flex; - margin-right: auto; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; - margin: 25px 68px 33px 24px; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical { - display: flex; - flex-flow: column; - align-items: center; - justify-content: center; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box { - width: 752px; - height: 472px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - margin-bottom: 48px; - overflow-y: auto; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-header { - height: 63px; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - font-weight: 600; - line-height: 1.11; - color: #4b4b4b; - border-bottom: solid 2px #dddddd; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body { - height: calc(100% - 65px); - width: 100%; - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: center; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_up, -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_down { - width: 100%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - font-weight: 600; - line-height: 1.11; - color: #4b4b4b; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_up { - margin-top: 23px; - margin-bottom: 12px; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_down { - margin-top: 33px; - margin-bottom: 11px; -} -.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .load-equipment:not(:last-child) { - margin-bottom: 8px; -} -.summary-depot-container .summary-depot-box .summary-footer-depot { - height: 138px; - display: flex; - flex-flow: column; - border-top: solid 2px #bbbcbc; -} -.summary-depot-container .summary-depot-box .summary-footer-depot .summary-depot-footer-label { - display: flex; - align-items: center; - height: 40px; - justify-content: center; - font-size: 18px; - line-height: 1.11; - color: #4b4b4b; - margin: 22px 68px 4px 24px; -} -.summary-depot-container .summary-depot-box .summary-footer-depot .group-button { - display: flex; - margin-left: auto; -} -.summary-depot-container .summary-depot-box .summary-footer-depot .group-button .blue-reverse { - background-image: linear-gradient(to bottom, #1756ad, #002680); - color: #fff; - font-size: 18px; - font-weight: 600; -} -.assisted-tooling-container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.assisted-tooling-container .assisted-tooling-box { - width: 704px; - height: 624px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.4); -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header { - width: 100%; - height: 60px; - color: #002680; - border-bottom: solid 2px #bbbcbc; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header .assisted-tooling-header-label { - font-size: 20px; - padding: 19px 0 0 24px; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header > .fa { - float: right; - font-size: 28px; - margin-top: 15px; - margin-right: 14px; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body { - width: 100%; - height: calc(100% - 142px); - background-color: #657178; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body .assisted-tooling-body-group { - height: 100%; - display: flex; - flex-flow: column; - align-items: center; - justify-content: center; - font-size: 18px; - line-height: 1.11; - color: #fff; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body .assisted-tooling-body-group img { - margin-top: 10px; -} -.assisted-tooling-container .assisted-tooling-box .assisted-tooling-footer { - height: 78px; - width: 100%; - display: flex; - align-items: center; - border-top: solid 2px #bbbcbc; -} -.tooling-equipment-container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - padding-top: 104px; -} -.tooling-equipment-container .tooling-equipment-box { - width: 1808px; - height: 872px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-header { - font-size: 20px; - color: #002680; - height: 81px; - display: flex; - align-items: center; - border-bottom: solid 2px #f1f1f1; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-header .fa { - height: 18px; - width: 13px; - margin: 0 22px 0 29px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body { - width: 100%; - height: calc(100% - 161px); - border-radius: 2px; - background-color: #bbbcbc; - display: flex; - flex-flow: row; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left { - height: 100%; - width: 488px; - float: left; - border-radius: 2px; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - background-color: #fff; - font-size: 18px; - line-height: 1.11; - text-align: center; - color: #4b4b4b; - display: flex; - flex-flow: column; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search { - height: 135px; - display: flex; - flex-flow: column; - justify-content: center; - padding-bottom: 16px; - border-bottom: solid 2px #979797; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .tooling-equipment-search-label { - display: flex; - justify-content: center; - margin-top: 25px; - margin-bottom: 26px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn { - display: flex; - flex-flow: row; - justify-content: center; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn input { - width: 288px; - height: 48px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn button { - width: 48px; - height: 48px; - padding: 0; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-vertical { - width: 95%; - height: calc(100% - 198px); - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: center; - margin-top: 16px; - margin-bottom: 16px; - overflow-y: auto; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer { - height: calc(100% - 646px); - display: flex; - align-items: center; - justify-content: center; - border-top: solid 2px #979797; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer button { - background-image: linear-gradient(to bottom, #1756ad, #002680); - color: #fff; - width: 48px; - height: 47px; - margin: 28px; - padding: 0; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer button .fa { - width: 22px; - height: 21px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right { - width: 1320px; - height: 100%; - background-color: #f3f3f3; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right button { - float: right; - width: 48px; - height: 48px; - padding: 0; - margin-top: 15px; - margin-right: 16px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right button .fa { - width: 21px; - height: 22px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .box-right-label-header { - display: flex; - justify-content: center; - font-size: 18px; - font-weight: 600; - line-height: 1.11; - color: #4b4b4b; - margin-top: 47px; - margin-bottom: 36px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .list-skill-equipment { - width: 99%; - height: calc(100% - 102px); - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: center; - overflow-y: auto; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .list-skill-equipment div.skill-equipment { - margin: 8px; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-footer { - height: 80px; - float: right; - display: flex; - align-items: center; -} -.tooling-equipment-container .tooling-equipment-box .tooling-equipment-footer button.blue-reverse { - background-image: linear-gradient(to bottom, #1756ad, #002680); - color: #fff; - font-size: 18px; - font-weight: 600; -} .persona { height: 88px; width: 88px; diff --git a/Step/wwwroot/src/services/hub.ts b/Step/wwwroot/src/services/hub.ts index 0a4089b0..c5889682 100644 --- a/Step/wwwroot/src/services/hub.ts +++ b/Step/wwwroot/src/services/hub.ts @@ -28,6 +28,7 @@ function recalcArrayId(prefix: string, alarms: Array { + Hub.manageServerStatus("disconnected"); + console.log("SERVER CONNECTION: restart-connection") + setTimeout(function() { + $.connection.hub.start(); + }, 5000); // Restart connection after 5 seconds. + }); + $.connection.hub.stateChanged((state) =>{ + if(state.newState == $.signalR.connectionState.connected) + { + Hub.manageServerStatus("connected"); + } + }); $.connection.hub.start(); this.checkShowAxes(); @@ -86,7 +101,7 @@ export class Hub { appModelActions.CheckLogoff(store, e.id); } - private static axesNamesDataChanged(data){ + private static axesNamesDataChanged(data) { processModelActions.setAxes(store, data); } @@ -159,6 +174,26 @@ export class Hub { } } + private static manageServerStatus(status) { + console.log("Server Connection: ", status); + + if (status == "disconnected" && !Hub._serverConnectionNotificationVisible) { + iziToast.warning({ + id: "serverConnection", timeout: false, toastOnce: true, theme: "dark", title: "server offline", close: false, closeOnEscape: false, drag: false + } as IziToastSettings); + Hub._serverConnectionNotificationVisible = true; + alarmsModelActions.removeAllAlarms(store); + processModelActions.isRunning(store, false); + Factory.Get(MessageService).publishToChannel("force-ui-update", null); + } + if (status == "connected" && Hub._serverConnectionNotificationVisible) { + var toast = document.querySelector('#serverConnection') as any; + (iziToast as any).hide(toast); + Hub._serverConnectionNotificationVisible = false; + Factory.Get(MessageService).publishToChannel("force-ui-update", null); + } + } + private static manageNcStatus(status) { if (Hub._ncConnectionNotificationVisible && status.connected) { @@ -290,11 +325,11 @@ export class Hub { this._hub.server.addOverride(id); } - public selectProcess(id:number){ + public selectProcess(id: number) { this._hub.server.selectProcess(id); } - public selectAxis(id:number){ + public selectAxis(id: number) { this._hub.server.selectAxis(id); } From 4ef3a592f67f40f304696e97e2f38c43219e9a6b Mon Sep 17 00:00:00 2001 From: Paolo Possanzini Date: Fri, 6 Apr 2018 11:23:42 +0200 Subject: [PATCH 02/26] fix heads --- Step/wwwroot/assets/styles/base/layout.less | 12 +- Step/wwwroot/assets/styles/style.css | 801 ++++++++++++++++++++ Step/wwwroot/src/modules/heads/head.vue | 4 +- 3 files changed, 809 insertions(+), 8 deletions(-) diff --git a/Step/wwwroot/assets/styles/base/layout.less b/Step/wwwroot/assets/styles/base/layout.less index 32fa3da7..8df1b0cf 100644 --- a/Step/wwwroot/assets/styles/base/layout.less +++ b/Step/wwwroot/assets/styles/base/layout.less @@ -16,12 +16,12 @@ @import "back-view.less"; @import "head.less"; -// @import "tooling.less"; -// @import "card.less"; -// @import "depot.less"; -// @import "summary-depot.less"; -// @import "assisted-tooling.less"; -// @import "tooling-equipment.less"; +@import "tooling.less"; +@import "card.less"; +@import "depot.less"; +@import "summary-depot.less"; +@import "assisted-tooling.less"; +@import "tooling-equipment.less"; @background-color: rgb(216, 216, 216); diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index f1a7e112..ae5551ac 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -2480,6 +2480,807 @@ footer .container button.big:before { .heads-container-lt4 { right: -12px; } +.test-container { + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; +} +.tooling-container { + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; +} +.tooling-container .tooling-box { + width: 1504px; + height: 759px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); +} +.tooling-container .tooling-box .header { + font-size: 24px; + font-weight: 600; + color: #002680; + margin-top: 18px; + margin-left: 24px; + margin-bottom: 19px; +} +.tooling-container .tooling-box .tooling-boxbody { + width: calc(100% - 160px); + height: calc(100% - 65px); + top: 65px; + background-color: #bbbcbc; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + display: flex; + flex-flow: column; + padding: 0 80px; +} +.tooling-container .tooling-box .tooling-boxbody .list-top, +.tooling-container .tooling-box .tooling-boxbody .list-bottom { + display: flex; + align-items: center; + width: 100%; + height: 90%; + margin-bottom: 10px; + overflow-y: hidden; + overflow-x: auto; +} +.tool { + width: 360px; + height: 64px; + background-color: #fff; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + display: flex; + flex-flow: row; + align-self: center; + justify-items: center; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; + margin-bottom: 4px; +} +.tool .image { + display: flex; + align-items: center; + justify-content: center; + margin-left: 21px; + margin-right: 29px; +} +.tool .image img { + width: 48px; + height: 48px; +} +.tool .text-body { + text-align: left; + width: 145px; + margin-top: 11px; +} +.tool .text-right { + display: flex; + align-items: center; + color: #1791ff; +} +.tool .fa { + display: flex; + align-items: center; + font-size: 24px; + margin-left: 20px; + color: #002680; +} +.card { + width: 288px; + height: 216px; + background-color: #fff; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + margin: 8px; +} +.card > header { + width: 288px; + height: 64px; + border-radius: 2px; + background-color: #f1f1f1; +} +.card > header span { + font-size: 18px; + float: left; + color: #002680; + margin-top: 22px; + margin-left: 24px; +} +.card > header button { + float: right; + margin: 8px 8px 8px; + width: 48px; + height: 48px; + color: #002680; + padding: 0; +} +.card > header button .fa { + height: 22px; + font-size: 24px; + width: 25px; +} +.card > section { + height: calc(100% - 64px); + display: flex; + justify-content: center; + align-items: center; +} +.detail-card { + width: 288px; + height: 216px; + background-color: #fff; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + margin-right: 32px; +} +.detail-card header { + width: 288px; + height: 64px; + border-radius: 2px; + background-color: #f1f1f1; + border-bottom: 2px solid #fff; +} +.detail-card header .title { + width: 64px; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: 600; + float: left; + color: #4b4b4b; + border-right: 2px solid #fff; +} +.detail-card header button { + float: right; + margin: 8px 8px 8px; + width: 48px; + height: 48px; + color: #002680; + padding: 0; +} +.detail-card header button .fa { + height: 22px; + font-size: 24px; + width: 25px; +} +.detail-card section { + height: calc(100% - 66px); + display: flex; + background-color: #f1f1f1; +} +.detail-card section slot { + text-align: center; +} +.equipment { + width: 360px; + height: 64px; + background-color: #fff; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + display: flex; + flex-flow: row; + align-self: center; + justify-items: center; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; + margin-bottom: 4px; +} +.equipment .image { + display: flex; + align-items: center; + justify-content: center; + margin: 16px 14px 16px 16px; +} +.equipment .image img { + width: 48px; + height: 48px; +} +.equipment .text-body { + text-align: left; + width: 145px; + margin-top: 11px; +} +.skill-equipment { + width: 656px; + height: 80px; + border-radius: 2px; + display: flex; + flex-flow: row; + background-color: #fff; + box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); +} +.skill-equipment .skill-equipment-title { + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; + height: 100%; + display: flex; + align-items: center; + margin-left: 15px; +} +.skill-equipment .skill-equipment-control { + height: 100%; + display: flex; + margin-right: 16px; + align-items: center; + margin-left: auto; +} +.skill-equipment .skill-equipment-control input, +.skill-equipment .skill-equipment-control select { + width: 304px; + height: 48px; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; +} +.load-equipment { + width: 495px; + height: 64px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + display: flex; + flex-flow: row; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; +} +.load-equipment .image { + display: flex; + align-items: center; + justify-content: center; + margin-left: 16px; + margin-right: 15px; +} +.load-equipment .text-body { + display: flex; + align-items: center; + justify-content: center; +} +.load-equipment .arrow { + display: flex; + align-items: center; + justify-content: center; + margin-left: auto; + margin-right: 20px; +} +.load-equipment .arrow .fa-arrow-up, +.load-equipment .arrow .fa-arrow-down { + font-size: 24px; +} +.load-equipment .arrow .fa-arrow-up { + color: #54AEFF; +} +.load-equipment .arrow .fa-arrow-down { + color: #DC4557; +} +.depot-container { + height: 100%; + width: 100%; + display: flex; + /* align-items: center; */ + justify-content: center; + padding-top: 104px; +} +.depot-container .depot-box { + width: 1808px; + height: 872px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); +} +.depot-container .depot-box .header { + font-size: 20px; + color: #002680; + height: 81px; + display: flex; + align-items: center; +} +.depot-container .depot-box .header .fa { + height: 18px; + width: 13px; + margin: 0 22px 0 29px; +} +.depot-container .depot-box .depot-boxbody { + width: 100%; + height: calc(100% - 161px); + border-radius: 2px; + background-color: #bbbcbc; + display: flex; + flex-flow: row; +} +.depot-container .depot-box .depot-boxbody .list-left { + height: 100%; + width: 440px; + float: left; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + background-color: #fff; + font-size: 18px; + line-height: 1.11; + text-align: center; + color: #4b4b4b; + display: flex; + flex-flow: column; +} +.depot-container .depot-box .depot-boxbody .list-left span { + display: block; + margin-top: 15px; +} +.depot-container .depot-box .depot-boxbody .list-left .depot-search { + display: flex; + flex-flow: row; + justify-content: center; + margin-top: 16px; +} +.depot-container .depot-box .depot-boxbody .list-left .depot-search input { + width: 288px; + height: 48px; +} +.depot-container .depot-box .depot-boxbody .list-left .depot-search button { + width: 48px; + height: 48px; + padding: 0; +} +.depot-container .depot-box .depot-boxbody .list-left .list-vertical { + height: calc(100% - 143px); + width: 95%; + margin-top: 24px; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + padding-right: 5px; +} +.depot-container .depot-box .depot-boxbody .box-right { + height: 100%; + min-width: calc(100% - 440px); + max-width: calc(100% - 92px); + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; + background-color: #bbbcbc; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot { + width: calc(100% - 92px); + height: calc(100% - 32px); + margin: 16px; + background-color: #fff; + padding: 0 30px 0 30px; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header { + width: 100%; + height: 63px; + display: flex; + align-items: center; + justify-content: center; + border-bottom: 2px solid #f1f1f1; + font-size: 18px; + font-weight: 600; + line-height: 1.11; + color: #4b4b4b; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header button { + width: 48px; + height: 48px; + padding: 0; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-header span { + margin: 0 30px 0 30px; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .sd-section { + display: flex; + align-items: center; + margin-top: 111px; + overflow-x: auto; + padding-bottom: 30px; + overflow-y: hidden; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container { + height: calc(100% - 439px); + width: calc(100% - 223px); + display: flex; + align-items: center; + flex-flow: row; + flex-wrap: nowrap; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .square { + display: flex; + flex-grow: 0; + height: 24px; + width: 24px; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .empty { + height: 20px; + width: 20px; + border: solid 2px #002680; + background-color: white; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .full { + background-color: #002680; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .selected-full { + background-color: #1791ff; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .selected-empty { + height: 20px; + width: 20px; + border: solid 2px #1791ff; +} +.depot-container .depot-box .depot-boxbody .box-right .single-depot .square-container .linesquare { + display: flex; + height: 2px; + width: 100%; + align-items: center; + justify-content: space-between; + background-color: #002680; +} +.depot-container .depot-box .footer { + height: 80px; + float: right; + display: flex; + align-items: center; +} +.depot-container .depot-box .footer button.blue-reverse { + background-image: linear-gradient(to bottom, #1756ad, #002680); + color: #fff; + font-size: 18px; + font-weight: 600; +} +.summary-depot-container { + height: 100%; + width: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.summary-depot-container .summary-depot-box { + width: 896px; + height: 800px; + background-color: #fff; + border-radius: 2px; + box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.4); +} +.summary-depot-container .summary-depot-box .summary-header-depot { + width: 100%; + height: 60px; + color: #002680; + border-bottom: solid 2px #bbbcbc; +} +.summary-depot-container .summary-depot-box .summary-header-depot .summary-depot-header-label { + font-size: 20px; + padding: 19px 0 17px 23px; +} +.summary-depot-container .summary-depot-box .summary-header-depot > .fa { + float: right; + font-size: 24px; + margin-top: 19px; + margin-right: 18px; +} +.summary-depot-container .summary-depot-box .summary-body-depot { + width: 100%; + height: calc(100% - 202px); + display: flex; + flex-flow: column; +} +.summary-depot-container .summary-depot-box .summary-body-depot .summary-body-depot-header { + height: 78px; +} +.summary-depot-container .summary-depot-box .summary-body-depot .summary-body-depot-header .summary-depot-body-label { + display: flex; + margin-right: auto; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; + margin: 25px 68px 33px 24px; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical { + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box { + width: 752px; + height: 472px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + margin-bottom: 48px; + overflow-y: auto; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-header { + height: 63px; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: 600; + line-height: 1.11; + color: #4b4b4b; + border-bottom: solid 2px #dddddd; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body { + height: calc(100% - 65px); + width: 100%; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_up, +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_down { + width: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: 600; + line-height: 1.11; + color: #4b4b4b; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_up { + margin-top: 23px; + margin-bottom: 12px; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .title_down { + margin-top: 33px; + margin-bottom: 11px; +} +.summary-depot-container .summary-depot-box .summary-body-depot .list-vertical .list-vertical-box .list-vertical-body .load-equipment:not(:last-child) { + margin-bottom: 8px; +} +.summary-depot-container .summary-depot-box .summary-footer-depot { + height: 138px; + display: flex; + flex-flow: column; + border-top: solid 2px #bbbcbc; +} +.summary-depot-container .summary-depot-box .summary-footer-depot .summary-depot-footer-label { + display: flex; + align-items: center; + height: 40px; + justify-content: center; + font-size: 18px; + line-height: 1.11; + color: #4b4b4b; + margin: 22px 68px 4px 24px; +} +.summary-depot-container .summary-depot-box .summary-footer-depot .group-button { + display: flex; + margin-left: auto; +} +.summary-depot-container .summary-depot-box .summary-footer-depot .group-button .blue-reverse { + background-image: linear-gradient(to bottom, #1756ad, #002680); + color: #fff; + font-size: 18px; + font-weight: 600; +} +.assisted-tooling-container { + height: 100%; + width: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.assisted-tooling-container .assisted-tooling-box { + width: 704px; + height: 624px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.4); +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header { + width: 100%; + height: 60px; + color: #002680; + border-bottom: solid 2px #bbbcbc; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header .assisted-tooling-header-label { + font-size: 20px; + padding: 19px 0 0 24px; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-header > .fa { + float: right; + font-size: 28px; + margin-top: 15px; + margin-right: 14px; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body { + width: 100%; + height: calc(100% - 142px); + background-color: #657178; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body .assisted-tooling-body-group { + height: 100%; + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; + font-size: 18px; + line-height: 1.11; + color: #fff; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-body .assisted-tooling-body-group img { + margin-top: 10px; +} +.assisted-tooling-container .assisted-tooling-box .assisted-tooling-footer { + height: 78px; + width: 100%; + display: flex; + align-items: center; + border-top: solid 2px #bbbcbc; +} +.tooling-equipment-container { + height: 100%; + width: 100%; + display: flex; + justify-content: center; + padding-top: 104px; +} +.tooling-equipment-container .tooling-equipment-box { + width: 1808px; + height: 872px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-header { + font-size: 20px; + color: #002680; + height: 81px; + display: flex; + align-items: center; + border-bottom: solid 2px #f1f1f1; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-header .fa { + height: 18px; + width: 13px; + margin: 0 22px 0 29px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body { + width: 100%; + height: calc(100% - 161px); + border-radius: 2px; + background-color: #bbbcbc; + display: flex; + flex-flow: row; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left { + height: 100%; + width: 488px; + float: left; + border-radius: 2px; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); + background-color: #fff; + font-size: 18px; + line-height: 1.11; + text-align: center; + color: #4b4b4b; + display: flex; + flex-flow: column; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search { + height: 135px; + display: flex; + flex-flow: column; + justify-content: center; + padding-bottom: 16px; + border-bottom: solid 2px #979797; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .tooling-equipment-search-label { + display: flex; + justify-content: center; + margin-top: 25px; + margin-bottom: 26px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn { + display: flex; + flex-flow: row; + justify-content: center; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn input { + width: 288px; + height: 48px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .tooling-equipment-search .group-btn button { + width: 48px; + height: 48px; + padding: 0; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-vertical { + width: 95%; + height: calc(100% - 198px); + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + margin-top: 16px; + margin-bottom: 16px; + overflow-y: auto; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer { + height: calc(100% - 646px); + display: flex; + align-items: center; + justify-content: center; + border-top: solid 2px #979797; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer button { + background-image: linear-gradient(to bottom, #1756ad, #002680); + color: #fff; + width: 48px; + height: 47px; + margin: 28px; + padding: 0; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .list-left .list-left-footer button .fa { + width: 22px; + height: 21px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right { + width: 1320px; + height: 100%; + background-color: #f3f3f3; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right button { + float: right; + width: 48px; + height: 48px; + padding: 0; + margin-top: 15px; + margin-right: 16px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right button .fa { + width: 21px; + height: 22px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .box-right-label-header { + display: flex; + justify-content: center; + font-size: 18px; + font-weight: 600; + line-height: 1.11; + color: #4b4b4b; + margin-top: 47px; + margin-bottom: 36px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .list-skill-equipment { + width: 99%; + height: calc(100% - 102px); + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + overflow-y: auto; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-body .box-right .list-skill-equipment div.skill-equipment { + margin: 8px; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-footer { + height: 80px; + float: right; + display: flex; + align-items: center; +} +.tooling-equipment-container .tooling-equipment-box .tooling-equipment-footer button.blue-reverse { + background-image: linear-gradient(to bottom, #1756ad, #002680); + color: #fff; + font-size: 18px; + font-weight: 600; +} .persona { height: 88px; width: 88px; diff --git a/Step/wwwroot/src/modules/heads/head.vue b/Step/wwwroot/src/modules/heads/head.vue index 5141e288..ce335472 100644 --- a/Step/wwwroot/src/modules/heads/head.vue +++ b/Step/wwwroot/src/modules/heads/head.vue @@ -54,10 +54,10 @@ From 5b556e2363cca5223ae915c664303e79706abbc8 Mon Sep 17 00:00:00 2001 From: Nicola Carminati Date: Fri, 6 Apr 2018 16:37:49 +0200 Subject: [PATCH 03/26] Fix Hmi-Nc Name (under the hood) --- Step/wwwroot/src/components/under-the-hood.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Step/wwwroot/src/components/under-the-hood.vue b/Step/wwwroot/src/components/under-the-hood.vue index 094b1ee3..82325aaf 100644 --- a/Step/wwwroot/src/components/under-the-hood.vue +++ b/Step/wwwroot/src/components/under-the-hood.vue @@ -1,18 +1,19 @@