@sealcode/sealgen 0.17.24 → 0.17.25
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/.husky/pre-commit +1 -0
- package/lib/templates/form.js +1 -1
- package/lib/templates/shared/collection-create-form.js +2 -1
- package/lib/templates/shared/collection-edit-form.js +1 -1
- package/lib/templates/shared/collection-list.js +1 -1
- package/package.json +3 -2
- package/src/templates/form.ts +1 -1
- package/src/templates/shared/collection-create-form.ts +2 -1
- package/src/templates/shared/collection-edit-form.ts +1 -1
- package/src/templates/shared/collection-list.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm run lint
|
package/lib/templates/form.js
CHANGED
|
@@ -35,7 +35,7 @@ const defaults = {
|
|
|
35
35
|
return { canAccess: true, message: "" };
|
|
36
36
|
}`,
|
|
37
37
|
render: `async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
38
|
-
|
|
38
|
+
return html({ctx, title: "Form", description: "", css_clumps: ["admin-forms"], body: await super.render(ctx, data, show_field_errors)});
|
|
39
39
|
}`,
|
|
40
40
|
get_initial_values: "",
|
|
41
41
|
other_methods: ""
|
|
@@ -200,7 +200,7 @@ export default new (class ${action_name}Page extends SealiousItemListPage<
|
|
|
200
200
|
return html({
|
|
201
201
|
ctx,
|
|
202
202
|
title: "${action_name}",
|
|
203
|
-
|
|
203
|
+
description: "",
|
|
204
204
|
body: <div class="sealious-list-wrapper ${toKebabCase(action_name)}--wrapper">
|
|
205
205
|
${hooks.pre_header_html}
|
|
206
206
|
<h2>${action_name} List</h2>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealcode/sealgen",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.25",
|
|
4
4
|
"description": "Module to automate adding routes and collections to a sealious application",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "node test.cjs",
|
|
14
14
|
"typecheck": "tsc --noemit",
|
|
15
15
|
"build-types": "tsc --emitDeclarationOnly",
|
|
16
|
-
"prepare": "
|
|
16
|
+
"prepare": "husky",
|
|
17
17
|
"lint": "eslint src",
|
|
18
18
|
"preinstrument": "npm run build && rm -fr .xunit coverage lib-instrumented",
|
|
19
19
|
"instrument": "npx nyc instrument --exclude \"\" lib lib-instrumented",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"esbuild": "^0.20.0",
|
|
69
69
|
"escape-goat": "^4.0.0",
|
|
70
70
|
"google-fonts-helper": "^3.4.1",
|
|
71
|
+
"husky": "^9.1.7",
|
|
71
72
|
"is-what": "^4.1.16",
|
|
72
73
|
"js-convert-case": "^4.2.0",
|
|
73
74
|
"json5": "^2.2.3",
|
package/src/templates/form.ts
CHANGED
|
@@ -36,7 +36,7 @@ const defaults = {
|
|
|
36
36
|
return { canAccess: true, message: "" };
|
|
37
37
|
}`,
|
|
38
38
|
render: `async render(ctx: Context, data: FormData, show_field_errors: boolean) {
|
|
39
|
-
|
|
39
|
+
return html({ctx, title: "Form", description: "", css_clumps: ["admin-forms"], body: await super.render(ctx, data, show_field_errors)});
|
|
40
40
|
}`,
|
|
41
41
|
get_initial_values: "",
|
|
42
42
|
other_methods: "",
|
|
@@ -227,7 +227,7 @@ export default new (class ${action_name}Page extends SealiousItemListPage<
|
|
|
227
227
|
return html({
|
|
228
228
|
ctx,
|
|
229
229
|
title: "${action_name}",
|
|
230
|
-
|
|
230
|
+
description: "",
|
|
231
231
|
body: <div class="sealious-list-wrapper ${toKebabCase(action_name)}--wrapper">
|
|
232
232
|
${hooks.pre_header_html}
|
|
233
233
|
<h2>${action_name} List</h2>
|