@things-factory/integration-ui 4.0.39 → 4.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/editors/entity-editor.js +1 -1
- package/client/editors/entity-selector.js +4 -4
- package/client/editors/property-editor.js +2 -1
- package/client/editors/things-editor-entity-selector.js +4 -4
- package/client/editors/things-editor-http-body.js +1 -1
- package/client/editors/things-editor-http-headers.js +1 -1
- package/client/editors/things-editor-http-parameters.js +1 -1
- package/client/grist/crontab-editor-popup.js +1 -1
- package/client/grist/crontab-editor.js +2 -1
- package/client/grist/dynamic-selector.js +2 -1
- package/client/grist/json-editor.js +7 -7
- package/client/grist/json-grist-editor.js +3 -3
- package/client/grist/parameters-editor-builder.js +1 -1
- package/client/grist/parameters-editor-popup.js +1 -1
- package/client/grist/parameters-editor.js +5 -3
- package/client/grist/task-type-selector.js +4 -3
- package/client/pages/connection.js +9 -13
- package/client/pages/integration-monitor.js +7 -6
- package/client/pages/scenario-detail.js +9 -9
- package/client/pages/scenario-importer.js +3 -3
- package/client/pages/scenario.js +5 -9
- package/client/viewparts/connections-monitor.js +16 -16
- package/client/viewparts/monitoring-summary.js +1 -1
- package/client/viewparts/scenario-instance-log-view.js +2 -2
- package/client/viewparts/scenario-instance-monitor.js +6 -7
- package/client/viewparts/scenario-instance-view.js +2 -2
- package/client/viewparts/scenario-monitor.js +6 -6
- package/client/viewparts/scenarios-monitor.js +1 -1
- package/package.json +14 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
6
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
-
import { client } from '@things-factory/shell'
|
|
8
|
-
import gql from 'graphql-tag'
|
|
9
7
|
import { i18next } from '@things-factory/i18n-base'
|
|
8
|
+
import { client } from '@things-factory/shell'
|
|
9
|
+
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
10
10
|
|
|
11
11
|
export class EntitySelector extends LitElement {
|
|
12
12
|
static get properties() {
|
|
@@ -5,8 +5,9 @@ import './things-editor-http-headers'
|
|
|
5
5
|
import './things-editor-http-parameters'
|
|
6
6
|
import './things-editor-http-body'
|
|
7
7
|
|
|
8
|
+
import { html } from 'lit'
|
|
9
|
+
|
|
8
10
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
9
|
-
import { html } from 'lit-element'
|
|
10
11
|
|
|
11
12
|
export class PropertyEditorScenarioStepInput extends OxPropertyEditor {
|
|
12
13
|
static get styles() {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { LitElement, html, css } from 'lit-element'
|
|
6
5
|
import '@material/mwc-icon'
|
|
6
|
+
import './entity-selector'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import { i18next } from '@things-factory/i18n-base'
|
|
8
|
+
import { css, html, LitElement } from 'lit'
|
|
10
9
|
|
|
11
|
-
import '
|
|
10
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
11
|
+
import { openPopup } from '@things-factory/layout-base'
|
|
12
12
|
|
|
13
13
|
export default class ThingsEditorEntitySelector extends LitElement {
|
|
14
14
|
static get properties() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@material/mwc-button'
|
|
2
2
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
3
3
|
import { i18next } from '@things-factory/i18n-base'
|
|
4
|
-
import { css, html, LitElement } from 'lit
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
6
|
function createCronRegex(type) {
|
|
7
7
|
// https://gist.github.com/dkandalov/a2aed17cfdeb65243022
|
|
@@ -3,8 +3,9 @@ import '@material/mwc-fab'
|
|
|
3
3
|
import '@material/mwc-icon'
|
|
4
4
|
import './crontab-editor-popup'
|
|
5
5
|
|
|
6
|
+
import { html } from 'lit'
|
|
7
|
+
|
|
6
8
|
import { InputEditor } from '@operato/data-grist'
|
|
7
|
-
import { html } from 'lit-element'
|
|
8
9
|
import { i18next } from '@things-factory/i18n-base'
|
|
9
10
|
import { openPopup } from '@things-factory/layout-base'
|
|
10
11
|
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import 'codemirror/mode/javascript/javascript'
|
|
6
|
+
import 'codemirror/addon/display/fullscreen'
|
|
7
|
+
import 'codemirror/addon/display/autorefresh'
|
|
7
8
|
|
|
8
|
-
import CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css'
|
|
9
9
|
import FullScreenStyle from '!!text-loader!codemirror/addon/display/fullscreen.css'
|
|
10
|
+
import CodeMirrorStyle from '!!text-loader!codemirror/lib/codemirror.css'
|
|
10
11
|
import NightThemeStyle from '!!text-loader!codemirror/theme/night.css'
|
|
11
|
-
|
|
12
12
|
import CodeMirror from 'codemirror'
|
|
13
|
-
import '
|
|
14
|
-
|
|
15
|
-
import '
|
|
13
|
+
import { css, html, LitElement, unsafeCSS } from 'lit'
|
|
14
|
+
|
|
15
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
WEB Component for code-mirror json editor.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit-element'
|
|
2
|
-
|
|
3
1
|
import '@material/mwc-icon'
|
|
2
|
+
import './json-editor'
|
|
3
|
+
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
4
5
|
|
|
5
6
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
|
-
import './json-editor'
|
|
7
7
|
|
|
8
8
|
export class JsonGristEditor extends LitElement {
|
|
9
9
|
static get properties() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i18next } from '@things-factory/i18n-base'
|
|
2
2
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
3
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
+
import { css, html, LitElement } from 'lit'
|
|
4
4
|
|
|
5
5
|
export class ParametersEditorPopup extends LitElement {
|
|
6
6
|
static get properties() {
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { css, html, LitElement } from 'lit-element'
|
|
6
|
-
import { i18next } from '@things-factory/i18n-base'
|
|
7
|
-
import { openPopup } from '@things-factory/layout-base'
|
|
8
5
|
import './parameters-editor-builder'
|
|
9
6
|
import './parameters-editor-popup'
|
|
10
7
|
|
|
8
|
+
import { css, html, LitElement } from 'lit'
|
|
9
|
+
|
|
10
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
11
|
+
import { openPopup } from '@things-factory/layout-base'
|
|
12
|
+
|
|
11
13
|
export class ParametersEditor extends LitElement {
|
|
12
14
|
static get properties() {
|
|
13
15
|
return {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
import { html } from 'lit'
|
|
3
|
+
|
|
1
4
|
import { InputEditor } from '@operato/data-grist'
|
|
2
5
|
import { client } from '@things-factory/shell'
|
|
3
|
-
import gql from 'graphql-tag'
|
|
4
|
-
import { html } from 'lit-element'
|
|
5
6
|
|
|
6
7
|
const FETCH_TASK_TYPES_GQL = gql`
|
|
7
|
-
query($connectionName: String!) {
|
|
8
|
+
query ($connectionName: String!) {
|
|
8
9
|
taskTypesByConnection(connectionName: $connectionName) {
|
|
9
10
|
items {
|
|
10
11
|
name
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html } from 'lit
|
|
4
|
+
import { css, html } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
6
6
|
|
|
7
|
-
import { HelpDecoratedRenderer } from '@
|
|
8
|
-
import { i18next, localize } from '@
|
|
7
|
+
import { HelpDecoratedRenderer } from '@operato/help/help-decorated-renderer.js'
|
|
8
|
+
import { i18next, localize } from '@operato/i18n'
|
|
9
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
|
10
|
+
import { isMobileDevice } from '@operato/utils'
|
|
9
11
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
11
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
12
12
|
|
|
13
13
|
export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
14
14
|
static get properties() {
|
|
@@ -75,16 +75,12 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
75
75
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
76
76
|
>
|
|
77
77
|
<div slot="headroom" id="filters">
|
|
78
|
-
<ox-filters-form
|
|
78
|
+
<ox-filters-form></ox-filters-form>
|
|
79
79
|
</div>
|
|
80
80
|
</ox-grist>
|
|
81
81
|
`
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
get filtersForm() {
|
|
85
|
-
return this.renderRoot.querySelector('ox-filters-form')
|
|
86
|
-
}
|
|
87
|
-
|
|
88
84
|
get grist() {
|
|
89
85
|
return this.renderRoot.querySelector('ox-grist')
|
|
90
86
|
}
|
|
@@ -254,7 +250,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
254
250
|
}
|
|
255
251
|
}
|
|
256
252
|
|
|
257
|
-
async fetchHandler({ page, limit,
|
|
253
|
+
async fetchHandler({ page, limit, sortings = [], filters = [] }) {
|
|
258
254
|
const response = await client.query({
|
|
259
255
|
query: gql`
|
|
260
256
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
@@ -285,9 +281,9 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
285
281
|
}
|
|
286
282
|
`,
|
|
287
283
|
variables: {
|
|
288
|
-
filters
|
|
284
|
+
filters,
|
|
289
285
|
pagination: { page, limit },
|
|
290
|
-
sortings
|
|
286
|
+
sortings
|
|
291
287
|
}
|
|
292
288
|
})
|
|
293
289
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
|
-
import { client, PageView, subscribe } from '@things-factory/shell'
|
|
3
|
-
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
4
|
-
import gql from 'graphql-tag'
|
|
5
|
-
import { css, html } from 'lit-element'
|
|
6
|
-
|
|
7
1
|
import '../viewparts/monitoring-summary'
|
|
8
2
|
import '../viewparts/pending-q-monitor'
|
|
9
3
|
import '../viewparts/scenarios-monitor'
|
|
10
4
|
import '../viewparts/connections-monitor'
|
|
11
5
|
|
|
6
|
+
import gql from 'graphql-tag'
|
|
7
|
+
import { css, html } from 'lit'
|
|
8
|
+
|
|
9
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
10
|
+
import { client, PageView, subscribe } from '@things-factory/shell'
|
|
11
|
+
import { ScrollbarStyles } from '@things-factory/styles'
|
|
12
|
+
|
|
12
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
13
14
|
return state && state !== 'UNLOADED'
|
|
14
15
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
import { css, html, LitElement } from 'lit'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { client } from '@operato/graphql'
|
|
5
|
+
import { HelpDecoratedRenderer } from '@operato/help/help-decorated-renderer.js'
|
|
6
|
+
import { i18next, localize } from '@operato/i18n'
|
|
7
|
+
import { isMobileDevice } from '@operato/utils'
|
|
5
8
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
6
|
-
import { client } from '@things-factory/shell'
|
|
7
|
-
import gql from 'graphql-tag'
|
|
8
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
9
9
|
|
|
10
10
|
class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
11
11
|
static get properties() {
|
|
@@ -235,7 +235,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
235
235
|
async fetchTaskType(name) {
|
|
236
236
|
const response = await client.query({
|
|
237
237
|
query: gql`
|
|
238
|
-
query($name: String!) {
|
|
238
|
+
query ($name: String!) {
|
|
239
239
|
taskType(name: $name) {
|
|
240
240
|
name
|
|
241
241
|
description
|
|
@@ -273,7 +273,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
273
273
|
|
|
274
274
|
const response = await client.mutate({
|
|
275
275
|
mutation: gql`
|
|
276
|
-
mutation($scenarioId: String!, $patches: [StepPatch!]!) {
|
|
276
|
+
mutation ($scenarioId: String!, $patches: [StepPatch!]!) {
|
|
277
277
|
updateMultipleStep(scenarioId: $scenarioId, patches: $patches) {
|
|
278
278
|
name
|
|
279
279
|
}
|
|
@@ -297,7 +297,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
297
297
|
|
|
298
298
|
const response = await client.mutate({
|
|
299
299
|
mutation: gql`
|
|
300
|
-
mutation($ids: [String!]!) {
|
|
300
|
+
mutation ($ids: [String!]!) {
|
|
301
301
|
deleteSteps(ids: $ids)
|
|
302
302
|
}
|
|
303
303
|
`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
|
|
3
|
-
import { LitElement, css, html } from 'lit-element'
|
|
4
|
-
|
|
5
|
-
import { client } from '@things-factory/shell'
|
|
6
3
|
import gql from 'graphql-tag'
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
|
+
|
|
7
6
|
import { i18next } from '@things-factory/i18n-base'
|
|
7
|
+
import { client } from '@things-factory/shell'
|
|
8
8
|
import { isMobileDevice } from '@things-factory/utils'
|
|
9
9
|
|
|
10
10
|
export class ScenarioImporter extends LitElement {
|
package/client/pages/scenario.js
CHANGED
|
@@ -3,7 +3,7 @@ import './scenario-detail'
|
|
|
3
3
|
import './scenario-importer'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import { css, html } from 'lit
|
|
6
|
+
import { css, html } from 'lit'
|
|
7
7
|
import moment from 'moment-timezone'
|
|
8
8
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
9
9
|
|
|
@@ -101,16 +101,12 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
101
101
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
102
102
|
>
|
|
103
103
|
<div slot="headroom" id="filters">
|
|
104
|
-
<ox-filters-form
|
|
104
|
+
<ox-filters-form></ox-filters-form>
|
|
105
105
|
</div>
|
|
106
106
|
</ox-grist>
|
|
107
107
|
`
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
get filtersForm() {
|
|
111
|
-
return this.renderRoot.querySelector('ox-filters-form')
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
get grist() {
|
|
115
111
|
return this.renderRoot.querySelector('ox-grist')
|
|
116
112
|
}
|
|
@@ -314,7 +310,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
314
310
|
}
|
|
315
311
|
}
|
|
316
312
|
|
|
317
|
-
async fetchHandler({ page, limit,
|
|
313
|
+
async fetchHandler({ page, limit, sortings = [], filters = [] }) {
|
|
318
314
|
const response = await client.query({
|
|
319
315
|
query: gql`
|
|
320
316
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
@@ -349,9 +345,9 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
349
345
|
}
|
|
350
346
|
`,
|
|
351
347
|
variables: {
|
|
352
|
-
filters
|
|
348
|
+
filters,
|
|
353
349
|
pagination: { page, limit },
|
|
354
|
-
sortings
|
|
350
|
+
sortings
|
|
355
351
|
}
|
|
356
352
|
})
|
|
357
353
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
3
|
import { client } from '@things-factory/shell'
|
|
4
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -43,10 +43,10 @@ export class ConnectionsMonitor extends LitElement {
|
|
|
43
43
|
border-bottom: var(--border-dark-color);
|
|
44
44
|
color: var(--secondary-color);
|
|
45
45
|
}
|
|
46
|
-
[card] *{
|
|
47
|
-
overflow:hidden;
|
|
48
|
-
text-overflow:ellipsis;
|
|
49
|
-
white-space:nowrap;
|
|
46
|
+
[card] * {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
white-space: nowrap;
|
|
50
50
|
}
|
|
51
51
|
[card] strong {
|
|
52
52
|
color: var(--primary-color);
|
|
@@ -65,23 +65,23 @@ export class ConnectionsMonitor extends LitElement {
|
|
|
65
65
|
background-color: var(--status-success-color);
|
|
66
66
|
margin-left: var(--margin-narrow);
|
|
67
67
|
}
|
|
68
|
-
[buttons]{
|
|
68
|
+
[buttons] {
|
|
69
69
|
--mdc-icon-button-size: 20px;
|
|
70
70
|
--mdc-icon-size: 20px;
|
|
71
|
-
border-top:1px dashed rgba(0,0,0
|
|
72
|
-
margin:var(--margin-narrow) 0 0 0;
|
|
73
|
-
padding:var(--padding-narrow) 0 0 0;
|
|
74
|
-
text-align:right;
|
|
71
|
+
border-top: 1px dashed rgba(0, 0, 0, 0.1);
|
|
72
|
+
margin: var(--margin-narrow) 0 0 0;
|
|
73
|
+
padding: var(--padding-narrow) 0 0 0;
|
|
74
|
+
text-align: right;
|
|
75
75
|
}
|
|
76
|
-
[buttons] mwc-icon-button{
|
|
77
|
-
color:rgba(var(--secondary-color-rgb)
|
|
76
|
+
[buttons] mwc-icon-button {
|
|
77
|
+
color: rgba(var(--secondary-color-rgb), 0.8);
|
|
78
78
|
}
|
|
79
79
|
@media screen and (max-width: 480px) {
|
|
80
80
|
h2 {
|
|
81
81
|
padding: var(--padding-narrow);
|
|
82
82
|
}
|
|
83
|
-
[card] span{
|
|
84
|
-
display:none
|
|
83
|
+
[card] span {
|
|
84
|
+
display: none;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
`
|
|
@@ -129,7 +129,7 @@ export class ConnectionsMonitor extends LitElement {
|
|
|
129
129
|
async connect(connection) {
|
|
130
130
|
var response = await client.mutate({
|
|
131
131
|
mutation: gql`
|
|
132
|
-
mutation($name: String!) {
|
|
132
|
+
mutation ($name: String!) {
|
|
133
133
|
connectConnection(name: $name) {
|
|
134
134
|
state
|
|
135
135
|
}
|
|
@@ -157,7 +157,7 @@ export class ConnectionsMonitor extends LitElement {
|
|
|
157
157
|
async disconnect(connection) {
|
|
158
158
|
var response = await client.mutate({
|
|
159
159
|
mutation: gql`
|
|
160
|
-
mutation($name: String!) {
|
|
160
|
+
mutation ($name: String!) {
|
|
161
161
|
disconnectConnection(name: $name) {
|
|
162
162
|
state
|
|
163
163
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit'
|
|
2
2
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -71,7 +71,7 @@ export class ScenarioInstanceLogView extends connect(store)(LitElement) {
|
|
|
71
71
|
this.subscription = await subscribe(
|
|
72
72
|
{
|
|
73
73
|
query: gql`
|
|
74
|
-
subscription($instanceName: String, $scenarioName: String, $level: String) {
|
|
74
|
+
subscription ($instanceName: String, $scenarioName: String, $level: String) {
|
|
75
75
|
log: scenarioInstanceLog(instanceName: $instanceName, scenarioName: $scenarioName, level: $level) {
|
|
76
76
|
level
|
|
77
77
|
message
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
import '@material/mwc-icon'
|
|
3
3
|
import './scenario-instance-view'
|
|
4
|
-
import './scenario-instance-view'
|
|
5
4
|
|
|
6
|
-
import
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import { css, html, LitElement } from 'lit'
|
|
7
|
+
|
|
7
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
9
|
import { notify, openPopup } from '@things-factory/layout-base'
|
|
9
|
-
|
|
10
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
11
10
|
import { client } from '@things-factory/shell'
|
|
12
|
-
import
|
|
11
|
+
import { ScrollbarStyles } from '@things-factory/styles'
|
|
13
12
|
|
|
14
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
15
14
|
return state && state !== 'UNLOADED'
|
|
@@ -128,7 +127,7 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
|
128
127
|
async startScenario(instance) {
|
|
129
128
|
var response = await client.mutate({
|
|
130
129
|
mutation: gql`
|
|
131
|
-
mutation($scenarioName: String!, $instanceName: String) {
|
|
130
|
+
mutation ($scenarioName: String!, $instanceName: String) {
|
|
132
131
|
startScenario(scenarioName: $scenarioName, instanceName: $instanceName) {
|
|
133
132
|
state
|
|
134
133
|
}
|
|
@@ -151,7 +150,7 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
|
151
150
|
async stopScenario(instance) {
|
|
152
151
|
var response = await client.mutate({
|
|
153
152
|
mutation: gql`
|
|
154
|
-
mutation($instanceName: String!) {
|
|
153
|
+
mutation ($instanceName: String!) {
|
|
155
154
|
stopScenario(instanceName: $instanceName) {
|
|
156
155
|
state
|
|
157
156
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit'
|
|
2
2
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -224,7 +224,7 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
|
224
224
|
this.subscription = await subscribe(
|
|
225
225
|
{
|
|
226
226
|
query: gql`
|
|
227
|
-
subscription($instanceName: String, $scenarioName: String) {
|
|
227
|
+
subscription ($instanceName: String, $scenarioName: String) {
|
|
228
228
|
scenarioInstanceState(instanceName: $instanceName, scenarioName: $scenarioName) {
|
|
229
229
|
instanceName
|
|
230
230
|
scenarioName
|
|
@@ -2,13 +2,13 @@ import '@operato/data-grist'
|
|
|
2
2
|
import '@material/mwc-icon-button'
|
|
3
3
|
import './scenario-instance-monitor'
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import { css, html, LitElement } from 'lit'
|
|
7
|
+
|
|
6
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
9
|
import { notify, openPopup } from '@things-factory/layout-base'
|
|
8
|
-
|
|
9
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
10
10
|
import { client } from '@things-factory/shell'
|
|
11
|
-
import
|
|
11
|
+
import { ScrollbarStyles } from '@things-factory/styles'
|
|
12
12
|
|
|
13
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
14
14
|
return state && state !== 'UNLOADED'
|
|
@@ -259,7 +259,7 @@ export class ScenarioMonitor extends localize(i18next)(LitElement) {
|
|
|
259
259
|
async startScenario(scenario) {
|
|
260
260
|
var response = await client.mutate({
|
|
261
261
|
mutation: gql`
|
|
262
|
-
mutation($scenarioName: String!) {
|
|
262
|
+
mutation ($scenarioName: String!) {
|
|
263
263
|
startScenario(scenarioName: $scenarioName) {
|
|
264
264
|
state
|
|
265
265
|
}
|
|
@@ -281,7 +281,7 @@ export class ScenarioMonitor extends localize(i18next)(LitElement) {
|
|
|
281
281
|
async stopScenario(scenario) {
|
|
282
282
|
var response = await client.mutate({
|
|
283
283
|
mutation: gql`
|
|
284
|
-
mutation($instanceName: String!) {
|
|
284
|
+
mutation ($instanceName: String!) {
|
|
285
285
|
stopScenario(instanceName: $instanceName) {
|
|
286
286
|
state
|
|
287
287
|
}
|
|
@@ -2,7 +2,7 @@ import '@operato/data-grist'
|
|
|
2
2
|
import '@material/mwc-icon-button'
|
|
3
3
|
import './scenario-monitor'
|
|
4
4
|
|
|
5
|
-
import { LitElement, css, html } from 'lit
|
|
5
|
+
import { LitElement, css, html } from 'lit'
|
|
6
6
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
7
|
|
|
8
8
|
import { ScrollbarStyles } from '@things-factory/styles'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.43",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,14 +24,20 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@operato/data-grist": "^0.3.
|
|
28
|
-
"@operato/
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
27
|
+
"@operato/data-grist": "^0.3.26",
|
|
28
|
+
"@operato/graphql": "^0.3.26",
|
|
29
|
+
"@operato/help": "^0.3.26",
|
|
30
|
+
"@operato/i18n": "^0.3.26",
|
|
31
|
+
"@operato/layout": "^0.3.26",
|
|
32
|
+
"@operato/property-editor": "^0.3.26",
|
|
33
|
+
"@operato/styles": "^0.3.26",
|
|
34
|
+
"@operato/utils": "^0.3.26",
|
|
35
|
+
"@things-factory/export-base": "^4.0.43",
|
|
36
|
+
"@things-factory/import-base": "^4.0.43",
|
|
37
|
+
"@things-factory/integration-base": "^4.0.43",
|
|
38
|
+
"@things-factory/modeller-ui": "^4.0.43",
|
|
33
39
|
"moment-timezone": "^0.5.27",
|
|
34
40
|
"subscriptions-transport-ws": "^0.11.0"
|
|
35
41
|
},
|
|
36
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8f2a8008eb61b6efd266412be267186c5059fab6"
|
|
37
43
|
}
|