]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into added-darkly-compact-552
authordankxiaobong <137083062+dankxiaobong@users.noreply.github.com>
Thu, 22 Jun 2023 14:53:00 +0000 (16:53 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 14:53:00 +0000 (16:53 +0200)
1  2 
src/server/utils/build-themes-list.ts

index c3d2b05012b69486b2ce1e189a88e555c6af47b4,74b910c767d86ed24973886adb4d387a05dd5b0e..de027182075bfbdb6e25dc0325d506b16dfb57a1
@@@ -4,16 -4,14 +4,16 @@@ import { readdir } from "fs/promises"
  const extraThemesFolder =
    process.env["LEMMY_UI_EXTRA_THEMES_FOLDER"] || "./extra_themes";
  
- const themes = [
+ const themes: ReadonlyArray<string> = [
    "darkly",
    "darkly-red",
 +  "darkly-compact",
    "litely",
    "litely-red",
 +  "litely-compact",
  ];
  
- export async function buildThemeList(): Promise<string[]> {
+ export async function buildThemeList(): Promise<ReadonlyArray<string>> {
    if (existsSync(extraThemesFolder)) {
      const dirThemes = await readdir(extraThemesFolder);
      const cssThemes = dirThemes