@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.
@@ -0,0 +1 @@
1
+ npm run lint
@@ -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
- return html({ctx, title: "Form", description: "", body: await super.render(ctx, data, show_field_errors)});
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: ""
@@ -76,7 +76,8 @@ async function createItemFormTemplate(create_action_name, newfilefullpath, colle
76
76
  >
77
77
  \${await super.render(ctx, data, show_field_errors)}
78
78
  </div>\`,
79
- description: ""
79
+ description: "",
80
+ css_clumps: ["admin-forms"]
80
81
  }
81
82
  );
82
83
  }`
@@ -152,7 +152,7 @@ async function editItemFormTemplate(edit_action_name, newfilefullpath, collectio
152
152
  >
153
153
  \${await super.render(ctx, data, show_field_errors)}
154
154
  </div>\`,
155
- description: ""}
155
+ description: "", css_clumps: ["admin-forms"]}
156
156
  );
157
157
  }`
158
158
  });
@@ -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
- description: "",
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.24",
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": "npm run build",
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",
@@ -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
- return html({ctx, title: "Form", description: "", body: await super.render(ctx, data, show_field_errors)});
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: "",
@@ -115,7 +115,8 @@ export async function createItemFormTemplate(
115
115
  >
116
116
  \${await super.render(ctx, data, show_field_errors)}
117
117
  </div>\`,
118
- description: ""
118
+ description: "",
119
+ css_clumps: ["admin-forms"]
119
120
  }
120
121
  );
121
122
  }`,
@@ -195,7 +195,7 @@ export async function editItemFormTemplate(
195
195
  >
196
196
  \${await super.render(ctx, data, show_field_errors)}
197
197
  </div>\`,
198
- description: ""}
198
+ description: "", css_clumps: ["admin-forms"]}
199
199
  );
200
200
  }`,
201
201
  });
@@ -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
- description: "",
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>