feat: add SSO workspace, named shares and Debian release tooling
This commit is contained in:
1 parent
833d908884
commit
87bc33e675
106 files changed
+4160
-5637
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import "ace-builds";
|
||||
import { themesByName } from "ace-builds/src-noconflict/ext-themelist";
|
||||
import { getTheme } from "./theme";
|
||||
|
||||
export const getEditorTheme = (themeName: string) => {
|
||||
const key = themeName.replace(/^ace\/theme\//, "");
|
||||
if (themesByName[key] !== undefined) return `ace/theme/${key}`;
|
||||
return getTheme() === "dark" ? "ace/theme/twilight" : "ace/theme/chrome";
|
||||
};
|
||||
Reference in new issue
Block a user