@things-factory/operato-tools 8.0.6 → 9.0.0-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/_index.html +1 -2
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/views/auth-page.html +1 -2
- package/views/public/home.html +1 -2
- package/db.sqlite +0 -0
- package/installer/config.production.js +0 -40
- package/installer/docker-compose.yml +0 -42
- 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/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +0 -15
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +0 -15
- package/logs/application-2023-12-12-14.log +0 -60
- package/logs/connections-2023-12-12-14.log +0 -2
- package/server/index.ts +0 -1
- package/server/service/index.ts +0 -15
- package/server/service/tool-entity/create-menu.ts +0 -338
- package/server/service/tool-entity/create-service.ts +0 -1160
- package/server/service/tool-entity/index.ts +0 -4
- package/server/tsconfig.json +0 -9
- package/tsconfig.json +0 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/operato-tools",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.0-beta.12",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -38,8 +38,8 @@
|
|
38
38
|
"@things-factory/operato-license-checker": "^4.0.4"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
|
-
"@things-factory/builder": "^
|
42
|
-
"@things-factory/meta-ui": "^
|
41
|
+
"@things-factory/builder": "^9.0.0-beta.12",
|
42
|
+
"@things-factory/meta-ui": "^9.0.0-beta.12"
|
43
43
|
},
|
44
|
-
"gitHead": "
|
44
|
+
"gitHead": "5e9ade1c2d4b4c96b89396e36c3afa1caaf18ef0"
|
45
45
|
}
|
package/views/auth-page.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8" />
|
5
5
|
<title>Operato Tools</title>
|
6
6
|
<meta name="generator" content="Things Factory Starter Kit" />
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
8
8
|
<meta name="description" content="Heart of Logistics" />
|
9
9
|
|
10
10
|
<base href="/" />
|
@@ -50,7 +50,6 @@
|
|
50
50
|
|
51
51
|
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
|
52
52
|
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
|
53
|
-
<link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
|
54
53
|
<link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
|
55
54
|
<link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
|
56
55
|
<link rel="stylesheet" href="/theme.css" />
|
package/views/public/home.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8" />
|
5
5
|
<title>Operato Tools</title>
|
6
6
|
<meta name="generator" content="Things Factory Starter Kit" />
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
8
8
|
<meta name="description" content="Heart of Logistics" />
|
9
9
|
|
10
10
|
<base href="/" />
|
@@ -50,7 +50,6 @@
|
|
50
50
|
|
51
51
|
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
|
52
52
|
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
|
53
|
-
<link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
|
54
53
|
<link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
|
55
54
|
<link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
|
56
55
|
<link rel="stylesheet" href="/theme.css" />
|
package/db.sqlite
DELETED
File without changes
|
@@ -1,40 +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
|
-
}
|
@@ -1,42 +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: operato-tools
|
12
|
-
image: hatiolab/operato-tools: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
|
-
logging:
|
23
|
-
driver: 'json-file'
|
24
|
-
options:
|
25
|
-
max-size: '100m'
|
26
|
-
max-file: '3'
|
27
|
-
postgres:
|
28
|
-
image: postgres:13.2
|
29
|
-
container_name: db-operato-tools
|
30
|
-
environment:
|
31
|
-
POSTGRES_PASSWORD: abcd1234
|
32
|
-
POSTGRES_USER: postgres
|
33
|
-
PGDATA: /var/lib/postgresql/data/pgdata
|
34
|
-
volumes:
|
35
|
-
- ./postgres_data:/var/lib/postgresql/data/pgdata
|
36
|
-
ports:
|
37
|
-
- '55432:5432'
|
38
|
-
mosquitto:
|
39
|
-
image: eclipse-mosquitto:latest
|
40
|
-
ports:
|
41
|
-
- 1883:1883
|
42
|
-
- 9001:9001
|
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/operato-tools/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/operato-tools/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/operato-tools/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/operato-tools/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/operato-tools/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/operato-tools/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/operato-tools: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 operato-tools 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/operato-tools/installer/install.sh | bash -s
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"keep": {
|
3
|
-
"days": true,
|
4
|
-
"amount": 2
|
5
|
-
},
|
6
|
-
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
7
|
-
"files": [
|
8
|
-
{
|
9
|
-
"date": 1702359369875,
|
10
|
-
"name": "logs/application-2023-12-12-14.log",
|
11
|
-
"hash": "a388e8be810a56be1e87a1f098c8c608673b0bf43f317df617cd514a3a75cd88"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"hashType": "sha256"
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"keep": {
|
3
|
-
"days": true,
|
4
|
-
"amount": 14
|
5
|
-
},
|
6
|
-
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
7
|
-
"files": [
|
8
|
-
{
|
9
|
-
"date": 1702359371031,
|
10
|
-
"name": "logs/connections-2023-12-12-14.log",
|
11
|
-
"hash": "d6b31c00d6f7bd09d976042c7a1f5f33f71beba6944a698049cfdc60754c2efb"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"hashType": "sha256"
|
15
|
-
}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
2023-12-12T14:36:10+09:00 info: File Storage is Ready.
|
2
|
-
2023-12-12T14:36:11+09:00 error: oracledb module loading failed
|
3
|
-
2023-12-12T14:36:11+09:00 error: oracledb module loading failed
|
4
|
-
2023-12-12T14:36:11+09:00 error: Cannot find module '@thiagoelg/node-printer'
|
5
|
-
Require stack:
|
6
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/print.js
|
7
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/index.js
|
8
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/index.js
|
9
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/lib/module-loader.js
|
10
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/index.js
|
11
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/dist-server/server-dev.js
|
12
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/bin/things-factory-dev
|
13
|
-
2023-12-12T14:36:12+09:00 error: Data type "character varying" in "ButtonRole.name" is not supported by "sqlite" database.
|
14
|
-
2023-12-12T14:36:12+09:00 error: uncaughtException: Cannot read properties of undefined (reading 'getRepository')
|
15
|
-
2023-12-12T14:36:23+09:00 info: File Storage is Ready.
|
16
|
-
2023-12-12T14:36:23+09:00 error: oracledb module loading failed
|
17
|
-
2023-12-12T14:36:23+09:00 error: oracledb module loading failed
|
18
|
-
2023-12-12T14:36:23+09:00 error: Cannot find module '@thiagoelg/node-printer'
|
19
|
-
Require stack:
|
20
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/print.js
|
21
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/index.js
|
22
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/index.js
|
23
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/lib/module-loader.js
|
24
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/index.js
|
25
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/dist-server/server-dev.js
|
26
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/bin/things-factory-dev
|
27
|
-
2023-12-12T14:36:24+09:00 error: Data type "character varying" in "ButtonRole.name" is not supported by "sqlite" database.
|
28
|
-
2023-12-12T14:36:24+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
29
|
-
2023-12-12T14:36:24+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
30
|
-
2023-12-12T14:36:24+09:00 error: uncaughtException: Cannot read properties of undefined (reading 'getRepository')
|
31
|
-
2023-12-12T14:36:24+09:00 error: uncaughtException: Cannot read properties of undefined (reading 'getRepository')
|
32
|
-
2023-12-12T14:36:43+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
33
|
-
2023-12-12T14:36:44+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
34
|
-
2023-12-12T14:36:46+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
35
|
-
2023-12-12T14:43:47+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
36
|
-
2023-12-12T14:43:48+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
37
|
-
2023-12-12T14:49:44+09:00 error: Cannot read properties of undefined (reading 'getRepository')
|
38
|
-
2023-12-12T14:55:21+09:00 info: File Storage is Ready.
|
39
|
-
2023-12-12T14:55:22+09:00 error: oracledb module loading failed
|
40
|
-
2023-12-12T14:55:22+09:00 error: oracledb module loading failed
|
41
|
-
2023-12-12T14:55:22+09:00 error: Cannot find module '@thiagoelg/node-printer'
|
42
|
-
Require stack:
|
43
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/print.js
|
44
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/controllers/index.js
|
45
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/board-service/dist-server/index.js
|
46
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/lib/module-loader.js
|
47
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/env/index.js
|
48
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/dist-server/server.js
|
49
|
-
- /Users/nalshya/Desktop/Dev/things-factory/packages/shell/bin/things-factory
|
50
|
-
2023-12-12T14:55:22+09:00 error: Data type "character varying" in "ButtonRole.name" is not supported by "sqlite" database.
|
51
|
-
2023-12-12T14:55:23+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
52
|
-
2023-12-12T14:55:23+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
53
|
-
2023-12-12T14:55:23+09:00 error: uncaughtException: Cannot read properties of undefined (reading 'getRepository')
|
54
|
-
2023-12-12T14:55:23+09:00 error: uncaughtException: Cannot read properties of undefined (reading 'getRepository')
|
55
|
-
2023-12-12T14:55:34+09:00 error: Request failed with status code 404
|
56
|
-
2023-12-12T14:55:35+09:00 error: Request failed with status code 404
|
57
|
-
2023-12-12T14:55:35+09:00 error: Request failed with status code 404
|
58
|
-
2023-12-12T14:55:42+09:00 error: Request failed with status code 404
|
59
|
-
2023-12-12T14:59:53+09:00 error: Request failed with status code 404
|
60
|
-
2023-12-12T14:59:54+09:00 error: Request failed with status code 404
|
package/server/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './service'
|
package/server/service/index.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
/* EXPORT ENTITY TYPES */
|
2
|
-
|
3
|
-
/* IMPORT ENTITIES AND RESOLVERS */
|
4
|
-
import { resolvers as entityResolvers } from './tool-entity'
|
5
|
-
|
6
|
-
export const entities = [
|
7
|
-
/* ENTITIES */
|
8
|
-
]
|
9
|
-
|
10
|
-
export const schema = {
|
11
|
-
resolverClasses: [
|
12
|
-
/* RESOLVER CLASSES */
|
13
|
-
...entityResolvers
|
14
|
-
]
|
15
|
-
}
|