@operato/scene-firebase 7.0.1 → 7.3.19
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +3 -3
- package/CHANGELOG.md +0 -630
- package/demo/favicon.ico +0 -0
- package/demo/index.html +0 -212
- package/demo/simulator.js +0 -59
- package/demo/things-scene-firebase.html +0 -5
- package/src/firebase.ts +0 -185
- package/src/index.ts +0 -4
- package/test/basic-test.html +0 -67
- package/test/index.html +0 -22
- package/test/unit/test-firebase.js +0 -32
- package/test/unit/util.js +0 -21
- package/tsconfig.json +0 -24
- package/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@operato/scene-firebase",
|
3
3
|
"description": "Firebase datasource component for things-scene.",
|
4
4
|
"author": "heartyoh",
|
5
|
-
"version": "7.
|
5
|
+
"version": "7.3.19",
|
6
6
|
"main": "dist/index.js",
|
7
7
|
"module": "dist/index.js",
|
8
8
|
"license": "MIT",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"migration": "things-factory-migration"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@hatiolab/things-scene": "^3.
|
30
|
+
"@hatiolab/things-scene": "^3.4.0",
|
31
31
|
"firebase": "^9.14.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -58,5 +58,5 @@
|
|
58
58
|
"prettier --write"
|
59
59
|
]
|
60
60
|
},
|
61
|
-
"gitHead": "
|
61
|
+
"gitHead": "ff73072a62ee02520f9d986d0095f6d329de64f9"
|
62
62
|
}
|
package/CHANGELOG.md
DELETED
@@ -1,630 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file.
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
-
|
6
|
-
## [7.0.1](https://github.com/things-scene/operato-scene/compare/v7.0.0...v7.0.1) (2024-06-30)
|
7
|
-
|
8
|
-
|
9
|
-
### :bug: Bug Fix
|
10
|
-
|
11
|
-
* things-factory@7.0.0 ([f4cfe44](https://github.com/things-scene/operato-scene/commit/f4cfe44cb565e7b8fdc0df210a722b6526871848))
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
## [7.0.0](https://github.com/things-scene/operato-scene/compare/v7.0.0-rc.4...v7.0.0) (2024-06-30)
|
16
|
-
|
17
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
## [7.0.0-rc.1](https://github.com/things-scene/operato-scene/compare/v7.0.0-rc.0...v7.0.0-rc.1) (2024-06-21)
|
24
|
-
|
25
|
-
|
26
|
-
### :bug: Bug Fix
|
27
|
-
|
28
|
-
* apply v7-rc dependencies ([eee5612](https://github.com/things-scene/operato-scene/commit/eee5612e1d569387c284a7c6c49d64ef44b6d701))
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
## [7.0.0-rc.0](https://github.com/things-scene/operato-scene/compare/v2.0.0-beta.8...v7.0.0-rc.0) (2024-06-21)
|
33
|
-
|
34
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
## [2.0.0-beta.0](https://github.com/things-scene/operato-scene/compare/v2.0.0-alpha.12...v2.0.0-beta.0) (2024-06-01)
|
41
|
-
|
42
|
-
|
43
|
-
### :rocket: New Features
|
44
|
-
|
45
|
-
* 2.0.0-beta.0 ([a2e2869](https://github.com/things-scene/operato-scene/commit/a2e28694eedf5bab0c54bcab5432d54ec59edd7f))
|
46
|
-
|
47
|
-
|
48
|
-
### :bug: Bug Fix
|
49
|
-
|
50
|
-
* allowJs in tsconfig option ([fa77174](https://github.com/things-scene/operato-scene/commit/fa771742188f21f177f0a85281570f59f0c478cf))
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
## [2.0.0-alpha.12](https://github.com/things-scene/operato-scene/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-05-11)
|
55
|
-
|
56
|
-
|
57
|
-
### :bug: Bug Fix
|
58
|
-
|
59
|
-
* ignore 'cache' folder for git and npm ([d70f811](https://github.com/things-scene/operato-scene/commit/d70f8118ff3e9248f80aa9435d6e6cbb8aacfcaf))
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
## [2.0.0-alpha.9](https://github.com/things-scene/operato-scene/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-04-11)
|
64
|
-
|
65
|
-
|
66
|
-
### :bug: Bug Fix
|
67
|
-
|
68
|
-
* things-factory@7.0.1 ([a9f4c18](https://github.com/things-scene/operato-scene/commit/a9f4c1873b80c540e4c2e16649e127ccffcf9a4c))
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
## [2.0.0-alpha.4](https://github.com/things-scene/operato-scene/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-03-21)
|
73
|
-
|
74
|
-
|
75
|
-
### :bug: Bug Fix
|
76
|
-
|
77
|
-
* 컴포넌트 명 다국어 ([64e1f08](https://github.com/things-scene/operato-scene/commit/64e1f08af32d2ac193c3d31b0025f8d06f569ca4))
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
## [2.0.0-alpha.0](https://github.com/things-scene/operato-scene/compare/v1.3.9...v2.0.0-alpha.0) (2024-01-14)
|
82
|
-
|
83
|
-
|
84
|
-
### :bug: Bug Fix
|
85
|
-
|
86
|
-
* 2.0.0-alpha.0 ([93274e3](https://github.com/things-scene/operato-scene/commit/93274e36c5d184f339f83899654dd48b4786ac2b))
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
## [1.3.7](https://github.com/things-scene/operato-scene/compare/v1.3.6...v1.3.7) (2024-01-01)
|
91
|
-
|
92
|
-
|
93
|
-
### :bug: Bug Fix
|
94
|
-
|
95
|
-
* mpi module moved from things-factory ([47b743f](https://github.com/things-scene/operato-scene/commit/47b743fd19001f195db85e50b8f6e457a1573aa5))
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
## [1.2.90](https://github.com/things-scene/operato-scene/compare/v1.2.89...v1.2.90) (2023-11-22)
|
100
|
-
|
101
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
## [1.2.87](https://github.com/things-scene/operato-scene/compare/v1.2.86...v1.2.87) (2023-11-10)
|
108
|
-
|
109
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
## [1.2.76](https://github.com/things-scene/operato-scene/compare/v1.2.75...v1.2.76) (2023-10-28)
|
116
|
-
|
117
|
-
|
118
|
-
### :bug: Bug Fix
|
119
|
-
|
120
|
-
* scene-tab ([ad62f96](https://github.com/things-scene/operato-scene/commit/ad62f967b149eb5adf8f2e0714d79e8a9dc7186c))
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
## [1.2.66](https://github.com/things-scene/operato-scene/compare/v1.2.65...v1.2.66) (2023-09-14)
|
125
|
-
|
126
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
## [1.2.65](https://github.com/things-scene/operato-scene/compare/v1.2.64...v1.2.65) (2023-09-14)
|
133
|
-
|
134
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
## [1.2.62](https://github.com/things-scene/operato-scene/compare/v1.2.61...v1.2.62) (2023-09-11)
|
141
|
-
|
142
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
## [1.2.50](https://github.com/things-scene/operato-scene/compare/v1.2.49...v1.2.50) (2023-07-13)
|
149
|
-
|
150
|
-
|
151
|
-
### :bug: Bug Fix
|
152
|
-
|
153
|
-
* conveyor-join contains ([06c76ba](https://github.com/things-scene/operato-scene/commit/06c76bae3b408d9291fc24e54e10c89ae4823d49))
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
## [1.2.49](https://github.com/things-scene/operato-scene/compare/v1.2.48...v1.2.49) (2023-06-26)
|
158
|
-
|
159
|
-
|
160
|
-
### :bug: Bug Fix
|
161
|
-
|
162
|
-
* missing .npmignore ([61ba4f2](https://github.com/things-scene/operato-scene/commit/61ba4f2ae22a865d700a971d62eb01f950c34d0e))
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
## [1.2.46](https://github.com/things-scene/operato-scene/compare/v1.2.45...v1.2.46) (2023-06-10)
|
167
|
-
|
168
|
-
|
169
|
-
### :bug: Bug Fix
|
170
|
-
|
171
|
-
* typescript build options ([3eb0d7f](https://github.com/things-scene/operato-scene/commit/3eb0d7fd80e2c3cea698501aa1d9d54903423a7b))
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
## [1.2.36](https://github.com/things-scene/operato-scene/compare/v1.2.35...v1.2.36) (2023-05-13)
|
176
|
-
|
177
|
-
|
178
|
-
### :bug: Bug Fix
|
179
|
-
|
180
|
-
* license ([d37d485](https://github.com/things-scene/operato-scene/commit/d37d48597407dea1ad022e674f2899720e56d695))
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
## [1.2.29](https://github.com/things-scene/operato-scene/compare/v1.2.28...v1.2.29) (2023-04-30)
|
185
|
-
|
186
|
-
|
187
|
-
### :bug: Bug Fix
|
188
|
-
|
189
|
-
* update module's version ([047d08b](https://github.com/things-scene/operato-scene/commit/047d08b5d912d12c04b2f6b63156d1e812588365))
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
### [1.2.27](https://github.com/things-scene/operato-scene/compare/v1.2.26...v1.2.27) (2023-04-22)
|
194
|
-
|
195
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
### [1.2.4](https://github.com/things-scene/operato-scene/compare/v1.2.3...v1.2.4) (2023-02-13)
|
202
|
-
|
203
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
### [1.2.2](https://github.com/things-scene/operato-scene/compare/v1.2.1...v1.2.2) (2023-02-09)
|
210
|
-
|
211
|
-
|
212
|
-
### :bug: Bug Fix
|
213
|
-
|
214
|
-
* migrate scene-urdf from things-factory ([3f75f87](https://github.com/things-scene/operato-scene/commit/3f75f8743e993a9a3ed595eed8f94b15da042a31))
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
## [1.2.0](https://github.com/things-scene/operato-scene/compare/v1.1.29...v1.2.0) (2023-02-07)
|
219
|
-
|
220
|
-
|
221
|
-
### :bug: Bug Fix
|
222
|
-
|
223
|
-
* [@things-factory](https://github.com/things-factory)@6.0.0 ([5927ebb](https://github.com/things-scene/operato-scene/commit/5927ebb5113be2b914cc47005eb7115d69481695))
|
224
|
-
* updating dependencies ([f4dd8fc](https://github.com/things-scene/operato-scene/commit/f4dd8fcdaa03b67de78189c6d574b30a995456f0))
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
### [1.1.23](https://github.com/things-scene/operato-scene/compare/v1.1.22...v1.1.23) (2022-12-18)
|
229
|
-
|
230
|
-
|
231
|
-
### :bug: Bug Fix
|
232
|
-
|
233
|
-
* latest @hatiolab/things-scene ([8d6afb5](https://github.com/things-scene/operato-scene/commit/8d6afb5ecbd453260615fca229f1d74b0ea6e4ee))
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
### [1.1.16](https://github.com/things-scene/operato-scene/compare/v1.1.15...v1.1.16) (2022-12-04)
|
238
|
-
|
239
|
-
|
240
|
-
### :bug: Bug Fix
|
241
|
-
|
242
|
-
* upgrade firebase 9 ([ff1d4da](https://github.com/things-scene/operato-scene/commit/ff1d4dacfbe3e9b6968a342c059055bf3b555875))
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
### [1.1.15](https://github.com/things-scene/operato-scene/compare/v1.1.14...v1.1.15) (2022-11-13)
|
247
|
-
|
248
|
-
|
249
|
-
### :bug: Bug Fix
|
250
|
-
|
251
|
-
* use @things-factory/operato-board@6.0.0-zeta.x ([a9deef9](https://github.com/things-scene/operato-scene/commit/a9deef935fde00c6c0d09ca424ca949ac24cbd6a))
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
### [1.1.8](https://github.com/things-scene/operato-scene/compare/v1.1.7...v1.1.8) (2022-11-05)
|
256
|
-
|
257
|
-
|
258
|
-
### :bug: Bug Fix
|
259
|
-
|
260
|
-
* padding default value ([2d55f81](https://github.com/things-scene/operato-scene/commit/2d55f81efffbbb1687e11380abfe293328e1e88d))
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
### [1.1.5](https://github.com/things-scene/operato-scene/compare/v1.1.4...v1.1.5) (2022-11-05)
|
265
|
-
|
266
|
-
|
267
|
-
### :bug: Bug Fix
|
268
|
-
|
269
|
-
* templates ([78a23e4](https://github.com/things-scene/operato-scene/commit/78a23e42c3a13b1fd50af223d3a7c5f6739ed8a3))
|
270
|
-
* update things-scene ([84f2a9f](https://github.com/things-scene/operato-scene/commit/84f2a9fa6fe5fcb22444caf489de8a5aa84000a2))
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
## [1.1.0](https://github.com/things-scene/operato-scene/compare/v1.0.7...v1.1.0) (2022-11-03)
|
275
|
-
|
276
|
-
|
277
|
-
### :bug: Bug Fix
|
278
|
-
|
279
|
-
* typescript 4.8.4, lit 2.4.0 ([13ab528](https://github.com/things-scene/operato-scene/commit/13ab528b9034987940dd73b015489813bd2682be))
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
### [1.0.7](https://github.com/things-scene/operato-scene/compare/v1.0.6...v1.0.7) (2022-10-17)
|
284
|
-
|
285
|
-
|
286
|
-
### :bug: Bug Fix
|
287
|
-
|
288
|
-
* latest [@things-factory](https://github.com/things-factory) for dev ([a20923a](https://github.com/things-scene/operato-scene/commit/a20923a3caa8a915c17f46885d014bd5334c5ea6))
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
### [1.0.2](https://github.com/things-scene/operato-scene/compare/v1.0.1...v1.0.2) (2022-08-04)
|
293
|
-
|
294
|
-
|
295
|
-
### :bug: Bug Fix
|
296
|
-
|
297
|
-
* apply concurrently to serve target ([e777342](https://github.com/things-scene/operato-scene/commit/e777342c9310f722542db9baecf49ef94e77c3a0))
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
### [1.0.1](https://github.com/things-scene/operato-scene/compare/v1.0.0...v1.0.1) (2022-08-01)
|
302
|
-
|
303
|
-
|
304
|
-
### :bug: Bug Fix
|
305
|
-
|
306
|
-
* latest dependencies ([0e4cc8c](https://github.com/things-scene/operato-scene/commit/0e4cc8c6087f89412f1b29772656c63653648d5a))
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
## [1.0.0](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.38...v1.0.0) (2022-07-24)
|
311
|
-
|
312
|
-
|
313
|
-
### :bug: Bug Fix
|
314
|
-
|
315
|
-
* latest dependencies ([b435b97](https://github.com/things-scene/operato-scene/commit/b435b970f86f7e81d820a7656ecd6e0d4878ec42))
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
## [1.0.0-alpha.38](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-07-20)
|
320
|
-
|
321
|
-
|
322
|
-
### :bug: Bug Fix
|
323
|
-
|
324
|
-
* latest dependencies ([8a4cf6b](https://github.com/things-scene/operato-scene/commit/8a4cf6bfc9eed2bdb991eb77df9dba4b42de45e7))
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
## [1.0.0-alpha.37](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-07-17)
|
329
|
-
|
330
|
-
|
331
|
-
### :bug: Bug Fix
|
332
|
-
|
333
|
-
* latest dependencies ([cb2e928](https://github.com/things-scene/operato-scene/commit/cb2e92871da17a11ac9c68b3c4ead5df59429973))
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
## [1.0.0-alpha.36](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-07-17)
|
338
|
-
|
339
|
-
|
340
|
-
### :bug: Bug Fix
|
341
|
-
|
342
|
-
* integration use @operato/graphql client and subscribe ([d184eb3](https://github.com/things-scene/operato-scene/commit/d184eb35c9447ef1ecb6f5abe88ee1677345f487))
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
## [1.0.0-alpha.35](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-07-15)
|
347
|
-
|
348
|
-
|
349
|
-
### :bug: Bug Fix
|
350
|
-
|
351
|
-
* latest dependencies ([f5ea226](https://github.com/things-scene/operato-scene/commit/f5ea2264cde9ee6a0e20586ce9e86e47a3d8d922))
|
352
|
-
* latest dependencies ([7438dd3](https://github.com/things-scene/operato-scene/commit/7438dd3de9bdef939051ff72aad4c1b5608b6ab9))
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
## [1.0.0-alpha.34](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-07-11)
|
357
|
-
|
358
|
-
|
359
|
-
### :bug: Bug Fix
|
360
|
-
|
361
|
-
* latest [@things-factory](https://github.com/things-factory) ([03247f1](https://github.com/things-scene/operato-scene/commit/03247f188183fd784721521ff06ef49c440849bf))
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
## [1.0.0-alpha.33](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-07-09)
|
366
|
-
|
367
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
## [1.0.0-alpha.32](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-07-09)
|
374
|
-
|
375
|
-
|
376
|
-
### :bug: Bug Fix
|
377
|
-
|
378
|
-
* latest [@things-factory](https://github.com/things-factory) ([a5ea8ba](https://github.com/things-scene/operato-scene/commit/a5ea8ba70af7ac74e7cdee77fb74a152a0079366))
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
## [1.0.0-alpha.31](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-07-07)
|
383
|
-
|
384
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
## [1.0.0-alpha.30](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-07-05)
|
391
|
-
|
392
|
-
|
393
|
-
### :bug: Bug Fix
|
394
|
-
|
395
|
-
* latest [@things-factory](https://github.com/things-factory) ([dac17fa](https://github.com/things-scene/operato-scene/commit/dac17faebadfd2bd2efb7192a3b1f3aafdac0cbd))
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
## [1.0.0-alpha.29](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-07-03)
|
400
|
-
|
401
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
## [1.0.0-alpha.28](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.27...v1.0.0-alpha.28) (2022-07-03)
|
408
|
-
|
409
|
-
|
410
|
-
### :bug: Bug Fix
|
411
|
-
|
412
|
-
* latest [@operato](https://github.com/operato) [@things-factory](https://github.com/things-factory) ([6ef27eb](https://github.com/things-scene/operato-scene/commit/6ef27eba820d7641e6c7cc3cedf815c0af74a6c7))
|
413
|
-
* latest @hatiolab/things-scene [@operato](https://github.com/operato) ([353d090](https://github.com/things-scene/operato-scene/commit/353d0900a24a96aabde48405ee6ec18b1b227e09))
|
414
|
-
* latest dependencies ([4ad53db](https://github.com/things-scene/operato-scene/commit/4ad53db21b0f88856f93fcbc3a12b80011d73a1b))
|
415
|
-
* latest dependencies ([7328b85](https://github.com/things-scene/operato-scene/commit/7328b85c151feb718ca1bcdaf9ac36f9f721ed57))
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
## [1.0.0-alpha.27](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-06-22)
|
420
|
-
|
421
|
-
|
422
|
-
### :bug: Bug Fix
|
423
|
-
|
424
|
-
* latest @hatiolab/things-scene ([5f7e8b6](https://github.com/things-scene/operato-scene/commit/5f7e8b6f40e7b73ac874be1d473eff847f14afe2))
|
425
|
-
* latest @hatiolab/things-scene ([1bb48f0](https://github.com/things-scene/operato-scene/commit/1bb48f0259044085f690c817dbe0383a44b15f9b))
|
426
|
-
* latest @hatiolab/things-scene [@operato](https://github.com/operato) ([ed2b7b8](https://github.com/things-scene/operato-scene/commit/ed2b7b83f0fd06780e6b9841cc6a1702b834e4ac))
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
## [1.0.0-alpha.26](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-06-20)
|
431
|
-
|
432
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
## [1.0.0-alpha.25](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-06-20)
|
439
|
-
|
440
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
## [1.0.0-alpha.24](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-06-20)
|
447
|
-
|
448
|
-
|
449
|
-
### :bug: Bug Fix
|
450
|
-
|
451
|
-
* latest [@operato](https://github.com/operato) ([1a59e6f](https://github.com/things-scene/operato-scene/commit/1a59e6f0ced18902fee98b88933650e23f9ad420))
|
452
|
-
* latest dependencies ([9ee4519](https://github.com/things-scene/operato-scene/commit/9ee4519adfe49e2eac8433f31ad5dea9257a1fca))
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
## [1.0.0-alpha.23](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-06-16)
|
457
|
-
|
458
|
-
|
459
|
-
### :bug: Bug Fix
|
460
|
-
|
461
|
-
* latest [@operato](https://github.com/operato) ([45a542f](https://github.com/things-scene/operato-scene/commit/45a542f484a4fe552533a35eb90f2b100e01249f))
|
462
|
-
* latest [@operato](https://github.com/operato) ([d4020ee](https://github.com/things-scene/operato-scene/commit/d4020eefc797da03d43b73708dcfd8541f5b30af))
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
## [1.0.0-alpha.22](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-06-16)
|
467
|
-
|
468
|
-
|
469
|
-
### :bug: Bug Fix
|
470
|
-
|
471
|
-
* latest @hatiolab/things-scene ([0928090](https://github.com/things-scene/operato-scene/commit/09280903b4b0280ee8a76a4d1c2a0bf8d0997563))
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
## [1.0.0-alpha.21](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-06-16)
|
476
|
-
|
477
|
-
|
478
|
-
### :bug: Bug Fix
|
479
|
-
|
480
|
-
* latest [@operato](https://github.com/operato) ([8384a79](https://github.com/things-scene/operato-scene/commit/8384a79c616db7c5fb437a480bb8c8337b75db84))
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
## [1.0.0-alpha.20](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-06-10)
|
485
|
-
|
486
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
## [1.0.0-alpha.19](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-06-09)
|
493
|
-
|
494
|
-
|
495
|
-
### :bug: Bug Fix
|
496
|
-
|
497
|
-
* latest [@operato](https://github.com/operato) [@things-factory](https://github.com/things-factory) ([c6a5475](https://github.com/things-scene/operato-scene/commit/c6a54751a3af539840fd57d031e09ee1552a7b4c))
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
## [1.0.0-alpha.18](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-05-30)
|
502
|
-
|
503
|
-
|
504
|
-
### :bug: Bug Fix
|
505
|
-
|
506
|
-
* latest dependencies ([5fae24c](https://github.com/things-scene/operato-scene/commit/5fae24ce2e7d17b5e2e85fae4cee04cfca690549))
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
## [1.0.0-alpha.17](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-05-29)
|
511
|
-
|
512
|
-
|
513
|
-
### :bug: Bug Fix
|
514
|
-
|
515
|
-
* latest things-scene & [@things-factory](https://github.com/things-factory) ([485bcce](https://github.com/things-scene/operato-scene/commit/485bccead07ccc5065088f1d458175f84083f9a5))
|
516
|
-
* update [@operato](https://github.com/operato) [@things-factory](https://github.com/things-factory) ([8552127](https://github.com/things-scene/operato-scene/commit/8552127bdda3282ac74e86b936342caa085f6bea))
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
## [1.0.0-alpha.16](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-05-23)
|
521
|
-
|
522
|
-
|
523
|
-
### :rocket: New Features
|
524
|
-
|
525
|
-
* migrate data-transform from [@things-factory](https://github.com/things-factory) ([2b7c5d3](https://github.com/things-scene/operato-scene/commit/2b7c5d34027d611c5e8210cada8cd15272944fa5))
|
526
|
-
|
527
|
-
|
528
|
-
### :bug: Bug Fix
|
529
|
-
|
530
|
-
* update dependencies ([8ef917f](https://github.com/things-scene/operato-scene/commit/8ef917f41e83126495d3b75ae3042bbd66cf12c3))
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
## [1.0.0-alpha.15](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-05-13)
|
535
|
-
|
536
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
## [1.0.0-alpha.14](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-05-01)
|
543
|
-
|
544
|
-
|
545
|
-
### :bug: Bug Fix
|
546
|
-
|
547
|
-
* apply @hatiolab/things-scene 3.0.6 - memory free ([5778610](https://github.com/things-scene/operato-scene/commit/5778610aa6456709cb931a3185b189f1d3bd1ff9))
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
## [1.0.0-alpha.13](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-04-24)
|
552
|
-
|
553
|
-
|
554
|
-
### :bug: Bug Fix
|
555
|
-
|
556
|
-
* "@hatiolab/things-scene": "^3.0.2" ([13057dd](https://github.com/things-scene/operato-scene/commit/13057dd2f8bbb3859abb479516c3483bcc15354b))
|
557
|
-
* @hatiolab/things-scene 3.0.5 and [@operato](https://github.com/operato) 1.0.0-beta.7 ([bd69bf1](https://github.com/things-scene/operato-scene/commit/bd69bf134c1fe6789f4964f0e6525f728eee8275))
|
558
|
-
* things-scene 3.0.1 ([288f953](https://github.com/things-scene/operato-scene/commit/288f953947d73ffa3f6e8743f8326570d1dace80))
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
## [1.0.0-alpha.12](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-04-18)
|
563
|
-
|
564
|
-
|
565
|
-
### :bug: Bug Fix
|
566
|
-
|
567
|
-
* @hatiolab/things-scene 3.0.0 ([29021a5](https://github.com/things-scene/operato-scene/commit/29021a511e5dc1e91b337b155817d846883ceff7))
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
## [1.0.0-alpha.11](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-04-17)
|
572
|
-
|
573
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
## [1.0.0-alpha.10](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-04-10)
|
580
|
-
|
581
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
582
|
-
|
583
|
-
## [1.0.0-alpha.9](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-04-07)
|
584
|
-
|
585
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
586
|
-
|
587
|
-
## [1.0.0-alpha.8](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-04-07)
|
588
|
-
|
589
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
590
|
-
|
591
|
-
## [1.0.0-alpha.7](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-04-06)
|
592
|
-
|
593
|
-
**Note:** Version bump only for package @operato/scene-firebase
|
594
|
-
|
595
|
-
## [1.0.0-alpha.6](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-04-05)
|
596
|
-
|
597
|
-
### :bug: Bug Fix
|
598
|
-
|
599
|
-
- [@things-factory](https://github.com/things-factory) 5.0.0-alpha.36 ([459ce88](https://github.com/things-scene/operato-scene/commit/459ce884942ab11bcd1e9b9c6af7bf045b580a41))
|
600
|
-
|
601
|
-
## [1.0.0-alpha.5](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-04-03)
|
602
|
-
|
603
|
-
### :bug: Bug Fix
|
604
|
-
|
605
|
-
- upgrade lit and operato, things-factory ([f056300](https://github.com/things-scene/operato-scene/commit/f056300c0e2f85c41715d3178f12c39bf3110a34))
|
606
|
-
|
607
|
-
## [1.0.0-alpha.4](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2022-03-13)
|
608
|
-
|
609
|
-
### :bug: Bug Fix
|
610
|
-
|
611
|
-
- [@operato](https://github.com/operato) 1.0.0-alpha.17 ([a8a147c](https://github.com/things-scene/operato-scene/commit/a8a147c972ed571e35d210feb3bfbc7cd31f280b))
|
612
|
-
|
613
|
-
## [1.0.0-alpha.3](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2022-03-13)
|
614
|
-
|
615
|
-
### :bug: Bug Fix
|
616
|
-
|
617
|
-
- [@operato](https://github.com/operato) 1.0.0-alpha.17 ([52c63fe](https://github.com/things-scene/operato-scene/commit/52c63fe1efde1a8fe6a9dc3b6852b1b2e12322bf))
|
618
|
-
|
619
|
-
## [1.0.0-alpha.2](https://github.com/things-scene/operato-scene/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-03-13)
|
620
|
-
|
621
|
-
### :bug: Bug Fix
|
622
|
-
|
623
|
-
- [@operato](https://github.com/operato) 1.0.0-alpha.14 ([c124d67](https://github.com/things-scene/operato-scene/commit/c124d672260ac940175a2a831f702aa3b5f5c996))
|
624
|
-
|
625
|
-
## [1.0.0-alpha.1](https://github.com/things-scene/operato-scene/compare/v0.1.5...v1.0.0-alpha.1) (2022-03-13)
|
626
|
-
|
627
|
-
### :rocket: New Features
|
628
|
-
|
629
|
-
- [@operato](https://github.com/operato) 1.0.0-alpha and [@things-factory](https://github.com/things-factory) 5.0.0-alpha ([5f7f2d4](https://github.com/things-scene/operato-scene/commit/5f7f2d45ccc8300822e712c93948850bcdb43687))
|
630
|
-
- migrated firebase from things-factory ([d6212ed](https://github.com/things-scene/operato-scene/commit/d6212edfc28b50a85c5f87f36f9ed466c1aa28b9))
|
package/demo/favicon.ico
DELETED
Binary file
|
package/demo/index.html
DELETED
@@ -1,212 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
@license
|
3
|
-
Copyright © 2017 HatioLab Inc. All rights reserved.
|
4
|
-
-->
|
5
|
-
<!doctype html>
|
6
|
-
|
7
|
-
<html>
|
8
|
-
<head>
|
9
|
-
<meta charset="utf-8">
|
10
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
11
|
-
<title>firebase Demo</title>
|
12
|
-
<script src="../../webcomponentsjs/webcomponents-lite.min.js"></script>
|
13
|
-
|
14
|
-
<link rel="import" href="../../things-scene-viewer/things-scene-viewer.html">
|
15
|
-
<link rel="import" href="../../things-scene-viewer/things-scene-layer.html">
|
16
|
-
<link rel="import" href="../../things-scene-viewer/things-scene-handler.html">
|
17
|
-
|
18
|
-
<link rel="import" href="../../things-designer-elements/things-editor-properties.html">
|
19
|
-
|
20
|
-
<link rel="import" href="./things-scene-firebase.html">
|
21
|
-
|
22
|
-
<style is="custom-style">
|
23
|
-
|
24
|
-
things-scene-viewer {
|
25
|
-
display: block;
|
26
|
-
width: 640px;
|
27
|
-
height: 480px;
|
28
|
-
}
|
29
|
-
</style>
|
30
|
-
</head>
|
31
|
-
<body unresolved>
|
32
|
-
|
33
|
-
<template is="dom-bind" id="app">
|
34
|
-
<p>An example of <code><firebase></code>:</p>
|
35
|
-
|
36
|
-
<things-scene-viewer id='scene'
|
37
|
-
scene='{{scene}}'
|
38
|
-
selected='{{selected}}'
|
39
|
-
model='[[model]]'
|
40
|
-
mode="0">
|
41
|
-
<things-scene-layer type="selection-layer"></things-scene-layer>
|
42
|
-
<things-scene-layer type="modeling-layer"></things-scene-layer>
|
43
|
-
<things-scene-handler type="text-editor"></things-scene-handler>
|
44
|
-
<things-scene-handler type="move-handler"></things-scene-handler>
|
45
|
-
</things-scene-viewer>
|
46
|
-
|
47
|
-
<p>Properties</p>
|
48
|
-
<things-editor-properties id='props' target="{{props}}" props="[[selected.0.nature.properties]]">
|
49
|
-
</things-editor-properties>
|
50
|
-
|
51
|
-
</template>
|
52
|
-
|
53
|
-
<script>
|
54
|
-
window.addEventListener('WebComponentsReady', function(e) {
|
55
|
-
var app = document.querySelector('#app')
|
56
|
-
|
57
|
-
app.props = {}
|
58
|
-
|
59
|
-
setTimeout(function() {
|
60
|
-
app.scene.on('selected', function(after) {
|
61
|
-
var target = after[0]
|
62
|
-
var props = {}
|
63
|
-
if(target) {
|
64
|
-
target.nature.properties.forEach(function(prop) {
|
65
|
-
var property = prop.property
|
66
|
-
props[property] = target.model[property]
|
67
|
-
})
|
68
|
-
}
|
69
|
-
app.props = props
|
70
|
-
});
|
71
|
-
});
|
72
|
-
|
73
|
-
app.$.props.addEventListener('change', function() {
|
74
|
-
app.selected[0].set(app.props)
|
75
|
-
});
|
76
|
-
|
77
|
-
app.model = {
|
78
|
-
width: 800,
|
79
|
-
height: 800,
|
80
|
-
components: [{
|
81
|
-
type: "rect",
|
82
|
-
left: 150,
|
83
|
-
top: 150,
|
84
|
-
rotation: 10,
|
85
|
-
width: 20,
|
86
|
-
height: 20,
|
87
|
-
strokeStyle: "black",
|
88
|
-
templatePrefix: "RECT-",
|
89
|
-
retention: 10000,
|
90
|
-
data: {
|
91
|
-
location: {
|
92
|
-
x: 100,
|
93
|
-
y: 100
|
94
|
-
},
|
95
|
-
status: 1
|
96
|
-
},
|
97
|
-
animation: {
|
98
|
-
oncreate: {
|
99
|
-
type: "rotation",
|
100
|
-
duration: 2000,
|
101
|
-
tilt: 30,
|
102
|
-
cycle: 50,
|
103
|
-
theta: 3.14,
|
104
|
-
roundtrip: true,
|
105
|
-
scale: 1.3,
|
106
|
-
repeat: false
|
107
|
-
}
|
108
|
-
},
|
109
|
-
mappings: [{
|
110
|
-
accessor: "location",
|
111
|
-
target: "(self)",
|
112
|
-
property: "location",
|
113
|
-
rule: "value"
|
114
|
-
}, {
|
115
|
-
accessor: "status",
|
116
|
-
target: "(self)",
|
117
|
-
property: "fillStyle",
|
118
|
-
rule: "map",
|
119
|
-
param: {
|
120
|
-
1: "blue",
|
121
|
-
2: "green",
|
122
|
-
3: "red",
|
123
|
-
4: "gray",
|
124
|
-
5: "lightgray",
|
125
|
-
6: "darkgray",
|
126
|
-
7: "yellow",
|
127
|
-
8: "white",
|
128
|
-
9: "black",
|
129
|
-
default: "cyan"
|
130
|
-
}
|
131
|
-
}, {
|
132
|
-
accessor: "status",
|
133
|
-
target: "(self)",
|
134
|
-
property: "rotation",
|
135
|
-
rule: "value"
|
136
|
-
}]
|
137
|
-
}, {
|
138
|
-
type: "ellipse",
|
139
|
-
strokeStyle: "black",
|
140
|
-
cx: 50,
|
141
|
-
cy: 50,
|
142
|
-
rx: 10,
|
143
|
-
ry: 10,
|
144
|
-
templatePrefix: "CIRC-",
|
145
|
-
retention: 10000,
|
146
|
-
animation: {
|
147
|
-
oncreate: {
|
148
|
-
type: "heartbeat",
|
149
|
-
duration: 2000,
|
150
|
-
tilt: 30,
|
151
|
-
cycle: 50,
|
152
|
-
theta: 1,
|
153
|
-
roundtrip: true,
|
154
|
-
scale: 1.3,
|
155
|
-
repeat: false
|
156
|
-
}
|
157
|
-
},
|
158
|
-
data: {
|
159
|
-
location: {
|
160
|
-
x: 200,
|
161
|
-
y: 200
|
162
|
-
},
|
163
|
-
status: 2
|
164
|
-
},
|
165
|
-
mappings: [{
|
166
|
-
accessor: "location",
|
167
|
-
target: "(self)",
|
168
|
-
property: "location",
|
169
|
-
rule: "value"
|
170
|
-
}, {
|
171
|
-
accessor: "status",
|
172
|
-
target: "(self)",
|
173
|
-
property: "fillStyle",
|
174
|
-
rule: "map",
|
175
|
-
param: {
|
176
|
-
1: "blue",
|
177
|
-
2: "green",
|
178
|
-
3: "red",
|
179
|
-
4: "gray",
|
180
|
-
5: "lightgray",
|
181
|
-
6: "darkgray",
|
182
|
-
7: "yellow",
|
183
|
-
8: "white",
|
184
|
-
9: "black",
|
185
|
-
default: "cyan"
|
186
|
-
}
|
187
|
-
}]
|
188
|
-
}, {
|
189
|
-
type: 'firebase',
|
190
|
-
top: 50,
|
191
|
-
left: 50,
|
192
|
-
width: 30,
|
193
|
-
height: 30,
|
194
|
-
fillStyle: '#00ff00',
|
195
|
-
strokeStyle: '#000',
|
196
|
-
lineWidth: 2,
|
197
|
-
|
198
|
-
apiKey: "AIzaSyCfqM_viu8mcuUbIupgv0Qh2xD6NWf1thA",
|
199
|
-
authDomain: "things-board-399e6.firebaseapp.com",
|
200
|
-
databaseURL: "https://things-board-399e6.firebaseio.com",
|
201
|
-
projectId: "things-board-399e6",
|
202
|
-
storageBucket: "things-board-399e6.appspot.com",
|
203
|
-
messagingSenderId: "74237077394",
|
204
|
-
childDataPath: "boards/template/data",
|
205
|
-
email: 'test@example.com',
|
206
|
-
password: 'testpass'
|
207
|
-
}]
|
208
|
-
};
|
209
|
-
});
|
210
|
-
</script>
|
211
|
-
</body>
|
212
|
-
</html>
|
package/demo/simulator.js
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
3
|
-
*/
|
4
|
-
var firebase = require('firebase')
|
5
|
-
|
6
|
-
firebase.initializeApp({
|
7
|
-
apiKey: "AIzaSyCfqM_viu8mcuUbIupgv0Qh2xD6NWf1thA",
|
8
|
-
authDomain: "things-board-399e6.firebaseapp.com",
|
9
|
-
databaseURL: "https://things-board-399e6.firebaseio.com",
|
10
|
-
projectId: "things-board-399e6",
|
11
|
-
storageBucket: "things-board-399e6.appspot.com",
|
12
|
-
messagingSenderId: "74237077394",
|
13
|
-
})
|
14
|
-
|
15
|
-
var email = 'test@example.com';
|
16
|
-
var password = 'testpass';
|
17
|
-
var mo_path = "boards/template/data/CIRC-03";
|
18
|
-
var simulation_path = "boards/template/simulation/CIRC-03";
|
19
|
-
|
20
|
-
this._database = firebase.database();
|
21
|
-
|
22
|
-
const auth = firebase.auth();
|
23
|
-
|
24
|
-
var self = this
|
25
|
-
var exit = false
|
26
|
-
|
27
|
-
auth.onAuthStateChanged(firebaseUser => {
|
28
|
-
if (firebaseUser) {
|
29
|
-
console.log('logged in');
|
30
|
-
var ref_mo = firebase.database().ref().child(mo_path);
|
31
|
-
var ref_sim = firebase.database().ref().child(simulation_path);
|
32
|
-
setInterval(() => {
|
33
|
-
var data = {
|
34
|
-
location: {
|
35
|
-
x: Math.round(Math.random() * 400),
|
36
|
-
y: Math.round(Math.random() * 400)
|
37
|
-
},
|
38
|
-
status: Math.floor(Math.random() * 5)
|
39
|
-
}
|
40
|
-
ref_mo.set(data); // Moving Object가 없는 경우에는 set을 해야할 것 같음.
|
41
|
-
// ref_mo.update(data);
|
42
|
-
ref_sim.push(data);
|
43
|
-
}, 1000)
|
44
|
-
} else {
|
45
|
-
if (exit) {
|
46
|
-
console.log('logged out, about to exit');
|
47
|
-
process.exit(1);
|
48
|
-
}
|
49
|
-
}
|
50
|
-
})
|
51
|
-
|
52
|
-
const promise = email ? auth.signInWithEmailAndPassword(email, password) : auth.signInAnonymously();
|
53
|
-
|
54
|
-
promise.catch(e => console.log(e.message))
|
55
|
-
|
56
|
-
setTimeout(() => {
|
57
|
-
exit = true;
|
58
|
-
firebase.auth().signOut();
|
59
|
-
}, 100000);
|
package/src/firebase.ts
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
3
|
-
*/
|
4
|
-
|
5
|
-
import { Component, ComponentNature, DataSource, error, RectPath, Shape } from '@hatiolab/things-scene'
|
6
|
-
import { initializeApp, deleteApp } from 'firebase/app'
|
7
|
-
import { getDatabase, ref, child, onValue } from 'firebase/database'
|
8
|
-
import { getAuth, onAuthStateChanged, signInAnonymously, signInWithEmailAndPassword, signOut } from 'firebase/auth'
|
9
|
-
|
10
|
-
declare global {
|
11
|
-
var firebase: any
|
12
|
-
}
|
13
|
-
|
14
|
-
const NATURE: ComponentNature = {
|
15
|
-
mutable: false,
|
16
|
-
resizable: true,
|
17
|
-
rotatable: true,
|
18
|
-
properties: [
|
19
|
-
{
|
20
|
-
type: 'string',
|
21
|
-
label: 'api-key',
|
22
|
-
name: 'apiKey',
|
23
|
-
property: 'apiKey'
|
24
|
-
},
|
25
|
-
{
|
26
|
-
type: 'string',
|
27
|
-
label: 'auth-domain',
|
28
|
-
name: 'authDomain',
|
29
|
-
property: 'authDomain'
|
30
|
-
},
|
31
|
-
{
|
32
|
-
type: 'string',
|
33
|
-
label: 'database-url',
|
34
|
-
name: 'databaseURL',
|
35
|
-
property: 'databaseURL'
|
36
|
-
},
|
37
|
-
{
|
38
|
-
type: 'string',
|
39
|
-
label: 'project-id',
|
40
|
-
name: 'projectId',
|
41
|
-
property: 'projectId'
|
42
|
-
},
|
43
|
-
{
|
44
|
-
type: 'string',
|
45
|
-
label: 'storage-bucket',
|
46
|
-
name: 'storageBucket',
|
47
|
-
property: 'storageBucket'
|
48
|
-
},
|
49
|
-
{
|
50
|
-
type: 'string',
|
51
|
-
label: 'messaging-sender-id',
|
52
|
-
name: 'messagingSenderId',
|
53
|
-
property: 'messagingSenderId'
|
54
|
-
},
|
55
|
-
{
|
56
|
-
type: 'string',
|
57
|
-
label: 'child-data-path',
|
58
|
-
name: 'childDataPath',
|
59
|
-
property: 'childDataPath'
|
60
|
-
},
|
61
|
-
{
|
62
|
-
type: 'string',
|
63
|
-
label: 'email-id',
|
64
|
-
name: 'email',
|
65
|
-
property: 'email'
|
66
|
-
},
|
67
|
-
{
|
68
|
-
type: 'string',
|
69
|
-
label: 'password',
|
70
|
-
name: 'password',
|
71
|
-
property: 'password'
|
72
|
-
}
|
73
|
-
]
|
74
|
-
// help: 'scene/component/firebase'
|
75
|
-
}
|
76
|
-
|
77
|
-
const FIREBASE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|
-
export default class Firebase extends DataSource(RectPath(Shape)) {
|
83
|
-
private static _image: HTMLImageElement
|
84
|
-
private _firebase_app: any
|
85
|
-
private _firebase_auth: any
|
86
|
-
private _firebase_ref: any
|
87
|
-
|
88
|
-
static get image() {
|
89
|
-
if (!Firebase._image) {
|
90
|
-
Firebase._image = new Image()
|
91
|
-
Firebase._image.src = FIREBASE_IMAGE
|
92
|
-
}
|
93
|
-
|
94
|
-
return Firebase._image
|
95
|
-
}
|
96
|
-
|
97
|
-
added() {
|
98
|
-
if (!this.app.isViewMode || this._firebase_app) {
|
99
|
-
return
|
100
|
-
}
|
101
|
-
|
102
|
-
try {
|
103
|
-
this._initFirebase()
|
104
|
-
} catch (err) {
|
105
|
-
error(err)
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
_onValue(snapshot: any) {
|
110
|
-
this.data = snapshot.val()
|
111
|
-
}
|
112
|
-
|
113
|
-
_initFirebase() {
|
114
|
-
var {
|
115
|
-
apiKey,
|
116
|
-
authDomain,
|
117
|
-
databaseURL,
|
118
|
-
projectId,
|
119
|
-
storageBucket,
|
120
|
-
messagingSenderId,
|
121
|
-
childDataPath,
|
122
|
-
email,
|
123
|
-
password
|
124
|
-
} = this.state
|
125
|
-
|
126
|
-
var self = this
|
127
|
-
|
128
|
-
this._firebase_app = initializeApp(
|
129
|
-
{ apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId },
|
130
|
-
'FBAPP-' + ++idx
|
131
|
-
)
|
132
|
-
this._firebase_auth = getAuth(this._firebase_app)
|
133
|
-
|
134
|
-
onAuthStateChanged(this._firebase_auth, (firebaseUser: any) => {
|
135
|
-
if (firebaseUser) {
|
136
|
-
console.log('logged in', firebaseUser)
|
137
|
-
const database = getDatabase(this._firebase_app)
|
138
|
-
const parent = ref(database)
|
139
|
-
self._firebase_ref = child(parent, childDataPath)
|
140
|
-
onValue(self._firebase_ref, self._onValue.bind(self))
|
141
|
-
} else {
|
142
|
-
console.log('not logged in.')
|
143
|
-
}
|
144
|
-
})
|
145
|
-
|
146
|
-
var promise = email
|
147
|
-
? signInWithEmailAndPassword(this._firebase_auth, email, password)
|
148
|
-
: signInAnonymously(this._firebase_auth)
|
149
|
-
|
150
|
-
promise.catch((e: Error) => console.log(e.message))
|
151
|
-
}
|
152
|
-
|
153
|
-
dispose() {
|
154
|
-
if (this._firebase_app) {
|
155
|
-
try {
|
156
|
-
this._firebase_ref && this._firebase_ref.off('value', this._onValue, this)
|
157
|
-
this._firebase_auth && signOut(this._firebase_auth)
|
158
|
-
this._firebase_app && deleteApp(this._firebase_app)
|
159
|
-
|
160
|
-
console.log('disposed - firebase')
|
161
|
-
} catch (e) {
|
162
|
-
console.error(e)
|
163
|
-
}
|
164
|
-
}
|
165
|
-
|
166
|
-
delete this._firebase_auth
|
167
|
-
delete this._firebase_ref
|
168
|
-
delete this._firebase_app
|
169
|
-
|
170
|
-
super.dispose()
|
171
|
-
}
|
172
|
-
|
173
|
-
render(context: CanvasRenderingContext2D) {
|
174
|
-
var { left, top, width, height } = this.bounds
|
175
|
-
|
176
|
-
context.beginPath()
|
177
|
-
this.drawImage(context, Firebase.image, left, top, width, height)
|
178
|
-
}
|
179
|
-
|
180
|
-
get nature() {
|
181
|
-
return NATURE
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
Component.register('firebase', Firebase)
|
package/src/index.ts
DELETED
package/test/basic-test.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<!--
|
3
|
-
@license
|
4
|
-
Copyright © 2017 HatioLab Inc. All rights reserved.
|
5
|
-
-->
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<meta charset="utf-8">
|
9
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
10
|
-
|
11
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
12
|
-
<script src="../../web-component-tester/browser.js"></script>
|
13
|
-
|
14
|
-
<!-- Step 1: import the element to test -->
|
15
|
-
<link rel="import" href="../things-scene-firebase.html">
|
16
|
-
</head>
|
17
|
-
<body>
|
18
|
-
|
19
|
-
<!-- You can use the document as a place to set up your fixtures. -->
|
20
|
-
<test-fixture id="things-scene-firebase-fixture">
|
21
|
-
<template>
|
22
|
-
<things-scene-firebase>
|
23
|
-
<h2>things-scene-firebase</h2>
|
24
|
-
</things-scene-firebase>
|
25
|
-
</template>
|
26
|
-
</test-fixture>
|
27
|
-
|
28
|
-
<script>
|
29
|
-
suite('<things-scene-firebase>', function() {
|
30
|
-
|
31
|
-
var myEl;
|
32
|
-
|
33
|
-
setup(function() {
|
34
|
-
myEl = fixture('things-scene-firebase-fixture');
|
35
|
-
});
|
36
|
-
|
37
|
-
test('defines the "author" property', function() {
|
38
|
-
assert.equal(myEl.author.name, 'Dimitri Glazkov');
|
39
|
-
assert.equal(myEl.author.image, 'http://addyosmani.com/blog/wp-content/uploads/2013/04/unicorn.jpg');
|
40
|
-
});
|
41
|
-
|
42
|
-
test('says hello', function() {
|
43
|
-
assert.equal(myEl.sayHello(), 'things-scene-firebase says, Hello World!');
|
44
|
-
|
45
|
-
var greetings = myEl.sayHello('greetings Earthlings');
|
46
|
-
assert.equal(greetings, 'things-scene-firebase says, greetings Earthlings');
|
47
|
-
});
|
48
|
-
|
49
|
-
test('fires lasers', function(done) {
|
50
|
-
myEl.addEventListener('things-scene-firebase-lasers', function(event) {
|
51
|
-
assert.equal(event.detail.sound, 'Pew pew!');
|
52
|
-
done();
|
53
|
-
});
|
54
|
-
myEl.fireLasers();
|
55
|
-
});
|
56
|
-
|
57
|
-
test('distributed children', function() {
|
58
|
-
var els = myEl.getContentChildren();
|
59
|
-
assert.equal(els.length, 1, 'one distributed node');
|
60
|
-
assert.equal(els[0], myEl.querySelector('h2'), 'content distributed correctly');
|
61
|
-
});
|
62
|
-
|
63
|
-
});
|
64
|
-
</script>
|
65
|
-
|
66
|
-
</body>
|
67
|
-
</html>
|
package/test/index.html
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<!--
|
3
|
-
@license
|
4
|
-
Copyright © 2017 HatioLab Inc. All rights reserved.
|
5
|
-
-->
|
6
|
-
<html><head>
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
9
|
-
|
10
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
11
|
-
<script src="../../web-component-tester/browser.js"></script>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
<script>
|
15
|
-
// Load and run all tests (.html, .js):
|
16
|
-
WCT.loadSuites([
|
17
|
-
'basic-test.html',
|
18
|
-
'basic-test.html?dom=shadow'
|
19
|
-
]);
|
20
|
-
</script>
|
21
|
-
|
22
|
-
</body></html>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
3
|
-
*/
|
4
|
-
import './util'
|
5
|
-
|
6
|
-
import { expect } from 'chai'
|
7
|
-
|
8
|
-
import '../../bower_components/things-scene-core/things-scene-min'
|
9
|
-
import { Firebase } from '../../src/index'
|
10
|
-
|
11
|
-
describe('Firebase', function () {
|
12
|
-
|
13
|
-
var board;
|
14
|
-
|
15
|
-
beforeEach(function () {
|
16
|
-
board = scene.create({
|
17
|
-
model: {
|
18
|
-
components: [{
|
19
|
-
id: 'firebase',
|
20
|
-
type: 'firebase'
|
21
|
-
}]
|
22
|
-
}
|
23
|
-
})
|
24
|
-
});
|
25
|
-
|
26
|
-
it('component should be found by its id.', function () {
|
27
|
-
|
28
|
-
var component = board.findById('firebase')
|
29
|
-
|
30
|
-
expect(!!component).not.to.equal(false);
|
31
|
-
});
|
32
|
-
});
|
package/test/unit/util.js
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
3
|
-
*/
|
4
|
-
var noop = () => {}
|
5
|
-
|
6
|
-
global.Canvas = require('canvas');
|
7
|
-
|
8
|
-
Canvas.prototype.setAttribute = noop;
|
9
|
-
Canvas.prototype.style = {};
|
10
|
-
|
11
|
-
global.Image = Canvas.Image;
|
12
|
-
global.screen = {
|
13
|
-
width: 1280,
|
14
|
-
height: 800
|
15
|
-
};
|
16
|
-
|
17
|
-
global.window = global;
|
18
|
-
|
19
|
-
global.addEventListener = noop;
|
20
|
-
global.location = {};
|
21
|
-
global.getComputedStyle = noop;
|
package/tsconfig.json
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"target": "es2018",
|
4
|
-
"module": "esnext",
|
5
|
-
"moduleResolution": "node",
|
6
|
-
"noEmitOnError": true,
|
7
|
-
"lib": ["es2019", "dom"],
|
8
|
-
"strict": true,
|
9
|
-
"esModuleInterop": false,
|
10
|
-
"allowJs": true,
|
11
|
-
"allowSyntheticDefaultImports": true,
|
12
|
-
"experimentalDecorators": true,
|
13
|
-
"importHelpers": true,
|
14
|
-
"outDir": "dist",
|
15
|
-
"sourceMap": true,
|
16
|
-
"inlineSources": true,
|
17
|
-
"rootDir": "src",
|
18
|
-
"declaration": true,
|
19
|
-
"incremental": true,
|
20
|
-
"skipLibCheck": true,
|
21
|
-
"types": []
|
22
|
-
},
|
23
|
-
"include": ["**/*.ts", "*.d.ts"]
|
24
|
-
}
|
package/tsconfig.tsbuildinfo
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","../../node_modules/@firebase/component/dist/src/provider.d.ts","../../node_modules/@firebase/component/dist/src/component_container.d.ts","../../node_modules/@firebase/component/dist/src/types.d.ts","../../node_modules/@firebase/component/dist/src/component.d.ts","../../node_modules/@firebase/component/dist/index.d.ts","../../node_modules/@firebase/util/dist/util-public.d.ts","../../node_modules/@firebase/logger/dist/src/logger.d.ts","../../node_modules/@firebase/logger/dist/index.d.ts","../../node_modules/@firebase/app/dist/app-public.d.ts","../../node_modules/firebase/app/dist/app/index.d.ts","../../node_modules/@firebase/database/dist/public.d.ts","../../node_modules/firebase/database/dist/database/index.d.ts","../../node_modules/@firebase/auth/dist/auth-public.d.ts","../../node_modules/firebase/auth/dist/auth/index.d.ts","./src/firebase.ts","./src/index.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","26d1ec00a52200684283272eaed524de74adc033bdff6522f72e03c796a46ff8","e94b01c6c9221682a1ffd8577103408642c5433923420e517d8d8c695c4875c0","466a15bf7238ebd3900d136db38eec3af69d0761c0286ab59952870eedd6e319","9113ebe8d776516d3a302ec431d28915c9398a75beaef1eb38cd66ae0bfeb014","1f4df460bfe98e20fae494ade49e50c98ed1997143c7eae7a00a1cd93bfd4307","e179bf25417780781dc994f657e724419e6dcbe5a136dbfa55efefe36bdb4b63","2a0fdc4e3ff0daab68692c115db4609206e029061fc2803a342973da34f57901","a0abcb32b7a9291276879912c9a3205fbd1d6930ae4f29e91fe30227e2762893","b67fb584ca2449669c113e75866d339ee4e6bc74a441efd00c1beac460412584","90e7ca3372483129ad265c604b2225e250a4739ed966c3859648332ae36ed4fa","0f79f9784797e5358bbed18b363b220eaed94de7c1ed2f193465ac232fe48eb1","002f8f7a43c8ffdada27365975af3f55909314f83cb2050098633e7625a23bfc","74811fe19eb02d382d9f7b4d35fc1253a976a5f017895065f069345dfb379bb2","ccd344713e6f39583ac472a097e8dd307998d1c27d43b0b0f4558db1569ee3fc","6187d97d074e4a66a0179ff2cdd845e1809b70ff5d7b857e0c686f52a86f62f7",{"version":"615f791e6f78bde53794cd91f05d413f62fc24a5f943258f298110e568c156c0","signature":"9b5d2793aeaaa34d2257f7c411960a5ae61ed98be042478da2c9c2f25d8eebac","affectsGlobalScope":true},{"version":"90775e7d9ecf06209058940ee88539d3b6fa7fb73cb4a6e7c133993636e59323","signature":"c2fdffc89e2a4d1ee0f0772c080dd3abb805699a3f2817317d094d9e3bcddbb8"}],"root":[53,54],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":5},"fileIdsList":[[43,44,46],[44,47],[39,40,41,42],[41],[39,41,42],[40,41,42],[40],[45],[47],[51],[49],[37,38,48,50,52],[37,53]],"referencedMap":[[47,1],[51,2],[43,3],[42,4],[40,5],[39,6],[41,7],[49,2],[46,8],[48,9],[52,10],[50,11],[53,12],[54,13]]},"version":"5.5.2"}
|