qcobjectsnewapp 2.4.36 → 2.4.40-ts
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/CNAME +1 -0
- package/CONFIG.md +53 -0
- package/DOCKER-COMPOSE-TUTORIAL.md +114 -0
- package/Dockerfile +4 -3
- package/README.md +25 -0
- package/VERSION +1 -1
- package/config.json +53 -39
- package/config.yaml +58 -0
- package/docker-compose.yml +23 -0
- package/netlify.toml +1 -0
- package/package.json +13 -21
- package/src/css/components/card.css +9 -0
- package/src/css/desktop/components/github-grid.css +1 -0
- package/src/css/index.css +33 -1
- package/src/css/mobile/components/github-grid.css +1 -0
- package/src/img/logo-qcobjects-back-bg-white-icon.svg +64 -0
- package/src/img/logo-qcobjects-white-bg-back-icon.svg +73 -0
- package/src/img/logo-qcobjects-white-black-bg.svg +117 -0
- package/src/js/config.ts +2 -1
- package/src/js/packages/com.qcobjects.services.newapp.ts +31 -0
- package/src/js/packages/org.quickcorp.custom.components.ts +190 -38
- package/src/js/packages/org.quickcorp.custom.controllers.ts +6 -6
- package/src/js/packages/org.quickcorp.custom.ts +1 -0
- package/src/templates/components/footer.tpl.html +1 -0
- package/src/templates/components/nav.tpl.html +1 -0
- package/src/templates/components/topmenu.tpl.html +1 -0
package/CNAME
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
newapp.qcobjects.dev
|
package/CONFIG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# CONFIG.md
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This document provides detailed information about the configuration fields used in the `config.yaml` file.
|
|
5
|
+
|
|
6
|
+
## Configuration Fields
|
|
7
|
+
|
|
8
|
+
### General Settings
|
|
9
|
+
- **devmode**: Specifies the development mode level. Possible values: `info`, `debug`, `warn`, `error`.
|
|
10
|
+
- **autodiscover**: Enables or disables the autodiscovery of components. Possible values: `true`, `false`.
|
|
11
|
+
- **autodiscover_commands**: Enables or disables the autodiscovery of commands. Possible values: `true`, `false`.
|
|
12
|
+
- **autodiscover_handlers**: Enables or disables the autodiscovery of handlers. Possible values: `true`, `false`.
|
|
13
|
+
- **documentRoot**: Sets the root directory for serving documents. Example: `"$config(projectPath)public/"`.
|
|
14
|
+
- **documentRootFileIndex**: Specifies the default file to serve when accessing the document root. Example: `index.html`.
|
|
15
|
+
- **cacheControl**: Defines the cache control policy. Example: `max-age=31536000`.
|
|
16
|
+
- **relativeImportPath**: Sets the relative path for importing JavaScript packages. Example: `js/packages/`.
|
|
17
|
+
- **serverPortHTTP**: Specifies the port for the HTTP server. Example: `'8080'`.
|
|
18
|
+
- **serverPortHTTPS**: Specifies the port for the HTTPS server. Example: `'8443'`.
|
|
19
|
+
- **useLocalSDK**: Enables or disables the use of the local SDK. Possible values: `true`, `false`.
|
|
20
|
+
- **useLegacyHTTP**: Enables or disables the use of legacy HTTP. Possible values: `true`, `false`.
|
|
21
|
+
- **private-key-pem**: Path to the private key PEM file. Example: `"$config(domain)-privkey.pem"`.
|
|
22
|
+
- **private-cert-pem**: Path to the private certificate PEM file. Example: `"$config(domain)-cert.pem"`.
|
|
23
|
+
- **enableShellCommands**: Enables or disables shell commands. Possible values: `true`, `false`.
|
|
24
|
+
|
|
25
|
+
### Backend Configuration
|
|
26
|
+
- **backend**: Contains backend-specific settings.
|
|
27
|
+
- **db_engine**: Database engine configuration.
|
|
28
|
+
- **name**: Name of the database engine. Example: `"$ENV(ENGINE_NAME)"`.
|
|
29
|
+
- **databaseName**: Name of the database. Example: `"$ENV(DATABASE_NAME)"`.
|
|
30
|
+
- **auth**: Authentication settings.
|
|
31
|
+
- **enabled**: Enables or disables authentication. Possible values: `true`, `false`.
|
|
32
|
+
- **defaultUser**: Default username for authentication. Example: `"$ENV(DEFAULT_USER)"`.
|
|
33
|
+
- **defaultPasswd**: Default password for authentication. Example: `"$ENV(DEFAULT_PASSWORD)"`.
|
|
34
|
+
- **microsoftapikey**: API key for Microsoft services. Example: `"$ENV(MICROSOFT_API_KEY)"`.
|
|
35
|
+
- **googleapikey**: API key for Google services. Example: `"$ENV(GOOGLE_API_KEY)"`.
|
|
36
|
+
- **routes**: List of route configurations.
|
|
37
|
+
- **name**: Name of the route.
|
|
38
|
+
- **description**: Description of the route.
|
|
39
|
+
- **path**: Path pattern for the route.
|
|
40
|
+
- **microservice**: Microservice handling the route.
|
|
41
|
+
- **redirect_to**: Redirection target for the route.
|
|
42
|
+
- **responseHeaders**: Headers to include in the response.
|
|
43
|
+
- **cors**: CORS settings for the route.
|
|
44
|
+
- **allow_origins**: Allowed origins for CORS. Example: `"*"`.
|
|
45
|
+
|
|
46
|
+
### Package Configuration
|
|
47
|
+
- **package**: Contains package-specific settings.
|
|
48
|
+
- **source**: Source directories for the package.
|
|
49
|
+
- **backend**: Source directory for backend code. Example: `backend`.
|
|
50
|
+
- **frontend**: Source directory for frontend code. Example: `src`.
|
|
51
|
+
- **build**: Build directory. Example: `build`.
|
|
52
|
+
- **dist**: Distribution directory. Example: `dist`.
|
|
53
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
### Instructions to Use Docker Compose with QCObjects Docker Image
|
|
2
|
+
|
|
3
|
+
Based on the provided `docker-compose` file, here are the steps to use Docker Compose to create and build your own Docker image `qcobjects_newapp`:
|
|
4
|
+
|
|
5
|
+
1. **Create a Dockerfile:**
|
|
6
|
+
Ensure you have a `Dockerfile` in your project directory with the following content:
|
|
7
|
+
|
|
8
|
+
```dockerfile
|
|
9
|
+
FROM qcobjects/qcobjects:latest
|
|
10
|
+
|
|
11
|
+
USER root
|
|
12
|
+
|
|
13
|
+
ENV XDG_RUNTIME_DIR $(id -u)
|
|
14
|
+
ENV container docker
|
|
15
|
+
ENV LC_ALL C
|
|
16
|
+
ENV DEBIAN_FRONTEND noninteractive
|
|
17
|
+
|
|
18
|
+
LABEL MAINTAINER "Jean Machuca <jean@qcobjects.com>"
|
|
19
|
+
LABEL Author "Jean Machuca <jean@qcobjects.com>"
|
|
20
|
+
LABEL org.opencontainers.image.authors="Jean Machuca <jean@qcobjects.com>"
|
|
21
|
+
ENV container docker
|
|
22
|
+
|
|
23
|
+
RUN npm i -g qcobjects qcobjects-sdk qcobjects-cli
|
|
24
|
+
|
|
25
|
+
# Configure the internal user permissions
|
|
26
|
+
RUN mkdir -p /home/qcobjects/app && chown -R qcobjects:qcobjects /home/qcobjects/app
|
|
27
|
+
|
|
28
|
+
# Setting the work directory
|
|
29
|
+
WORKDIR /home/qcobjects/app
|
|
30
|
+
ENV DOCUMENT_ROOT /home/qcobjects/app/
|
|
31
|
+
ENV DATA_PATH $DOCUMENT_ROOT/data/
|
|
32
|
+
COPY package*.json ./
|
|
33
|
+
|
|
34
|
+
# Run the initial install init scripts for jasmine and cache verify
|
|
35
|
+
# RUN jasmine init
|
|
36
|
+
RUN npm cache verify
|
|
37
|
+
RUN npm i
|
|
38
|
+
|
|
39
|
+
# Bundle app source
|
|
40
|
+
COPY --chown=qcobjects:qcobjects . .
|
|
41
|
+
|
|
42
|
+
USER qcobjects
|
|
43
|
+
|
|
44
|
+
EXPOSE 8080:8080
|
|
45
|
+
EXPOSE 8443:8443
|
|
46
|
+
|
|
47
|
+
CMD [ "npm", "start" ]
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
2. **Create a `docker-compose.yml` File:**
|
|
51
|
+
Create a `docker-compose.yml` file in your project directory with the following content:
|
|
52
|
+
|
|
53
|
+
```yaml
|
|
54
|
+
version: '3'
|
|
55
|
+
services:
|
|
56
|
+
qcobjects:
|
|
57
|
+
image: qcobjects_newapp:latest
|
|
58
|
+
hostname: qcobjects_newapp
|
|
59
|
+
command: ["npm", "run", "start"]
|
|
60
|
+
privileged: true
|
|
61
|
+
build:
|
|
62
|
+
context: ./
|
|
63
|
+
dockerfile: Dockerfile
|
|
64
|
+
volumes:
|
|
65
|
+
- ./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev
|
|
66
|
+
- ./data:/home/qcobjects/app/data
|
|
67
|
+
expose:
|
|
68
|
+
- 8080:8080
|
|
69
|
+
- 8443:8443
|
|
70
|
+
- 10300:10300
|
|
71
|
+
ports:
|
|
72
|
+
- 8080:8080
|
|
73
|
+
- 8443:8443
|
|
74
|
+
- 10300:10300
|
|
75
|
+
env_file:
|
|
76
|
+
- ./.env
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
3. **Environment Variables:**
|
|
80
|
+
Create a `.env` file in your project directory to define environment variables. This file might include variables such as:
|
|
81
|
+
|
|
82
|
+
```env
|
|
83
|
+
NODE_ENV=production
|
|
84
|
+
PORT=8080
|
|
85
|
+
SSL_PORT=8443
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
4. **Build and Run the Docker Compose Setup:**
|
|
89
|
+
Open a terminal in your project directory and run the following commands:
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
# Build the Docker image
|
|
93
|
+
docker-compose build
|
|
94
|
+
|
|
95
|
+
# Start the services
|
|
96
|
+
docker-compose up
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Explanation of Environment Variables and Settings:
|
|
100
|
+
|
|
101
|
+
- **`NODE_ENV`**: Specifies the environment in which the application is running (e.g., `development`, `production`).
|
|
102
|
+
- **`PORT`**: The port on which the application will run (default is `8080`).
|
|
103
|
+
- **`SSL_PORT`**: The port for SSL connections (default is `8443`).
|
|
104
|
+
|
|
105
|
+
### Volumes:
|
|
106
|
+
- **`./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev`**: Maps the local `letsencrypt` directory to the container's directory for SSL certificates.
|
|
107
|
+
- **`./data:/home/qcobjects/app/data`**: Maps the local `data` directory to the container's data directory.
|
|
108
|
+
|
|
109
|
+
### Ports:
|
|
110
|
+
- **`8080:8080`**: Maps port `8080` on the host to port `8080` in the container.
|
|
111
|
+
- **`8443:8443`**: Maps port `8443` on the host to port `8443` in the container.
|
|
112
|
+
- **`10300:10300`**: Maps port `10300` on the host to port `10300` in the container.
|
|
113
|
+
|
|
114
|
+
These steps will help you set up and run your QCObjects application using Docker Compose, ensuring a consistent and efficient development environment.
|
package/Dockerfile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
FROM
|
|
1
|
+
FROM qcobjects/qcobjects:latest
|
|
2
|
+
|
|
2
3
|
###
|
|
3
4
|
# QCObjects Framework
|
|
4
5
|
# ________________
|
|
@@ -55,9 +56,9 @@ RUN npm i
|
|
|
55
56
|
# Bundle app source
|
|
56
57
|
COPY --chown=qcobjects:qcobjects . .
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
RUN apk add --no-cache openssl
|
|
59
60
|
|
|
61
|
+
USER qcobjects
|
|
60
62
|
EXPOSE 8080:8080
|
|
61
63
|
EXPOSE 8443:8443
|
|
62
|
-
|
|
63
64
|
CMD [ "npm", "start" ]
|
package/README.md
CHANGED
|
@@ -118,6 +118,20 @@ The "coverage" script generates a code coverage report using the "nyc" library.
|
|
|
118
118
|
npm run coverage
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
# Setup ENV Variables
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
# Env file .env
|
|
125
|
+
export ENGINE_NAME=sqlite3
|
|
126
|
+
export DATABASE_NAME=admin.db
|
|
127
|
+
# Example: admin
|
|
128
|
+
export DEFAULT_USER=admin
|
|
129
|
+
# Example: admin123
|
|
130
|
+
export DEFAULT_PASSWORD=admin123
|
|
131
|
+
export MICROSOFT_API_KEY=<Get the key from Azure Platform>
|
|
132
|
+
export GOOGLE_API_KEY=<Get the key from GCP>
|
|
133
|
+
```
|
|
134
|
+
|
|
121
135
|
# Run start
|
|
122
136
|
|
|
123
137
|
The "start" script runs the "createcert" and "serve" scripts. This is useful for quickly launching the app and getting started with development.
|
|
@@ -259,3 +273,14 @@ docker run -p 8080:8080 -p 8443:8443 --name qcobjects-newapp -d qcobjects/qcobje
|
|
|
259
273
|
```
|
|
260
274
|
|
|
261
275
|
Then go to [https://127.0.0.1:8443/](https://127.0.0.1:8443/)
|
|
276
|
+
|
|
277
|
+
# Configuration Instructions
|
|
278
|
+
|
|
279
|
+
To properly configure the application, please refer to the [`CONFIG.md`](CONFIG.md) file for detailed information on each configuration field. Follow these steps:
|
|
280
|
+
|
|
281
|
+
1. **Open the configuration file**: The main configuration file is `config.json`. QCObjects will prioritize `config.json` if it is present. If `config.json` is not available, it will look for `config.yaml` or `config.yml`. If both JSON and YAML files are present, the YAML file will be considered, and the other files will be dismissed.
|
|
282
|
+
2. **Refer to `CONFIG.md`**: For a detailed explanation of each field in the configuration file, consult the [`CONFIG.md`](CONFIG.md) file. This document provides descriptions, possible values, and examples for each configuration option.
|
|
283
|
+
3. **Update the settings**: Modify the fields in the configuration file as per your requirements, using the guidance provided in [`CONFIG.md`](CONFIG.md).
|
|
284
|
+
4. **Save your changes**: Ensure that all changes are saved before running the application.
|
|
285
|
+
|
|
286
|
+
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.40-ts
|
package/config.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"domain":"$ENV(DOMAIN)",
|
|
3
|
+
"certificate_provider":"$ENV(CERTIFICATE_PROVIDER)",
|
|
4
|
+
"devmode":"$ENV(DEVMODE)",
|
|
3
5
|
"autodiscover":true,
|
|
4
6
|
"autodiscover_commands":true,
|
|
5
7
|
"autodiscover_handlers":true,
|
|
@@ -12,48 +14,60 @@
|
|
|
12
14
|
"useLocalSDK":true,
|
|
13
15
|
"useLegacyHTTP": false,
|
|
14
16
|
"private-key-pem": "$config(domain)-privkey.pem",
|
|
15
|
-
"private-cert-pem": "$config(domain)-cert.pem",
|
|
17
|
+
"private-cert-pem": "$config(domain)-cert.pem",
|
|
18
|
+
"enableShellCommands": true,
|
|
16
19
|
"backend":{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
"db_engine":{
|
|
21
|
+
"name":"$ENV(ENGINE_NAME)",
|
|
22
|
+
"databaseName":"$ENV(DATABASE_NAME)"
|
|
23
|
+
},
|
|
24
|
+
"auth":{
|
|
25
|
+
"enabled":true,
|
|
26
|
+
"defaultUser":"$ENV(DEFAULT_USER)",
|
|
27
|
+
"defaultPasswd": "$ENV(DEFAULT_PASSWORD)",
|
|
28
|
+
"microsoftapikey":"$ENV(MICROSOFT_API_KEY)",
|
|
29
|
+
"googleapikey":"$ENV(GOOGLE_API_KEY)"
|
|
30
|
+
},
|
|
31
|
+
"routes":[
|
|
32
|
+
{
|
|
33
|
+
"name":"QCObjects-SDK.js for demo folder",
|
|
34
|
+
"description":"Redirection of QCObjects SDK",
|
|
35
|
+
"path":"^/demo-tests/QCObjects-SDK.js$",
|
|
36
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
37
|
+
"redirect_to": "./node_modules/qcobjects-sdk/QCObjects-SDK.js",
|
|
38
|
+
"responseHeaders":{
|
|
39
|
+
},
|
|
40
|
+
"cors":{
|
|
41
|
+
"allow_origins":"*"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name":"QCObjects-SDK Components for demo folder",
|
|
46
|
+
"description":"Redirection of QCObjects SDK",
|
|
47
|
+
"path":"^/demo-tests/qcobjects-sdk/(.*)$",
|
|
48
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
49
|
+
"redirect_to": "./node_modules/qcobjects-sdk/$1",
|
|
50
|
+
"responseHeaders":{},
|
|
51
|
+
"cors":{
|
|
52
|
+
"allow_origins":"*"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name":"Hello World!",
|
|
57
|
+
"description":"Hello world Microservice!",
|
|
58
|
+
"path":"^/hello-world",
|
|
59
|
+
"microservice":"qcobjects-handler-hello-world",
|
|
60
|
+
"headers": {
|
|
61
|
+
"content-type": "text/html; charset=utf-8"
|
|
29
62
|
},
|
|
30
|
-
{
|
|
31
|
-
"name":"QCObjects-SDK Components for demo folder",
|
|
32
|
-
"description":"Redirection of QCObjects SDK",
|
|
33
|
-
"path":"^/demo-tests/qcobjects-sdk/(.*)$",
|
|
34
|
-
"microservice":"com.qcobjects.backend.microservice.static",
|
|
35
|
-
"redirect_to": "./node_modules/qcobjects-sdk/$1",
|
|
36
|
-
"responseHeaders":{},
|
|
37
|
-
"cors":{
|
|
38
|
-
"allow_origins":"*"
|
|
39
|
-
}
|
|
63
|
+
"responseHeaders":{
|
|
40
64
|
},
|
|
41
|
-
{
|
|
42
|
-
"
|
|
43
|
-
"description":"Hello world Microservice!",
|
|
44
|
-
"path":"^/hello-world",
|
|
45
|
-
"microservice":"qcobjects-handler-hello-world",
|
|
46
|
-
"headers": {
|
|
47
|
-
"content-type": "text/html; charset=utf-8"
|
|
48
|
-
},
|
|
49
|
-
"responseHeaders":{
|
|
50
|
-
},
|
|
51
|
-
"cors":{
|
|
52
|
-
"allow_origins":"*"
|
|
53
|
-
}
|
|
65
|
+
"cors":{
|
|
66
|
+
"allow_origins":"*"
|
|
54
67
|
}
|
|
55
|
-
|
|
56
|
-
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
]
|
|
57
71
|
},
|
|
58
72
|
"package":{
|
|
59
73
|
"source":{
|
package/config.yaml
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
devmode: info
|
|
3
|
+
autodiscover: true
|
|
4
|
+
autodiscover_commands: true
|
|
5
|
+
autodiscover_handlers: true
|
|
6
|
+
documentRoot: "$config(projectPath)public/"
|
|
7
|
+
documentRootFileIndex: index.html
|
|
8
|
+
cacheControl: max-age=31536000
|
|
9
|
+
relativeImportPath: js/packages/
|
|
10
|
+
serverPortHTTP: '8080'
|
|
11
|
+
serverPortHTTPS: '8443'
|
|
12
|
+
useLocalSDK: true
|
|
13
|
+
useLegacyHTTP: false
|
|
14
|
+
private-key-pem: "$config(domain)-privkey.pem"
|
|
15
|
+
private-cert-pem: "$config(domain)-cert.pem"
|
|
16
|
+
enableShellCommands: true
|
|
17
|
+
backend:
|
|
18
|
+
db_engine:
|
|
19
|
+
name: "$ENV(ENGINE_NAME)"
|
|
20
|
+
databaseName: "$ENV(DATABASE_NAME)"
|
|
21
|
+
auth:
|
|
22
|
+
enabled: true
|
|
23
|
+
defaultUser: "$ENV(DEFAULT_USER)"
|
|
24
|
+
defaultPasswd: "$ENV(DEFAULT_PASSWORD)"
|
|
25
|
+
microsoftapikey: "$ENV(MICROSOFT_API_KEY)"
|
|
26
|
+
googleapikey: "$ENV(GOOGLE_API_KEY)"
|
|
27
|
+
routes:
|
|
28
|
+
- name: QCObjects-SDK.js for demo folder
|
|
29
|
+
description: Redirection of QCObjects SDK
|
|
30
|
+
path: "^/demo-tests/QCObjects-SDK.js$"
|
|
31
|
+
microservice: com.qcobjects.backend.microservice.static
|
|
32
|
+
redirect_to: "./node_modules/qcobjects-sdk/QCObjects-SDK.js"
|
|
33
|
+
responseHeaders: {}
|
|
34
|
+
cors:
|
|
35
|
+
allow_origins: "*"
|
|
36
|
+
- name: QCObjects-SDK Components for demo folder
|
|
37
|
+
description: Redirection of QCObjects SDK
|
|
38
|
+
path: "^/demo-tests/qcobjects-sdk/(.*)$"
|
|
39
|
+
microservice: com.qcobjects.backend.microservice.static
|
|
40
|
+
redirect_to: "./node_modules/qcobjects-sdk/$1"
|
|
41
|
+
responseHeaders: {}
|
|
42
|
+
cors:
|
|
43
|
+
allow_origins: "*"
|
|
44
|
+
- name: Hello World!
|
|
45
|
+
description: Hello world Microservice!
|
|
46
|
+
path: "^/hello-world"
|
|
47
|
+
microservice: qcobjects-handler-hello-world
|
|
48
|
+
headers:
|
|
49
|
+
content-type: text/html; charset=utf-8
|
|
50
|
+
responseHeaders: {}
|
|
51
|
+
cors:
|
|
52
|
+
allow_origins: "*"
|
|
53
|
+
package:
|
|
54
|
+
source:
|
|
55
|
+
backend: backend
|
|
56
|
+
frontend: src
|
|
57
|
+
build: build
|
|
58
|
+
dist: dist
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
version: '3'
|
|
2
|
+
services:
|
|
3
|
+
qcobjects:
|
|
4
|
+
image: qcobjects_newapp:latest
|
|
5
|
+
hostname: qcobjects_newapp
|
|
6
|
+
command: ["npm","run", "start"]
|
|
7
|
+
privileged: true
|
|
8
|
+
build:
|
|
9
|
+
context: ./
|
|
10
|
+
dockerfile: Dockerfile
|
|
11
|
+
volumes:
|
|
12
|
+
- ./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev
|
|
13
|
+
- ./data:/home/qcobjects/app/data
|
|
14
|
+
expose:
|
|
15
|
+
- 8080:8080
|
|
16
|
+
- 8443:8443
|
|
17
|
+
- 10300:10300
|
|
18
|
+
ports:
|
|
19
|
+
- 8080:8080
|
|
20
|
+
- 8443:8443
|
|
21
|
+
- 10300:10300
|
|
22
|
+
env_file:
|
|
23
|
+
- ./.env
|
package/netlify.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjectsnewapp",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.40-ts",
|
|
4
4
|
"description": "App template for New App in QCObjects",
|
|
5
5
|
"targets": {
|
|
6
6
|
"default": {
|
|
@@ -48,8 +48,9 @@
|
|
|
48
48
|
"azure-server": "npm start",
|
|
49
49
|
"aws-server": "npm start",
|
|
50
50
|
"do-server": "npm start",
|
|
51
|
-
"minify:css": "(npx esbuild build/css/*.css build/css/**/*.css --outdir=public/css --keep-names --minify --global-name=global --sourcemap --loader:.svg=file)",
|
|
51
|
+
"minify:css": "(npx esbuild build/css/*.css build/css/**/*.css --outdir=public/css --keep-names --minify --global-name=global --sourcemap --loader:.svg=file --target=es2021)",
|
|
52
52
|
"build:docker": "docker build -t qcobjects/qcobjects-newapp:latest .",
|
|
53
|
+
"build:docker-compose": "docker-compose -f docker-compose.yml build --no-cache --force-rm --pull -q qcobjects",
|
|
53
54
|
"build:static": "npx qcobjects-cli publish:static src/ build/ --exclude js --exclude=.DS_Store",
|
|
54
55
|
"build:ts": "npm test && npx tsc",
|
|
55
56
|
"build:ts-types": "npx tsc --project tsconfig.d.json",
|
|
@@ -59,12 +60,14 @@
|
|
|
59
60
|
"publish:ios": "qcobjects publish ios",
|
|
60
61
|
"publish:android": "qcobjects publish android",
|
|
61
62
|
"publish:electron": "qcobjects publish electron",
|
|
62
|
-
"publish:esbuild": "npx esbuild build/js/*.js build/js/**/*.js --bundle --outdir=public/js --keep-names --minify --global-name=global --sourcemap",
|
|
63
|
+
"publish:esbuild": "npx esbuild build/js/*.js build/js/**/*.js --bundle --outdir=public/js --keep-names --minify --global-name=global --sourcemap --splitting --chunk-names=chunks/[name]-[hash] --format=esm --target=es2021",
|
|
63
64
|
"publish:parcel": "npx parcel build",
|
|
64
65
|
"publish:web": "npm run build:static && npm run build:ts && npm run publish:static && npm run publish:esbuild && npm run generate-sw",
|
|
65
66
|
"publish:docker": "docker push qcobjects/qcobjects-newapp:latest",
|
|
66
67
|
"deploy:docker": "npm run build:docker && npm run publish:docker",
|
|
67
68
|
"docker-server": "docker run -p 8080:8080 -p 8443:8443 -d --name qcobjects-newapp qcobjects/qcobjects-newapp",
|
|
69
|
+
"docker-compose-server": "docker-compose -f docker-compose.yml up --quiet-pull -d qcobjects",
|
|
70
|
+
"start:docker-compose": "npm run build:docker-compose && npm run docker-compose-server",
|
|
68
71
|
"prepare": "node -e \"if(!require('fs').existsSync('.git')){process.exit(0)}\" || npx -y husky install",
|
|
69
72
|
"prestart": "npm run publish:web",
|
|
70
73
|
"cli:help": "qcobjects --help",
|
|
@@ -87,16 +90,9 @@
|
|
|
87
90
|
"author": "Jean Machuca (correojean@gmail.com)",
|
|
88
91
|
"license": "LGPL-3.0-or-later",
|
|
89
92
|
"devDependencies": {
|
|
90
|
-
"@parcel/config-default": "^2.8.3",
|
|
91
|
-
"@parcel/packager-raw-url": "^2.8.3",
|
|
92
|
-
"@parcel/packager-ts": "^2.8.3",
|
|
93
|
-
"@parcel/transformer-typescript-tsc": "^2.8.3",
|
|
94
|
-
"@parcel/transformer-typescript-types": "^2.8.3",
|
|
95
|
-
"@parcel/transformer-webmanifest": "^2.8.3",
|
|
96
|
-
"@parcel/validator-typescript": "^2.8.3",
|
|
97
93
|
"@types/qcobjects": "github:QCObjects/-types-qcobjects",
|
|
98
94
|
"@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk",
|
|
99
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
100
96
|
"@typescript-eslint/parser": "^5.58.0",
|
|
101
97
|
"eslint": "^8.39.0",
|
|
102
98
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -111,16 +107,11 @@
|
|
|
111
107
|
"hint": "^2.0.0",
|
|
112
108
|
"husky": "^8.0.3",
|
|
113
109
|
"jasmine": "^3.99.0",
|
|
114
|
-
"lighthouse": "^
|
|
110
|
+
"lighthouse": "^12.1.0",
|
|
115
111
|
"lint-staged": "^13.2.1",
|
|
116
|
-
"
|
|
117
|
-
"parcel": "^2.8.3",
|
|
118
|
-
"process": "^0.11.10",
|
|
119
|
-
"qcobjects-cli": "^2.4.53",
|
|
120
|
-
"qcobjects-command-publish-static": "^1.0.2",
|
|
112
|
+
"qcobjects-cli": "^2.4.65",
|
|
121
113
|
"qcobjects-tsconfig": "^2.4.10",
|
|
122
114
|
"semistandard": "^16.0.1",
|
|
123
|
-
"systemjs": "^6.14.1",
|
|
124
115
|
"typescript": "^5.0.4"
|
|
125
116
|
},
|
|
126
117
|
"dependencies": {
|
|
@@ -128,9 +119,10 @@
|
|
|
128
119
|
"grunt-contrib-jasmine": "^4.0.0",
|
|
129
120
|
"npm-watch": "^0.11.0",
|
|
130
121
|
"nyc": "^15.1.0",
|
|
131
|
-
"qcobjects": "^2.4.
|
|
132
|
-
"qcobjects-
|
|
133
|
-
"qcobjects-
|
|
122
|
+
"qcobjects": "^2.4.95",
|
|
123
|
+
"qcobjects-admin": "^1.0.0",
|
|
124
|
+
"qcobjects-command-publish-static": "^1.0.4",
|
|
125
|
+
"qcobjects-sdk": "^2.4.64"
|
|
134
126
|
},
|
|
135
127
|
"engines": {
|
|
136
128
|
"npm": ">=8",
|
package/src/css/index.css
CHANGED
|
@@ -142,6 +142,10 @@ article {
|
|
|
142
142
|
position: relative;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
article {
|
|
146
|
+
padding-bottom: 400px;
|
|
147
|
+
}
|
|
148
|
+
|
|
145
149
|
/* END NAV */
|
|
146
150
|
|
|
147
151
|
/* TOPNAV */
|
|
@@ -240,7 +244,7 @@ footer {
|
|
|
240
244
|
bottom: 0;
|
|
241
245
|
left: 0;
|
|
242
246
|
padding: 1rem;
|
|
243
|
-
background: #
|
|
247
|
+
background: #111;
|
|
244
248
|
z-index: 10;
|
|
245
249
|
}
|
|
246
250
|
|
|
@@ -373,3 +377,31 @@ img:not([data-src]) {
|
|
|
373
377
|
}
|
|
374
378
|
|
|
375
379
|
/* end lazy loading images blurry */
|
|
380
|
+
|
|
381
|
+
body::-webkit-scrollbar {
|
|
382
|
+
width: 0vw !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
section quick-component article quick-component h1 {
|
|
386
|
+
background: rgba(0, 0, 0, 0.8);
|
|
387
|
+
color: white;
|
|
388
|
+
border-radius: 12px;
|
|
389
|
+
padding: 10px 5px 10px 5px;
|
|
390
|
+
font-size: xx-large;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
section quick-component article quick-component p {
|
|
394
|
+
font-size: larger;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
section {
|
|
398
|
+
background: rgb(0 0 0 / 0%);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
main {
|
|
402
|
+
background: white;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
main[dark-mode]{
|
|
406
|
+
background: rgba(0, 0, 0, 0.8);
|
|
407
|
+
}
|