qcobjectsnewapp 2.5.12-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.
Files changed (31) hide show
  1. package/package.json +2 -2
  2. package/public/js/config.js +4 -4
  3. package/public/js/config.js.map +3 -3
  4. package/public/js/customWidgets.js +4 -4
  5. package/public/js/customWidgets.js.map +3 -3
  6. package/public/js/init.js +15 -15
  7. package/public/js/init.js.map +3 -3
  8. package/public/js/packages/com.qcobjects.installer.js +1 -1
  9. package/public/js/packages/com.qcobjects.installer.js.map +3 -3
  10. package/public/js/packages/com.qcobjects.services.github.js +4 -4
  11. package/public/js/packages/com.qcobjects.services.github.js.map +3 -3
  12. package/public/js/packages/com.qcobjects.services.newapp.js +4 -4
  13. package/public/js/packages/com.qcobjects.services.newapp.js.map +3 -3
  14. package/public/js/packages/org.quickcorp.custom.components.js +7 -7
  15. package/public/js/packages/org.quickcorp.custom.components.js.map +3 -3
  16. package/public/js/packages/org.quickcorp.custom.controllers.js +9 -9
  17. package/public/js/packages/org.quickcorp.custom.controllers.js.map +3 -3
  18. package/public/js/packages/org.quickcorp.custom.effects.js +4 -4
  19. package/public/js/packages/org.quickcorp.custom.effects.js.map +3 -3
  20. package/public/js/packages/org.quickcorp.custom.js +14 -14
  21. package/public/js/packages/org.quickcorp.custom.js.map +3 -3
  22. package/public/js/packages/org.quickcorp.custom.models.js +4 -4
  23. package/public/js/packages/org.quickcorp.custom.models.js.map +3 -3
  24. package/public/js/packages/org.quickcorp.custom.views.js +4 -4
  25. package/public/js/packages/org.quickcorp.custom.views.js.map +3 -3
  26. package/public/sw.js +1 -0
  27. package/public/templates/components/card-image.svg +33 -0
  28. package/public/templates/components/github-card.tpl.html +3 -3
  29. package/src/js/packages/com.qcobjects.services.github.ts +4 -2
  30. package/src/templates/components/card-image.svg +33 -0
  31. 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"><img src="{{image}}" alt="Avatar" style="width:100%"/></a>
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>
@@ -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
- image: `https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(project.name)}`
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
- image: `https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(project.name)}`
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"><img src="{{image}}" alt="Avatar" style="width:100%"/></a>
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>