Skip to content

Commit 343247f

Browse files
committed
feat(frontend): redesign about menu with featured templates
feat(frontend): redesign template browser
1 parent fafed9b commit 343247f

File tree

8 files changed

+612
-323
lines changed

8 files changed

+612
-323
lines changed

.env.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ FORCED_SEEDR_ENCODED_TOKEN=
349349
# Example: CUSTOM_HTML="<div>Welcome to my AIOStreams!</div>"
350350
CUSTOM_HTML=
351351

352+
# --- Featured Templates ---
353+
# Comma-separated list of up to 2 template IDs to pin at the top of the about page.
354+
# When set, only those templates are shown in the "Featured Templates" section.
355+
# When unset, the first 2 available templates are shown automatically.
356+
# Example: FEATURED_TEMPLATE_IDS=debrid-starter,my-custom-template
357+
FEATURED_TEMPLATE_IDS=
358+
352359
# --- Alternate Design
353360
# Choose to enable an alternate design for the AIOStreams logo.
354361
ALTERNATE_DESIGN=false

packages/core/src/db/schemas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ const StatusResponseSchema = z.object({
12101210
baseUrl: z.string().url().optional(),
12111211
addonName: z.string(),
12121212
customHtml: z.string().optional(),
1213+
featuredTemplateIds: z.array(z.string()).optional(),
12131214
alternateDesign: z.boolean(),
12141215
protected: z.boolean(),
12151216
regexAccess: z.object({

packages/core/src/utils/env.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,10 @@ export const Env = cleanEnv(process.env, {
544544
default: undefined,
545545
desc: 'Custom HTML for the addon',
546546
}),
547+
FEATURED_TEMPLATE_IDS: commaSeparated({
548+
default: [],
549+
desc: 'Comma-separated list of up to 2 template IDs to feature on the about page. Defaults to the first 2 available templates when unset.',
550+
}),
547551
ALTERNATE_DESIGN: bool({
548552
default: false,
549553
desc: 'Alternate design for the frontend.',

0 commit comments

Comments
 (0)