mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
theme moved to plugin
This commit is contained in:
11
packages/web/src/plugins/themes.js
Normal file
11
packages/web/src/plugins/themes.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as light from './ThemeLight.svelte';
|
||||
import * as dark from './ThemeDark.svelte';
|
||||
|
||||
export function buildThemes(plugins) {
|
||||
const res = [light, dark];
|
||||
for (const { content } of plugins) {
|
||||
const { themes } = content;
|
||||
if (themes) res.push(...themes);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user