qcobjectsnewapp 2.5.23-ts → 2.5.25-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/VERSION +1 -1
- package/package.json +2 -1
- package/public/js/init.js +20 -20
- package/public/js/init.js.map +4 -4
- package/public/js/packages/com.qcobjects.installer.js +15 -15
- package/public/js/packages/com.qcobjects.installer.js.map +3 -3
- package/public/js/packages/com.qcobjects.services.newapp.js +4 -4
- package/public/js/packages/com.qcobjects.services.newapp.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.components.js +8 -8
- package/public/js/packages/org.quickcorp.custom.components.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.controllers.js +16 -16
- package/public/js/packages/org.quickcorp.custom.controllers.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.effects.js +4 -4
- package/public/js/packages/org.quickcorp.custom.effects.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.js +20 -20
- package/public/js/packages/org.quickcorp.custom.js.map +4 -4
- package/public/js/packages/org.quickcorp.custom.models.js +4 -4
- package/public/js/packages/org.quickcorp.custom.models.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.views.js +4 -4
- package/public/js/packages/org.quickcorp.custom.views.js.map +3 -3
- package/public/sw.js +0 -2
- package/src/js/packages/com.qcobjects.installer.ts +83 -81
- package/src/js/packages/com.qcobjects.services.newapp.ts +20 -18
- package/src/js/packages/org.quickcorp.custom.components.ts +5 -7
- package/src/js/packages/org.quickcorp.custom.controllers.ts +115 -111
- package/src/js/packages/org.quickcorp.custom.d.ts +1 -1
- package/src/js/packages/org.quickcorp.custom.effects.ts +23 -21
- package/src/js/packages/org.quickcorp.custom.models.ts +12 -11
- package/src/js/packages/org.quickcorp.custom.ts +1 -1
- package/src/js/packages/org.quickcorp.custom.views.ts +13 -12
- package/src/sw.js +0 -2
- package/public/js/packages/com.qcobjects.services.github.js +0 -22
- package/public/js/packages/com.qcobjects.services.github.js.map +0 -7
- package/src/js/packages/com.qcobjects.services.github.d.ts +0 -1
- package/src/js/packages/com.qcobjects.services.github.ts +0 -213
package/public/sw.js
CHANGED
|
@@ -172,8 +172,6 @@ self.addEventListener("install", e => {
|
|
|
172
172
|
"js/init.js.map",
|
|
173
173
|
"js/packages/com.qcobjects.installer.js",
|
|
174
174
|
"js/packages/com.qcobjects.installer.js.map",
|
|
175
|
-
"js/packages/com.qcobjects.services.github.js",
|
|
176
|
-
"js/packages/com.qcobjects.services.github.js.map",
|
|
177
175
|
"js/packages/com.qcobjects.services.newapp.js",
|
|
178
176
|
"js/packages/com.qcobjects.services.newapp.js.map",
|
|
179
177
|
"js/packages/org.quickcorp.custom.components.js",
|
|
@@ -3,96 +3,98 @@
|
|
|
3
3
|
import { InheritClass, Package, logger, set, get } from "qcobjects";
|
|
4
4
|
import { NotificationComponent } from "qcobjects-sdk";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
promptEvent!: HTMLElement;
|
|
6
|
+
export class Installer extends InheritClass {
|
|
7
|
+
root: Element;
|
|
8
|
+
promptEvent!: HTMLElement;
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of Installer.
|
|
12
|
+
* @date 18/04/2023 - 22:27:17
|
|
13
|
+
*
|
|
14
|
+
* @constructor
|
|
15
|
+
* @param {HTMLElement} root
|
|
16
|
+
*/
|
|
17
|
+
constructor(root: HTMLElement) {
|
|
18
|
+
super();
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
this.root = root;
|
|
21
|
+
window.addEventListener("beforeinstallprompt", () => this.beforeinstallprompt.bind(this), false);
|
|
22
|
+
window.addEventListener("appinstalled", () => this.installed.bind(this), false);
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
root.addEventListener("click", () => this.install.bind(this));
|
|
25
|
+
root.addEventListener("touchend", () => this.install.bind(this));
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
window.matchMedia("(display-mode: standalone)").addEventListener("change", (evt) => {
|
|
28
|
+
let displayMode = "browser";
|
|
29
|
+
if (evt.matches) {
|
|
30
|
+
displayMode = "standalone";
|
|
31
|
+
}
|
|
32
|
+
NotificationComponent.success(`TWA in ${displayMode} Mode`);
|
|
33
|
+
});
|
|
34
|
+
set("installer", this);
|
|
35
|
+
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
/**
|
|
38
|
+
* It is executed before the install prompt event
|
|
39
|
+
* @date 18/04/2023 - 22:27:30
|
|
40
|
+
*
|
|
41
|
+
* @param {Event} e
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
beforeinstallprompt(e: Event) {
|
|
45
|
+
logger.debug("registering installer event");
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
set("promptEvent", e);
|
|
48
|
+
this.root.classList.add("available");
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
/**
|
|
53
|
+
* it works after the install event
|
|
54
|
+
* @date 18/04/2023 - 22:28:36
|
|
55
|
+
*/
|
|
56
|
+
installed() {
|
|
57
|
+
logger.debug("app is already installed");
|
|
58
|
+
set("promptEvent", null);
|
|
59
|
+
// This fires after onbeforinstallprompt OR after manual add to homescreen.
|
|
60
|
+
this.root.classList.remove("available");
|
|
61
|
+
}
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
/**
|
|
64
|
+
* it executes the install after the button click
|
|
65
|
+
* @date 18/04/2023 - 22:29:11
|
|
66
|
+
*/
|
|
67
|
+
install() {
|
|
68
|
+
const root = this.root;
|
|
69
|
+
logger.debug("installer actioned");
|
|
70
|
+
let promptEvent = get("promptEvent", null);
|
|
71
|
+
if (promptEvent) {
|
|
72
|
+
logger.debug("prompt event");
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
root.classList.remove("available");
|
|
82
|
-
} else {
|
|
83
|
-
logger.debug("User has chosen not to install the PWA");
|
|
84
|
-
}
|
|
85
|
-
promptEvent = null;
|
|
86
|
-
})
|
|
87
|
-
.catch(function (installError: { toString: () => string }) {
|
|
88
|
-
// Boo. update the UI.
|
|
89
|
-
promptEvent = null;
|
|
74
|
+
promptEvent.prompt();
|
|
75
|
+
promptEvent.userChoice
|
|
76
|
+
.then(function (choiceResult: { outcome: string }) {
|
|
77
|
+
if (choiceResult.outcome === "accepted") {
|
|
78
|
+
// The user actioned the prompt (good or bad).
|
|
79
|
+
// good is handled in
|
|
90
80
|
root.classList.remove("available");
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
} else {
|
|
82
|
+
logger.debug("User has chosen not to install the PWA");
|
|
83
|
+
}
|
|
84
|
+
promptEvent = null;
|
|
85
|
+
})
|
|
86
|
+
.catch(function (installError: { toString: () => string }) {
|
|
87
|
+
// Boo. update the UI.
|
|
88
|
+
promptEvent = null;
|
|
89
|
+
root.classList.remove("available");
|
|
90
|
+
logger.warn(`Error during install: ${installError.toString()}`);
|
|
91
|
+
});
|
|
92
|
+
} else {
|
|
93
|
+
logger.debug("It is not possible to get the prompt event for install ");
|
|
96
94
|
}
|
|
97
95
|
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
Package("com.qcobjects.installer", [
|
|
99
|
+
Installer
|
|
98
100
|
]);
|
|
@@ -7,25 +7,27 @@ type StandardResponse = {
|
|
|
7
7
|
service: Service;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
url = "/admin";
|
|
14
|
-
|
|
15
|
-
done (standardResponse:StandardResponse){
|
|
16
|
-
const hasAdmin = (template:string) => {
|
|
17
|
-
return (/<base href="\/admin\/" target="_self">/).test(template);
|
|
18
|
-
};
|
|
19
|
-
standardResponse.service.template = _DataStringify({
|
|
20
|
-
hasAdmin: hasAdmin(standardResponse.service.template as unknown as string)
|
|
21
|
-
});
|
|
22
|
-
}
|
|
10
|
+
export class AdminCheckService extends Service {
|
|
11
|
+
|
|
12
|
+
url = "/admin";
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
done (standardResponse:StandardResponse){
|
|
15
|
+
const hasAdmin = (template:string) => {
|
|
16
|
+
return (/<base href="\/admin\/" target="_self">/).test(template);
|
|
17
|
+
};
|
|
18
|
+
standardResponse.service.template = _DataStringify({
|
|
19
|
+
hasAdmin: hasAdmin(standardResponse.service.template as unknown as string)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
29
22
|
|
|
23
|
+
fail (standardResponse:StandardResponse){
|
|
24
|
+
standardResponse.service.template = _DataStringify({
|
|
25
|
+
hasAdmin: false
|
|
26
|
+
});
|
|
30
27
|
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
Package("com.qcobjects.services.newapp", [
|
|
32
|
+
AdminCheckService
|
|
31
33
|
]);
|
|
@@ -6,7 +6,7 @@ type ComponentServiceData = Component & {
|
|
|
6
6
|
serviceData:any;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
class GitHubGrid extends Component {
|
|
9
|
+
export class GitHubGrid extends Component {
|
|
10
10
|
name = "github-grid";
|
|
11
11
|
tplsource = "inline";
|
|
12
12
|
template = `
|
|
@@ -23,7 +23,7 @@ class GitHubGrid extends Component {
|
|
|
23
23
|
`;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
class DeployGrid extends Component {
|
|
26
|
+
export class DeployGrid extends Component {
|
|
27
27
|
name = "deploygrid";
|
|
28
28
|
template = `
|
|
29
29
|
<style>
|
|
@@ -46,7 +46,7 @@ class DeployGrid extends Component {
|
|
|
46
46
|
`;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class AdminCheckComponent extends Component {
|
|
49
|
+
export class AdminCheckComponent extends Component {
|
|
50
50
|
shadowed = true;
|
|
51
51
|
tplsource = "inline";
|
|
52
52
|
|
|
@@ -58,7 +58,7 @@ class AdminCheckComponent extends Component {
|
|
|
58
58
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class AdminSidebarOption extends AdminCheckComponent {
|
|
61
|
+
export class AdminSidebarOption extends AdminCheckComponent {
|
|
62
62
|
name = "admin-sidebar-option";
|
|
63
63
|
template = `
|
|
64
64
|
<style>
|
|
@@ -141,7 +141,7 @@ class AdminSidebarOption extends AdminCheckComponent {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
class AdminButton extends AdminCheckComponent {
|
|
144
|
+
export class AdminButton extends AdminCheckComponent {
|
|
145
145
|
name = "admin-button";
|
|
146
146
|
template = `
|
|
147
147
|
<style>
|
|
@@ -186,10 +186,8 @@ class AdminButton extends AdminCheckComponent {
|
|
|
186
186
|
}
|
|
187
187
|
return super.done(standardResponse);
|
|
188
188
|
}
|
|
189
|
-
|
|
190
189
|
}
|
|
191
190
|
|
|
192
|
-
|
|
193
191
|
Package("org.quickcorp.custom.components", [
|
|
194
192
|
AdminButton,
|
|
195
193
|
AdminSidebarOption,
|
|
@@ -3,144 +3,148 @@
|
|
|
3
3
|
/* eslint-disable no-unused-vars */
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
import { Package, Controller, logger, _DOMCreateElement, set,
|
|
7
|
-
type Effect, New, ClassFactory, type IQCObjectsElement,
|
|
6
|
+
import { Package, Controller, logger, _DOMCreateElement, set,
|
|
7
|
+
type Effect, New, ClassFactory, type IQCObjectsElement,
|
|
8
8
|
type IQCObjectsShadowedElement, type Component, type TControllerParams } from "qcobjects";
|
|
9
9
|
import { Fade } from "qcobjects-sdk";
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
11
|
+
export class MainController extends Controller {
|
|
12
|
+
static loaded: boolean;
|
|
13
|
+
constructor(controller:TControllerParams) {
|
|
14
|
+
logger.debug("Initializing MainController...");
|
|
15
|
+
super(controller);
|
|
16
|
+
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
done(...args: never[]) {
|
|
19
|
+
const _ret_ = super.done();
|
|
20
|
+
if (!MainController.loaded) {
|
|
21
|
+
const s = _DOMCreateElement("style");
|
|
22
|
+
s.innerHTML = `
|
|
24
23
|
@import url(css/body-layout.css);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
return _ret_;
|
|
24
|
+
`;
|
|
25
|
+
document.body.append(s);
|
|
26
|
+
logger.debug("MainController loaded");
|
|
27
|
+
MainController.loaded = true;
|
|
31
28
|
}
|
|
32
|
-
|
|
29
|
+
return _ret_;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
export class SideNavController extends Controller {
|
|
34
|
+
effect: Effect | null;
|
|
35
|
+
visibility!: boolean;
|
|
36
|
+
componentRoot!: any;
|
|
37
|
+
component: Component;
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
set("sideNavController", this);
|
|
50
|
-
this.effect = new Fade({
|
|
51
|
-
duration: 300
|
|
52
|
-
});
|
|
39
|
+
constructor(controller:TControllerParams) {
|
|
40
|
+
logger.debug("Initializing SideNavController...");
|
|
41
|
+
super(controller);
|
|
42
|
+
this.component = controller.component as unknown as Component;
|
|
43
|
+
if (this.component.shadowed) {
|
|
44
|
+
this.componentRoot = this.component.shadowRoot;
|
|
45
|
+
} else {
|
|
46
|
+
this.componentRoot = this.component.body;
|
|
53
47
|
}
|
|
48
|
+
set("sideNavController", this);
|
|
49
|
+
this.effect = new Fade({
|
|
50
|
+
duration: 300
|
|
51
|
+
});
|
|
52
|
+
}
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
done(...args: any[]) {
|
|
55
|
+
const _ret_ = super.done();
|
|
56
|
+
this.bindControls();
|
|
57
|
+
this.close();
|
|
58
|
+
return _ret_;
|
|
59
|
+
}
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
61
|
+
bindControls() {
|
|
62
|
+
if (this.componentRoot) {
|
|
63
|
+
const navLinks = (this.componentRoot as IQCObjectsElement)?.subelements("a[href]");
|
|
64
|
+
navLinks?.map((link: HTMLElement) => {
|
|
65
|
+
link.addEventListener("click", () => this.close());
|
|
66
|
+
return link;
|
|
67
|
+
});
|
|
70
68
|
}
|
|
69
|
+
}
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
71
|
+
open() {
|
|
72
|
+
if (this.componentRoot !== null) {
|
|
73
|
+
if (this.effect != null) {
|
|
74
|
+
this.effect.apply(this.componentRoot, 0, 1);
|
|
75
|
+
}
|
|
76
|
+
this.componentRoot?.classList.add("open");
|
|
77
|
+
// eslint-disable-next-line no-extra-boolean-cast
|
|
78
|
+
if (!!this.componentRoot?.parentElement) {
|
|
79
|
+
if (this.componentRoot.parentElement !== null) {
|
|
80
|
+
(this.componentRoot.parentElement as IQCObjectsElement).subelements(".navbtn")[0].style.display = "none";
|
|
81
|
+
(this.componentRoot.parentElement as IQCObjectsElement).subelements(".closebtn")[0].style.display = "block";
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
|
-
this.visibility = true;
|
|
87
|
-
return this.visibility;
|
|
88
84
|
}
|
|
85
|
+
this.visibility = true;
|
|
86
|
+
return this.visibility;
|
|
87
|
+
}
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
89
|
+
close() {
|
|
90
|
+
if (typeof this.componentRoot !== "undefined" && this.componentRoot !== null) {
|
|
91
|
+
if (this.effect != null) {
|
|
92
|
+
this.effect.apply(this.componentRoot, 1, 0);
|
|
93
|
+
}
|
|
94
|
+
this.componentRoot?.classList.remove("open");
|
|
95
|
+
// eslint-disable-next-line no-extra-boolean-cast
|
|
96
|
+
if (!!this.componentRoot?.parentElement) {
|
|
97
|
+
(this.componentRoot.parentElement as IQCObjectsElement).subelements(".navbtn")[0].style.display = "block";
|
|
98
|
+
(this.componentRoot.parentElement as IQCObjectsElement).subelements(".closebtn")[0].style.display = "none";
|
|
101
99
|
}
|
|
102
|
-
this.visibility = false;
|
|
103
|
-
return this.visibility;
|
|
104
100
|
}
|
|
101
|
+
this.visibility = false;
|
|
102
|
+
return this.visibility;
|
|
103
|
+
}
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
105
|
+
toggle() {
|
|
106
|
+
if (this.visibility) {
|
|
107
|
+
this.close();
|
|
108
|
+
} else {
|
|
109
|
+
this.open();
|
|
112
110
|
}
|
|
113
|
-
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
export class HeaderController extends Controller {
|
|
115
|
+
installer: any;
|
|
116
|
+
component!: Component;
|
|
118
117
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
constructor(controller: TControllerParams) {
|
|
119
|
+
super(controller);
|
|
120
|
+
logger.debug("Header controller initialized");
|
|
121
|
+
}
|
|
123
122
|
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
loadInstallerButton() {
|
|
124
|
+
const componentRoot = this.component.shadowed
|
|
126
125
|
? (this.component.shadowRoot as IQCObjectsShadowedElement)
|
|
127
126
|
: (this.component.body as IQCObjectsElement);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
componentRoot.subelements("#installerbutton").map(
|
|
133
|
-
(element) => {
|
|
134
|
-
this.installer = New(ClassFactory("Installer"), element);
|
|
135
|
-
return element;
|
|
136
|
-
}
|
|
137
|
-
);
|
|
127
|
+
if (typeof componentRoot === "undefined" || componentRoot === null) {
|
|
128
|
+
logger.debug("HeaderController has no component root yet, skipping installer button");
|
|
129
|
+
return;
|
|
138
130
|
}
|
|
131
|
+
componentRoot.subelements("#installerbutton").map(
|
|
132
|
+
(element) => {
|
|
133
|
+
this.installer = New(ClassFactory("Installer"), element);
|
|
134
|
+
return element;
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
139
138
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
139
|
+
done(...args: never[]) {
|
|
140
|
+
const _ret_ = super.done();
|
|
141
|
+
this.loadInstallerButton();
|
|
142
|
+
return _ret_;
|
|
145
143
|
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
Package("org.quickcorp.custom.controllers", [
|
|
147
|
+
MainController,
|
|
148
|
+
SideNavController,
|
|
149
|
+
HeaderController
|
|
146
150
|
]);
|
|
@@ -2,31 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
import { Package, TransitionEffect } from "qcobjects";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
export class MainTransitionEffect extends TransitionEffect {
|
|
6
|
+
duration = 780;
|
|
7
|
+
defaultParams: /* partial by design; base class supplies the rest */ any = {
|
|
8
|
+
alphaFrom: 0,
|
|
9
|
+
alphaTo: 1
|
|
10
|
+
};
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
alphaFrom: 0,
|
|
11
|
-
alphaTo: 1
|
|
12
|
-
};
|
|
12
|
+
effects = ["Fade", "MoveYInFromBottom"];
|
|
13
|
+
fitToHeight = true;
|
|
14
|
+
}
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
16
|
+
export class SlideLeftTransitionEffect extends TransitionEffect {
|
|
17
|
+
duration = 450;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
effects = ["Fade", "MoveXInFromLeft"];
|
|
20
|
+
fitToWidth = true;
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
23
|
+
export class SlideRightTransitionEffect extends TransitionEffect {
|
|
24
|
+
duration = 450;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
effects = ["Fade", "MoveXInFromRight"];
|
|
27
|
+
fitToWidth = true;
|
|
28
|
+
}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
Package("org.quickcorp.custom.effects", [
|
|
31
|
+
MainTransitionEffect,
|
|
32
|
+
SlideLeftTransitionEffect,
|
|
33
|
+
SlideRightTransitionEffect
|
|
32
34
|
]);
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import { Package, VO } from "qcobjects";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
export class ContactVO extends VO {
|
|
6
|
+
first_name = "";
|
|
7
|
+
last_name = "";
|
|
8
|
+
address = "";
|
|
9
|
+
postalCode = "";
|
|
10
|
+
city = "";
|
|
11
|
+
country = "";
|
|
12
|
+
email = "";
|
|
13
|
+
phone = "";
|
|
14
|
+
}
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
last_name = "";
|
|
10
|
-
address = "";
|
|
11
|
-
postalCode = "";
|
|
12
|
-
city = "";
|
|
13
|
-
country = "";
|
|
14
|
-
email = "";
|
|
15
|
-
phone = "";
|
|
16
|
-
}
|
|
16
|
+
Package("org.quickcorp.custom.models", [
|
|
17
|
+
ContactVO
|
|
17
18
|
]);
|
|
@@ -6,5 +6,5 @@ import "./org.quickcorp.custom.models";
|
|
|
6
6
|
import "./org.quickcorp.custom.components";
|
|
7
7
|
import "./org.quickcorp.custom.controllers";
|
|
8
8
|
import "./org.quickcorp.custom.views";
|
|
9
|
-
import "
|
|
9
|
+
import "@qcobjects/qcobjects-service-github";
|
|
10
10
|
import "./com.qcobjects.services.newapp";
|