mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
feat(server): add endpoint to list code note themes
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import type { Extension } from '@codemirror/state';
|
||||
|
||||
export interface ThemeDefinition {
|
||||
name: string;
|
||||
id: string;
|
||||
load(): Promise<Extension>;
|
||||
}
|
||||
|
||||
const themes: ThemeDefinition[] = [
|
||||
{
|
||||
name: "abyss",
|
||||
id: "abyss",
|
||||
load: async () => (await import("@fsegurai/codemirror-theme-abyss")).abyss
|
||||
},
|
||||
{
|
||||
name: "abcdef",
|
||||
id: "abcdef",
|
||||
load: async () => (await import("@fsegurai/codemirror-theme-abcdef")).abcdef
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,7 +8,7 @@ import byMimeType from "./syntax_highlighting.js";
|
||||
import smartIndentWithTab from "./extensions/custom_tab.js";
|
||||
import type { ThemeDefinition } from "./color_themes.js";
|
||||
|
||||
export * from "./color_themes.js";
|
||||
export { default as ColorThemes, type ThemeDefinition } from "./color_themes.js";
|
||||
|
||||
type ContentChangedListener = () => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user