@things-factory/operato-pms 3.6.36 → 3.6.45

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.
@@ -1,11 +1,15 @@
1
- import { MultiColumnFormStyles } from '@things-factory/form-ui'
2
1
  import '@things-factory/grist-ui'
2
+
3
+ import gql from 'graphql-tag'
4
+ import { css, html } from 'lit-element'
5
+
6
+ import { GhostPrint } from '@operato/ghost-print'
7
+ import { MultiColumnFormStyles } from '@things-factory/form-ui'
3
8
  import { i18next, localize } from '@things-factory/i18n-base'
4
9
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
5
10
  import { CommonButtonStyles } from '@things-factory/styles'
6
11
  import { isMobileDevice } from '@things-factory/utils'
7
- import gql from 'graphql-tag'
8
- import { css, html } from 'lit-element'
12
+
9
13
  import { RECORD_STATUS } from '../constants'
10
14
 
11
15
  class DailyDispatchDetail extends localize(i18next)(PageView) {
@@ -401,16 +405,9 @@ class DailyDispatchDetail extends localize(i18next)(PageView) {
401
405
 
402
406
  _renderAndPrintDocument() {
403
407
  var timezoneOffSet = new Date().getTimezoneOffset().toString()
404
-
405
- const iframe = document.createElement('iframe')
406
- iframe.style.display = 'none'
407
- document.body.appendChild(iframe)
408
-
409
- iframe.src = `/view_document_dispatch/${this._dispatchNo}/${timezoneOffSet}`
410
- iframe.onload = () => {
411
- iframe.focus()
412
- iframe.contentWindow.print()
413
- }
408
+ GhostPrint.print({
409
+ src: `/view_document_dispatch/${this._dispatchNo}/${timezoneOffSet}`
410
+ })
414
411
  }
415
412
 
416
413
  _clearView() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-pms",
3
- "version": "3.6.36",
3
+ "version": "3.6.45",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -38,62 +38,63 @@
38
38
  "docker:run": "docker run -p 4000:3000 hatiolab/operato-pms:latest"
39
39
  },
40
40
  "dependencies": {
41
- "@things-factory/apptool-ui": "^3.6.35",
42
- "@things-factory/auth-ui": "^3.6.35",
43
- "@things-factory/biz-base": "^3.6.36",
44
- "@things-factory/board-service": "^3.6.35",
45
- "@things-factory/board-ui": "^3.6.35",
46
- "@things-factory/code-ui": "^3.6.35",
47
- "@things-factory/context-ui": "^3.6.35",
48
- "@things-factory/dashboard": "^3.6.35",
49
- "@things-factory/document-template-ui": "^3.6.35",
50
- "@things-factory/export-ui": "^3.6.35",
51
- "@things-factory/export-ui-csv": "^3.6.35",
52
- "@things-factory/export-ui-excel": "^3.6.35",
53
- "@things-factory/fav-base": "^3.6.35",
54
- "@things-factory/form-ui": "^3.6.35",
55
- "@things-factory/grist-ui": "^3.6.33",
56
- "@things-factory/help": "^3.6.35",
57
- "@things-factory/i18n-ui": "^3.6.35",
58
- "@things-factory/import-ui": "^3.6.35",
59
- "@things-factory/import-ui-excel": "^3.6.35",
60
- "@things-factory/lite-menu": "^3.6.35",
61
- "@things-factory/more-ui": "^3.6.35",
62
- "@things-factory/notification": "^3.6.35",
63
- "@things-factory/print-ui": "^3.6.35",
64
- "@things-factory/resource-ui": "^3.6.35",
65
- "@things-factory/scene-chartjs": "^3.6.33",
66
- "@things-factory/scene-clock": "^3.6.33",
67
- "@things-factory/scene-clone": "^3.6.33",
68
- "@things-factory/scene-compass": "^3.6.33",
69
- "@things-factory/scene-data-transform": "^3.6.33",
70
- "@things-factory/scene-excel": "^3.6.33",
71
- "@things-factory/scene-firebase": "^3.6.33",
72
- "@things-factory/scene-form": "^3.6.33",
73
- "@things-factory/scene-gauge": "^3.6.33",
74
- "@things-factory/scene-google-map": "^3.6.33",
75
- "@things-factory/scene-graphql": "^3.6.33",
76
- "@things-factory/scene-half-roundrect": "^3.6.33",
77
- "@things-factory/scene-indoor-map": "^3.6.33",
78
- "@things-factory/scene-label": "^3.6.35",
79
- "@things-factory/scene-legend": "^3.6.33",
80
- "@things-factory/scene-marker": "^3.6.33",
81
- "@things-factory/scene-mqtt": "^3.6.33",
82
- "@things-factory/scene-news-ticker": "^3.6.33",
83
- "@things-factory/scene-progressbar": "^3.6.33",
84
- "@things-factory/scene-random": "^3.6.33",
85
- "@things-factory/scene-restful": "^3.6.33",
86
- "@things-factory/scene-switch": "^3.6.33",
87
- "@things-factory/scene-tab": "^3.6.33",
88
- "@things-factory/scene-table": "^3.6.33",
89
- "@things-factory/scene-visualizer": "^3.6.33",
90
- "@things-factory/scene-wheel-sorter": "^3.6.33",
91
- "@things-factory/setting-ui": "^3.6.35",
92
- "@things-factory/shell": "^3.6.35",
93
- "@things-factory/system-ui": "^3.6.35"
41
+ "@operato/ghost-print": "0.1.14",
42
+ "@things-factory/apptool-ui": "^3.6.45",
43
+ "@things-factory/auth-ui": "^3.6.45",
44
+ "@things-factory/biz-base": "^3.6.45",
45
+ "@things-factory/board-service": "^3.6.45",
46
+ "@things-factory/board-ui": "^3.6.45",
47
+ "@things-factory/code-ui": "^3.6.45",
48
+ "@things-factory/context-ui": "^3.6.45",
49
+ "@things-factory/dashboard": "^3.6.45",
50
+ "@things-factory/document-template-ui": "^3.6.45",
51
+ "@things-factory/export-ui": "^3.6.45",
52
+ "@things-factory/export-ui-csv": "^3.6.45",
53
+ "@things-factory/export-ui-excel": "^3.6.45",
54
+ "@things-factory/fav-base": "^3.6.45",
55
+ "@things-factory/form-ui": "^3.6.45",
56
+ "@things-factory/grist-ui": "^3.6.45",
57
+ "@things-factory/help": "^3.6.45",
58
+ "@things-factory/i18n-ui": "^3.6.45",
59
+ "@things-factory/import-ui": "^3.6.45",
60
+ "@things-factory/import-ui-excel": "^3.6.45",
61
+ "@things-factory/lite-menu": "^3.6.45",
62
+ "@things-factory/more-ui": "^3.6.45",
63
+ "@things-factory/notification": "^3.6.45",
64
+ "@things-factory/print-ui": "^3.6.45",
65
+ "@things-factory/resource-ui": "^3.6.45",
66
+ "@things-factory/scene-chartjs": "^3.6.45",
67
+ "@things-factory/scene-clock": "^3.6.45",
68
+ "@things-factory/scene-clone": "^3.6.45",
69
+ "@things-factory/scene-compass": "^3.6.45",
70
+ "@things-factory/scene-data-transform": "^3.6.45",
71
+ "@things-factory/scene-excel": "^3.6.45",
72
+ "@things-factory/scene-firebase": "^3.6.45",
73
+ "@things-factory/scene-form": "^3.6.45",
74
+ "@things-factory/scene-gauge": "^3.6.45",
75
+ "@things-factory/scene-google-map": "^3.6.45",
76
+ "@things-factory/scene-graphql": "^3.6.45",
77
+ "@things-factory/scene-half-roundrect": "^3.6.45",
78
+ "@things-factory/scene-indoor-map": "^3.6.45",
79
+ "@things-factory/scene-label": "^3.6.45",
80
+ "@things-factory/scene-legend": "^3.6.45",
81
+ "@things-factory/scene-marker": "^3.6.45",
82
+ "@things-factory/scene-mqtt": "^3.6.45",
83
+ "@things-factory/scene-news-ticker": "^3.6.45",
84
+ "@things-factory/scene-progressbar": "^3.6.45",
85
+ "@things-factory/scene-random": "^3.6.45",
86
+ "@things-factory/scene-restful": "^3.6.45",
87
+ "@things-factory/scene-switch": "^3.6.45",
88
+ "@things-factory/scene-tab": "^3.6.45",
89
+ "@things-factory/scene-table": "^3.6.45",
90
+ "@things-factory/scene-visualizer": "^3.6.45",
91
+ "@things-factory/scene-wheel-sorter": "^3.6.45",
92
+ "@things-factory/setting-ui": "^3.6.45",
93
+ "@things-factory/shell": "^3.6.45",
94
+ "@things-factory/system-ui": "^3.6.45"
94
95
  },
95
96
  "devDependencies": {
96
- "@things-factory/builder": "^3.6.33"
97
+ "@things-factory/builder": "^3.6.45"
97
98
  },
98
- "gitHead": "f61b2a535fa53ebafbfad85d42efa81667c02017"
99
+ "gitHead": "a56491c920df03e4b3806923b9abb547efb39d83"
99
100
  }
@@ -1,60 +0,0 @@
1
- module.exports = {
2
- ormconfig: {
3
- name: 'default',
4
- type: 'postgres',
5
- database: 'postgres',
6
- username: 'postgres',
7
- password: 'abcd1234',
8
- host: 'localhost',
9
- port: 25432,
10
- synchronize: true,
11
- logging: true
12
- },
13
- SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
14
- reportApiUrl: 'http://localhost:8090/rest/report/show_html',
15
- storage: {
16
- type: 's3',
17
- accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
18
- secretAccessKey: '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',
19
- bucketName: 'opa-one'
20
- },
21
- useVirtualHostBasedDomain: false,
22
- fallbackRoute: '/',
23
- email: {
24
- host: 'smtp.office365.com',
25
- port: 587,
26
- secure: false, // true for 465, false for other ports
27
- auth: {
28
- user: 'no-reply@hatiolab.com', // generated ethereal user
29
- pass: 'h@ti0LAB1008' // generated ethereal password
30
- },
31
- secureConnection: false,
32
- tls: {
33
- ciphers: 'SSLv3'
34
- },
35
- sender: 'no-reply@hatiolab.com'
36
- },
37
- notification: {
38
- fcm: {
39
- serviceAccount: {
40
- project_id: 'operato',
41
- private_key:
42
- '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1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Kzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
43
- client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
44
- },
45
- appConfig: {
46
- apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
47
- projectId: 'operato',
48
- messagingSenderId: 79537064975,
49
- appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
50
- },
51
- serverKey:
52
- 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
53
- },
54
- vapidKey: {
55
- subject: 'mailto:heartyoh@hatiolab.com',
56
- publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
57
- privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
58
- }
59
- }
60
- }