0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-25 23:38:14 +00:00

themes working again

This commit is contained in:
Víctor Losada Hernández
2026-03-25 17:15:23 +01:00
parent 3e6f006811
commit 456c149f7b
4 changed files with 531 additions and 21 deletions

View File

@@ -23,7 +23,16 @@ const ThemeSnippets = {
V3_Blank : V3_Blank,
};
import EditorThemes from '../../../../build/homebrew/codeMirror/editorThemes.json';
//import EditorThemes from '../../../../build/homebrew/codeMirror/editorThemes.json';
import * as themes from '@uiw/codemirror-themes-all';
const EditorThemes = Object.entries(themes)
.filter(([name, value]) =>
Array.isArray(value) &&
!name.endsWith('Init') &&
!name.endsWith('Style')
)
.map(([name]) => name);
const execute = function(val, props){
if(_.isFunction(val)) return val(props);