qcobjectsnewapp 2.4.11 → 2.4.13
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 +98 -1
- package/.eslintignore +2 -1
- package/.eslintrc.cjs +3 -19
- package/.gitlab-ci.yml +6 -7
- package/.gitpod.yml +21 -0
- package/.prettierignore +2 -1
- package/Dockerfile +5 -5
- package/README.md +38 -35
- package/VERSION +1 -1
- package/_redirects +3 -1
- package/config.json +1 -0
- package/package.json +44 -17
- package/src/css/desktop/components/deploy-grid.css +4 -0
- package/src/css/index.css +1 -1
- package/src/css/mobile/components/deploy-grid.css +5 -0
- package/src/css/modern-base.css +1 -1
- package/src/index-fallback.html +47 -0
- package/src/js/config.d.ts +1 -0
- package/src/js/config.ts +2 -5
- package/src/js/customWidgets.d.ts +1 -0
- package/src/js/customWidgets.ts +4 -0
- package/src/js/init.d.ts +27 -0
- package/src/js/init.ts +1 -0
- package/src/js/packages/com.qcobjects.installer.d.ts +1 -0
- package/src/js/packages/com.qcobjects.installer.ts +12 -13
- package/src/js/packages/com.qcobjects.services.github.d.ts +1 -0
- package/src/js/packages/com.qcobjects.services.github.ts +30 -40
- package/src/js/packages/org.quickcorp.custom.components.d.ts +1 -0
- package/src/js/packages/org.quickcorp.custom.components.ts +14 -13
- package/src/js/packages/org.quickcorp.custom.controllers.d.ts +1 -0
- package/src/js/packages/org.quickcorp.custom.controllers.ts +18 -18
- package/src/js/packages/org.quickcorp.custom.d.ts +7 -0
- package/src/js/packages/org.quickcorp.custom.effects.d.ts +1 -0
- package/src/js/packages/org.quickcorp.custom.effects.ts +0 -1
- package/src/js/packages/org.quickcorp.custom.models.d.ts +1 -0
- package/src/js/packages/org.quickcorp.custom.views.d.ts +1 -0
- package/src/js/packages/org.quickcorp.custom.views.ts +2 -4
- package/src/manifest.json +19 -5
- package/src/pwabuilder-sw.js +55 -0
- package/src/sw.js +2 -0
- package/src/templates/components/gitpod-button.tpl.html +38 -0
- package/src/templates/components/header.tpl.html +17 -10
- package/src/templates/components/netlify-button.tpl.html +4 -0
- package/tsconfig.d.json +5 -0
- package/tsconfig.json +2 -15
- package/src/js/types/global.d.ts +0 -26
- package/src/js/types/init.d.ts +0 -0
- /package/src/css/{components/github-grid-landscape.css → desktop/components/github-grid.css} +0 -0
- /package/src/css/{components/github-grid-portrait.css → mobile/components/github-grid.css} +0 -0
package/.dockerignore
CHANGED
|
@@ -1,2 +1,99 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
build
|
|
3
|
+
public
|
|
4
|
+
dist
|
|
5
|
+
.parcel*
|
|
6
|
+
.husky
|
|
7
|
+
hint-report
|
|
8
|
+
# Logs
|
|
9
|
+
logs
|
|
10
|
+
*.log
|
|
11
|
+
npm-debug.log*
|
|
12
|
+
yarn-debug.log*
|
|
13
|
+
yarn-error.log*
|
|
14
|
+
lerna-debug.log*
|
|
15
|
+
|
|
16
|
+
# Certificates
|
|
17
|
+
*.pem
|
|
18
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
19
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
20
|
+
|
|
21
|
+
# Runtime data
|
|
22
|
+
pids
|
|
23
|
+
*.pid
|
|
24
|
+
*.seed
|
|
25
|
+
*.pid.lock
|
|
26
|
+
|
|
27
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
28
|
+
lib-cov
|
|
29
|
+
|
|
30
|
+
# Coverage directory used by tools like istanbul
|
|
31
|
+
coverage
|
|
32
|
+
*.lcov
|
|
33
|
+
|
|
34
|
+
# nyc test coverage
|
|
35
|
+
.nyc_output
|
|
36
|
+
|
|
37
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
38
|
+
.grunt
|
|
39
|
+
|
|
40
|
+
# Bower dependency directory (https://bower.io/)
|
|
41
|
+
bower_components
|
|
42
|
+
|
|
43
|
+
# node-waf configuration
|
|
44
|
+
.lock-wscript
|
|
45
|
+
|
|
46
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
47
|
+
build/Release
|
|
48
|
+
|
|
49
|
+
# Dependency directories
|
|
50
|
+
**/node_modules
|
|
1
51
|
node_modules
|
|
2
|
-
|
|
52
|
+
node_modules/
|
|
53
|
+
jspm_packages/
|
|
54
|
+
|
|
55
|
+
# TypeScript v1 declaration files
|
|
56
|
+
typings/
|
|
57
|
+
|
|
58
|
+
# TypeScript cache
|
|
59
|
+
*.tsbuildinfo
|
|
60
|
+
|
|
61
|
+
# Optional npm cache directory
|
|
62
|
+
.npm
|
|
63
|
+
|
|
64
|
+
# Optional eslint cache
|
|
65
|
+
.eslintcache
|
|
66
|
+
|
|
67
|
+
# Optional REPL history
|
|
68
|
+
.node_repl_history
|
|
69
|
+
|
|
70
|
+
# Output of 'npm pack'
|
|
71
|
+
*.tgz
|
|
72
|
+
|
|
73
|
+
# Yarn Integrity file
|
|
74
|
+
.yarn-integrity
|
|
75
|
+
|
|
76
|
+
# dotenv environment variables file
|
|
77
|
+
.env
|
|
78
|
+
.env.test
|
|
79
|
+
|
|
80
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
81
|
+
.cache
|
|
82
|
+
|
|
83
|
+
# next.js build output
|
|
84
|
+
.next
|
|
85
|
+
|
|
86
|
+
# nuxt.js build output
|
|
87
|
+
.nuxt
|
|
88
|
+
|
|
89
|
+
# vuepress build output
|
|
90
|
+
.vuepress/dist
|
|
91
|
+
|
|
92
|
+
# Serverless directories
|
|
93
|
+
.serverless/
|
|
94
|
+
|
|
95
|
+
# FuseBox cache
|
|
96
|
+
.fusebox/
|
|
97
|
+
|
|
98
|
+
# DynamoDB Local files
|
|
99
|
+
.dynamodb/
|
package/.eslintignore
CHANGED
package/.eslintrc.cjs
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
node: true,
|
|
5
|
-
es2021: true,
|
|
6
|
-
es2020: true,
|
|
7
|
-
es2017: true,
|
|
8
|
-
es6: true
|
|
9
|
-
},
|
|
10
|
-
|
|
11
2
|
extends: [
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"eslint:recommended", "plugin:@typescript-eslint/recommended",
|
|
16
|
-
"qcobjects"
|
|
17
|
-
|
|
18
|
-
],
|
|
19
|
-
parser: "@typescript-eslint/parser",
|
|
20
|
-
plugins: ["@typescript-eslint"],
|
|
21
|
-
root: true
|
|
3
|
+
"qcobjects",
|
|
4
|
+
"qcobjects-typescript"
|
|
5
|
+
]
|
|
22
6
|
};
|
package/.gitlab-ci.yml
CHANGED
|
@@ -6,17 +6,16 @@ pages:
|
|
|
6
6
|
- npm i qcobjects && npm i -D eslint-config-qcobjects
|
|
7
7
|
- npm ci
|
|
8
8
|
- npm test
|
|
9
|
-
- npm run build:ts
|
|
10
9
|
- mkdir public
|
|
11
|
-
-
|
|
12
|
-
- cp -Rf css/ public/
|
|
13
|
-
- cp -Rf img/ public/
|
|
14
|
-
- cp -Rf js/ public/
|
|
15
|
-
- cp -Rf spec/ public/
|
|
16
|
-
- cp -Rf templates/ public/
|
|
10
|
+
- npm run publish:web
|
|
17
11
|
- cp _redirects public/
|
|
12
|
+
- cp -r node_modules/qcobjects-sdk public/qcobjects-sdk
|
|
13
|
+
# Build the public/ directory first
|
|
14
|
+
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
|
|
18
15
|
artifacts:
|
|
19
16
|
paths:
|
|
17
|
+
- node_modules/qcobjects-sdk
|
|
18
|
+
- build
|
|
20
19
|
- public
|
|
21
20
|
only:
|
|
22
21
|
- main
|
package/.gitpod.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
image: quickcorp/qcobjects
|
|
2
|
+
|
|
3
|
+
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
|
|
4
|
+
ports:
|
|
5
|
+
- port: 8080
|
|
6
|
+
onOpen: ignore
|
|
7
|
+
visibility: public
|
|
8
|
+
- port: 8443
|
|
9
|
+
onOpen: open-browser
|
|
10
|
+
visibility: public
|
|
11
|
+
|
|
12
|
+
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
|
|
13
|
+
tasks:
|
|
14
|
+
- init: |
|
|
15
|
+
npm install
|
|
16
|
+
command: |
|
|
17
|
+
npm run start
|
|
18
|
+
|
|
19
|
+
vscode:
|
|
20
|
+
extensions:
|
|
21
|
+
- dbaeumer.vscode-eslint
|
package/.prettierignore
CHANGED
package/Dockerfile
CHANGED
|
@@ -31,12 +31,12 @@ ENV LC_ALL C
|
|
|
31
31
|
ENV DEBIAN_FRONTEND noninteractive
|
|
32
32
|
|
|
33
33
|
LABEL MAINTAINER "Jean Machuca <jean@qcobjects.com>"
|
|
34
|
+
LABEL Author "Jean Machuca <jean@qcobjects.com>"
|
|
35
|
+
LABEL org.opencontainers.image.authors="Jean Machuca <jean@qcobjects.com>"
|
|
34
36
|
ENV container docker
|
|
35
37
|
|
|
36
38
|
RUN npm i -g qcobjects qcobjects-sdk qcobjects-cli
|
|
37
39
|
|
|
38
|
-
USER qcobjects
|
|
39
|
-
|
|
40
40
|
#Configure the internal user permissions
|
|
41
41
|
RUN mkdir -p /home/qcobjects/app && chown -R qcobjects:qcobjects /home/qcobjects/app
|
|
42
42
|
|
|
@@ -49,14 +49,14 @@ COPY package*.json ./
|
|
|
49
49
|
#Run the initial install init scripts for jasmine and cache verify
|
|
50
50
|
#RUN jasmine init
|
|
51
51
|
RUN npm cache verify
|
|
52
|
-
RUN npm
|
|
53
|
-
|
|
52
|
+
RUN npm i
|
|
54
53
|
|
|
55
|
-
USER root
|
|
56
54
|
|
|
57
55
|
# Bundle app source
|
|
58
56
|
COPY --chown=qcobjects:qcobjects . .
|
|
59
57
|
|
|
58
|
+
USER qcobjects
|
|
59
|
+
|
|
60
60
|
EXPOSE 8080:8080
|
|
61
61
|
EXPOSE 8443:8443
|
|
62
62
|
|
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This is a demo of a QCObjects based front-end Progressive Web App
|
|
4
4
|
|
|
5
|
+
# Deploy to Netlify
|
|
6
|
+
|
|
7
|
+
[](https://app.netlify.com/start/deploy?repository=https://github.com/QuickCorp/qcobjects-new-app)
|
|
8
|
+
|
|
9
|
+
|
|
5
10
|
# Open Live Demo
|
|
6
11
|
|
|
7
12
|
You can view the result of this project opening [QCObjects Demo App](https://newapp.qcobjects.dev) on any browser.
|
|
@@ -12,29 +17,31 @@ The following is the project structure of a Progressive Web App made in QCObject
|
|
|
12
17
|
|
|
13
18
|
```shell
|
|
14
19
|
.
|
|
15
|
-
├──
|
|
16
|
-
│ ├── components
|
|
17
|
-
│ │ └── hero
|
|
18
|
-
│ ├── desktop
|
|
19
|
-
│ ├── mobile
|
|
20
|
-
│ └── theme
|
|
21
|
-
│ ├── basic
|
|
22
|
-
│ ├── cyan
|
|
23
|
-
│ ├── redlight
|
|
24
|
-
│ └── xtra
|
|
25
|
-
├── demo-tests
|
|
26
|
-
├── img
|
|
27
|
-
│ ├── icons
|
|
28
|
-
│ └── screenshots
|
|
29
|
-
├── js
|
|
30
|
-
│ └── packages
|
|
20
|
+
├── backend
|
|
31
21
|
├── spec
|
|
32
22
|
│ └── support
|
|
33
|
-
└──
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
└── src
|
|
24
|
+
├── css
|
|
25
|
+
│ ├── components
|
|
26
|
+
│ │ └── hero
|
|
27
|
+
│ ├── desktop
|
|
28
|
+
│ │ └── components
|
|
29
|
+
│ ├── mobile
|
|
30
|
+
│ │ └── components
|
|
31
|
+
│ └── theme
|
|
32
|
+
│ ├── basic
|
|
33
|
+
│ ├── cyan
|
|
34
|
+
│ ├── redlight
|
|
35
|
+
│ └── xtra
|
|
36
|
+
├── img
|
|
37
|
+
│ ├── icons
|
|
38
|
+
│ └── screenshots
|
|
39
|
+
├── js
|
|
40
|
+
│ └── packages
|
|
41
|
+
└── templates
|
|
42
|
+
└── components
|
|
43
|
+
├── hero
|
|
44
|
+
└── pages
|
|
38
45
|
```
|
|
39
46
|
|
|
40
47
|
# Entry point
|
|
@@ -62,20 +69,6 @@ CONFIG.set("serviceWorkerURI","/sw.js"); //QCObjects will register an launch thi
|
|
|
62
69
|
|
|
63
70
|
```
|
|
64
71
|
|
|
65
|
-
You will also find the main imports:
|
|
66
|
-
|
|
67
|
-
```javascript
|
|
68
|
-
// note that this line is pure JavaScript ECMA2020
|
|
69
|
-
import "../QCObjects.js";
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
```javascript
|
|
73
|
-
Import("org.quickcorp.custom"); // this will load js/packages/org.quickcorp.custom.js file
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Above Import function comes from QCObjects Framework
|
|
77
|
-
You can either use this function or import statement to load QCObjects packages.
|
|
78
|
-
|
|
79
72
|
# Enable QCObjects from local server
|
|
80
73
|
|
|
81
74
|
In package.json file, in scripts section, you will find some common commands that need to be present in every project that works with QCObjects.
|
|
@@ -146,6 +139,16 @@ npm run serve
|
|
|
146
139
|
npm run server
|
|
147
140
|
```
|
|
148
141
|
|
|
142
|
+
# Run start DEV
|
|
143
|
+
|
|
144
|
+
The "start:dev" script will build, publish and start the server using npm-watch.
|
|
145
|
+
|
|
146
|
+
```shell
|
|
147
|
+
# Start the QCObjects Server
|
|
148
|
+
npm run start:dev
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
|
|
149
152
|
# Run QCObjects Collab
|
|
150
153
|
|
|
151
154
|
The "collab" script launches the collaborative coding tool "qcobjects-collab". This is useful for working with other developers on the same codebase.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.13
|
package/_redirects
CHANGED
package/config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjectsnewapp",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.13",
|
|
4
4
|
"description": "App template for New App in QCObjects",
|
|
5
5
|
"targets": {
|
|
6
6
|
"default": {
|
|
@@ -10,11 +10,23 @@
|
|
|
10
10
|
},
|
|
11
11
|
"main": "public/js/init.js",
|
|
12
12
|
"type": "commonjs",
|
|
13
|
-
"types": "src
|
|
13
|
+
"types": "src/**/*.d.ts",
|
|
14
14
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
15
|
+
"watch": {
|
|
16
|
+
"start": {
|
|
17
|
+
"patterns": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"extensions": "ts,html,css",
|
|
21
|
+
"quiet": true,
|
|
22
|
+
"legacyWatch": true,
|
|
23
|
+
"delay": 2500,
|
|
24
|
+
"runOnChangeOnly": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
15
27
|
"scripts": {
|
|
16
28
|
"test": "(npm run lint && (npx jasmine))",
|
|
17
|
-
"lint": "(npx eslint src/**/*.ts --fix --ext ts)",
|
|
29
|
+
"lint": "(npx eslint \"src/**/*.ts\" --fix --ext ts)",
|
|
18
30
|
"sync": "git add . && git commit -am ",
|
|
19
31
|
"preversion": "npm i --upgrade && npm test",
|
|
20
32
|
"postversion": "git push && git push --tags",
|
|
@@ -31,24 +43,33 @@
|
|
|
31
43
|
"v-major": "qcobjects v-major",
|
|
32
44
|
"qcobjects": "qcobjects",
|
|
33
45
|
"cli": "qcobjects",
|
|
34
|
-
"http-server": "
|
|
35
|
-
"gae-server": "
|
|
46
|
+
"http-server": "qcobjects-http-server",
|
|
47
|
+
"gae-server": "qcobjects-gae-server",
|
|
36
48
|
"azure-server": "npm start",
|
|
37
49
|
"aws-server": "npm start",
|
|
38
50
|
"do-server": "npm start",
|
|
39
|
-
"
|
|
51
|
+
"minify:css": "(npx esbuild build/css/*.css build/css/**/*.css --outdir=public/css --keep-names --minify --global-name=global --sourcemap --loader:.svg=file)",
|
|
52
|
+
"build:docker": "docker build -t qcobjects/qcobjects-newapp:latest .",
|
|
53
|
+
"build:static": "npx qcobjects publish:static src/ build/ --exclude js --exclude=.DS_Store",
|
|
40
54
|
"build:ts": "npm test && npx tsc",
|
|
41
|
-
"build:ts-types": "npx
|
|
42
|
-
"
|
|
43
|
-
"publish:
|
|
55
|
+
"build:ts-types": "npx tsc --project tsconfig.declaration.json",
|
|
56
|
+
"build": "npm run build:ts-types && npm run build:ts && npm run build:static && npm run build:docker",
|
|
57
|
+
"publish:static": "(npx qcobjects publish:static build/ public/ --exclude js --exclude=.DS_Store) && npm run minify:css",
|
|
44
58
|
"publish:ios": "qcobjects publish ios",
|
|
45
59
|
"publish:android": "qcobjects publish android",
|
|
46
60
|
"publish:electron": "qcobjects publish electron",
|
|
47
|
-
"publish:esbuild": "
|
|
61
|
+
"publish:esbuild": "npx esbuild build/js/*.js build/js/**/*.js --bundle --outdir=public/js --keep-names --minify --global-name=global --sourcemap",
|
|
48
62
|
"publish:parcel": "npx parcel build",
|
|
49
|
-
"publish:web": "npm
|
|
50
|
-
"
|
|
51
|
-
"
|
|
63
|
+
"publish:web": "npm run build:static && npm run build:ts && npm run publish:static && npm run publish:esbuild",
|
|
64
|
+
"publish:docker": "docker push qcobjects/qcobjects-newapp:latest",
|
|
65
|
+
"deploy:docker": "npm run build:docker && npm run publish:docker",
|
|
66
|
+
"docker-server": "docker run -p 8080:8080 -p 8443:8443 -d --name qcobjects-newapp qcobjects/qcobjects-newapp",
|
|
67
|
+
"prepare": "node -e \"if(!require('fs').existsSync('.git')){process.exit(0)}\" || npx -y husky install",
|
|
68
|
+
"prestart": "npm run publish:web",
|
|
69
|
+
"cli:help": "qcobjects --help",
|
|
70
|
+
"start:dev": "npm-watch start",
|
|
71
|
+
"build:dev": "npm-watch build",
|
|
72
|
+
"tree": "tree -d --gitignore"
|
|
52
73
|
},
|
|
53
74
|
"repository": {
|
|
54
75
|
"type": "file",
|
|
@@ -72,13 +93,15 @@
|
|
|
72
93
|
"@parcel/validator-typescript": "^2.8.3",
|
|
73
94
|
"@types/qcobjects": "github:QCObjects/-types-qcobjects",
|
|
74
95
|
"@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
76
97
|
"@typescript-eslint/parser": "^5.58.0",
|
|
77
|
-
"eslint": "^8.
|
|
98
|
+
"eslint": "^8.39.0",
|
|
78
99
|
"eslint-config-prettier": "^8.8.0",
|
|
79
100
|
"eslint-config-qcobjects": "^0.0.26",
|
|
101
|
+
"eslint-config-qcobjects-typescript": "^2.4.5",
|
|
80
102
|
"eslint-config-semistandard": "^17.0.0",
|
|
81
103
|
"eslint-config-standard": "^17.0.0",
|
|
104
|
+
"eslint-config-standard-with-typescript": "^34.0.1",
|
|
82
105
|
"eslint-plugin-import": "^2.27.5",
|
|
83
106
|
"eslint-plugin-n": "^15.7.0",
|
|
84
107
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -89,16 +112,20 @@
|
|
|
89
112
|
"npm-run-all": "^4.1.5",
|
|
90
113
|
"parcel": "^2.8.3",
|
|
91
114
|
"process": "^0.11.10",
|
|
92
|
-
"qcobjects-cli": "^2.4.
|
|
115
|
+
"qcobjects-cli": "^2.4.34",
|
|
116
|
+
"qcobjects-tsconfig": "^2.4.10",
|
|
93
117
|
"systemjs": "^6.14.1",
|
|
94
118
|
"typescript": "^5.0.4"
|
|
95
119
|
},
|
|
96
120
|
"dependencies": {
|
|
97
121
|
"grunt": "^1.4.1",
|
|
98
122
|
"grunt-contrib-jasmine": "^4.0.0",
|
|
123
|
+
"npm-watch": "^0.11.0",
|
|
99
124
|
"nyc": "^15.1.0",
|
|
100
125
|
"qcobjects": "^2.4.67",
|
|
101
|
-
"qcobjects-
|
|
126
|
+
"qcobjects-command-publish-static": "^1.0.2",
|
|
127
|
+
"qcobjects-sdk": "^2.4.30",
|
|
128
|
+
"semistandard": "^16.0.1"
|
|
102
129
|
},
|
|
103
130
|
"engines": {
|
|
104
131
|
"npm": ">=8",
|
package/src/css/index.css
CHANGED
package/src/css/modern-base.css
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="no-js" lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
|
|
8
|
+
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: https://ssl.gstatic.com; img-src * 'self' data:; child-src *; style-src * 'self' 'unsafe-inline' 'unsafe-eval'; script-src * 'self' 'unsafe-inline' 'unsafe-eval'; connect-src * 'self' 'unsafe-inline' 'unsafe-eval';media-src *">
|
|
9
|
+
<title>QCObjects New App v2.4</title>
|
|
10
|
+
<meta name="description" content="QCObjects New App v2.4">
|
|
11
|
+
<link rel="canonical" href="https://newapp.qcobjects.dev/">
|
|
12
|
+
<link rel="manifest" href="manifest.json">
|
|
13
|
+
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
|
|
14
|
+
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
15
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
16
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
17
|
+
<meta name="application-name" content="QCObjects New App">
|
|
18
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
19
|
+
<meta name="apple-mobile-web-app-title" content="QCObjects New App">
|
|
20
|
+
<link rel="icon" sizes="192x192" href="./img/icons/icon-192x192.png">
|
|
21
|
+
<link rel="apple-touch-icon" href="./img/icons/icon-192x192.png">
|
|
22
|
+
<meta name="msapplication-TileImage" content="./img/icons/icon-144x144.png">
|
|
23
|
+
<meta name="msapplication-TileColor" content="rgb(1,1,1)">
|
|
24
|
+
<meta name="theme-color" content="rgb(1,1,1)">
|
|
25
|
+
<meta property="og:title" content="QCObjects Config">
|
|
26
|
+
<meta property="og:type" content="website">
|
|
27
|
+
<meta property="og:image" content="https://newapp.qcobjects.dev/img/icons/icon-192x192.png">
|
|
28
|
+
<meta property="og:url" content="https://newapp.qcobjects.dev/">
|
|
29
|
+
<meta property="og:description" content="QCObjects New App">
|
|
30
|
+
<meta name="twitter:card" content="summary">
|
|
31
|
+
<meta name="twitter:url" content="https://newapp.qcobjects.dev/">
|
|
32
|
+
<meta name="twitter:title" content="QCObjects New App">
|
|
33
|
+
<meta name="twitter:description" content="QCObjects New App">
|
|
34
|
+
<meta name="twitter:image" content="https://config.qcobjects.dev/img/icons/icon-192x192.png">
|
|
35
|
+
<meta name="twitter:creator" content="@jeanmachuca">
|
|
36
|
+
<link rel="preload" href="css/index.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
37
|
+
<noscript><link rel="stylesheet" href="css/index.css"></noscript>
|
|
38
|
+
</head>
|
|
39
|
+
<body>
|
|
40
|
+
<noscript>
|
|
41
|
+
<!-- anchor linking to external file -->
|
|
42
|
+
<p>This page needs JavaScript because it uses QCObjects (https://qcobjects.com).</p>
|
|
43
|
+
<p>Please, check to enable JavaScript</p>
|
|
44
|
+
</noscript>
|
|
45
|
+
<p>Please check your Internet connection!</p>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/js/config.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {CONFIG, Component
|
|
1
|
+
import { CONFIG, Component } from "qcobjects";
|
|
2
2
|
/*
|
|
3
3
|
* The next values are the default settings
|
|
4
4
|
* You can change any value in runtime by using CONFIG.set
|
|
@@ -18,7 +18,4 @@ CONFIG.set("serviceWorkerURI", "/sw.js"); // QCObjects will register an launch t
|
|
|
18
18
|
|
|
19
19
|
// if Component.cached is true, all the Class('Component') declarations will save the template in a localStorage cache
|
|
20
20
|
// until a cached=false attribute is found in a <component> html declaration
|
|
21
|
-
Component.cached = true; // this will load js/packages/org.quickcorp.custom.js file
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line no-undef
|
|
24
|
-
RegisterWidgets("layout-basic", "splash-screen", "github-grid", "octocat-icon", "lib-list");
|
|
21
|
+
Component.cached = true; // this will load js/packages/org.quickcorp.custom.js file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/js/init.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects New App PWA Template 1.x
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QuickCorp/QCObjects is licensed under the
|
|
9
|
+
* GNU Lesser General Public License v3.0
|
|
10
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
+
*
|
|
12
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
+
* complete source code of licensed works and modifications under the same
|
|
14
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
+
* work may be distributed under different terms and without source code for
|
|
18
|
+
* the larger work.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
+
*
|
|
22
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
+
* license document, but changing it is not allowed.
|
|
24
|
+
*/
|
|
25
|
+
import "./config";
|
|
26
|
+
import "./packages/org.quickcorp.custom";
|
|
27
|
+
import "./customWidgets";
|
package/src/js/init.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|