@things-factory/board-service 8.0.0-alpha.11 → 8.0.0-alpha.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-service",
3
- "version": "8.0.0-alpha.11",
3
+ "version": "8.0.0-alpha.13",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "author": "",
@@ -23,11 +23,11 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/auth-base": "^8.0.0-alpha.11",
26
+ "@things-factory/auth-base": "^8.0.0-alpha.13",
27
27
  "@things-factory/env": "^8.0.0-alpha.8",
28
- "@things-factory/fav-base": "^8.0.0-alpha.11",
29
- "@things-factory/font-base": "^8.0.0-alpha.11",
30
- "@things-factory/integration-base": "^8.0.0-alpha.11",
28
+ "@things-factory/fav-base": "^8.0.0-alpha.13",
29
+ "@things-factory/font-base": "^8.0.0-alpha.13",
30
+ "@things-factory/integration-base": "^8.0.0-alpha.13",
31
31
  "@things-factory/operato-license-checker": "^4.0.4",
32
32
  "content-disposition": "^0.5.3",
33
33
  "generic-pool": "^3.8.2"
@@ -36,5 +36,5 @@
36
36
  "@thiagoelg/node-printer": "0.6.2",
37
37
  "puppeteer": "22.12.1"
38
38
  },
39
- "gitHead": "5b3e364a968d79cc971e485601ebcab704e5b7d2"
39
+ "gitHead": "7463b015ce57714e3ebb66112d029caf54eb6ae9"
40
40
  }
@@ -70,16 +70,30 @@
70
70
  const startSubscribingForAutoRefresh = window.startSubscribingForAutoRefresh
71
71
 
72
72
  const container = document.querySelector('#scene')
73
- const player = document.createElement('ox-board-player')
74
- player.provider = provider
75
- player.boards = boards
76
- data && (player.data = data)
77
73
 
78
- container.appendChild(player)
74
+ function stop() {
75
+ let player = document.querySelector('ox-board-player')
76
+ if(player) {
77
+ player.stop()
78
+ container.removeChild(player)
79
+ player = null
80
+ }
81
+ }
79
82
 
80
- startSubscribingForAutoRefresh(id, ({id, boards}) => {
83
+ function start(boards, data) {
84
+ let player = document.createElement('ox-board-player')
85
+ player.provider = provider
81
86
  player.boards = boards
82
87
  data && (player.data = data)
88
+
89
+ container.appendChild(player)
90
+ }
91
+
92
+ start(boards, data)
93
+
94
+ startSubscribingForAutoRefresh(id, ({id, boards}) => {
95
+ stop()
96
+ start(boards, data)
83
97
  })
84
98
  </script>
85
99
  </body>