@topogram/template-todo 0.1.34 → 0.1.35
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.
|
@@ -75,12 +75,12 @@ export function renderTodoTaskRoutes({
|
|
|
75
75
|
const editTaskVisibility = taskDetail.visibility?.find((entry) => entry.capability?.id === "cap_update_task") || null;
|
|
76
76
|
const completeTaskVisibility = taskDetail.visibility?.find((entry) => entry.capability?.id === "cap_complete_task") || null;
|
|
77
77
|
const deleteTaskVisibility = taskDetail.visibility?.find((entry) => entry.capability?.id === "cap_delete_task") || null;
|
|
78
|
-
const
|
|
78
|
+
const taskListHeroWidgets = renderSvelteKitWidgetRegion(taskList, "hero", {
|
|
79
79
|
widgetContracts: contract.widgets,
|
|
80
80
|
itemsExpression: "data.result.items",
|
|
81
81
|
useTypescript
|
|
82
82
|
});
|
|
83
|
-
const
|
|
83
|
+
const taskListResultsWidgets = renderSvelteKitWidgetRegion(taskList, "results", {
|
|
84
84
|
widgetContracts: contract.widgets,
|
|
85
85
|
itemsExpression: "data.result.items",
|
|
86
86
|
useTypescript
|
|
@@ -187,7 +187,7 @@ export const load: PageLoad = async ({ fetch, url }) => {
|
|
|
187
187
|
</div>
|
|
188
188
|
<a class="button-link" href="/tasks/new">Create Task</a>
|
|
189
189
|
</div>
|
|
190
|
-
${
|
|
190
|
+
${taskListHeroWidgets ? `\n ${taskListHeroWidgets}\n` : ""}
|
|
191
191
|
|
|
192
192
|
<form class="filters" method="GET">
|
|
193
193
|
<label>
|
|
@@ -239,7 +239,7 @@ ${taskListHeroComponents ? `\n ${taskListHeroComponents}\n` : ""}
|
|
|
239
239
|
</div>
|
|
240
240
|
{:else}
|
|
241
241
|
<p class="muted">Showing {data.result.items.length} task{data.result.items.length === 1 ? "" : "s"}.</p>
|
|
242
|
-
${
|
|
242
|
+
${taskListResultsWidgets || taskListDefaultResults}
|
|
243
243
|
{#if nextHref}
|
|
244
244
|
<p><a class="button-link secondary" href={nextHref}>Next Page</a></p>
|
|
245
245
|
{/if}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topogram/template-todo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Topogram template pack for starting a generated Todo app.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"release:check": "bash ./scripts/check-release-version.sh"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@topogram/cli": "^0.3.
|
|
30
|
+
"@topogram/cli": "^0.3.55",
|
|
31
31
|
"@topogram/generator-hono-api": "0.2.8",
|
|
32
32
|
"@topogram/generator-postgres-db": "0.1.7",
|
|
33
33
|
"@topogram/generator-sveltekit-web": "0.1.17"
|