qcobjectsnewapp 1.2.83 → 1.2.90
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/.github/FUNDING.yml +12 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +33 -0
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/npmpublish.yml +38 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/runConfigurations/QCObjects_Server.xml +9 -0
- package/.idea/runConfigurations.xml +10 -0
- package/VERSION +1 -1
- package/css/components/button.css +34 -33
- package/css/components/card.css +16 -14
- package/css/components/hero/hero-call-to-action.css +5 -5
- package/css/components/hero/hero-overlay.css +4 -4
- package/css/components/hero/hero-two-column-form.css +5 -5
- package/css/components/modal.css +9 -7
- package/css/desktop/container.css +10 -10
- package/css/desktop/content.css +9 -9
- package/css/desktop/footer.css +1 -1
- package/css/desktop/index.css +1 -1
- package/css/desktop/navbar.css +13 -11
- package/css/desktop/sidebar.css +1 -1
- package/css/index.css +118 -112
- package/css/mobile/content.css +13 -13
- package/css/mobile/footer.css +1 -1
- package/css/mobile/navbar.css +39 -30
- package/css/mobile/sidebar.css +1 -1
- package/css/modern-base.css +123 -108
- package/css/theme/basic/style.css +37 -35
- package/css/theme/cyan/style.css +38 -36
- package/js/init.js +1 -0
- package/js/packages/com.qcobjects.installer.js +65 -0
- package/js/packages/org.quickcorp.custom.controllers.js +102 -110
- package/js/packages/org.quickcorp.custom.js +1 -0
- package/js/packages/org.quickcorp.custom.views.js +0 -1
- package/package.json +11 -6
- package/qcobjectsnewapp.iml +8 -0
- package/sw.js +1 -1
- package/js/packages/installer.js +0 -47
package/css/modern-base.css
CHANGED
|
@@ -23,139 +23,154 @@
|
|
|
23
23
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
24
24
|
* license document, but changing it is not allowed.
|
|
25
25
|
*/
|
|
26
|
-
:root{
|
|
27
|
-
--box-shadow: 0 1px 3px 0 rgba(0,0,0
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
--header-background-color: rgba(1,1,1,1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
color:var(--title);
|
|
66
|
-
font-weight:700;
|
|
67
|
-
}
|
|
68
|
-
h2, h3{
|
|
69
|
-
margin-bottom:0px;
|
|
70
|
-
}
|
|
71
|
-
h1{
|
|
72
|
-
font-family: var(--font2);
|
|
73
|
-
max-width: 600px;
|
|
74
|
-
color: var(--title);
|
|
75
|
-
margin-bottom: 0px;
|
|
76
|
-
max-width: 450px;
|
|
77
|
-
}
|
|
78
|
-
h2{
|
|
79
|
-
margin-top:0px;
|
|
80
|
-
}
|
|
81
|
-
p{
|
|
82
|
-
font-family:var(--font2);
|
|
83
|
-
}
|
|
84
|
-
p *{
|
|
85
|
-
font-family:var(--font2);
|
|
86
|
-
}
|
|
87
|
-
*{
|
|
88
|
-
font-family:var(--font);
|
|
89
|
-
color:var(--text);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
button:not(.navbtn),{
|
|
94
|
-
padding: 10px 20px 10px 20px;
|
|
95
|
-
border: 0px;
|
|
96
|
-
outline: 0px;
|
|
97
|
-
border-radius: 2px;
|
|
98
|
-
background: var(--primary);
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
color: var(--text-inverse);
|
|
101
|
-
box-shadow: 0 10px 30px var(--primary-shadow);
|
|
102
|
-
transition: var(--transition);
|
|
103
|
-
-webkit-transition: var(--transition);
|
|
104
|
-
font-family: var(--font2);
|
|
105
|
-
position:relative;
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
align-items: center;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
button:not(.navbtn):hover{
|
|
112
|
-
filter:brightness(0.9);
|
|
113
|
-
-webkit-transform: scale(.9);
|
|
114
|
-
transform: scale(.9);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
header{
|
|
118
|
-
z-index:10;
|
|
119
|
-
transition:var(--transition);
|
|
120
|
-
-webkit-transition:var(--transition);
|
|
121
|
-
justify-content:center;
|
|
122
|
-
align-items:center;
|
|
123
|
-
background-color: var(--header-background-color);
|
|
26
|
+
:root {
|
|
27
|
+
--box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
|
|
28
|
+
--card-shadow: rgba(228, 228, 234, 0.22) 0 22px 25px 0, rgba(228, 228, 234, 0.5) 0 9px 23px 0;
|
|
29
|
+
--card-shadow-hover: rgba(228, 228, 234, 0.56) 0 22px 32px 0, rgba(228, 228, 234, 0.64) 0 9px 28px 0;
|
|
30
|
+
--transition: all 0.3s ease-in-out;
|
|
31
|
+
--font: 'Lato', sans-serif;
|
|
32
|
+
--font2: 'Poppins', sans-serif;
|
|
33
|
+
--sidebar: 250px;
|
|
34
|
+
--hover: rgba(216, 216, 233, 0.2);
|
|
35
|
+
--title: #394963;
|
|
36
|
+
--text: #7f8897;
|
|
37
|
+
--grey: #e7e7e7;
|
|
38
|
+
--headerHeight: 70px;
|
|
39
|
+
--primary: #6e61ff;
|
|
40
|
+
--secondary: #3bdef2;
|
|
41
|
+
--text-inverse: #fff;
|
|
42
|
+
--gradient1: linear-gradient(45deg, #d176ff, #9f6bff);
|
|
43
|
+
--gradient1: linear-gradient(45deg, #28f4f5, #84abf3);
|
|
44
|
+
--gradient2: linear-gradient(45deg, #fff, #a165ff);
|
|
45
|
+
--primary-shadow: rgba(101, 219, 255, 0.21);
|
|
46
|
+
--circle: rgba(36, 188, 211, 0.03);
|
|
47
|
+
--header-background-color: rgba(1, 1, 1, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
html {
|
|
51
|
+
scroll-behavior: smooth;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body {
|
|
55
|
+
overflow-x: hidden;
|
|
56
|
+
margin: 0;
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: 100vw;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
main {
|
|
62
|
+
width: 100%;
|
|
63
|
+
position: relative;
|
|
64
|
+
overflow: hidden;
|
|
124
65
|
}
|
|
125
66
|
|
|
67
|
+
h1,
|
|
68
|
+
h2,
|
|
69
|
+
h3,
|
|
70
|
+
h4,
|
|
71
|
+
h5,
|
|
72
|
+
h6 {
|
|
73
|
+
color: var(--title);
|
|
74
|
+
font-weight: 700;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h2,
|
|
78
|
+
h3 {
|
|
79
|
+
margin-bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
h1 {
|
|
83
|
+
font-family: var(--font2);
|
|
84
|
+
color: var(--title);
|
|
85
|
+
margin-bottom: 0;
|
|
86
|
+
max-width: 450px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
h2 {
|
|
90
|
+
margin-top: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
p {
|
|
94
|
+
font-family: var(--font2);
|
|
95
|
+
}
|
|
126
96
|
|
|
127
97
|
|
|
98
|
+
|
|
99
|
+
* {
|
|
100
|
+
font-family: var(--font);
|
|
101
|
+
color: var(--text);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
p * {
|
|
105
|
+
font-family: var(--font2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
button:not(.navbtn), {
|
|
109
|
+
padding: 10px 20px 10px 20px;
|
|
110
|
+
border: 0;
|
|
111
|
+
outline: 0;
|
|
112
|
+
border-radius: 2px;
|
|
113
|
+
background: var(--primary);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
color: var(--text-inverse);
|
|
116
|
+
box-shadow: 0 10px 30px var(--primary-shadow);
|
|
117
|
+
transition: var(--transition);
|
|
118
|
+
-webkit-transition: var(--transition);
|
|
119
|
+
font-family: var(--font2);
|
|
120
|
+
position: relative;
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
button:not(.navbtn):hover {
|
|
127
|
+
filter: brightness(0.9);
|
|
128
|
+
-webkit-transform: scale(0.9);
|
|
129
|
+
transform: scale(0.9);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
header {
|
|
133
|
+
z-index: 10;
|
|
134
|
+
transition: var(--transition);
|
|
135
|
+
-webkit-transition: var(--transition);
|
|
136
|
+
justify-content: center;
|
|
137
|
+
align-items: center;
|
|
138
|
+
background-color: var(--header-background-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
128
141
|
@keyframes circle-ripple {
|
|
129
142
|
from {
|
|
130
143
|
opacity: 1;
|
|
131
|
-
transform: scale3d(1,1,1);
|
|
144
|
+
transform: scale3d(1, 1, 1);
|
|
132
145
|
}
|
|
133
146
|
|
|
134
147
|
to {
|
|
135
148
|
opacity: 0;
|
|
136
|
-
transform: scale3d(3,3,1);
|
|
149
|
+
transform: scale3d(3, 3, 1);
|
|
137
150
|
}
|
|
138
151
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
152
|
+
|
|
153
|
+
a {
|
|
154
|
+
text-decoration: none;
|
|
155
|
+
color: var(--primary);
|
|
156
|
+
position: relative;
|
|
157
|
+
display: inline-block;
|
|
144
158
|
}
|
|
145
|
-
|
|
159
|
+
|
|
160
|
+
a::after {
|
|
146
161
|
background: none repeat scroll 0 0 transparent;
|
|
162
|
+
background: var(--primary);
|
|
147
163
|
bottom: 0;
|
|
148
164
|
content: "";
|
|
149
165
|
display: block;
|
|
150
166
|
height: 2px;
|
|
151
167
|
left: 50%;
|
|
152
168
|
position: absolute;
|
|
153
|
-
background: var(--primary);
|
|
154
169
|
transition: width 0.3s ease 0s, left 0.3s ease 0s;
|
|
155
170
|
width: 0;
|
|
156
171
|
}
|
|
157
172
|
|
|
158
|
-
a:hover
|
|
173
|
+
a:hover::after {
|
|
159
174
|
width: 100%;
|
|
160
175
|
left: 0;
|
|
161
176
|
}
|
|
@@ -23,50 +23,52 @@
|
|
|
23
23
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
24
24
|
* license document, but changing it is not allowed.
|
|
25
25
|
*/
|
|
26
|
+
|
|
26
27
|
/* NAV */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
nav > component {
|
|
29
|
+
background-color: #111;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
nav > component a {
|
|
33
|
+
font-size: 15px;
|
|
34
|
+
color: #ecffc7;
|
|
35
|
+
}
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
37
|
+
nav > component a:hover {
|
|
38
|
+
color: #f1f1f1;
|
|
39
|
+
}
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
nav details {
|
|
42
|
+
background-color: #222;
|
|
43
|
+
}
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
background-color: #222;
|
|
42
|
-
}
|
|
45
|
+
nav { color: white; }
|
|
43
46
|
|
|
44
|
-
nav {color: white;}
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
nav {
|
|
50
|
+
text-align: justify;
|
|
51
|
+
}
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
nav > button.navbtn {
|
|
54
|
+
background-color: #111;
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
58
|
+
nav > span.topnav {
|
|
59
|
+
background-color: #111;
|
|
60
|
+
}
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
/* HEADER */
|
|
63
|
+
header {
|
|
64
|
+
padding-top: 80px;
|
|
65
|
+
}
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
header div {
|
|
66
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
|
|
67
|
-
}
|
|
67
|
+
header div {
|
|
68
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
69
|
+
}
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
/* FOOTER */
|
|
72
|
+
footer {
|
|
73
|
+
background: #fff7f7;
|
|
74
|
+
}
|
package/css/theme/cyan/style.css
CHANGED
|
@@ -23,51 +23,53 @@
|
|
|
23
23
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
24
24
|
* license document, but changing it is not allowed.
|
|
25
25
|
*/
|
|
26
|
+
|
|
26
27
|
/* NAV */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
nav > component {
|
|
29
|
+
background-color: rgb(106, 229, 245);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
nav > component a {
|
|
33
|
+
font-size: 15px;
|
|
34
|
+
color: #28197e;
|
|
35
|
+
}
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
37
|
+
nav > component a:hover {
|
|
38
|
+
color: #4aa7dd;
|
|
39
|
+
}
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
nav details {
|
|
42
|
+
background-color: rgb(90, 201, 216);
|
|
43
|
+
}
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
background-color: rgb(90, 201, 216);
|
|
42
|
-
}
|
|
45
|
+
nav { color: white; }
|
|
43
46
|
|
|
44
|
-
nav {color: white;}
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
nav {
|
|
50
|
+
text-align: justify;
|
|
51
|
+
}
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
nav > button.navbtn {
|
|
54
|
+
background-color: rgb(106, 229, 245);
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
58
|
+
nav > span.topnav {
|
|
59
|
+
background-color: rgb(106, 229, 245);
|
|
60
|
+
}
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
/* HEADER */
|
|
63
|
+
header {
|
|
64
|
+
padding-top: 80px;
|
|
65
|
+
}
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
header div {
|
|
66
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
|
|
67
|
-
}
|
|
67
|
+
header div {
|
|
68
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
69
|
+
}
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
/* FOOTER */
|
|
72
|
+
footer {
|
|
73
|
+
background: rgb(106, 229, 245);
|
|
74
|
+
color: #fff;
|
|
75
|
+
}
|
package/js/init.js
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Package("com.qcobjects.installer",[
|
|
3
|
+
Class("Installer",Object,{
|
|
4
|
+
promptEvent:null,
|
|
5
|
+
beforeinstallprompt (e) {
|
|
6
|
+
logger.debug("registering installer event");
|
|
7
|
+
e.preventDefault();
|
|
8
|
+
this.promptEvent = e;
|
|
9
|
+
this.root.classList.add("available");
|
|
10
|
+
return false;
|
|
11
|
+
},
|
|
12
|
+
installed () {
|
|
13
|
+
logger.debug("app is already installed");
|
|
14
|
+
this.promptEvent = null;
|
|
15
|
+
// This fires after onbeforinstallprompt OR after manual add to homescreen.
|
|
16
|
+
this.root.classList.remove("available");
|
|
17
|
+
},
|
|
18
|
+
_new_ ({root}) {
|
|
19
|
+
this.root = root;
|
|
20
|
+
window.addEventListener("beforeinstallprompt", this.beforeinstallprompt.bind(this),false);
|
|
21
|
+
window.addEventListener("appinstalled", this.installed.bind(this),false);
|
|
22
|
+
|
|
23
|
+
root.addEventListener("click", this.install.bind(this));
|
|
24
|
+
root.addEventListener("touchend", this.install.bind(this));
|
|
25
|
+
|
|
26
|
+
window.matchMedia("(display-mode: standalone)").addEventListener("change", (evt) => {
|
|
27
|
+
let displayMode = "browser";
|
|
28
|
+
if (evt.matches) {
|
|
29
|
+
displayMode = "standalone";
|
|
30
|
+
}
|
|
31
|
+
NotificationComponent.success(`TWA in ${displayMode} Mode`);
|
|
32
|
+
});
|
|
33
|
+
global.set("installer", this);
|
|
34
|
+
},
|
|
35
|
+
install () {
|
|
36
|
+
var root = this.root;
|
|
37
|
+
logger.debug("installer actioned");
|
|
38
|
+
var promptEvent = this.promptEvent;
|
|
39
|
+
if (promptEvent) {
|
|
40
|
+
logger.debug("prompt event");
|
|
41
|
+
|
|
42
|
+
promptEvent.prompt();
|
|
43
|
+
promptEvent.userChoice
|
|
44
|
+
.then(function (choiceResult) {
|
|
45
|
+
if (choiceResult.outcome === "accepted") {
|
|
46
|
+
// The user actioned the prompt (good or bad).
|
|
47
|
+
// good is handled in
|
|
48
|
+
root.classList.remove("available");
|
|
49
|
+
} else {
|
|
50
|
+
logger.debug("User has chosen not to install the PWA");
|
|
51
|
+
}
|
|
52
|
+
promptEvent = null;
|
|
53
|
+
})
|
|
54
|
+
.catch(function (installError) {
|
|
55
|
+
// Boo. update the UI.
|
|
56
|
+
promptEvent = null;
|
|
57
|
+
root.classList.remove("available");
|
|
58
|
+
logger.warn(`Error during install: ${installError.toString()}`);
|
|
59
|
+
});
|
|
60
|
+
} else {
|
|
61
|
+
logger.debug("not asking for install");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
]);
|