From: dankxiaobong <137083062+dankxiaobong@users.noreply.github.com>
Date: Thu, 22 Jun 2023 14:53:00 +0000 (+0200)
Subject: Merge branch 'main' into added-darkly-compact-552
X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/%24%7Bi.domain%7D%60%7D?a=commitdiff_plain;h=37ac31880681495f4dc3a544cc8d6c4df1e00664;p=lemmy-ui.git

Merge branch 'main' into added-darkly-compact-552
---

37ac31880681495f4dc3a544cc8d6c4df1e00664
diff --cc src/server/utils/build-themes-list.ts
index c3d2b05,74b910c..de02718
--- a/src/server/utils/build-themes-list.ts
+++ b/src/server/utils/build-themes-list.ts
@@@ -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