@operato/scene-integration 1.0.0-alpha.6 → 1.0.0

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +283 -6
  2. package/assets/favicon.ico +0 -0
  3. package/assets/images/spinner.png +0 -0
  4. package/dist/client-api.js +2 -2
  5. package/dist/client-api.js.map +1 -1
  6. package/dist/connection-control.d.ts +0 -5
  7. package/dist/connection-control.js +2 -27
  8. package/dist/connection-control.js.map +1 -1
  9. package/dist/connection-state-subscription.js +2 -2
  10. package/dist/connection-state-subscription.js.map +1 -1
  11. package/dist/data-subscription.js +1 -1
  12. package/dist/data-subscription.js.map +1 -1
  13. package/dist/index.d.ts +1 -2
  14. package/dist/scenario-control.d.ts +0 -4
  15. package/dist/scenario-control.js +11 -32
  16. package/dist/scenario-control.js.map +1 -1
  17. package/dist/scenario-instance-subscription.js +1 -1
  18. package/dist/scenario-instance-subscription.js.map +1 -1
  19. package/dist/scenario-queue-subscription.js +1 -1
  20. package/dist/scenario-queue-subscription.js.map +1 -1
  21. package/dist/scenario-run.d.ts +0 -4
  22. package/dist/scenario-run.js +6 -26
  23. package/dist/scenario-run.js.map +1 -1
  24. package/dist/scenario-start.d.ts +0 -5
  25. package/dist/scenario-start.js +1 -27
  26. package/dist/scenario-start.js.map +1 -1
  27. package/dist/scenario-stop.d.ts +0 -5
  28. package/dist/scenario-stop.js +1 -27
  29. package/dist/scenario-stop.js.map +1 -1
  30. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +20 -0
  31. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +20 -0
  32. package/logs/application-2022-07-17-17.log +13 -0
  33. package/logs/application-2022-07-17-18.log +8 -0
  34. package/logs/connections-2022-07-17-17.log +105 -0
  35. package/logs/connections-2022-07-17-18.log +70 -0
  36. package/package.json +7 -9
  37. package/src/client-api.ts +2 -2
  38. package/src/connection-control.ts +2 -34
  39. package/src/connection-state-subscription.ts +2 -3
  40. package/src/data-subscription.ts +1 -2
  41. package/src/scenario-control.ts +13 -36
  42. package/src/scenario-instance-subscription.ts +1 -1
  43. package/src/scenario-queue-subscription.ts +1 -2
  44. package/src/scenario-run.ts +7 -30
  45. package/src/scenario-start.ts +1 -33
  46. package/src/scenario-stop.ts +1 -33
  47. package/tsconfig.tsbuildinfo +1 -1
  48. package/dist/origin-client.d.ts +0 -5
  49. package/dist/origin-client.js +0 -110
  50. package/dist/origin-client.js.map +0 -1
  51. package/src/origin-client.ts +0 -133
@@ -0,0 +1,70 @@
1
+ 2022-07-17T18:23:56+09:00 info: Initializing ConnectionManager...
2
+ 2022-07-17T18:23:56+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2022-07-17T18:23:56+09:00 info: Connector 'echo-back' started to ready
4
+ 2022-07-17T18:23:56+09:00 info: Connector 'http-connector' started to ready
5
+ 2022-07-17T18:23:56+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2022-07-17T18:23:56+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2022-07-17T18:23:56+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2022-07-17T18:23:56+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2022-07-17T18:23:56+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2022-07-17T18:23:56+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2022-07-17T18:23:56+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2022-07-17T18:23:56+09:00 info: Connector 'socket-server' started to ready
13
+ 2022-07-17T18:23:56+09:00 info: echo-back-servers are ready
14
+ 2022-07-17T18:23:56+09:00 info: echo-back connections are ready
15
+ 2022-07-17T18:23:56+09:00 info: http-connector connections are ready
16
+ 2022-07-17T18:23:56+09:00 info: graphql-connector connections are ready
17
+ 2022-07-17T18:23:56+09:00 info: sqlite-connector connections are ready
18
+ 2022-07-17T18:23:56+09:00 info: postgresql-connector connections are ready
19
+ 2022-07-17T18:23:56+09:00 info: mqtt-connector connections are ready
20
+ 2022-07-17T18:23:56+09:00 info: mssql-connector connections are ready
21
+ 2022-07-17T18:23:56+09:00 info: oracle-connector connections are ready
22
+ 2022-07-17T18:23:56+09:00 info: mysql-connector connections are ready
23
+ 2022-07-17T18:23:56+09:00 info: socket servers are ready
24
+ 2022-07-17T18:23:56+09:00 info: All connector for 'echo-back-server' ready
25
+ 2022-07-17T18:23:56+09:00 info: All connector for 'echo-back' ready
26
+ 2022-07-17T18:23:56+09:00 info: All connector for 'http-connector' ready
27
+ 2022-07-17T18:23:56+09:00 info: All connector for 'graphql-connector' ready
28
+ 2022-07-17T18:23:56+09:00 info: All connector for 'sqlite-connector' ready
29
+ 2022-07-17T18:23:56+09:00 info: All connector for 'postgresql-connector' ready
30
+ 2022-07-17T18:23:56+09:00 info: All connector for 'mqtt-connector' ready
31
+ 2022-07-17T18:23:56+09:00 info: All connector for 'mssql-connector' ready
32
+ 2022-07-17T18:23:56+09:00 info: All connector for 'oracle-connector' ready
33
+ 2022-07-17T18:23:56+09:00 info: All connector for 'mysql-connector' ready
34
+ 2022-07-17T18:23:56+09:00 info: All connector for 'socket-server' ready
35
+ 2022-07-17T18:23:56+09:00 info: ConnectionManager initialization done:
36
+ 2022-07-17T18:50:06+09:00 info: Initializing ConnectionManager...
37
+ 2022-07-17T18:50:06+09:00 info: Connector 'echo-back-server' started to ready
38
+ 2022-07-17T18:50:06+09:00 info: Connector 'echo-back' started to ready
39
+ 2022-07-17T18:50:06+09:00 info: Connector 'http-connector' started to ready
40
+ 2022-07-17T18:50:06+09:00 info: Connector 'graphql-connector' started to ready
41
+ 2022-07-17T18:50:06+09:00 info: Connector 'sqlite-connector' started to ready
42
+ 2022-07-17T18:50:06+09:00 info: Connector 'postgresql-connector' started to ready
43
+ 2022-07-17T18:50:06+09:00 info: Connector 'mqtt-connector' started to ready
44
+ 2022-07-17T18:50:06+09:00 info: Connector 'mssql-connector' started to ready
45
+ 2022-07-17T18:50:06+09:00 info: Connector 'oracle-connector' started to ready
46
+ 2022-07-17T18:50:06+09:00 info: Connector 'mysql-connector' started to ready
47
+ 2022-07-17T18:50:06+09:00 info: Connector 'socket-server' started to ready
48
+ 2022-07-17T18:50:06+09:00 info: echo-back-servers are ready
49
+ 2022-07-17T18:50:06+09:00 info: echo-back connections are ready
50
+ 2022-07-17T18:50:06+09:00 info: http-connector connections are ready
51
+ 2022-07-17T18:50:06+09:00 info: graphql-connector connections are ready
52
+ 2022-07-17T18:50:06+09:00 info: sqlite-connector connections are ready
53
+ 2022-07-17T18:50:06+09:00 info: postgresql-connector connections are ready
54
+ 2022-07-17T18:50:06+09:00 info: mqtt-connector connections are ready
55
+ 2022-07-17T18:50:06+09:00 info: mssql-connector connections are ready
56
+ 2022-07-17T18:50:06+09:00 info: oracle-connector connections are ready
57
+ 2022-07-17T18:50:06+09:00 info: mysql-connector connections are ready
58
+ 2022-07-17T18:50:06+09:00 info: socket servers are ready
59
+ 2022-07-17T18:50:06+09:00 info: All connector for 'echo-back-server' ready
60
+ 2022-07-17T18:50:06+09:00 info: All connector for 'echo-back' ready
61
+ 2022-07-17T18:50:06+09:00 info: All connector for 'http-connector' ready
62
+ 2022-07-17T18:50:06+09:00 info: All connector for 'graphql-connector' ready
63
+ 2022-07-17T18:50:06+09:00 info: All connector for 'sqlite-connector' ready
64
+ 2022-07-17T18:50:06+09:00 info: All connector for 'postgresql-connector' ready
65
+ 2022-07-17T18:50:06+09:00 info: All connector for 'mqtt-connector' ready
66
+ 2022-07-17T18:50:06+09:00 info: All connector for 'mssql-connector' ready
67
+ 2022-07-17T18:50:06+09:00 info: All connector for 'oracle-connector' ready
68
+ 2022-07-17T18:50:06+09:00 info: All connector for 'mysql-connector' ready
69
+ 2022-07-17T18:50:06+09:00 info: All connector for 'socket-server' ready
70
+ 2022-07-17T18:50:06+09:00 info: ConnectionManager initialization done:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@operato/scene-integration",
3
3
  "description": "Things factory integration component for things-scene",
4
- "version": "1.0.0-alpha.6",
4
+ "version": "1.0.0",
5
5
  "license": "MIT",
6
6
  "author": "heartyoh",
7
7
  "main": "dist/index.js",
@@ -26,16 +26,14 @@
26
26
  "migration": "things-factory-migration"
27
27
  },
28
28
  "dependencies": {
29
- "@apollo/client": "^3.5.6",
30
- "@hatiolab/things-scene": "^2.7.34",
31
- "graphql-tag": "^2.12.6",
32
- "subscriptions-transport-ws": "^0.11.0"
29
+ "@hatiolab/things-scene": "^3.0.19",
30
+ "@operato/graphql": "^1.0.0",
31
+ "graphql-tag": "^2.12.6"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@hatiolab/prettier-config": "^1.0.0",
36
- "@operato/board": "^1.0.0-alpha.51",
37
- "@things-factory/builder": "^5.0.0-alpha.28",
38
- "@things-factory/operato-board": "^5.0.0-alpha.28",
35
+ "@things-factory/builder": "^5.0.0-zeta.28",
36
+ "@things-factory/operato-board": "^5.0.0-zeta.28",
39
37
  "@typescript-eslint/eslint-plugin": "^4.33.0",
40
38
  "@typescript-eslint/parser": "^4.33.0",
41
39
  "@web/dev-server": "^0.1.28",
@@ -60,5 +58,5 @@
60
58
  "prettier --write"
61
59
  ]
62
60
  },
63
- "gitHead": "3807e89728ce6cd472cfd732f4da9676c7b21541"
61
+ "gitHead": "41d54d5fd010844be20b670f46119e4c06d6850e"
64
62
  }
package/src/client-api.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
- import { getClient } from './origin-client'
3
+ import { client } from '@operato/graphql'
4
4
 
5
5
  export const scenarios = async () => {
6
- var response = await getClient().query({
6
+ var response = await client.query({
7
7
  query: gql`
8
8
  query {
9
9
  scenarios {
@@ -1,8 +1,7 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, RectPath, Shape } from '@hatiolab/things-scene'
4
-
5
- import { getClient } from './origin-client'
4
+ import { client } from '@operato/graphql'
6
5
 
7
6
  const NATURE: ComponentNature = {
8
7
  mutable: false,
@@ -15,7 +14,7 @@ const NATURE: ComponentNature = {
15
14
  name: 'connectionName',
16
15
  property: {
17
16
  options: async () => {
18
- var response = await getClient().query({
17
+ var response = await client.query({
19
18
  query: gql`
20
19
  query {
21
20
  connections {
@@ -71,46 +70,16 @@ export default class ConnectionControl extends RectPath(Shape) {
71
70
  return ConnectionControl._image
72
71
  }
73
72
 
74
- private _client: any
75
-
76
73
  render(context: CanvasRenderingContext2D) {
77
74
  var { left, top, width, height } = this.bounds
78
75
  context.beginPath()
79
76
  this.drawImage(context, ConnectionControl.image, left, top, width, height)
80
77
  }
81
78
 
82
- ready() {
83
- super.ready()
84
- this._init()
85
- }
86
-
87
- _init() {
88
- if (!this.app.isViewMode) return
89
-
90
- this._client = getClient()
91
- }
92
-
93
- dispose() {
94
- super.dispose()
95
-
96
- try {
97
- if (this._client) {
98
- this._client.stop()
99
- }
100
- } catch (e) {
101
- console.error(e)
102
- }
103
- delete this._client
104
- }
105
-
106
79
  get nature() {
107
80
  return NATURE
108
81
  }
109
82
 
110
- get client() {
111
- return this._client
112
- }
113
-
114
83
  get controlType() {
115
84
  return this.getState('controlType')
116
85
  }
@@ -135,7 +104,6 @@ export default class ConnectionControl extends RectPath(Shape) {
135
104
  controlType = 'disconnect'
136
105
  }
137
106
 
138
- var client = this._client
139
107
  var query = ''
140
108
 
141
109
  query = `mutation{
@@ -1,8 +1,7 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
4
-
5
- import { getClient, subscribe } from './origin-client'
4
+ import { client, subscribe } from '@operato/graphql'
6
5
 
7
6
  const NATURE: ComponentNature = {
8
7
  mutable: false,
@@ -15,7 +14,7 @@ const NATURE: ComponentNature = {
15
14
  name: 'connectionName',
16
15
  property: {
17
16
  options: async () => {
18
- var response = await getClient().query({
17
+ var response = await client.query({
19
18
  query: gql`
20
19
  query {
21
20
  connections {
@@ -1,8 +1,7 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
4
-
5
- import { subscribe } from './origin-client'
4
+ import { subscribe } from '@operato/graphql'
6
5
 
7
6
  const NATURE: ComponentNature = {
8
7
  mutable: false,
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
4
+ import { client } from '@operato/graphql'
4
5
 
5
6
  import { scenarios } from './client-api'
6
- import { getClient } from './origin-client'
7
7
 
8
8
  const NATURE: ComponentNature = {
9
9
  mutable: false,
@@ -55,8 +55,6 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
55
55
  return ScenarioControl._image
56
56
  }
57
57
 
58
- private _client: any
59
-
60
58
  render(context: CanvasRenderingContext2D) {
61
59
  var { left, top, width, height } = this.bounds
62
60
  context.beginPath()
@@ -65,27 +63,10 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
65
63
 
66
64
  ready() {
67
65
  super.ready()
68
- this._initScenario()
69
- }
70
66
 
71
- _initScenario() {
72
- if (!this.app.isViewMode) return
73
-
74
- this._client = getClient()
75
- this.requestData()
76
- }
77
-
78
- dispose() {
79
- super.dispose()
80
-
81
- try {
82
- if (this._client) {
83
- this._client.stop()
84
- }
85
- } catch (e) {
86
- console.error(e)
67
+ if (this.app.isViewMode) {
68
+ this.requestData()
87
69
  }
88
- delete this._client
89
70
  }
90
71
 
91
72
  get nature() {
@@ -98,10 +79,6 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
98
79
  }
99
80
  }
100
81
 
101
- get client() {
102
- return this._client
103
- }
104
-
105
82
  get controlType() {
106
83
  return this.getState('controlType')
107
84
  }
@@ -112,8 +89,10 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
112
89
 
113
90
  async requestData() {
114
91
  let { controlType, scenarioName } = this.state
115
- if (!controlType || !scenarioName || !this.app.isViewMode) return
116
- var client = this._client
92
+ if (!controlType || !scenarioName || !this.app.isViewMode) {
93
+ return
94
+ }
95
+
117
96
  var query = ''
118
97
  if (controlType == 'start') {
119
98
  query = `mutation{
@@ -129,15 +108,13 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
129
108
  }`
130
109
  }
131
110
 
132
- if (client) {
133
- var response = await client.query({
134
- query: gql`
135
- ${query}
136
- `
137
- })
111
+ var response = await client.query({
112
+ query: gql`
113
+ ${query}
114
+ `
115
+ })
138
116
 
139
- this.data = response
140
- }
117
+ this.data = response
141
118
  }
142
119
  }
143
120
 
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
4
+ import { subscribe } from '@operato/graphql'
4
5
 
5
6
  import { scenarios } from './client-api'
6
- import { subscribe } from './origin-client'
7
7
 
8
8
  const NATURE: ComponentNature = {
9
9
  mutable: false,
@@ -1,8 +1,7 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
4
-
5
- import { subscribe } from './origin-client'
4
+ import { subscribe } from '@operato/graphql'
6
5
 
7
6
  const NATURE: ComponentNature = {
8
7
  mutable: false,
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
4
+ import { client } from '@operato/graphql'
4
5
 
5
6
  import { scenarios } from './client-api'
6
- import { getClient } from './origin-client'
7
7
 
8
8
  const NATURE: ComponentNature = {
9
9
  mutable: false,
@@ -44,8 +44,6 @@ export default class ScenarioRun extends DataSource(RectPath(Shape)) {
44
44
  return ScenarioRun._image
45
45
  }
46
46
 
47
- private _client: any
48
-
49
47
  render(context: CanvasRenderingContext2D) {
50
48
  var { left, top, width, height } = this.bounds
51
49
  context.beginPath()
@@ -54,30 +52,12 @@ export default class ScenarioRun extends DataSource(RectPath(Shape)) {
54
52
 
55
53
  ready() {
56
54
  super.ready()
57
- this._initScenario()
58
- }
59
-
60
- _initScenario() {
61
- if (!this.app.isViewMode) {
62
- return
63
- }
64
- this._client = getClient()
65
- if (this.state.runOnStart) {
66
- this.requestData()
67
- }
68
- }
69
55
 
70
- dispose() {
71
- super.dispose()
72
-
73
- try {
74
- if (this._client) {
75
- this._client.stop()
56
+ if (this.app.isViewMode) {
57
+ if (this.state.runOnStart) {
58
+ this.requestData()
76
59
  }
77
- } catch (e) {
78
- console.error(e)
79
60
  }
80
- delete this._client
81
61
  }
82
62
 
83
63
  get nature() {
@@ -98,15 +78,12 @@ export default class ScenarioRun extends DataSource(RectPath(Shape)) {
98
78
  this.setState('variables', variables)
99
79
  }
100
80
 
101
- get client() {
102
- return this._client
103
- }
104
-
105
81
  async requestData() {
106
82
  let { scenarioName, variables } = this.state
107
- if (!scenarioName || !this.app.isViewMode) return
83
+ if (!scenarioName || !this.app.isViewMode) {
84
+ return
85
+ }
108
86
 
109
- var client = this._client
110
87
  try {
111
88
  variables = typeof variables == 'string' ? JSON.parse(variables) : variables
112
89
  } catch (e) {
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
4
+ import { client } from '@operato/graphql'
4
5
 
5
6
  import { scenarios } from './client-api'
6
- import { getClient } from './origin-client'
7
7
 
8
8
  const NATURE: ComponentNature = {
9
9
  mutable: false,
@@ -44,39 +44,12 @@ export default class ScenarioStart extends DataSource(RectPath(Shape)) {
44
44
  return ScenarioStart._image
45
45
  }
46
46
 
47
- private _client: any
48
-
49
47
  render(context: CanvasRenderingContext2D) {
50
48
  var { left, top, width, height } = this.bounds
51
49
  context.beginPath()
52
50
  this.drawImage(context, ScenarioStart.image, left, top, width, height)
53
51
  }
54
52
 
55
- ready() {
56
- super.ready()
57
- this._initScenario()
58
- }
59
-
60
- _initScenario() {
61
- if (!this.app.isViewMode) {
62
- return
63
- }
64
- this._client = getClient()
65
- }
66
-
67
- dispose() {
68
- super.dispose()
69
-
70
- try {
71
- if (this._client) {
72
- this._client.stop()
73
- }
74
- } catch (e) {
75
- console.error(e)
76
- }
77
- delete this._client
78
- }
79
-
80
53
  get nature() {
81
54
  return NATURE
82
55
  }
@@ -95,15 +68,10 @@ export default class ScenarioStart extends DataSource(RectPath(Shape)) {
95
68
  this.setState('variables', variables)
96
69
  }
97
70
 
98
- get client() {
99
- return this._client
100
- }
101
-
102
71
  async requestData() {
103
72
  let { instanceName, scenarioName, variables } = this.state
104
73
  if (!scenarioName || !this.app.isViewMode) return
105
74
 
106
- var client = this._client
107
75
  try {
108
76
  variables = typeof variables == 'string' ? JSON.parse(variables) : variables
109
77
  } catch (e) {
@@ -1,9 +1,9 @@
1
1
  import gql from 'graphql-tag'
2
2
 
3
3
  import { Component, ComponentNature, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
4
+ import { client } from '@operato/graphql'
4
5
 
5
6
  import { scenarios } from './client-api'
6
- import { getClient } from './origin-client'
7
7
 
8
8
  const NATURE: ComponentNature = {
9
9
  mutable: false,
@@ -39,39 +39,12 @@ export default class ScenarioStop extends DataSource(RectPath(Shape)) {
39
39
  return ScenarioStop._image
40
40
  }
41
41
 
42
- private _client: any
43
-
44
42
  render(context: CanvasRenderingContext2D) {
45
43
  var { left, top, width, height } = this.bounds
46
44
  context.beginPath()
47
45
  this.drawImage(context, ScenarioStop.image, left, top, width, height)
48
46
  }
49
47
 
50
- ready() {
51
- super.ready()
52
- this._initScenario()
53
- }
54
-
55
- _initScenario() {
56
- if (!this.app.isViewMode) {
57
- return
58
- }
59
- this._client = getClient()
60
- }
61
-
62
- dispose() {
63
- super.dispose()
64
-
65
- try {
66
- if (this._client) {
67
- this._client.stop()
68
- }
69
- } catch (e) {
70
- console.error(e)
71
- }
72
- delete this._client
73
- }
74
-
75
48
  get nature() {
76
49
  return NATURE
77
50
  }
@@ -90,16 +63,11 @@ export default class ScenarioStop extends DataSource(RectPath(Shape)) {
90
63
  this.setState('nothing', nothing)
91
64
  }
92
65
 
93
- get client() {
94
- return this._client
95
- }
96
-
97
66
  async requestData() {
98
67
  let { instanceName, scenarioName } = this.state
99
68
  instanceName = instanceName || scenarioName
100
69
  if (!instanceName || !this.app.isViewMode) return
101
70
 
102
- var client = this._client
103
71
  if (client) {
104
72
  var response = await client.query({
105
73
  query: gql`