@dssp/dcsp 1.0.0-alpha.0 → 1.0.0-alpha.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.
@@ -2,10 +2,10 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Construction Site Link</title>
5
+ <title>Construction Supervision Platform</title>
6
6
  <meta name="generator" content="Things Factory Starter Kit" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
8
- <meta name="description" content="Revolutionizing Safety Oversight" />
8
+ <meta name="description" content="Driving the Digitalization of Site Supervision" />
9
9
  <meta name="color-scheme" content="light only"/>
10
10
  <meta name="supported-color-schemes" content="light"/>
11
11
 
@@ -21,15 +21,15 @@
21
21
 
22
22
  <!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
23
23
  <meta name="mobile-web-app-capable" content="yes" />
24
- <meta name="application-name" content="Construction Site Link" />
25
- <meta name="application-description" content="Revolutionizing Safety Oversight" />
24
+ <meta name="application-name" content="Construction Supervision Platform" />
25
+ <meta name="application-description" content="Driving the Digitalization of Site Supervision" />
26
26
  <meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
27
27
  <link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
28
28
 
29
29
  <!-- Add to homescreen for Safari on iOS -->
30
30
  <meta name="apple-mobile-web-app-capable" content="yes" />
31
31
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
32
- <meta name="apple-mobile-web-app-title" content="Construction Site Link" />
32
+ <meta name="apple-mobile-web-app-title" content="Construction Supervision Platform" />
33
33
 
34
34
  <!-- Homescreen icons -->
35
35
  <link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
@@ -47,7 +47,7 @@
47
47
  <meta name="twitter:card" content="summary" />
48
48
  <meta name="twitter:site" content="@username" />
49
49
  <meta property="og:type" content="website" />
50
- <meta property="og:site_name" content="Construction Site Link, Revolutionizing Safety Oversight" />
50
+ <meta property="og:site_name" content="Construction Supervision Platform, Driving the Digitalization of Site Supervision" />
51
51
  <meta property="og:image" content="/assets/manifest/image-metaog.png" />
52
52
 
53
53
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="google" content="notranslate" />
6
- <title>Construction Site Link</title>
6
+ <title>Construction Supervision Platform</title>
7
7
  <meta name="generator" content="Things Factory Starter Kit" />
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
9
9
  <meta name="description" content="Smart Digital Construction Supervision Platform" />
@@ -20,7 +20,7 @@
20
20
 
21
21
  <!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
22
22
  <meta name="mobile-web-app-capable" content="yes" />
23
- <meta name="application-name" content="Construction Site Link" />
23
+ <meta name="application-name" content="Construction Supervision Platform" />
24
24
  <meta name="application-description" content="Smart Digital Construction Supervision Platform" />
25
25
  <meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
26
26
  <link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
@@ -28,7 +28,7 @@
28
28
  <!-- Add to homescreen for Safari on iOS -->
29
29
  <meta name="apple-mobile-web-app-capable" content="yes" />
30
30
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
31
- <meta name="apple-mobile-web-app-title" content="Construction Site Link" />
31
+ <meta name="apple-mobile-web-app-title" content="Construction Supervision Platform" />
32
32
 
33
33
  <!-- Homescreen icons -->
34
34
  <link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
@@ -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: dcsp
12
- image: hatiolab/dcsp: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-dcsp
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
@@ -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/dcsp/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/dcsp/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/dcsp/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/dcsp/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/dcsp/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/dcsp/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/dcsp:latest
51
-
52
- docker pull hatiolab/operato-nginx:latest
53
-
54
- docker-compose create
@@ -1 +0,0 @@
1
- docker exec -it dcsp npm run migration -- --mode=production
@@ -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
@@ -1 +0,0 @@
1
- curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/dcsp/installer/install.sh | bash -s