- {[1, 2, 3, 4, 5, 6, 7, 8, 9]
- .reverse()
- .map((columns) => {
- const rows = how_many_rows(columns);
- return /* HTML */ ``;
- })
- .join("\n")}
-
- {add_button_to_content(
-
{items}
,
-
,
-
- )}
-
- );
-}
diff --git a/src/back/routes/demos/show-first-row.css b/src/back/routes/demos/show-first-row.css
new file mode 100644
index 0000000..506eba4
--- /dev/null
+++ b/src/back/routes/demos/show-first-row.css
@@ -0,0 +1,4 @@
+.show-first-row .show-first-row__default-button {
+ background-color: var(--color-brand-accent);
+ color: var(--color-brand-text-on-accent);
+}
diff --git a/src/back/routes/demos/show-first-row.page.tsx b/src/back/routes/demos/show-first-row.page.tsx
index 9b6e085..299d9d4 100644
--- a/src/back/routes/demos/show-first-row.page.tsx
+++ b/src/back/routes/demos/show-first-row.page.tsx
@@ -2,14 +2,14 @@ import type { Context } from "koa";
import { TempstreamJSX } from "tempstream";
import { Page } from "@sealcode/sealgen";
import html from "../../html.js";
-import { showFirstRow } from "../common/show-first-row/show-first-row.js";
+import { showFirstRow } from "@sealcode/show-first-row";
export const actionName = "ShowFirstRowDemo";
function makeBoxStyle() {
return `width: 100%; max-width: 200px; height: ${
100 + Math.random() * 100
- }px; background-color: lime; text-align: center; color: #0000009e; font-size: 40px; padding-top: 20px; box-sizing: border-box;`;
+ }px; background-color: var(--color-brand-accent2); text-align: center; color: #0000009e; font-size: 40px; padding-top: 20px; box-sizing: border-box;`;
}
export default new (class ShowFirstRowDemoPage extends Page {
diff --git a/src/front/controllers.ts b/src/front/controllers.ts
index 687c92f..107a8e8 100644
--- a/src/front/controllers.ts
+++ b/src/front/controllers.ts
@@ -49,6 +49,9 @@ application.register("submit-on-input", SubmitOnInput);
import { default as Toast } from "./../../node_modules/@sealcode/jdd-editor/src/controllers/toast.stimulus.js";
application.register("toast", Toast);
+import { default as PasswordGenerateButton } from "./../../node_modules/@sealcode/sealgen/src/controllers/password-generate-button.stimulus.js";
+application.register("password-generate-button", PasswordGenerateButton);
+
import { default as TableAddButton } from "./../../node_modules/@sealcode/sealgen/src/controllers/table-add-button.stimulus.js";
application.register("table-add-button", TableAddButton);