qcobjectsnewapp 2.4.11 → 2.4.12

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 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
- npm-debug.log
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
@@ -1,3 +1,4 @@
1
1
  build
2
2
  dist
3
- public
3
+ public
4
+ tools
package/.eslintrc.cjs CHANGED
@@ -9,12 +9,11 @@ module.exports = {
9
9
  },
10
10
 
11
11
  extends: [
12
- "semistandard",
12
+ "eslint-config-semistandard",
13
13
  "standard",
14
14
  "prettier",
15
15
  "eslint:recommended", "plugin:@typescript-eslint/recommended",
16
16
  "qcobjects"
17
-
18
17
  ],
19
18
  parser: "@typescript-eslint/parser",
20
19
  plugins: ["@typescript-eslint"],
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
- - cp build/*.* public/
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/Dockerfile CHANGED
@@ -35,8 +35,6 @@ ENV container docker
35
35
 
36
36
  RUN npm i -g qcobjects qcobjects-sdk qcobjects-cli
37
37
 
38
- USER qcobjects
39
-
40
38
  #Configure the internal user permissions
41
39
  RUN mkdir -p /home/qcobjects/app && chown -R qcobjects:qcobjects /home/qcobjects/app
42
40
 
@@ -49,14 +47,14 @@ COPY package*.json ./
49
47
  #Run the initial install init scripts for jasmine and cache verify
50
48
  #RUN jasmine init
51
49
  RUN npm cache verify
52
- RUN npm ci --save --only=production
53
-
50
+ RUN npm i
54
51
 
55
- USER root
56
52
 
57
53
  # Bundle app source
58
54
  COPY --chown=qcobjects:qcobjects . .
59
55
 
56
+ USER qcobjects
57
+
60
58
  EXPOSE 8080:8080
61
59
  EXPOSE 8443:8443
62
60
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.11
1
+ 2.4.12
package/_redirects CHANGED
@@ -1 +1,3 @@
1
- /* /index.html 200
1
+ /qcobjects-sdk/js/* /node_modules/qcobjects-sdk/js/:splat 200
2
+ /qcobjects-sdk/* /node_modules/qcobjects-sdk/:splat 200
3
+ /* /index.html 200
package/config.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "devmode":"debug",
3
3
  "autodiscover":true,
4
+ "autodiscover_commands":true,
4
5
  "documentRoot": "$config(projectPath)public/",
5
6
  "documentRootFileIndex":"index.html",
6
7
  "cacheControl":"max-age=31536000",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjectsnewapp",
3
- "version": "2.4.11",
3
+ "version": "2.4.12",
4
4
  "description": "App template for New App in QCObjects",
5
5
  "targets": {
6
6
  "default": {
@@ -14,7 +14,7 @@
14
14
  "browserslist": "> 0.5%, last 2 versions, not dead",
15
15
  "scripts": {
16
16
  "test": "(npm run lint && (npx jasmine))",
17
- "lint": "(npx eslint src/**/*.ts --fix --ext ts)",
17
+ "lint": "(npx eslint \"src/**/*.ts\" --fix --ext ts)",
18
18
  "sync": "git add . && git commit -am ",
19
19
  "preversion": "npm i --upgrade && npm test",
20
20
  "postversion": "git push && git push --tags",
@@ -31,24 +31,28 @@
31
31
  "v-major": "qcobjects v-major",
32
32
  "qcobjects": "qcobjects",
33
33
  "cli": "qcobjects",
34
- "http-server": "node -e \"require('qcobjects-cli/qcobjects-http-server')\"",
35
- "gae-server": "node -e \"require('qcobjects-cli/qcobjects-gae-http-server')\"",
34
+ "http-server": "qcobjects-http-server",
35
+ "gae-server": "qcobjects-gae-server",
36
36
  "azure-server": "npm start",
37
37
  "aws-server": "npm start",
38
38
  "do-server": "npm start",
39
- "build:static": "rm -Rf build && (rsync -av --progress src/ build --exclude js )",
39
+ "build:docker": "docker build -t qcobjects/qcobjects-newapp:latest .",
40
+ "build:static": "npx qcobjects publish:static src/ build/ --exclude js --exclude=.DS_Store",
40
41
  "build:ts": "npm test && npx tsc",
41
42
  "build:ts-types": "npx -p typescript tsc src/**/*.ts --declaration --allowJs --esModuleInterop --emitDeclarationOnly --outDir types",
42
- "publish:static": "rm -Rf public && (rsync -av --progress build/ public --exclude js --exclude index.html )",
43
- "publish:local": "qcobjects publish local",
43
+ "publish:static": "npx qcobjects publish:static build/ public/ --exclude js --exclude=.DS_Store",
44
44
  "publish:ios": "qcobjects publish ios",
45
45
  "publish:android": "qcobjects publish android",
46
46
  "publish:electron": "qcobjects publish electron",
47
- "publish:esbuild": "cp build/index.html public/ && npx esbuild build/js/*.js build/js/**/*.js --bundle --outdir=public/js --keep-names --minify --global-name=global --sourcemap",
47
+ "publish:esbuild": "npx esbuild build/js/*.js build/js/**/*.js --bundle --outdir=public/js --keep-names --minify --global-name=global --sourcemap",
48
48
  "publish:parcel": "npx parcel build",
49
- "publish:web": "npm-run-all build:static build:ts publish:static publish:esbuild",
50
- "prepare": "husky install",
51
- "prestart": "npm run publish:web"
49
+ "publish:web": "npm run build:static && npm run build:ts && npm run publish:static && npm run publish:esbuild",
50
+ "publish:docker": "docker push qcobjects/qcobjects-newapp:latest",
51
+ "deploy:docker": "npm-run-all build:docker publish:docker",
52
+ "docker-server": "docker run -p 8080:8080 -p 8443:8443 -d --name qcobjects-newapp qcobjects/qcobjects-newapp",
53
+ "prepare": "node -e \"if(!require('fs').existsSync('.git')){process.exit(0)}\" || npx -y husky install",
54
+ "prestart": "npm run publish:web",
55
+ "cli:help": "qcobjects --help"
52
56
  },
53
57
  "repository": {
54
58
  "type": "file",
@@ -72,13 +76,14 @@
72
76
  "@parcel/validator-typescript": "^2.8.3",
73
77
  "@types/qcobjects": "github:QCObjects/-types-qcobjects",
74
78
  "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk",
75
- "@typescript-eslint/eslint-plugin": "^5.58.0",
79
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
76
80
  "@typescript-eslint/parser": "^5.58.0",
77
- "eslint": "^8.38.0",
81
+ "eslint": "^8.39.0",
78
82
  "eslint-config-prettier": "^8.8.0",
79
83
  "eslint-config-qcobjects": "^0.0.26",
80
84
  "eslint-config-semistandard": "^17.0.0",
81
85
  "eslint-config-standard": "^17.0.0",
86
+ "eslint-config-standard-with-typescript": "^34.0.1",
82
87
  "eslint-plugin-import": "^2.27.5",
83
88
  "eslint-plugin-n": "^15.7.0",
84
89
  "eslint-plugin-promise": "^6.1.1",
@@ -89,7 +94,7 @@
89
94
  "npm-run-all": "^4.1.5",
90
95
  "parcel": "^2.8.3",
91
96
  "process": "^0.11.10",
92
- "qcobjects-cli": "^2.4.32",
97
+ "qcobjects-cli": "^2.4.34",
93
98
  "systemjs": "^6.14.1",
94
99
  "typescript": "^5.0.4"
95
100
  },
@@ -98,7 +103,9 @@
98
103
  "grunt-contrib-jasmine": "^4.0.0",
99
104
  "nyc": "^15.1.0",
100
105
  "qcobjects": "^2.4.67",
101
- "qcobjects-sdk": "^2.4.30"
106
+ "qcobjects-command-publish-static": "^1.0.2",
107
+ "qcobjects-sdk": "^2.4.30",
108
+ "semistandard": "^16.0.1"
102
109
  },
103
110
  "engines": {
104
111
  "npm": ">=8",
package/src/js/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {CONFIG, Component, RegisterWidgets} from "qcobjects";
1
+ import { CONFIG, Component, RegisterWidgets } 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
@@ -4,7 +4,7 @@ import global, { InheritClass, Package, logger } from "qcobjects";
4
4
  import { NotificationComponent } from "qcobjects-sdk";
5
5
 
6
6
  Package("com.qcobjects.installer", [
7
- class Installer extends InheritClass{
7
+ class Installer extends InheritClass {
8
8
  root: Element;
9
9
  promptEvent!: HTMLElement;
10
10
 
@@ -15,15 +15,15 @@ Package("com.qcobjects.installer", [
15
15
  * @constructor
16
16
  * @param {HTMLElement} root
17
17
  */
18
- constructor(root:HTMLElement) {
18
+ constructor (root: HTMLElement) {
19
19
  super();
20
20
 
21
21
  this.root = root;
22
- window.addEventListener("beforeinstallprompt", ()=>this.beforeinstallprompt.bind(this), false);
23
- window.addEventListener("appinstalled", ()=>this.installed.bind(this), false);
22
+ window.addEventListener("beforeinstallprompt", () => this.beforeinstallprompt.bind(this), false);
23
+ window.addEventListener("appinstalled", () => this.installed.bind(this), false);
24
24
 
25
- root.addEventListener("click", ()=>this.install.bind(this));
26
- root.addEventListener("touchend", ()=>this.install.bind(this));
25
+ root.addEventListener("click", () => this.install.bind(this));
26
+ root.addEventListener("touchend", () => this.install.bind(this));
27
27
 
28
28
  window.matchMedia("(display-mode: standalone)").addEventListener("change", (evt) => {
29
29
  let displayMode = "browser";
@@ -42,7 +42,7 @@ Package("com.qcobjects.installer", [
42
42
  * @param {Event} e
43
43
  * @returns {boolean}
44
44
  */
45
- beforeinstallprompt(e:Event) {
45
+ beforeinstallprompt (e: Event) {
46
46
  logger.debug("registering installer event");
47
47
  e.preventDefault();
48
48
  global.set("promptEvent", e);
@@ -54,7 +54,7 @@ Package("com.qcobjects.installer", [
54
54
  * it works after the install event
55
55
  * @date 18/04/2023 - 22:28:36
56
56
  */
57
- installed() {
57
+ installed () {
58
58
  logger.debug("app is already installed");
59
59
  global.set("promptEvent", null);
60
60
  // This fires after onbeforinstallprompt OR after manual add to homescreen.
@@ -65,7 +65,7 @@ Package("com.qcobjects.installer", [
65
65
  * it executes the install after the button click
66
66
  * @date 18/04/2023 - 22:29:11
67
67
  */
68
- install() {
68
+ install () {
69
69
  const root = this.root;
70
70
  logger.debug("installer actioned");
71
71
  let promptEvent = global.get("promptEvent", null);
@@ -74,7 +74,7 @@ Package("com.qcobjects.installer", [
74
74
 
75
75
  promptEvent.prompt();
76
76
  promptEvent.userChoice
77
- .then(function (choiceResult: { outcome: string; }) {
77
+ .then(function (choiceResult: { outcome: string }) {
78
78
  if (choiceResult.outcome === "accepted") {
79
79
  // The user actioned the prompt (good or bad).
80
80
  // good is handled in
@@ -84,7 +84,7 @@ Package("com.qcobjects.installer", [
84
84
  }
85
85
  promptEvent = null;
86
86
  })
87
- .catch(function (installError: { toString: () => any; }) {
87
+ .catch(function (installError: { toString: () => string }) {
88
88
  // Boo. update the UI.
89
89
  promptEvent = null;
90
90
  root.classList.remove("available");
@@ -96,4 +96,3 @@ Package("com.qcobjects.installer", [
96
96
  }
97
97
  }
98
98
  ]);
99
-
@@ -4,7 +4,6 @@ import { Package, JSONService, Service, logger, Class } from "qcobjects";
4
4
 
5
5
  Package("com.qcobjects.services.github", [
6
6
  class GitHubService extends JSONService {
7
-
8
7
  /**
9
8
  * Name of the service
10
9
  * @date 18/04/2023 - 22:30:07
@@ -13,7 +12,6 @@ Package("com.qcobjects.services.github", [
13
12
  */
14
13
  name = "myservice";
15
14
 
16
-
17
15
  /**
18
16
  * It specifies if the service has a external url. If true, you can pass absolute urls in url property
19
17
  * @date 18/04/2023 - 22:30:37
@@ -22,7 +20,6 @@ Package("com.qcobjects.services.github", [
22
20
  */
23
21
  external = true;
24
22
 
25
-
26
23
  /**
27
24
  * If it is true, the service call will be cached
28
25
  * @date 18/04/2023 - 22:31:41
@@ -31,7 +28,6 @@ Package("com.qcobjects.services.github", [
31
28
  */
32
29
  cached = false;
33
30
 
34
-
35
31
  /**
36
32
  * It can be GET, POST, PUT
37
33
  * @date 18/04/2023 - 22:32:29
@@ -40,7 +36,6 @@ Package("com.qcobjects.services.github", [
40
36
  */
41
37
  method = "GET";
42
38
 
43
-
44
39
  /**
45
40
  * You can add special headers using this property
46
41
  * @date 18/04/2023 - 22:33:20
@@ -49,7 +44,6 @@ Package("com.qcobjects.services.github", [
49
44
  */
50
45
  headers = { "Content-Type": "application/json" };
51
46
 
52
-
53
47
  /**
54
48
  * URL for the service call
55
49
  * @date 18/04/2023 - 22:34:09
@@ -58,7 +52,6 @@ Package("com.qcobjects.services.github", [
58
52
  */
59
53
  url = "https://api.github.com/orgs/QuickCorp/repos";
60
54
 
61
-
62
55
  /**
63
56
  * This is used internally for XHR requests. Default value is false.
64
57
  * @date 18/04/2023 - 22:34:29
@@ -67,15 +60,14 @@ Package("com.qcobjects.services.github", [
67
60
  */
68
61
  withCredentials = false;
69
62
 
70
-
71
63
  /**
72
64
  * It is called once the service call is done
73
65
  * @param param0 this param has two properties, one is the native request call (XHR or Fetch object). The second property is the service object.
74
66
  * @returns Promise
75
67
  */
76
- done({ request, service }: { request: XMLHttpRequest, service: Service }) {
68
+ done ({ request, service }: { request: XMLHttpRequest, service: Service }) {
77
69
  logger.debug(request);
78
- const result = JSON.parse(service.template).reverse().map(function (project: { id: string; description: string; name: string; html_url: string; }) {
70
+ const result = JSON.parse(service.template).reverse().map(function (project: { id: string, description: string, name: string, html_url: string }) {
79
71
  return {
80
72
  id: project.id,
81
73
  description: project.description,
@@ -101,9 +93,9 @@ Package("com.qcobjects.services.github", [
101
93
  url = "https://api.github.com/search/repositories?q=qcobjects";
102
94
  withCredentials = false;
103
95
 
104
- done({ request, service }: { request: XMLHttpRequest, service: Service }) {
96
+ done ({ request, service }: { request: XMLHttpRequest, service: Service }) {
105
97
  logger.debug(request);
106
- const result = JSON.parse(service.template).items.map(function (project: { id: string; description: string; name: string; html_url: string; }) {
98
+ const result = JSON.parse(service.template).items.map(function (project: { id: string, description: string, name: string, html_url: string }) {
107
99
  return {
108
100
  id: project.id,
109
101
  description: project.description,
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { Package, Component } from "qcobjects";
4
4
 
5
-
6
5
  Package("org.quickcorp.custom.components", [
7
6
  class GitHubGrid extends Component {
8
7
  name = "github-grid";
@@ -3,17 +3,17 @@
3
3
  /* eslint-disable no-unused-vars */
4
4
  "use strict";
5
5
 
6
- import global, { Package, Controller, logger, _DOMCreateElement, Effect, New, ClassFactory, QCObjectsElement, QCObjectsShadowedElement, Component } from "qcobjects";
6
+ import global, { Package, Controller, logger, _DOMCreateElement, type Effect, New, ClassFactory, type QCObjectsElement, type QCObjectsShadowedElement, type Component } from "qcobjects";
7
7
 
8
8
  Package("org.quickcorp.custom.controllers", [
9
9
  class MainController extends Controller {
10
10
  static loaded: boolean;
11
- constructor ({component}:{component:Component}) {
11
+ constructor ({ component }: { component: Component }) {
12
12
  logger.debug("Initializing MainController...");
13
- super({component});
13
+ super({ component });
14
14
  }
15
15
 
16
- done (...args:Array<never>) {
16
+ done (...args: never[]) {
17
17
  const _ret_ = super.done(args);
18
18
  if (!MainController.loaded) {
19
19
  const s = _DOMCreateElement("style");
@@ -29,31 +29,31 @@ Package("org.quickcorp.custom.controllers", [
29
29
  class SideNavController extends Controller {
30
30
  effect!: Effect;
31
31
  visibility!: boolean;
32
- constructor ({component}:{component:Component}) {
32
+ constructor ({ component }: { component: Component }) {
33
33
  logger.debug("Initializing SideNavController...");
34
- super({component});
34
+ super({ component });
35
35
  (global as any).sideNavController = this;
36
36
  }
37
37
 
38
- done (...args:Array<any>){
38
+ done (...args: any[]) {
39
39
  super.done(args);
40
- this.effect = New(ClassFactory("Fade"),{
40
+ this.effect = New(ClassFactory("Fade"), {
41
41
  duration: 300
42
42
  });
43
43
  this.close();
44
44
  }
45
45
 
46
46
  open () {
47
- const componentRoot = (this.component.shadowed) ? (this.component.shadowRoot) : (this.component.body);
47
+ const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot) : (this.component.body);
48
48
  if (this.effect != null) {
49
49
  this.effect.apply(componentRoot, 0, 1);
50
50
  }
51
- if (componentRoot !== undefined){
51
+ if (componentRoot !== undefined) {
52
52
  componentRoot.style.width = "100%";
53
53
  componentRoot.style.overflowX = "visible";
54
54
  if (Object.hasOwnProperty.call(componentRoot, "parentElement") && typeof componentRoot.parentElement !== "undefined") {
55
55
  const parentElement = componentRoot.parentElement as QCObjectsElement;
56
- if (parentElement !== null){
56
+ if (parentElement !== null) {
57
57
  parentElement.subelements(".navbtn")[0].style.display = "none";
58
58
  parentElement.subelements(".closebtn")[0].style.display = "block";
59
59
  }
@@ -64,18 +64,18 @@ Package("org.quickcorp.custom.controllers", [
64
64
  }
65
65
 
66
66
  close () {
67
- const componentRoot = (this.component.shadowed) ? (this.component.shadowRoot) : (this.component.body);
67
+ const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot) : (this.component.body);
68
68
  if (this.effect != null) {
69
69
  this.effect.apply(componentRoot, 1, 0);
70
70
  }
71
- if (componentRoot !== undefined){
71
+ if (componentRoot !== undefined) {
72
72
  componentRoot.style.width = "0px";
73
73
  componentRoot.style.overflowX = "hidden";
74
74
  if (Object.hasOwnProperty.call(componentRoot, "parentElement") && typeof componentRoot.parentElement !== "undefined") {
75
75
  const parentElement = componentRoot.parentElement as QCObjectsElement;
76
76
  parentElement.subelements(".navbtn")[0].style.display = "block";
77
77
  parentElement.subelements(".closebtn")[0].style.display = "none";
78
- }
78
+ }
79
79
  }
80
80
  this.visibility = false;
81
81
  return this.visibility;
@@ -91,19 +91,19 @@ Package("org.quickcorp.custom.controllers", [
91
91
  },
92
92
 
93
93
  class HeaderController extends Controller {
94
- installer:any;
94
+ installer: any;
95
95
 
96
96
  loadInstallerButton () {
97
- const componentRoot = (this.component.shadowed) ? (this.component.shadowRoot as QCObjectsShadowedElement) : (this.component.body as QCObjectsElement);
97
+ const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot as QCObjectsShadowedElement) : (this.component.body as QCObjectsElement);
98
98
  componentRoot.subelements("#installerbutton").map(
99
- (element)=>{
99
+ (element) => {
100
100
  this.installer = New(ClassFactory("Installer"), element);
101
101
  return element;
102
102
  }
103
103
  );
104
104
  }
105
105
 
106
- done (...args:Array<never>) {
106
+ done (...args: never[]) {
107
107
  const _ret_ = super.done(args);
108
108
  this.loadInstallerButton();
109
109
  return _ret_;
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { Package, TransitionEffect } from "qcobjects";
4
4
 
5
-
6
5
  Package("org.quickcorp.custom.effects", [
7
6
 
8
7
  class MainTransitionEffect extends TransitionEffect {
@@ -5,11 +5,10 @@ import { Package, View } from "qcobjects";
5
5
  Package("org.quickcorp.custom.views", [
6
6
 
7
7
  class CardView extends View {
8
-
9
- done (...args:Array<never>) {
8
+ done (...args: never[]) {
10
9
  const _ret_ = super.done(args);
11
10
  const component = this.component;
12
- if (component !== undefined && component.body !== undefined){
11
+ if (component !== undefined && component.body !== undefined) {
13
12
  component.body.style.display = "block";
14
13
  component.body.style.width = "100px";
15
14
  component.body.style.height = "100px";
@@ -18,4 +17,3 @@ Package("org.quickcorp.custom.views", [
18
17
  }
19
18
  }
20
19
  ]);
21
-
@@ -1,26 +1,25 @@
1
- import { Effect, Controller } from "qcobjects";
1
+ import { type Effect, Controller } from "qcobjects";
2
2
 
3
3
  declare namespace global {
4
- class SideNavController extends Controller{
5
- effect?: Effect;
6
- visibility?: boolean;
7
- }
4
+ class SideNavController extends Controller {
5
+ effect?: Effect;
6
+ visibility?: boolean;
7
+ }
8
8
 
9
+ class Installer {
10
+ root: Element;
11
+ promptEvent!: Event;
9
12
 
10
- class Installer {
11
- root: Element;
12
- promptEvent!: any;
13
-
14
- constructor(root:any);
15
- beforeinstallprompt(e:Event);
16
- installed();
17
- install();
18
- }
19
-
20
- let sideNavController: SideNavController;
21
- function set(_, value:any);
22
- function get(_:string, value:any);
13
+ constructor (root: HTMLElement)
14
+ beforeinstallprompt (e: Event)
15
+ installed ()
16
+ install ()
17
+ }
18
+
19
+ let sideNavController: SideNavController;
20
+ function set (_, value: never)
21
+ function get (_: string, value: never)
23
22
 
24
23
  }
25
24
 
26
- export default global;
25
+ export default global;
package/src/manifest.json CHANGED
@@ -9,9 +9,11 @@
9
9
  "short_name": "qcobjectsnewapp",
10
10
  "start_url": "/",
11
11
  "theme_color": "#000000",
12
- "shortcuts": [],
12
+ "shortcuts": [],
13
13
  "lang": "en-US",
14
- "categories": ["utilities"],
14
+ "categories": [
15
+ "utilities"
16
+ ],
15
17
  "icons": [
16
18
  {
17
19
  "src": "./favicon.ico",
@@ -57,9 +59,16 @@
57
59
  "src": "img/icons/icon-512x512.png",
58
60
  "sizes": "512x512",
59
61
  "type": "image/png"
62
+ },
63
+ {
64
+ "src": "img/icons/icon-512x512.png",
65
+ "sizes": "any",
66
+ "purpose":"any maskable",
67
+ "type": "image/png"
60
68
  }
69
+
61
70
  ],
62
- "screenshots" : [
71
+ "screenshots": [
63
72
  {
64
73
  "src": "img/screenshots/screenshot1.webp",
65
74
  "sizes": "1280x720",
@@ -73,7 +82,8 @@
73
82
  ],
74
83
  "splash_pages": null,
75
84
  "prefer_related_applications": false,
76
- "related_applications": [{
85
+ "related_applications": [
86
+ {
77
87
  "platform": "play",
78
88
  "url": "https://play.google.com/store/apps/details?id=com.example.qcobjects_newapp",
79
89
  "id": "com.example.qcobjects_newapp"
@@ -82,5 +92,9 @@
82
92
  "platform": "itunes",
83
93
  "url": "https://itunes.apple.com/app/qcobjects_newapp/id123456789"
84
94
  }
95
+ ],
96
+ "display_override": [
97
+ "standalone",
98
+ "minimal-ui"
85
99
  ]
86
- }
100
+ }