qcobjectsnewapp 2.4.14 → 2.4.18
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 +4 -4
- package/src/css/index.css +1 -1
- package/src/js/config.ts +1 -1
- package/src/js/packages/org.quickcorp.custom.controllers.ts +42 -29
- package/src/templates/components/layout-basic.tpl.html +43 -45
- package/src/templates/components/nav.tpl.html +12 -5
- package/src/templates/components/signuppage.tpl.html +2 -2
- package/src/templates/components/signupsuccessfulfooter.tpl.html +1 -1
- package/src/templates/components/topmenu.tpl.html +3 -3
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.18
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjectsnewapp",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
4
4
|
"description": "App template for New App in QCObjects",
|
|
5
5
|
"targets": {
|
|
6
6
|
"default": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"npm-run-all": "^4.1.5",
|
|
113
113
|
"parcel": "^2.8.3",
|
|
114
114
|
"process": "^0.11.10",
|
|
115
|
-
"qcobjects-cli": "^2.4.
|
|
115
|
+
"qcobjects-cli": "^2.4.42",
|
|
116
116
|
"qcobjects-command-publish-static": "^1.0.2",
|
|
117
117
|
"qcobjects-tsconfig": "^2.4.10",
|
|
118
118
|
"systemjs": "^6.14.1",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"grunt-contrib-jasmine": "^4.0.0",
|
|
124
124
|
"npm-watch": "^0.11.0",
|
|
125
125
|
"nyc": "^15.1.0",
|
|
126
|
-
"qcobjects": "^2.4.
|
|
127
|
-
"qcobjects-sdk": "^2.4.
|
|
126
|
+
"qcobjects": "^2.4.68",
|
|
127
|
+
"qcobjects-sdk": "^2.4.34",
|
|
128
128
|
"semistandard": "^16.0.1"
|
|
129
129
|
},
|
|
130
130
|
"engines": {
|
package/src/css/index.css
CHANGED
|
@@ -101,6 +101,7 @@ nav {
|
|
|
101
101
|
|
|
102
102
|
nav > quick-component {
|
|
103
103
|
width: 0;
|
|
104
|
+
min-height: 100%;
|
|
104
105
|
position: fixed;
|
|
105
106
|
z-index: 1;
|
|
106
107
|
top: 0;
|
|
@@ -111,7 +112,6 @@ nav > quick-component {
|
|
|
111
112
|
background-color: #111;
|
|
112
113
|
transition: 0.5s;
|
|
113
114
|
padding-top: 60px;
|
|
114
|
-
padding-bottom: 20%;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
nav > quick-component a {
|
package/src/js/config.ts
CHANGED
|
@@ -10,7 +10,7 @@ CONFIG.set("componentsBasePath", "templates/components/");
|
|
|
10
10
|
CONFIG.set("delayForReady", 1); // delay to wait before executing the first ready event, it includes imports
|
|
11
11
|
CONFIG.set("preserveComponentBodyTag", false); // don't use <componentBody></componentBody> tag
|
|
12
12
|
CONFIG.set("useConfigService", false); // Load settings from config.json
|
|
13
|
-
CONFIG.set("routingWay", "
|
|
13
|
+
CONFIG.set("routingWay", "pathname"); // routingWay possible values are 'hash','pathname','search'
|
|
14
14
|
CONFIG.set("useLocalSDK", true); // on the frontend side you can chose whether to load the SDK from sdk.qcobjects.dev or from your local website
|
|
15
15
|
CONFIG.set("tplextension", "tpl.html"); // this is the file extension to locate the template files (if component.name = 'main' then template name will be main.tpl.html)
|
|
16
16
|
CONFIG.set("asynchronousImportsLoad", true); // it is recommended to load the Import declarations in an asyncronous way
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
import global, { Package, Controller, logger, _DOMCreateElement, type Effect, New, ClassFactory, type QCObjectsElement, type QCObjectsShadowedElement, type Component } from "qcobjects";
|
|
7
|
+
import { Fade } from "qcobjects-sdk";
|
|
7
8
|
|
|
8
9
|
Package("org.quickcorp.custom.controllers", [
|
|
9
10
|
class MainController extends Controller {
|
|
@@ -27,35 +28,43 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
class SideNavController extends Controller {
|
|
30
|
-
effect
|
|
31
|
+
effect: Effect|null = null;
|
|
31
32
|
visibility!: boolean;
|
|
32
|
-
|
|
33
|
+
componentRoot!: any;
|
|
34
|
+
component:Component;
|
|
35
|
+
|
|
36
|
+
constructor (args:{component:Component, dependencies:Array<any>}) {
|
|
33
37
|
logger.debug("Initializing SideNavController...");
|
|
34
|
-
super(
|
|
35
|
-
|
|
38
|
+
super(args);
|
|
39
|
+
this.component = args.component;
|
|
40
|
+
if (this.component.shadowed) {
|
|
41
|
+
this.componentRoot = this.component.shadowRoot;
|
|
42
|
+
} else {
|
|
43
|
+
this.componentRoot = this.component.body;
|
|
44
|
+
}
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
done (...args: any[]) {
|
|
39
|
-
super.done(args);
|
|
40
|
-
this.effect = New(
|
|
48
|
+
const _ret_ = super.done(args);
|
|
49
|
+
this.effect = New(Fade, {
|
|
41
50
|
duration: 300
|
|
42
51
|
});
|
|
52
|
+
(global as any).sideNavController = this;
|
|
43
53
|
this.close();
|
|
54
|
+
return _ret_;
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
open () {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
componentRoot
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
parentElement.subelements(".navbtn")[0].style.display = "none";
|
|
58
|
-
parentElement.subelements(".closebtn")[0].style.display = "block";
|
|
58
|
+
if (this.componentRoot !== null) {
|
|
59
|
+
if (this.effect != null) {
|
|
60
|
+
this.effect.apply(this.componentRoot, 0, 1);
|
|
61
|
+
}
|
|
62
|
+
this.componentRoot?.classList.add("open");
|
|
63
|
+
// eslint-disable-next-line no-extra-boolean-cast
|
|
64
|
+
if (!!this.componentRoot?.parentElement) {
|
|
65
|
+
if (this.componentRoot.parentElement !== null) {
|
|
66
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".navbtn")[0].style.display = "none";
|
|
67
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".closebtn")[0].style.display = "block";
|
|
59
68
|
}
|
|
60
69
|
}
|
|
61
70
|
}
|
|
@@ -64,17 +73,15 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
64
73
|
}
|
|
65
74
|
|
|
66
75
|
close () {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
componentRoot
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
parentElement.subelements(".navbtn")[0].style.display = "block";
|
|
77
|
-
parentElement.subelements(".closebtn")[0].style.display = "none";
|
|
76
|
+
if (this.componentRoot !== null) {
|
|
77
|
+
if (this.effect != null) {
|
|
78
|
+
this.effect.apply(this.componentRoot, 1, 0);
|
|
79
|
+
}
|
|
80
|
+
this.componentRoot?.classList.remove("open");
|
|
81
|
+
// eslint-disable-next-line no-extra-boolean-cast
|
|
82
|
+
if (!!this.componentRoot?.parentElement) {
|
|
83
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".navbtn")[0].style.display = "block";
|
|
84
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".closebtn")[0].style.display = "none";
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
this.visibility = false;
|
|
@@ -92,6 +99,12 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
92
99
|
|
|
93
100
|
class HeaderController extends Controller {
|
|
94
101
|
installer: any;
|
|
102
|
+
component!: Component;
|
|
103
|
+
|
|
104
|
+
constructor(args:{component:Component, dependencies:Array<any>}){
|
|
105
|
+
super(args);
|
|
106
|
+
logger.debug("Header controller initialized");
|
|
107
|
+
}
|
|
95
108
|
|
|
96
109
|
loadInstallerButton () {
|
|
97
110
|
const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot as QCObjectsShadowedElement) : (this.component.body as QCObjectsElement);
|
|
@@ -13,35 +13,34 @@
|
|
|
13
13
|
|
|
14
14
|
<header>
|
|
15
15
|
<quick-component name="header" shadowed="true" controllerClass="HeaderController" effectClass="MainTransitionEffect">
|
|
16
|
-
<routing path="
|
|
17
|
-
<routing path="
|
|
18
|
-
<routing path="^#signup$" name="blank"></routing>
|
|
19
|
-
<routing path="^#signin$" name="blank"></routing>
|
|
20
|
-
<routing path="^#
|
|
21
|
-
<routing path="^#
|
|
22
|
-
<routing path="^#
|
|
23
|
-
<routing path="^#
|
|
24
|
-
<routing path="^#
|
|
25
|
-
<routing path="^#
|
|
26
|
-
<routing path="^#
|
|
27
|
-
<routing path="
|
|
28
|
-
<routing path="
|
|
29
|
-
<routing path="" name="header"></routing>
|
|
16
|
+
<routing path="^#author|/author$" name="blank"></routing>
|
|
17
|
+
<routing path="^#about-of|/about-of$" name="blank"></routing>
|
|
18
|
+
<routing path="^#signup|/signup$" name="blank"></routing>
|
|
19
|
+
<routing path="^#signin|/signin$" name="blank"></routing>
|
|
20
|
+
<routing path="^#page1|/page1$" name="blank"></routing>
|
|
21
|
+
<routing path="^#page2|/page2$" name="blank"></routing>
|
|
22
|
+
<routing path="^#page3|/page3$" name="header"></routing>
|
|
23
|
+
<routing path="^#loading|/loading$" name="blank"></routing>
|
|
24
|
+
<routing path="^#signupsuccessful|/signupsuccessful$" name="blank"></routing>
|
|
25
|
+
<routing path="^#overlay|/overlay$" name="hero/hero-overlay"></routing>
|
|
26
|
+
<routing path="^#two-column-header|/two-column-header$" name="hero/hero-two-column-form"></routing>
|
|
27
|
+
<routing path="^#|/$" name="header"></routing>
|
|
28
|
+
<routing path="^$" name="header"></routing>
|
|
30
29
|
</quick-component>
|
|
31
30
|
</header>
|
|
32
31
|
<aside>
|
|
33
32
|
<nav>
|
|
34
33
|
<span class="topnav">
|
|
35
34
|
<quick-component name="topmenu">
|
|
36
|
-
<routing path="
|
|
37
|
-
<routing path="
|
|
38
|
-
<routing path="
|
|
39
|
-
<routing path="
|
|
40
|
-
<routing path="
|
|
41
|
-
<routing path="
|
|
42
|
-
<routing path="
|
|
43
|
-
<routing path="
|
|
44
|
-
<routing path="" name="topmenu"></routing>
|
|
35
|
+
<routing path="^#author|/author$" name="blank"></routing>
|
|
36
|
+
<routing path="^#about-of|/about-of$" name="blank"></routing>
|
|
37
|
+
<routing path="^#page1|/page1$" name="blank"></routing>
|
|
38
|
+
<routing path="^#page2|/page2$" name="blank"></routing>
|
|
39
|
+
<routing path="^#page3|/page3$" name="blank"></routing>
|
|
40
|
+
<routing path="^#signup|/signup$" name="blank"></routing>
|
|
41
|
+
<routing path="^#signin|/signin$" name="blank"></routing>
|
|
42
|
+
<routing path="^#|/$" name="topmenu"></routing>
|
|
43
|
+
<routing path="^$" name="topmenu"></routing>
|
|
45
44
|
</quick-component>
|
|
46
45
|
</span>
|
|
47
46
|
<button aria-label="nav button" role="button" tabindex="-1" class="navbtn" onclick="global.sideNavController.toggle()"></button>
|
|
@@ -51,32 +50,31 @@
|
|
|
51
50
|
<main role="main">
|
|
52
51
|
<section>
|
|
53
52
|
<quick-component name="contentblock" effectClass="MainTransitionEffect">
|
|
54
|
-
<routing path="
|
|
55
|
-
<routing path="
|
|
56
|
-
<routing path="
|
|
57
|
-
<routing path="
|
|
58
|
-
<routing path="
|
|
59
|
-
<routing path="^#signup$" name="signup" ></routing>
|
|
60
|
-
<routing path="^#
|
|
61
|
-
<routing path="^#
|
|
62
|
-
<routing path="^#
|
|
63
|
-
<routing path="
|
|
64
|
-
<routing path="
|
|
65
|
-
<routing path="" name="contentblock"></routing>
|
|
53
|
+
<routing path="^#author|/author$" name="pages/author"></routing>
|
|
54
|
+
<routing path="^#about-of|/about-of$" name="pages/about-of"></routing>
|
|
55
|
+
<routing path="^#page1|/page1$" name="pages/page1"></routing>
|
|
56
|
+
<routing path="^#page2|/page2$" name="pages/page2"></routing>
|
|
57
|
+
<routing path="^#page3|/page3$" name="pages/page3"></routing>
|
|
58
|
+
<routing path="^#signup|/signup$" name="signup" ></routing>
|
|
59
|
+
<routing path="^#loading|/loading$" name="loading"></routing>
|
|
60
|
+
<routing path="^#signupsuccessful|/signupsuccessful$" name="signupsuccessful"></routing>
|
|
61
|
+
<routing path="^#signin|/signin$" name="login2"></routing>
|
|
62
|
+
<routing path="^#|/$" name="contentblock"></routing>
|
|
63
|
+
<routing path="^$" name="contentblock"></routing>
|
|
66
64
|
</quick-component>
|
|
67
65
|
</section>
|
|
68
66
|
</main>
|
|
69
67
|
<footer>
|
|
70
68
|
<quick-component name="footer" shadowed="true" effectClass="MainTransitionEffect">
|
|
71
|
-
<routing path="
|
|
72
|
-
<routing path="
|
|
73
|
-
<routing path="^#signup$" name="signupbuttons"></routing>
|
|
74
|
-
<routing path="^#loading$" name="loadingfooter"></routing>
|
|
75
|
-
<routing path="^#signupsuccessful$" name="signupsuccessfulfooter"></routing>
|
|
76
|
-
<routing path="
|
|
77
|
-
<routing path="
|
|
78
|
-
<routing path="
|
|
79
|
-
<routing path="
|
|
80
|
-
<routing path="" name="footer"></routing>
|
|
69
|
+
<routing path="^#author|/author$" name="blank"></routing>
|
|
70
|
+
<routing path="^#about-of|/about-of$" name="blank"></routing>
|
|
71
|
+
<routing path="^#signup|/signup$" name="signupbuttons"></routing>
|
|
72
|
+
<routing path="^#loading|/loading$" name="loadingfooter"></routing>
|
|
73
|
+
<routing path="^#signupsuccessful|/signupsuccessful$" name="signupsuccessfulfooter"></routing>
|
|
74
|
+
<routing path="^#page1|/page1$" name="blank"></routing>
|
|
75
|
+
<routing path="^#page2|/page2$" name="blank"></routing>
|
|
76
|
+
<routing path="^#page3|/page3$" name="blank"></routing>
|
|
77
|
+
<routing path="^#|/$" name="footer"></routing>
|
|
78
|
+
<routing path="^$" name="footer"></routing>
|
|
81
79
|
</quick-component>
|
|
82
80
|
</footer>
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
.open {
|
|
3
|
+
width: 100%;
|
|
4
|
+
overflow-x: visible;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
</style>
|
|
1
8
|
<span class="closebtn" onclick="global.sideNavController.toggle()"></span>
|
|
2
9
|
<div class="navcontent">
|
|
3
10
|
<details>
|
|
4
11
|
<summary>Main</summary>
|
|
5
12
|
<ul>
|
|
6
|
-
<li><a onclick="global.sideNavController.close()" href="
|
|
13
|
+
<li><a onclick="global.sideNavController.close()" href="/">Main</a></li>
|
|
7
14
|
</ul>
|
|
8
15
|
</details>
|
|
9
16
|
<details>
|
|
10
17
|
<summary>Register</summary>
|
|
11
18
|
<ul>
|
|
12
|
-
<li><a onclick="global.sideNavController.close();return true;" href="
|
|
13
|
-
<li><a onclick="global.sideNavController.close();return true;" href="
|
|
19
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/signup">Create an account</a></li>
|
|
20
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/signin">Sign In</a></li>
|
|
14
21
|
</ul>
|
|
15
22
|
</details>
|
|
16
23
|
<details>
|
|
17
24
|
<summary>Other</summary>
|
|
18
25
|
<ul>
|
|
19
|
-
<li><a onclick="global.sideNavController.close()" href="
|
|
20
|
-
<li><a onclick="global.sideNavController.close()" href="
|
|
26
|
+
<li><a onclick="global.sideNavController.close()" href="/author">Author</a></li>
|
|
27
|
+
<li><a onclick="global.sideNavController.close()" href="/about-of">About QCObjects</a></li>
|
|
21
28
|
</ul>
|
|
22
29
|
</details>
|
|
23
30
|
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<main role= “main”>
|
|
2
2
|
<section>
|
|
3
3
|
<quick-component name="contentblock">
|
|
4
|
-
<routing path="
|
|
4
|
+
<routing path="/signup" name="signup"></routing>
|
|
5
5
|
</quick-component>
|
|
6
6
|
</section>
|
|
7
7
|
</main>
|
|
8
8
|
<footer>
|
|
9
9
|
<quick-component name="footer">
|
|
10
|
-
<routing path="
|
|
10
|
+
<routing path="/signup" name="signupbuttons"></routing>
|
|
11
11
|
</quick-component>
|
|
12
12
|
</footer>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<div class="clearfix">
|
|
2
|
-
<button aria-label="Home" onclick="location.href='
|
|
2
|
+
<button aria-label="Home" onclick="location.href='/'" role="button" tabindex="-1" type="button" class="cancelbtn"><p>👈 Back to Home</p></button>
|
|
3
3
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<a href="
|
|
1
|
+
<a href="/" class="topmenu active">Home</a>
|
|
2
2
|
<a href="https://qcobjects.com" class="topmenu">QCObjects</a>
|
|
3
|
-
<a href="
|
|
4
|
-
<a href="
|
|
3
|
+
<a href="/signup" class="topmenu">Contact</a>
|
|
4
|
+
<a href="/signup" class="topmenu createaccountlink2">Register</a>
|
|
5
5
|
<div class="login-container">
|
|
6
6
|
<quick-component name="loginform"></quick-component>
|
|
7
7
|
</div>
|