qcobjectsnewapp 2.5.11-ts → 2.5.13-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/package.json +2 -2
- package/public/css/components/card.css +1 -1
- package/public/css/components/card.css.map +2 -2
- package/public/js/config.js +4 -4
- package/public/js/config.js.map +3 -3
- package/public/js/customWidgets.js +4 -4
- package/public/js/customWidgets.js.map +3 -3
- package/public/js/init.js +15 -15
- package/public/js/init.js.map +3 -3
- package/public/js/packages/com.qcobjects.installer.js +1 -1
- package/public/js/packages/com.qcobjects.installer.js.map +3 -3
- package/public/js/packages/com.qcobjects.services.github.js +4 -4
- package/public/js/packages/com.qcobjects.services.github.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 +7 -7
- package/public/js/packages/org.quickcorp.custom.components.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.controllers.js +9 -9
- 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 +14 -14
- package/public/js/packages/org.quickcorp.custom.js.map +3 -3
- 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 +1 -0
- package/public/templates/components/card-image.svg +33 -0
- package/public/templates/components/github-card.tpl.html +3 -3
- package/src/css/components/card.css +42 -15
- package/src/js/packages/com.qcobjects.services.github.ts +4 -2
- package/src/templates/components/card-image.svg +33 -0
- package/src/templates/components/github-card.tpl.html +3 -3
package/public/sw.js
CHANGED
|
@@ -192,6 +192,7 @@ self.addEventListener("install", e => {
|
|
|
192
192
|
"templates/components/article2.tpl.html",
|
|
193
193
|
"templates/components/aws-button.tpl.html",
|
|
194
194
|
"templates/components/blank.tpl.html",
|
|
195
|
+
"templates/components/card-image.svg",
|
|
195
196
|
"templates/components/card.tpl.html",
|
|
196
197
|
"templates/components/codespaces-button.tpl.html",
|
|
197
198
|
"templates/components/contentblock.tpl.html",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
placeholder.svg
|
|
3
|
+
|
|
4
|
+
Template for the svg-component. Rendered as the card header, replacing the
|
|
5
|
+
dead via.placeholder.com image that returned 404.
|
|
6
|
+
|
|
7
|
+
The two double-brace markers below are resolved by the framework. They arrive
|
|
8
|
+
as the data-stars and data-watchers attributes, which Component.dataAttributes
|
|
9
|
+
exposes as data.stars and data.watchers, and the template handler substitutes
|
|
10
|
+
them. This comment deliberately avoids that syntax so it is left alone.
|
|
11
|
+
|
|
12
|
+
Icons and text use currentColor so the bar inherits the surrounding text colour
|
|
13
|
+
and stays legible on either a light or a dark card.
|
|
14
|
+
-->
|
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 230 56" width="100%" height="56" preserveAspectRatio="xMinYMid meet" role="img" aria-label="Repository stars and watchers">
|
|
16
|
+
<title>Repository stars and watchers</title>
|
|
17
|
+
|
|
18
|
+
<!-- separator between the two stats -->
|
|
19
|
+
<line x1="96" y1="14" x2="96" y2="42" stroke="currentColor" stroke-width="2" stroke-linecap="round" opacity="0.45" />
|
|
20
|
+
|
|
21
|
+
<!-- stars icon -->
|
|
22
|
+
<polygon fill="currentColor" points="20,17 22.7,24.28 30.46,24.6 24.38,29.42 26.47,36.9 20,32.6 13.53,36.9 15.62,29.42 9.54,24.6 17.3,24.28" />
|
|
23
|
+
|
|
24
|
+
<!-- watchers icon -->
|
|
25
|
+
<path d="M112 28 Q128 12 144 28 Q128 44 112 28 Z" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" />
|
|
26
|
+
<circle cx="128" cy="28" r="6.5" fill="currentColor" />
|
|
27
|
+
|
|
28
|
+
<!-- star count, injected -->
|
|
29
|
+
<text x="38" y="35" fill="currentColor" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="600">{{stars}}</text>
|
|
30
|
+
|
|
31
|
+
<!-- watcher count, injected -->
|
|
32
|
+
<text x="152" y="35" fill="currentColor" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="600">{{watchers}}</text>
|
|
33
|
+
</svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<quick-component name="shadowed-card" shadowed="true" data-title="{{title}}" effectClass="MainTransitionEffect" apply-effect-to=observe
|
|
1
|
+
<quick-component name="shadowed-card" shadowed="true" data-title="{{title}}" effectClass="MainTransitionEffect" apply-effect-to=observe
|
|
2
2
|
data-description="{{description}}" data-image="{{image}}" data-price="{{price}}">
|
|
3
3
|
|
|
4
|
-
<a href="{{url}}" slot="logo"><
|
|
4
|
+
<a href="{{url}}" slot="logo"><quick-component name="card-image" tplextension="svg" data-stars="{{repo_stargazers_count}}" data-watchers="{{repo_watchers_count}}"></quick-component></a>
|
|
5
5
|
<a href="{{url}}" slot="card_title"><b>{{title}}</b></a>
|
|
6
6
|
<div slot="card_description">{{description}}</div>
|
|
7
|
-
</quick-component>
|
|
7
|
+
</quick-component>
|
|
@@ -14,7 +14,15 @@
|
|
|
14
14
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
15
15
|
* license document, but changing it is not allowed.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
/* Selectors are scoped under ":root, :host" so this stylesheet applies whether
|
|
19
|
+
the card is rendered in the document or inside a shadow root:
|
|
20
|
+
:root matches when the sheet is loaded at document level
|
|
21
|
+
:host matches when the sheet is loaded inside a shadow root
|
|
22
|
+
Both appear in the same rule, so neither context discards the other. */
|
|
23
|
+
|
|
24
|
+
:root .card,
|
|
25
|
+
:host .card {
|
|
18
26
|
box-shadow: rgba(228, 228, 234, 0.22) 0 22px 25px 0, rgba(228, 228, 234, 0.5) 0 9px 23px 0;
|
|
19
27
|
transition: all 0.3s ease-in-out;
|
|
20
28
|
width: 100%;
|
|
@@ -23,40 +31,54 @@
|
|
|
23
31
|
border-radius: 30px;
|
|
24
32
|
}
|
|
25
33
|
|
|
26
|
-
.title
|
|
34
|
+
:root .title,
|
|
35
|
+
:host .title {
|
|
27
36
|
padding-top: 5px;
|
|
28
37
|
padding-bottom: 15px;
|
|
29
38
|
}
|
|
30
|
-
|
|
39
|
+
|
|
40
|
+
:root .description,
|
|
41
|
+
:host .description {
|
|
31
42
|
padding-top: 15px;
|
|
32
43
|
padding-bottom: 10px;
|
|
33
44
|
}
|
|
34
45
|
|
|
35
|
-
.img,
|
|
46
|
+
:root .img,
|
|
47
|
+
:root .title,
|
|
48
|
+
:root .description,
|
|
49
|
+
:host .img,
|
|
50
|
+
:host .title,
|
|
51
|
+
:host .description {
|
|
36
52
|
overflow: hidden;
|
|
37
53
|
}
|
|
38
54
|
|
|
39
|
-
.card:hover
|
|
55
|
+
:root .card:hover,
|
|
56
|
+
:host .card:hover {
|
|
40
57
|
box-shadow: rgba(228, 228, 234, 0.56) 0 22px 32px 0, rgba(228, 228, 234, 0.64) 0 9px 28px 0;
|
|
41
58
|
}
|
|
42
59
|
|
|
43
|
-
.card .container
|
|
60
|
+
:root .card .container,
|
|
61
|
+
:host .card .container {
|
|
44
62
|
padding: 2px 16px;
|
|
45
63
|
min-height: 100%;
|
|
46
64
|
}
|
|
47
65
|
|
|
48
|
-
.card img,
|
|
66
|
+
:root .card img,
|
|
67
|
+
:root div > div.img,
|
|
68
|
+
:host .card img,
|
|
69
|
+
:host div > div.img {
|
|
49
70
|
border-radius: 30px 30px 0 0;
|
|
50
71
|
min-height: 100px;
|
|
51
72
|
}
|
|
52
73
|
|
|
53
|
-
#slot-logo::slotted(img)
|
|
74
|
+
:root #slot-logo::slotted(img),
|
|
75
|
+
:host #slot-logo::slotted(img) {
|
|
54
76
|
border-radius: 30px 30px 0 0;
|
|
55
77
|
min-height: 100px;
|
|
56
78
|
}
|
|
57
79
|
|
|
58
|
-
|
|
59
|
-
.card button {
|
|
80
|
+
:root .card button,
|
|
81
|
+
:host .card button {
|
|
60
82
|
border: none;
|
|
61
83
|
outline: 0;
|
|
62
84
|
padding: 12px;
|
|
@@ -68,11 +90,13 @@
|
|
|
68
90
|
font-size: 18px;
|
|
69
91
|
}
|
|
70
92
|
|
|
71
|
-
.card button:hover
|
|
93
|
+
:root .card button:hover,
|
|
94
|
+
:host .card button:hover {
|
|
72
95
|
opacity: 0.7;
|
|
73
96
|
}
|
|
74
97
|
|
|
75
|
-
#slot-card-button::slotted(button)
|
|
98
|
+
:root #slot-card-button::slotted(button),
|
|
99
|
+
:host #slot-card-button::slotted(button) {
|
|
76
100
|
border: none;
|
|
77
101
|
outline: 0;
|
|
78
102
|
padding: 12px;
|
|
@@ -84,15 +108,18 @@
|
|
|
84
108
|
font-size: 18px;
|
|
85
109
|
}
|
|
86
110
|
|
|
87
|
-
#slot-card-button::slotted(button):hover
|
|
111
|
+
:root #slot-card-button::slotted(button):hover,
|
|
112
|
+
:host #slot-card-button::slotted(button):hover {
|
|
88
113
|
opacity: 0.7;
|
|
89
114
|
}
|
|
90
115
|
|
|
91
|
-
.card
|
|
116
|
+
:root .card,
|
|
117
|
+
:host .card {
|
|
92
118
|
max-height: 1600px;
|
|
93
119
|
}
|
|
94
120
|
|
|
95
|
-
#slot-card-description::slotted(div)
|
|
121
|
+
:root #slot-card-description::slotted(div),
|
|
122
|
+
:host #slot-card-description::slotted(div) {
|
|
96
123
|
height: 50px;
|
|
97
124
|
min-height: 50px;
|
|
98
125
|
max-height: 50px;
|
|
@@ -105,7 +105,8 @@ Package("com.qcobjects.services.github", [
|
|
|
105
105
|
description: project.description,
|
|
106
106
|
title: project.name,
|
|
107
107
|
url: project.html_url,
|
|
108
|
-
|
|
108
|
+
repo_stargazers_count: project.stargazers_count,
|
|
109
|
+
repo_watchers_count: project.watchers_count
|
|
109
110
|
};
|
|
110
111
|
});
|
|
111
112
|
|
|
@@ -134,7 +135,8 @@ Package("com.qcobjects.services.github", [
|
|
|
134
135
|
description: project.description,
|
|
135
136
|
title: project.name,
|
|
136
137
|
url: project.html_url,
|
|
137
|
-
|
|
138
|
+
repo_stargazers_count: project.stargazers_count,
|
|
139
|
+
repo_watchers_count: project.watchers_count
|
|
138
140
|
};
|
|
139
141
|
});
|
|
140
142
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
placeholder.svg
|
|
3
|
+
|
|
4
|
+
Template for the svg-component. Rendered as the card header, replacing the
|
|
5
|
+
dead via.placeholder.com image that returned 404.
|
|
6
|
+
|
|
7
|
+
The two double-brace markers below are resolved by the framework. They arrive
|
|
8
|
+
as the data-stars and data-watchers attributes, which Component.dataAttributes
|
|
9
|
+
exposes as data.stars and data.watchers, and the template handler substitutes
|
|
10
|
+
them. This comment deliberately avoids that syntax so it is left alone.
|
|
11
|
+
|
|
12
|
+
Icons and text use currentColor so the bar inherits the surrounding text colour
|
|
13
|
+
and stays legible on either a light or a dark card.
|
|
14
|
+
-->
|
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 230 56" width="100%" height="56" preserveAspectRatio="xMinYMid meet" role="img" aria-label="Repository stars and watchers">
|
|
16
|
+
<title>Repository stars and watchers</title>
|
|
17
|
+
|
|
18
|
+
<!-- separator between the two stats -->
|
|
19
|
+
<line x1="96" y1="14" x2="96" y2="42" stroke="currentColor" stroke-width="2" stroke-linecap="round" opacity="0.45" />
|
|
20
|
+
|
|
21
|
+
<!-- stars icon -->
|
|
22
|
+
<polygon fill="currentColor" points="20,17 22.7,24.28 30.46,24.6 24.38,29.42 26.47,36.9 20,32.6 13.53,36.9 15.62,29.42 9.54,24.6 17.3,24.28" />
|
|
23
|
+
|
|
24
|
+
<!-- watchers icon -->
|
|
25
|
+
<path d="M112 28 Q128 12 144 28 Q128 44 112 28 Z" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" />
|
|
26
|
+
<circle cx="128" cy="28" r="6.5" fill="currentColor" />
|
|
27
|
+
|
|
28
|
+
<!-- star count, injected -->
|
|
29
|
+
<text x="38" y="35" fill="currentColor" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="600">{{stars}}</text>
|
|
30
|
+
|
|
31
|
+
<!-- watcher count, injected -->
|
|
32
|
+
<text x="152" y="35" fill="currentColor" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="20" font-weight="600">{{watchers}}</text>
|
|
33
|
+
</svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<quick-component name="shadowed-card" shadowed="true" data-title="{{title}}" effectClass="MainTransitionEffect" apply-effect-to=observe
|
|
1
|
+
<quick-component name="shadowed-card" shadowed="true" data-title="{{title}}" effectClass="MainTransitionEffect" apply-effect-to=observe
|
|
2
2
|
data-description="{{description}}" data-image="{{image}}" data-price="{{price}}">
|
|
3
3
|
|
|
4
|
-
<a href="{{url}}" slot="logo"><
|
|
4
|
+
<a href="{{url}}" slot="logo"><quick-component name="card-image" tplextension="svg" data-stars="{{repo_stargazers_count}}" data-watchers="{{repo_watchers_count}}"></quick-component></a>
|
|
5
5
|
<a href="{{url}}" slot="card_title"><b>{{title}}</b></a>
|
|
6
6
|
<div slot="card_description">{{description}}</div>
|
|
7
|
-
</quick-component>
|
|
7
|
+
</quick-component>
|