@things-factory/reference-app 8.0.6 → 9.0.0-beta.10
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/.dockerignore +31 -0
- package/client/pages/grist-filters.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +64 -64
- package/installer/config.production.js +0 -52
- package/installer/docker-compose.yml +0 -55
- package/installer/install.sh +0 -54
- package/installer/migrate.sh +0 -1
- package/installer/start.sh +0 -18
- package/installer/stop.sh +0 -1
- package/installer/upgrade.sh +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/reference-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-beta.10",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -39,72 +39,72 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@material/mwc-checkbox": "^0.27.0",
|
|
41
41
|
"@material/mwc-formfield": "^0.27.0",
|
|
42
|
-
"@operato/barcode": "^
|
|
43
|
-
"@operato/data-grist": "^
|
|
44
|
-
"@operato/data-tree": "^
|
|
45
|
-
"@operato/event-view": "^
|
|
46
|
-
"@operato/ghost-print": "^
|
|
47
|
-
"@operato/graphql": "^
|
|
48
|
-
"@operato/help": "^
|
|
49
|
-
"@operato/i18n": "^
|
|
50
|
-
"@operato/input": "^
|
|
51
|
-
"@operato/layout": "^
|
|
52
|
-
"@operato/moment-timezone-es": "^
|
|
53
|
-
"@operato/ocr": "^
|
|
54
|
-
"@operato/oops": "^
|
|
55
|
-
"@operato/popup": "^
|
|
56
|
-
"@operato/pull-to-refresh": "^
|
|
57
|
-
"@operato/scene-chartjs": "^
|
|
58
|
-
"@operato/scene-clock": "^
|
|
59
|
-
"@operato/scene-form": "^
|
|
60
|
-
"@operato/scene-gauge": "^
|
|
61
|
-
"@operato/scene-half-roundrect": "^
|
|
62
|
-
"@operato/scene-indoor-map": "^
|
|
63
|
-
"@operato/scene-news-ticker": "^
|
|
64
|
-
"@operato/scene-progressbar": "^
|
|
65
|
-
"@operato/scene-random": "^
|
|
66
|
-
"@operato/scene-switch": "^
|
|
67
|
-
"@operato/scene-tab": "^
|
|
68
|
-
"@operato/shell": "^
|
|
69
|
-
"@operato/utils": "^
|
|
70
|
-
"@things-factory/api": "^
|
|
71
|
-
"@things-factory/apptool-ui": "^
|
|
72
|
-
"@things-factory/attachment-base": "^
|
|
73
|
-
"@things-factory/auth-ui": "^
|
|
74
|
-
"@things-factory/board-service": "^
|
|
75
|
-
"@things-factory/board-ui": "^
|
|
76
|
-
"@things-factory/ccp": "^
|
|
77
|
-
"@things-factory/code-ui": "^
|
|
78
|
-
"@things-factory/contact": "^
|
|
79
|
-
"@things-factory/context-ui": "^
|
|
80
|
-
"@things-factory/dashboard": "^
|
|
81
|
-
"@things-factory/dataset": "^
|
|
82
|
-
"@things-factory/evaluation": "^
|
|
83
|
-
"@things-factory/export-ui": "^
|
|
84
|
-
"@things-factory/export-ui-excel": "^
|
|
85
|
-
"@things-factory/help": "^
|
|
86
|
-
"@things-factory/integration-ui": "^
|
|
87
|
-
"@things-factory/lite-menu": "^
|
|
88
|
-
"@things-factory/more-ui": "^
|
|
89
|
-
"@things-factory/notification": "^
|
|
90
|
-
"@things-factory/oauth2-client": "^
|
|
91
|
-
"@things-factory/organization": "^
|
|
92
|
-
"@things-factory/print-ui": "^
|
|
93
|
-
"@things-factory/product-base": "^
|
|
94
|
-
"@things-factory/qc": "^
|
|
95
|
-
"@things-factory/resource-ui": "^
|
|
96
|
-
"@things-factory/routing-base": "^
|
|
97
|
-
"@things-factory/setting-base": "^
|
|
98
|
-
"@things-factory/setting-ui": "^
|
|
99
|
-
"@things-factory/shell": "^
|
|
100
|
-
"@things-factory/system": "^
|
|
101
|
-
"@things-factory/web-editor": "^
|
|
102
|
-
"@things-factory/work-shift": "^
|
|
42
|
+
"@operato/barcode": "^9.0.0-beta",
|
|
43
|
+
"@operato/data-grist": "^9.0.0-beta",
|
|
44
|
+
"@operato/data-tree": "^9.0.0-beta",
|
|
45
|
+
"@operato/event-view": "^9.0.0-beta",
|
|
46
|
+
"@operato/ghost-print": "^9.0.0-beta",
|
|
47
|
+
"@operato/graphql": "^9.0.0-beta",
|
|
48
|
+
"@operato/help": "^9.0.0-beta",
|
|
49
|
+
"@operato/i18n": "^9.0.0-beta",
|
|
50
|
+
"@operato/input": "^9.0.0-beta",
|
|
51
|
+
"@operato/layout": "^9.0.0-beta",
|
|
52
|
+
"@operato/moment-timezone-es": "^9.0.0-beta",
|
|
53
|
+
"@operato/ocr": "^9.0.0-beta",
|
|
54
|
+
"@operato/oops": "^9.0.0-beta",
|
|
55
|
+
"@operato/popup": "^9.0.0-beta",
|
|
56
|
+
"@operato/pull-to-refresh": "^9.0.0-beta",
|
|
57
|
+
"@operato/scene-chartjs": "^9.0.0-beta",
|
|
58
|
+
"@operato/scene-clock": "^9.0.0-beta",
|
|
59
|
+
"@operato/scene-form": "^9.0.0-beta",
|
|
60
|
+
"@operato/scene-gauge": "^9.0.0-beta",
|
|
61
|
+
"@operato/scene-half-roundrect": "^9.0.0-beta",
|
|
62
|
+
"@operato/scene-indoor-map": "^9.0.0-beta",
|
|
63
|
+
"@operato/scene-news-ticker": "^9.0.0-beta",
|
|
64
|
+
"@operato/scene-progressbar": "^9.0.0-beta",
|
|
65
|
+
"@operato/scene-random": "^9.0.0-beta",
|
|
66
|
+
"@operato/scene-switch": "^9.0.0-beta",
|
|
67
|
+
"@operato/scene-tab": "^9.0.0-beta",
|
|
68
|
+
"@operato/shell": "^9.0.0-beta",
|
|
69
|
+
"@operato/utils": "^9.0.0-beta",
|
|
70
|
+
"@things-factory/api": "^9.0.0-beta.8",
|
|
71
|
+
"@things-factory/apptool-ui": "^9.0.0-beta.8",
|
|
72
|
+
"@things-factory/attachment-base": "^9.0.0-beta.8",
|
|
73
|
+
"@things-factory/auth-ui": "^9.0.0-beta.8",
|
|
74
|
+
"@things-factory/board-service": "^9.0.0-beta.8",
|
|
75
|
+
"@things-factory/board-ui": "^9.0.0-beta.10",
|
|
76
|
+
"@things-factory/ccp": "^9.0.0-beta.8",
|
|
77
|
+
"@things-factory/code-ui": "^9.0.0-beta.8",
|
|
78
|
+
"@things-factory/contact": "^9.0.0-beta.8",
|
|
79
|
+
"@things-factory/context-ui": "^9.0.0-beta.8",
|
|
80
|
+
"@things-factory/dashboard": "^9.0.0-beta.10",
|
|
81
|
+
"@things-factory/dataset": "^9.0.0-beta.8",
|
|
82
|
+
"@things-factory/evaluation": "^9.0.0-beta.8",
|
|
83
|
+
"@things-factory/export-ui": "^9.0.0-beta.8",
|
|
84
|
+
"@things-factory/export-ui-excel": "^9.0.0-beta.8",
|
|
85
|
+
"@things-factory/help": "^9.0.0-beta.8",
|
|
86
|
+
"@things-factory/integration-ui": "^9.0.0-beta.8",
|
|
87
|
+
"@things-factory/lite-menu": "^9.0.0-beta.10",
|
|
88
|
+
"@things-factory/more-ui": "^9.0.0-beta.8",
|
|
89
|
+
"@things-factory/notification": "^9.0.0-beta.8",
|
|
90
|
+
"@things-factory/oauth2-client": "^9.0.0-beta.8",
|
|
91
|
+
"@things-factory/organization": "^9.0.0-beta.8",
|
|
92
|
+
"@things-factory/print-ui": "^9.0.0-beta.8",
|
|
93
|
+
"@things-factory/product-base": "^9.0.0-beta.8",
|
|
94
|
+
"@things-factory/qc": "^9.0.0-beta.8",
|
|
95
|
+
"@things-factory/resource-ui": "^9.0.0-beta.8",
|
|
96
|
+
"@things-factory/routing-base": "^9.0.0-beta.8",
|
|
97
|
+
"@things-factory/setting-base": "^9.0.0-beta.8",
|
|
98
|
+
"@things-factory/setting-ui": "^9.0.0-beta.8",
|
|
99
|
+
"@things-factory/shell": "^9.0.0-beta.8",
|
|
100
|
+
"@things-factory/system": "^9.0.0-beta.8",
|
|
101
|
+
"@things-factory/web-editor": "^9.0.0-beta.8",
|
|
102
|
+
"@things-factory/work-shift": "^9.0.0-beta.8",
|
|
103
103
|
"@tinymce/tinymce-webcomponent": "^2.0.1",
|
|
104
104
|
"random-words": "^1.2.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@things-factory/builder": "^
|
|
107
|
+
"@things-factory/builder": "^9.0.0-beta.7"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "e2fa10e8d0be8d21c14abb7bada66d1fbb7af051"
|
|
110
110
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dAC95', // should be changed
|
|
3
|
-
email: {
|
|
4
|
-
host: 'smtp.office365.com', // your sender-email smtp host
|
|
5
|
-
port: 587, // smtp server port
|
|
6
|
-
secure: false, // true for 465, false for other ports
|
|
7
|
-
auth: {
|
|
8
|
-
user: 'your sender-email',
|
|
9
|
-
pass: 'your sender-email password' // generated ethereal password
|
|
10
|
-
},
|
|
11
|
-
secureConnection: false,
|
|
12
|
-
tls: {
|
|
13
|
-
ciphers: 'SSLv3'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
logger: {
|
|
17
|
-
file: {
|
|
18
|
-
filename: 'logs/application-%DATE%.log',
|
|
19
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
20
|
-
zippedArchive: false,
|
|
21
|
-
maxSize: '20m',
|
|
22
|
-
maxFiles: '2d',
|
|
23
|
-
level: 'info'
|
|
24
|
-
},
|
|
25
|
-
console: {
|
|
26
|
-
level: 'silly'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
ormconfig: {
|
|
30
|
-
name: 'default',
|
|
31
|
-
type: 'postgres',
|
|
32
|
-
host: 'postgres',
|
|
33
|
-
port: 5432,
|
|
34
|
-
database: 'postgres',
|
|
35
|
-
username: 'postgres',
|
|
36
|
-
password: 'abcd1234',
|
|
37
|
-
synchronize: true,
|
|
38
|
-
logging: true
|
|
39
|
-
},
|
|
40
|
-
scheduler: {
|
|
41
|
-
/* Name to be used for setting client's "application" properties when registering a schedule */
|
|
42
|
-
application: 'reference-app',
|
|
43
|
-
/* Base endpoint to be used for setting "callback" properties when registering a schedule */
|
|
44
|
-
callbackBase: 'http://app:3000',
|
|
45
|
-
/*
|
|
46
|
-
Scheduler service endpoint
|
|
47
|
-
caution) endpoint for "localhost" has some problem.
|
|
48
|
-
https://github.com/node-fetch/node-fetch/issues/1624
|
|
49
|
-
*/
|
|
50
|
-
endpoint: 'http://scheduler:9902'
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
version: '3'
|
|
2
|
-
services:
|
|
3
|
-
nginx:
|
|
4
|
-
image: hatiolab/operato-nginx:latest
|
|
5
|
-
ports:
|
|
6
|
-
- ${HostPort}:80
|
|
7
|
-
depends_on:
|
|
8
|
-
- app
|
|
9
|
-
app:
|
|
10
|
-
build: .
|
|
11
|
-
container_name: reference-app
|
|
12
|
-
image: hatiolab/reference-app:latest
|
|
13
|
-
privileged: true
|
|
14
|
-
volumes:
|
|
15
|
-
- ./logs:/app/logs
|
|
16
|
-
- ./config.production.js:/app/config.production.js
|
|
17
|
-
ports:
|
|
18
|
-
- 4000:3000
|
|
19
|
-
depends_on:
|
|
20
|
-
- postgres
|
|
21
|
-
- mosquitto
|
|
22
|
-
- scheduler
|
|
23
|
-
logging:
|
|
24
|
-
driver: 'json-file'
|
|
25
|
-
options:
|
|
26
|
-
max-size: '100m'
|
|
27
|
-
max-file: '3'
|
|
28
|
-
postgres:
|
|
29
|
-
image: postgres:13.2
|
|
30
|
-
container_name: db-reference-app
|
|
31
|
-
environment:
|
|
32
|
-
POSTGRES_PASSWORD: abcd1234
|
|
33
|
-
POSTGRES_USER: postgres
|
|
34
|
-
PGDATA: /var/lib/postgresql/data/pgdata
|
|
35
|
-
volumes:
|
|
36
|
-
- ./postgres_data:/var/lib/postgresql/data/pgdata
|
|
37
|
-
ports:
|
|
38
|
-
- '55432:5432'
|
|
39
|
-
mosquitto:
|
|
40
|
-
image: eclipse-mosquitto:latest
|
|
41
|
-
ports:
|
|
42
|
-
- 1883:1883
|
|
43
|
-
- 9001:9001
|
|
44
|
-
scheduler:
|
|
45
|
-
image: hatiolab/schevt-mgr:latest
|
|
46
|
-
container_name: scheduler
|
|
47
|
-
volumes:
|
|
48
|
-
- ./config.yaml:/app/config.yaml
|
|
49
|
-
ports:
|
|
50
|
-
- '9902:9902'
|
|
51
|
-
logging:
|
|
52
|
-
driver: 'json-file'
|
|
53
|
-
options:
|
|
54
|
-
max-size: '100m'
|
|
55
|
-
max-file: '3'
|
package/installer/install.sh
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
if [ -f "config.production.js" ] ; then
|
|
2
|
-
echo "config.production.js exist"
|
|
3
|
-
else
|
|
4
|
-
echo "config.production.js create"
|
|
5
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/config.production.js
|
|
6
|
-
fi
|
|
7
|
-
|
|
8
|
-
if [ -f "start.sh" ] ; then
|
|
9
|
-
echo "start.sh exist"
|
|
10
|
-
else
|
|
11
|
-
echo "start.sh create"
|
|
12
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/start.sh
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
if [ -f "stop.sh" ] ; then
|
|
16
|
-
echo "stop.sh exist"
|
|
17
|
-
else
|
|
18
|
-
echo "stop.sh create"
|
|
19
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/stop.sh
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
if [ -f "upgrade.sh" ] ; then
|
|
23
|
-
echo "upgrade.sh exist"
|
|
24
|
-
else
|
|
25
|
-
echo "upgrade.sh create"
|
|
26
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/upgrade.sh
|
|
27
|
-
fi
|
|
28
|
-
|
|
29
|
-
if [ -f "migrate.sh" ] ; then
|
|
30
|
-
echo "migrate.sh exist"
|
|
31
|
-
else
|
|
32
|
-
echo "migrate.sh create"
|
|
33
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/migrate.sh
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
if [ -f "docker-compose.yml" ] ; then
|
|
37
|
-
echo "docker-compose.yml exist"
|
|
38
|
-
else
|
|
39
|
-
echo "docker-compose.yml create"
|
|
40
|
-
curl -O https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/docker-compose.yml
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
chmod u+x start.sh
|
|
44
|
-
chmod u+x stop.sh
|
|
45
|
-
chmod u+x upgrade.sh
|
|
46
|
-
chmod u+x migrate.sh
|
|
47
|
-
|
|
48
|
-
echo "HostPort=3000" > .env
|
|
49
|
-
|
|
50
|
-
docker pull hatiolab/reference-app:latest
|
|
51
|
-
|
|
52
|
-
docker pull hatiolab/operato-nginx:latest
|
|
53
|
-
|
|
54
|
-
docker-compose create
|
package/installer/migrate.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker exec -it reference-app npm run migration -- --mode=production
|
package/installer/start.sh
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
HOST_PORT=3000
|
|
2
|
-
|
|
3
|
-
if [ $# -eq 0 ] ; then
|
|
4
|
-
echo "Warning: default port 3000"
|
|
5
|
-
else
|
|
6
|
-
HOST_PORT=$1
|
|
7
|
-
fi
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
echo "HOST_PORT : ${HOST_PORT}"
|
|
11
|
-
|
|
12
|
-
echo "HostPort="$HOST_PORT > .env
|
|
13
|
-
|
|
14
|
-
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
15
|
-
xhost +"local:docker@"
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
docker-compose up -d
|
package/installer/stop.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
docker-compose stop
|
package/installer/upgrade.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/reference-app/installer/install.sh | bash -s
|