@things-factory/operato-board 5.0.0-alpha.39 → 5.0.0-alpha.41
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/pages/board-list-page.js +26 -23
- package/client/pages/play-list-page.js +29 -32
- package/client/viewparts/board-info.js +8 -8
- package/client/viewparts/group-info.js +1 -1
- package/client/viewparts/play-group-info.js +1 -1
- package/config.development.js +9 -39
- package/config.production.js +2 -43
- package/package.json +70 -63
- package/translations/en.json +13 -2
- package/translations/ko.json +13 -2
- package/translations/ms.json +13 -2
- package/translations/zh.json +13 -2
|
@@ -10,10 +10,13 @@ import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
|
10
10
|
|
|
11
11
|
import InfiniteScrollable from '@operato/utils/mixins/infinite-scrollable.js'
|
|
12
12
|
import { UPDATE_FAVORITES } from '@things-factory/fav-base'
|
|
13
|
-
import { openOverlay } from '@
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { openOverlay } from '@operato/layout'
|
|
14
|
+
import { navigate, PageView, store } from '@operato/shell'
|
|
15
|
+
import { client } from '@operato/graphql'
|
|
16
|
+
import { i18next, localize } from '@operato/i18n'
|
|
17
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
18
|
+
import { swipe } from '@things-factory/utils'
|
|
19
|
+
import { pulltorefresh } from '@operato/pull-to-refresh'
|
|
17
20
|
|
|
18
21
|
import {
|
|
19
22
|
createBoard,
|
|
@@ -27,7 +30,7 @@ import {
|
|
|
27
30
|
updateGroup
|
|
28
31
|
} from '../graphql'
|
|
29
32
|
|
|
30
|
-
class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
33
|
+
class BoardListPage extends localize(i18next)(connect(store)(InfiniteScrollable(PageView))) {
|
|
31
34
|
static get styles() {
|
|
32
35
|
return [
|
|
33
36
|
ScrollbarStyles,
|
|
@@ -322,7 +325,7 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
322
325
|
async onCreateGroup(group) {
|
|
323
326
|
try {
|
|
324
327
|
await createGroup(group)
|
|
325
|
-
this._notify('info', '
|
|
328
|
+
this._notify('info', i18next.t('text.group created', { group: group.name }))
|
|
326
329
|
} catch (ex) {
|
|
327
330
|
this._notify('error', ex, ex)
|
|
328
331
|
}
|
|
@@ -333,7 +336,7 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
333
336
|
async onUpdateGroup(group) {
|
|
334
337
|
try {
|
|
335
338
|
await updateGroup(group)
|
|
336
|
-
this._notify('info', '
|
|
339
|
+
this._notify('info', i18next.t('text.group updated', { group: group.name }))
|
|
337
340
|
} catch (ex) {
|
|
338
341
|
this._notify('error', ex, ex)
|
|
339
342
|
}
|
|
@@ -341,10 +344,10 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
341
344
|
this.refresh()
|
|
342
345
|
}
|
|
343
346
|
|
|
344
|
-
async onDeleteGroup(
|
|
347
|
+
async onDeleteGroup(group) {
|
|
345
348
|
try {
|
|
346
|
-
await deleteGroup(
|
|
347
|
-
this._notify('info', 'deleted')
|
|
349
|
+
await deleteGroup(group.id)
|
|
350
|
+
this._notify('info', i18next.t('text.group deleted', { group: group.name }))
|
|
348
351
|
} catch (ex) {
|
|
349
352
|
this._notify('error', ex, ex)
|
|
350
353
|
}
|
|
@@ -363,7 +366,7 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
363
366
|
|
|
364
367
|
await createBoard(board)
|
|
365
368
|
|
|
366
|
-
this._notify('info', '
|
|
369
|
+
this._notify('info', i18next.t('text.board created', { board: board.name }))
|
|
367
370
|
} catch (ex) {
|
|
368
371
|
this._notify('error', ex, ex)
|
|
369
372
|
}
|
|
@@ -374,7 +377,7 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
374
377
|
async onUpdateBoard(board) {
|
|
375
378
|
try {
|
|
376
379
|
await updateBoard(board)
|
|
377
|
-
this._notify('info', '
|
|
380
|
+
this._notify('info', i18next.t('text.board updated', { board: board.name }))
|
|
378
381
|
} catch (ex) {
|
|
379
382
|
this._notify('error', ex, ex)
|
|
380
383
|
}
|
|
@@ -382,10 +385,10 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
382
385
|
this.refreshBoards()
|
|
383
386
|
}
|
|
384
387
|
|
|
385
|
-
async onDeleteBoard(
|
|
388
|
+
async onDeleteBoard(board) {
|
|
386
389
|
try {
|
|
387
|
-
await deleteBoard(
|
|
388
|
-
this._notify('info', 'deleted')
|
|
390
|
+
await deleteBoard(board.id)
|
|
391
|
+
this._notify('info', i18next.t('text.board deleted', { board: board.name }))
|
|
389
392
|
} catch (ex) {
|
|
390
393
|
this._notify('error', ex, ex)
|
|
391
394
|
}
|
|
@@ -393,7 +396,7 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
393
396
|
this.refreshBoards()
|
|
394
397
|
}
|
|
395
398
|
|
|
396
|
-
async onJoinPlayGroup({
|
|
399
|
+
async onJoinPlayGroup({ board, playGroup }) {
|
|
397
400
|
try {
|
|
398
401
|
await client.mutate({
|
|
399
402
|
mutation: gql`
|
|
@@ -404,18 +407,18 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
404
407
|
}
|
|
405
408
|
`,
|
|
406
409
|
variables: {
|
|
407
|
-
id:
|
|
408
|
-
boardIds: [
|
|
410
|
+
id: playGroup.id,
|
|
411
|
+
boardIds: [board.id]
|
|
409
412
|
}
|
|
410
413
|
})
|
|
411
414
|
|
|
412
|
-
this._notify('info', 'joined
|
|
415
|
+
this._notify('info', i18next.t('text.joined into play-group', { board: board.name, playGroup: playGroup.name }))
|
|
413
416
|
} catch (ex) {
|
|
414
417
|
this._notify('error', ex, ex)
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
420
|
|
|
418
|
-
async onLeavePlayGroup({
|
|
421
|
+
async onLeavePlayGroup({ board, playGroup }) {
|
|
419
422
|
try {
|
|
420
423
|
await client.mutate({
|
|
421
424
|
mutation: gql`
|
|
@@ -426,12 +429,12 @@ class BoardListPage extends connect(store)(InfiniteScrollable(PageView)) {
|
|
|
426
429
|
}
|
|
427
430
|
`,
|
|
428
431
|
variables: {
|
|
429
|
-
id:
|
|
430
|
-
boardIds: [
|
|
432
|
+
id: playGroup.id,
|
|
433
|
+
boardIds: [board.id]
|
|
431
434
|
}
|
|
432
435
|
})
|
|
433
436
|
|
|
434
|
-
this._notify('info', 'leaved
|
|
437
|
+
this._notify('info', i18next.t('text.leaved from play-group', { board: board.name, playGroup: playGroup.name }))
|
|
435
438
|
} catch (ex) {
|
|
436
439
|
this._notify('error', ex, ex)
|
|
437
440
|
}
|
|
@@ -10,10 +10,13 @@ import { css, html } from 'lit'
|
|
|
10
10
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
11
11
|
|
|
12
12
|
import { UPDATE_FAVORITES } from '@things-factory/fav-base'
|
|
13
|
-
import { openOverlay } from '@
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { openOverlay } from '@operato/layout'
|
|
14
|
+
import { navigate, PageView, store } from '@operato/shell'
|
|
15
|
+
import { client } from '@operato/graphql'
|
|
16
|
+
import { i18next, localize } from '@operato/i18n'
|
|
17
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
18
|
+
import { swipe } from '@things-factory/utils'
|
|
19
|
+
import { pulltorefresh } from '@operato/pull-to-refresh'
|
|
17
20
|
|
|
18
21
|
import {
|
|
19
22
|
createPlayGroup,
|
|
@@ -25,7 +28,7 @@ import {
|
|
|
25
28
|
updatePlayGroup
|
|
26
29
|
} from '../graphql'
|
|
27
30
|
|
|
28
|
-
class PlayListPage extends connect(store)(PageView) {
|
|
31
|
+
class PlayListPage extends localize(i18next)(connect(store)(PageView)) {
|
|
29
32
|
static get styles() {
|
|
30
33
|
return [
|
|
31
34
|
ScrollbarStyles,
|
|
@@ -253,10 +256,10 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
253
256
|
})
|
|
254
257
|
}
|
|
255
258
|
|
|
256
|
-
async onCreatePlayGroup(
|
|
259
|
+
async onCreatePlayGroup(playGroup) {
|
|
257
260
|
try {
|
|
258
|
-
await createPlayGroup(
|
|
259
|
-
this._notify('info', '
|
|
261
|
+
await createPlayGroup(playGroup)
|
|
262
|
+
this._notify('info', i18next.t('text.play-group created', { playGroup: playGroup.name }))
|
|
260
263
|
} catch (ex) {
|
|
261
264
|
this._notify('error', ex, ex)
|
|
262
265
|
}
|
|
@@ -264,10 +267,10 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
264
267
|
this.refresh()
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
async onUpdatePlayGroup(
|
|
270
|
+
async onUpdatePlayGroup(playGroup) {
|
|
268
271
|
try {
|
|
269
|
-
await updatePlayGroup(
|
|
270
|
-
this._notify('info', '
|
|
272
|
+
await updatePlayGroup(playGroup)
|
|
273
|
+
this._notify('info', i18next.t('text.play-group updated', { playGroup: playGroup.name }))
|
|
271
274
|
} catch (ex) {
|
|
272
275
|
this._notify('error', ex, ex)
|
|
273
276
|
}
|
|
@@ -275,10 +278,10 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
275
278
|
this.refresh()
|
|
276
279
|
}
|
|
277
280
|
|
|
278
|
-
async onDeletePlayGroup(
|
|
281
|
+
async onDeletePlayGroup(playGroup) {
|
|
279
282
|
try {
|
|
280
|
-
await deletePlayGroup(
|
|
281
|
-
this._notify('info', 'deleted')
|
|
283
|
+
await deletePlayGroup(playGroup.id)
|
|
284
|
+
this._notify('info', i18next.t('text.play-group deleted', { playGroup: playGroup.name }))
|
|
282
285
|
} catch (ex) {
|
|
283
286
|
this._notify('error', ex, ex)
|
|
284
287
|
}
|
|
@@ -289,7 +292,7 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
289
292
|
async onUpdateBoard(board) {
|
|
290
293
|
try {
|
|
291
294
|
await updateBoard(board)
|
|
292
|
-
this._notify('info', '
|
|
295
|
+
this._notify('info', i18next.t('text.board updated', { board: board.name }))
|
|
293
296
|
} catch (ex) {
|
|
294
297
|
this._notify('error', ex, ex)
|
|
295
298
|
}
|
|
@@ -297,18 +300,12 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
297
300
|
this.refreshBoards()
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
async onDeleteBoard(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
this._notify('info', 'deleted from this playgroup')
|
|
304
|
-
} catch (ex) {
|
|
305
|
-
this._notify('error', ex, ex)
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
this.refresh()
|
|
303
|
+
async onDeleteBoard(board) {
|
|
304
|
+
const playGroup = this.groups && this.groups.find(group => group.id === this.groupId)
|
|
305
|
+
await this.onLeavePlayGroup({ board, playGroup })
|
|
309
306
|
}
|
|
310
307
|
|
|
311
|
-
async onJoinPlayGroup({
|
|
308
|
+
async onJoinPlayGroup({ board, playGroup }) {
|
|
312
309
|
try {
|
|
313
310
|
await client.mutate({
|
|
314
311
|
mutation: gql`
|
|
@@ -319,12 +316,12 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
319
316
|
}
|
|
320
317
|
`,
|
|
321
318
|
variables: {
|
|
322
|
-
id:
|
|
323
|
-
boardIds: [
|
|
319
|
+
id: playGroup.id,
|
|
320
|
+
boardIds: [board.id]
|
|
324
321
|
}
|
|
325
322
|
})
|
|
326
323
|
|
|
327
|
-
this._notify('info', 'joined
|
|
324
|
+
this._notify('info', i18next.t('text.joined into play-group', { board: board.name, playGroup: playGroup.name }))
|
|
328
325
|
} catch (ex) {
|
|
329
326
|
this._notify('error', ex, ex)
|
|
330
327
|
}
|
|
@@ -332,7 +329,7 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
332
329
|
this.refresh()
|
|
333
330
|
}
|
|
334
331
|
|
|
335
|
-
async onLeavePlayGroup({
|
|
332
|
+
async onLeavePlayGroup({ board, playGroup }) {
|
|
336
333
|
try {
|
|
337
334
|
await client.mutate({
|
|
338
335
|
mutation: gql`
|
|
@@ -343,12 +340,12 @@ class PlayListPage extends connect(store)(PageView) {
|
|
|
343
340
|
}
|
|
344
341
|
`,
|
|
345
342
|
variables: {
|
|
346
|
-
id:
|
|
347
|
-
boardIds: [
|
|
343
|
+
id: playGroup.id,
|
|
344
|
+
boardIds: [board.id]
|
|
348
345
|
}
|
|
349
346
|
})
|
|
350
347
|
|
|
351
|
-
this._notify('info', 'leaved
|
|
348
|
+
this._notify('info', i18next.t('text.leaved from play-group', { board: board.name, playGroup: playGroup.name }))
|
|
352
349
|
} catch (ex) {
|
|
353
350
|
this._notify('error', ex, ex)
|
|
354
351
|
}
|
|
@@ -227,7 +227,7 @@ export class BoardInfo extends LitElement {
|
|
|
227
227
|
value=${item.id}
|
|
228
228
|
.checked=${item.checked}
|
|
229
229
|
@change=${e => {
|
|
230
|
-
e.target.checked ? this.joinPlayGroup(item
|
|
230
|
+
e.target.checked ? this.joinPlayGroup(item) : this.leavePlayGroup(item)
|
|
231
231
|
}}
|
|
232
232
|
/>
|
|
233
233
|
<label>${item.name}</label>
|
|
@@ -314,30 +314,30 @@ export class BoardInfo extends LitElement {
|
|
|
314
314
|
async deleteBoard() {
|
|
315
315
|
this.dispatchEvent(
|
|
316
316
|
new CustomEvent('delete-board', {
|
|
317
|
-
detail: this.
|
|
317
|
+
detail: this.board
|
|
318
318
|
})
|
|
319
319
|
)
|
|
320
320
|
|
|
321
321
|
this.close()
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
async joinPlayGroup(
|
|
324
|
+
async joinPlayGroup(group) {
|
|
325
325
|
this.dispatchEvent(
|
|
326
326
|
new CustomEvent('join-playgroup', {
|
|
327
327
|
detail: {
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
board: this.board,
|
|
329
|
+
playGroup: group
|
|
330
330
|
}
|
|
331
331
|
})
|
|
332
332
|
)
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
async leavePlayGroup(
|
|
335
|
+
async leavePlayGroup(group) {
|
|
336
336
|
this.dispatchEvent(
|
|
337
337
|
new CustomEvent('leave-playgroup', {
|
|
338
338
|
detail: {
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
board: this.board,
|
|
340
|
+
playGroup: group
|
|
341
341
|
}
|
|
342
342
|
})
|
|
343
343
|
)
|
package/config.development.js
CHANGED
|
@@ -1,42 +1,12 @@
|
|
|
1
|
+
var licenseKey = require('./config/license').Key
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
auth: {
|
|
11
|
-
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
12
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
13
|
-
},
|
|
14
|
-
secureConnection: false,
|
|
15
|
-
tls: {
|
|
16
|
-
ciphers: 'SSLv3'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
notification: {
|
|
20
|
-
fcm: {
|
|
21
|
-
serviceAccount: {
|
|
22
|
-
project_id: 'operato',
|
|
23
|
-
private_key:
|
|
24
|
-
'-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0M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qMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
|
|
25
|
-
client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
26
|
-
},
|
|
27
|
-
appConfig: {
|
|
28
|
-
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
29
|
-
projectId: 'operato',
|
|
30
|
-
messagingSenderId: 79537064975,
|
|
31
|
-
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
32
|
-
},
|
|
33
|
-
serverKey:
|
|
34
|
-
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
35
|
-
},
|
|
36
|
-
vapidKey: {
|
|
37
|
-
subject: 'mailto:heartyoh@hatiolab.com',
|
|
38
|
-
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
39
|
-
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
40
|
-
}
|
|
3
|
+
accessTokenCookieKey: 'access_token.board',
|
|
4
|
+
licenseKey: licenseKey,
|
|
5
|
+
storage: {
|
|
6
|
+
type: 's3',
|
|
7
|
+
accessKeyId: 'AKIAQAYF6R4N7RSOCEMD',
|
|
8
|
+
secretAccessKey: 'n14c8n42prH68oizEIrLbf50I5Edx3RZtU73jkrN',
|
|
9
|
+
bucketName: 'aidoop-r',
|
|
10
|
+
region: 'ap-northeast-2'
|
|
41
11
|
}
|
|
42
12
|
}
|
package/config.production.js
CHANGED
|
@@ -1,46 +1,5 @@
|
|
|
1
1
|
var licenseKey = require('./config/license').Key
|
|
2
|
-
|
|
3
2
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
licenseKey: licenseKey
|
|
6
|
-
port: 3000,
|
|
7
|
-
subdomain: null,
|
|
8
|
-
// useVirtualHostBasedDomain: true,
|
|
9
|
-
// subdomainOffset: 2,
|
|
10
|
-
email: {
|
|
11
|
-
host: 'smtp.office365.com',
|
|
12
|
-
port: 587,
|
|
13
|
-
secure: false, // true for 465, false for other ports
|
|
14
|
-
auth: {
|
|
15
|
-
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
16
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
17
|
-
},
|
|
18
|
-
secureConnection: false,
|
|
19
|
-
tls: {
|
|
20
|
-
ciphers: 'SSLv3'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
notification: {
|
|
24
|
-
fcm: {
|
|
25
|
-
serviceAccount: {
|
|
26
|
-
project_id: 'operato',
|
|
27
|
-
private_key:
|
|
28
|
-
'-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E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Ofg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
|
|
29
|
-
client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
30
|
-
},
|
|
31
|
-
appConfig: {
|
|
32
|
-
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
33
|
-
projectId: 'operato',
|
|
34
|
-
messagingSenderId: 79537064975,
|
|
35
|
-
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
36
|
-
},
|
|
37
|
-
serverKey:
|
|
38
|
-
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
39
|
-
},
|
|
40
|
-
vapidKey: {
|
|
41
|
-
subject: 'mailto:heartyoh@hatiolab.com',
|
|
42
|
-
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
43
|
-
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
3
|
+
protocol: 'http',
|
|
4
|
+
licenseKey: licenseKey
|
|
46
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-board",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.41",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -42,71 +42,78 @@
|
|
|
42
42
|
"docker:push:cn": "docker image push hatiolab/operato-board:latest-cn && docker image push hatiolab/operato-board:$npm_package_version-cn"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@operato/attachment": "1.0.0-beta.
|
|
46
|
-
"@operato/font": "1.0.0-beta.
|
|
47
|
-
"@operato/
|
|
48
|
-
"@operato/
|
|
49
|
-
"@operato/
|
|
50
|
-
"@operato/
|
|
51
|
-
"@operato/
|
|
52
|
-
"@operato/scene-
|
|
53
|
-
"@operato/scene-
|
|
54
|
-
"@operato/scene-
|
|
55
|
-
"@operato/scene-
|
|
56
|
-
"@operato/scene-
|
|
57
|
-
"@operato/scene-
|
|
58
|
-
"@operato/scene-
|
|
59
|
-
"@operato/scene-
|
|
60
|
-
"@operato/scene-
|
|
61
|
-
"@operato/scene-
|
|
62
|
-
"@operato/scene-
|
|
63
|
-
"@operato/scene-
|
|
64
|
-
"@operato/scene-
|
|
65
|
-
"@operato/scene-
|
|
66
|
-
"@operato/scene-
|
|
67
|
-
"@operato/scene-
|
|
68
|
-
"@operato/scene-
|
|
69
|
-
"@operato/scene-
|
|
70
|
-
"@operato/scene-
|
|
71
|
-
"@operato/scene-
|
|
72
|
-
"@operato/scene-
|
|
73
|
-
"@operato/scene-
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@things-factory/
|
|
82
|
-
"@things-factory/
|
|
83
|
-
"@things-factory/
|
|
84
|
-
"@things-factory/
|
|
85
|
-
"@things-factory/
|
|
86
|
-
"@things-factory/
|
|
87
|
-
"@things-factory/
|
|
88
|
-
"@things-factory/
|
|
89
|
-
"@things-factory/
|
|
90
|
-
"@things-factory/
|
|
91
|
-
"@things-factory/
|
|
92
|
-
"@things-factory/
|
|
93
|
-
"@things-factory/
|
|
45
|
+
"@operato/attachment": "1.0.0-beta.9",
|
|
46
|
+
"@operato/font": "1.0.0-beta.9",
|
|
47
|
+
"@operato/graphql": "1.0.0-beta.9",
|
|
48
|
+
"@operato/help": "1.0.0-beta.9",
|
|
49
|
+
"@operato/i18n": "1.0.0-beta.9",
|
|
50
|
+
"@operato/layout": "1.0.0-beta.9",
|
|
51
|
+
"@operato/pull-to-refresh": "1.0.0-beta.9",
|
|
52
|
+
"@operato/scene-chartjs": "^1.0.0-alpha.13",
|
|
53
|
+
"@operato/scene-clock": "^1.0.0-alpha.13",
|
|
54
|
+
"@operato/scene-clone": "^1.0.0-alpha.13",
|
|
55
|
+
"@operato/scene-compass": "^1.0.0-alpha.13",
|
|
56
|
+
"@operato/scene-excel": "^1.0.0-alpha.13",
|
|
57
|
+
"@operato/scene-form": "^1.0.0-alpha.13",
|
|
58
|
+
"@operato/scene-gauge": "^1.0.0-alpha.13",
|
|
59
|
+
"@operato/scene-graphql": "^1.0.0-alpha.13",
|
|
60
|
+
"@operato/scene-grist": "^1.0.0-alpha.13",
|
|
61
|
+
"@operato/scene-half-roundrect": "^1.0.0-alpha.13",
|
|
62
|
+
"@operato/scene-i18n": "^1.0.0-alpha.13",
|
|
63
|
+
"@operato/scene-indoor-map": "^1.0.0-alpha.13",
|
|
64
|
+
"@operato/scene-integration": "^1.0.0-alpha.13",
|
|
65
|
+
"@operato/scene-label": "^1.0.0-alpha.13",
|
|
66
|
+
"@operato/scene-legend": "^1.0.0-alpha.13",
|
|
67
|
+
"@operato/scene-marker": "^1.0.0-alpha.13",
|
|
68
|
+
"@operato/scene-mqtt": "^1.0.0-alpha.13",
|
|
69
|
+
"@operato/scene-news-ticker": "^1.0.0-alpha.13",
|
|
70
|
+
"@operato/scene-progressbar": "^1.0.0-alpha.13",
|
|
71
|
+
"@operato/scene-random": "^1.0.0-alpha.13",
|
|
72
|
+
"@operato/scene-restful": "^1.0.0-alpha.13",
|
|
73
|
+
"@operato/scene-switch": "^1.0.0-alpha.13",
|
|
74
|
+
"@operato/scene-tab": "^1.0.0-alpha.13",
|
|
75
|
+
"@operato/scene-table": "^1.0.0-alpha.13",
|
|
76
|
+
"@operato/scene-timer": "^1.0.0-alpha.13",
|
|
77
|
+
"@operato/scene-wheel-sorter": "^1.0.0-alpha.13",
|
|
78
|
+
"@operato/shell": "1.0.0-beta.9",
|
|
79
|
+
"@operato/styles": "1.0.0-beta.9",
|
|
80
|
+
"@operato/utils": "1.0.0-beta.9",
|
|
81
|
+
"@things-factory/apptool-ui": "^5.0.0-alpha.41",
|
|
82
|
+
"@things-factory/attachment-ui": "^5.0.0-alpha.41",
|
|
83
|
+
"@things-factory/auth-ui": "^5.0.0-alpha.41",
|
|
84
|
+
"@things-factory/board-service": "^5.0.0-alpha.41",
|
|
85
|
+
"@things-factory/board-ui": "^5.0.0-alpha.41",
|
|
86
|
+
"@things-factory/context-ui": "^5.0.0-alpha.41",
|
|
87
|
+
"@things-factory/export-ui": "^5.0.0-alpha.41",
|
|
88
|
+
"@things-factory/fav-base": "^5.0.0-alpha.41",
|
|
89
|
+
"@things-factory/font-base": "^5.0.0-alpha.41",
|
|
90
|
+
"@things-factory/form-ui": "^5.0.0-alpha.41",
|
|
91
|
+
"@things-factory/help": "^5.0.0-alpha.41",
|
|
92
|
+
"@things-factory/i18n-base": "^5.0.0-alpha.41",
|
|
93
|
+
"@things-factory/import-ui": "^5.0.0-alpha.41",
|
|
94
|
+
"@things-factory/integration-notification": "^5.0.0-alpha.41",
|
|
95
|
+
"@things-factory/integration-ui": "^5.0.0-alpha.41",
|
|
96
|
+
"@things-factory/layout-ui": "^5.0.0-alpha.41",
|
|
97
|
+
"@things-factory/more-ui": "^5.0.0-alpha.41",
|
|
98
|
+
"@things-factory/notification": "^5.0.0-alpha.41",
|
|
99
|
+
"@things-factory/oauth2-client": "^5.0.0-alpha.41",
|
|
100
|
+
"@things-factory/offline-ui": "^5.0.0-alpha.41",
|
|
94
101
|
"@things-factory/operato-license-checker": "^3.0.4",
|
|
95
|
-
"@things-factory/pdf": "^5.0.0-alpha.
|
|
96
|
-
"@things-factory/print-service": "^5.0.0-alpha.
|
|
97
|
-
"@things-factory/print-ui": "^5.0.0-alpha.
|
|
98
|
-
"@things-factory/resource-ui": "^5.0.0-alpha.
|
|
99
|
-
"@things-factory/scene-data-transform": "^5.0.0-alpha.
|
|
100
|
-
"@things-factory/scene-google-map": "^5.0.0-alpha.
|
|
101
|
-
"@things-factory/scene-visualizer": "^5.0.0-alpha.
|
|
102
|
-
"@things-factory/screencast-ui": "^5.0.0-alpha.
|
|
103
|
-
"@things-factory/setting-ui": "^5.0.0-alpha.
|
|
104
|
-
"@things-factory/system-ui": "^5.0.0-alpha.
|
|
102
|
+
"@things-factory/pdf": "^5.0.0-alpha.41",
|
|
103
|
+
"@things-factory/print-service": "^5.0.0-alpha.41",
|
|
104
|
+
"@things-factory/print-ui": "^5.0.0-alpha.41",
|
|
105
|
+
"@things-factory/resource-ui": "^5.0.0-alpha.41",
|
|
106
|
+
"@things-factory/scene-data-transform": "^5.0.0-alpha.41",
|
|
107
|
+
"@things-factory/scene-google-map": "^5.0.0-alpha.41",
|
|
108
|
+
"@things-factory/scene-visualizer": "^5.0.0-alpha.41",
|
|
109
|
+
"@things-factory/screencast-ui": "^5.0.0-alpha.41",
|
|
110
|
+
"@things-factory/setting-ui": "^5.0.0-alpha.41",
|
|
111
|
+
"@things-factory/system-ui": "^5.0.0-alpha.41"
|
|
105
112
|
},
|
|
106
113
|
"devDependencies": {
|
|
107
|
-
"@things-factory/board-test": "^5.0.0-alpha.
|
|
108
|
-
"@things-factory/builder": "^5.0.0-alpha.
|
|
114
|
+
"@things-factory/board-test": "^5.0.0-alpha.41",
|
|
115
|
+
"@things-factory/builder": "^5.0.0-alpha.41"
|
|
109
116
|
},
|
|
110
117
|
"resolutions": {},
|
|
111
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "f9ba0b3b997862b3d01c5b25338ce221d71f4fd7"
|
|
112
119
|
}
|
package/translations/en.json
CHANGED
|
@@ -13,5 +13,16 @@
|
|
|
13
13
|
"error.license key is not certified": "License Key is not certified!",
|
|
14
14
|
"error.invalid license key": "Invalid license key!",
|
|
15
15
|
"error.license expiration notice": "License Expiration Notice",
|
|
16
|
-
"error.your license due date is x, please renewal your license!": "Your license due date is {x}, please renewal your license!"
|
|
17
|
-
}
|
|
16
|
+
"error.your license due date is x, please renewal your license!": "Your license due date is {x}, please renewal your license!",
|
|
17
|
+
"text.board created": "board '{board}' is created successfully",
|
|
18
|
+
"text.board updated": "board '{board}' is updated successfully",
|
|
19
|
+
"text.board deleted": "board '{board}' is deleted successfully",
|
|
20
|
+
"text.group created": "group '{group}' is created successfully",
|
|
21
|
+
"text.group updated": "group '{group}' is updated successfully",
|
|
22
|
+
"text.group deleted": "group '{group}' is deleted successfully",
|
|
23
|
+
"text.play-group created": "play-group '{playGroup}' is created successfully",
|
|
24
|
+
"text.play-group updated": "play-group '{playGroup}' is updated successfully",
|
|
25
|
+
"text.play-group deleted": "play-group '{playGroup}' is deleted successfully",
|
|
26
|
+
"text.joined into play-group": "board '{board}' joined into play-group '{playGroup}'",
|
|
27
|
+
"text.leaved from play-group": "board '{board}' leaved from play-group '{playGroup}'"
|
|
28
|
+
}
|
package/translations/ko.json
CHANGED
|
@@ -13,5 +13,16 @@
|
|
|
13
13
|
"error.license key is not certified": "라이센스가 인증되지 않았습니다!",
|
|
14
14
|
"error.invalid license key": "라이센스가 유효하지 않습니다!",
|
|
15
15
|
"error.license expiration notice": "라이선스 만료예정 알림",
|
|
16
|
-
"error.your license due date is x, please renewal your license!": "라이센스 기한은 {x}입니다. 라이센스를 갱신하십시오!"
|
|
17
|
-
}
|
|
16
|
+
"error.your license due date is x, please renewal your license!": "라이센스 기한은 {x}입니다. 라이센스를 갱신하십시오!",
|
|
17
|
+
"text.board created": "보드 '{board}'이 생성되었습니다",
|
|
18
|
+
"text.board updated": "보드 '{board}'이 수정되었습니다",
|
|
19
|
+
"text.board deleted": "보드 '{board}'이 삭제되었습니다",
|
|
20
|
+
"text.group created": "그룹 '{group}'이 생성되었습니다",
|
|
21
|
+
"text.group updated": "그룹 '{group}'이 수정되었습니다",
|
|
22
|
+
"text.group deleted": "그룹 '{group}'이 삭제되었습니다",
|
|
23
|
+
"text.play-group created": "플레이그룹 '{playGroup}'이 생성되었습니다",
|
|
24
|
+
"text.play-group updated": "플레이그룹 '{playGroup}'이 수정되었습니다",
|
|
25
|
+
"text.play-group deleted": "플레이그룹 '{playGroup}'이 삭제되었습니다",
|
|
26
|
+
"text.joined into play-group": "보드 '{board}'가 플레이그룹 '{playGroup}'에 추가되었습니다",
|
|
27
|
+
"text.leaved from play-group": "보드 '{board}'가 플레이그룹 '{playGroup}'에서 제거되었습니다"
|
|
28
|
+
}
|
package/translations/ms.json
CHANGED
|
@@ -13,5 +13,16 @@
|
|
|
13
13
|
"error.license key is not certified": "[ms] License Key is not certified!",
|
|
14
14
|
"error.invalid license key": "[ms] Invalid license key!",
|
|
15
15
|
"error.license expiration notice": "[ms] License Expiration Notice",
|
|
16
|
-
"error.your license due date is x, please renewal your license!": "[ms] Your license due date is {x}, please renewal your license!"
|
|
17
|
-
}
|
|
16
|
+
"error.your license due date is x, please renewal your license!": "[ms] Your license due date is {x}, please renewal your license!",
|
|
17
|
+
"text.board created": "board '{board}' is created successfully",
|
|
18
|
+
"text.board updated": "board '{board}' is updated successfully",
|
|
19
|
+
"text.board deleted": "board '{board}' is deleted successfully",
|
|
20
|
+
"text.group created": "group '{group}' is created successfully",
|
|
21
|
+
"text.group updated": "group '{group}' is updated successfully",
|
|
22
|
+
"text.group deleted": "group '{group}' is deleted successfully",
|
|
23
|
+
"text.play-group created": "play-group '{playGroup}' is created successfully",
|
|
24
|
+
"text.play-group updated": "play-group '{playGroup}' is updated successfully",
|
|
25
|
+
"text.play-group deleted": "play-group '{playGroup}' is deleted successfully",
|
|
26
|
+
"text.joined into play-group": "board '{board}' joined into play-group '{playGroup}'",
|
|
27
|
+
"text.leaved from play-group": "board '{board}' leaved from play-group '{playGroup}'"
|
|
28
|
+
}
|
package/translations/zh.json
CHANGED
|
@@ -13,5 +13,16 @@
|
|
|
13
13
|
"error.license key is not certified": "许可证密钥未通过认证!",
|
|
14
14
|
"error.invalid license key": "无效的许可证密钥!",
|
|
15
15
|
"error.license expiration notice": "许可证到期提醒",
|
|
16
|
-
"error.your license due date is x, please renewal your license!": "您的许可证到期日期为{x},请续订您的许可证!"
|
|
17
|
-
}
|
|
16
|
+
"error.your license due date is x, please renewal your license!": "您的许可证到期日期为{x},请续订您的许可证!",
|
|
17
|
+
"text.board created": "board '{board}' is created successfully",
|
|
18
|
+
"text.board updated": "board '{board}' is updated successfully",
|
|
19
|
+
"text.board deleted": "board '{board}' is deleted successfully",
|
|
20
|
+
"text.group created": "group '{group}' is created successfully",
|
|
21
|
+
"text.group updated": "group '{group}' is updated successfully",
|
|
22
|
+
"text.group deleted": "group '{group}' is deleted successfully",
|
|
23
|
+
"text.play-group created": "play-group '{playGroup}' is created successfully",
|
|
24
|
+
"text.play-group updated": "play-group '{playGroup}' is updated successfully",
|
|
25
|
+
"text.play-group deleted": "play-group '{playGroup}' is deleted successfully",
|
|
26
|
+
"text.joined into play-group": "board '{board}' joined into play-group '{playGroup}'",
|
|
27
|
+
"text.leaved from play-group": "board '{board}' leaved from play-group '{playGroup}'"
|
|
28
|
+
}
|