From bc44d2b62fe516a310dd1167a80be4bff3504f8c Mon Sep 17 00:00:00 2001 From: Artur Flis Date: Tue, 14 Jul 2026 11:52:53 +0200 Subject: [PATCH 1/6] Change outro message to include a sad face --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bec3c95..d3cf20e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ const main = async () => { const action = await p.select({ message: t.muted("what do you want to do?"), options }) if (p.isCancel(action) || action === "exit") { - p.outro(t.muted("bye")) + p.outro(t.muted("bye :C")) process.exit(0) } From 280364facd70d280355a74cdcbd0e63b73344eb9 Mon Sep 17 00:00:00 2001 From: Fernando Campione Date: Mon, 21 Sep 2026 16:20:57 +0100 Subject: [PATCH 2/6] add nojs templates to cli --- README.md | 2 ++ src/generators/theme.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/README.md b/README.md index 7813408..30f79c5 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,8 @@ Every extension gets: Themes also get `style.css` with all CSS variables pre-filled to the degoog defaults (light and dark), plus a `templates/logo.html` example showing how to override a template section. +The generated theme README also covers the script-free `/nojs` page, which reuses your ordinary templates and takes per-file overrides from a `nojs/` folder by filename instead of through `theme.json`. + Plugin types also have `isClientExposed` already in the template. Set it to `true` if your plugin causes the browser to fetch external URLs directly, `false` if everything goes through the server. Leaving it unset shows a warning badge in degoog settings. ## Docker Compose diff --git a/src/generators/theme.ts b/src/generators/theme.ts index 9f84e77..d0363c0 100644 --- a/src/generators/theme.ts +++ b/src/generators/theme.ts @@ -187,6 +187,33 @@ The file contains blocks for \`:root\` (light), \`[data-theme="dark"]\`, Templates listed under the \`templates\` key in \`theme.json\` replace individual UI sections without touching anything else. Only include keys you want to change. +## The no-JS page + +If the instance serves the script-free page at \`/nojs\`, your theme already +covers it. That page loads the same \`html\` shells and the same \`templates\` +entries listed above and fills them in on the server, so anything you restyle +here shows up there. + +Only override a section that genuinely cannot work without scripts. Drop a +\`nojs/.html\` file in your theme folder, no \`theme.json\` entry needed. +Each name resolves through your \`nojs/\` folder, then degoog's, then your own +template for that name, then degoog's. + +\`\`\` +nojs/ + logo.html tabs.html pagination.html +\`\`\` + +Those three are the ones degoog itself overrides: a monospace logo, a filter +form of real \`