qcobjectsnewapp 2.5.12-ts → 2.5.14-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 +6 -5
- 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/scripts/clean-stale-templates.js +36 -0
- 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>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
publish:static copies build/ into public/ but never deletes, so a template that
|
|
4
|
+
was renamed or removed from src/ survives in build/ and is republished on every
|
|
5
|
+
subsequent build. Renaming card-image.svg through placeholder.svg and
|
|
6
|
+
svg-component.svg left both names in public/templates/components/ forever.
|
|
7
|
+
|
|
8
|
+
Usage: node scripts/clean-stale-templates.js <dir> [<dir> ...]
|
|
9
|
+
|
|
10
|
+
Pass the DESTINATION of the copy that is about to run, never its source:
|
|
11
|
+
build:static src/ -> build/ clean build/templates
|
|
12
|
+
publish:static build/ -> public/ clean public/templates
|
|
13
|
+
|
|
14
|
+
Cleaning a source instead would delete the files the copy is meant to publish,
|
|
15
|
+
and the build would silently ship no templates at all.
|
|
16
|
+
*/
|
|
17
|
+
const fs = require('node:fs');
|
|
18
|
+
|
|
19
|
+
const targets = process.argv.slice(2);
|
|
20
|
+
|
|
21
|
+
if (targets.length === 0) {
|
|
22
|
+
console.error('usage: node scripts/clean-stale-templates.js <dir> [<dir> ...]');
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let removed = 0;
|
|
27
|
+
|
|
28
|
+
for (const target of targets) {
|
|
29
|
+
if (!fs.existsSync(target)) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
fs.rmSync(target, { recursive: true, force: true });
|
|
33
|
+
removed += 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
console.log('stale template dirs removed:', removed);
|
|
@@ -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>
|