fix: preserve SSO identities and polish sharing interface

This commit is contained in:
SantaSpeen committed 2026-10-21 21:47:13 +03:00
1 parent 2e3b56f250
commit bd9bf33bc9
22 files changed
+430 -106

No files matched your search

+3 -5
View File
@@ -1,9 +1,7 @@
import "ace-builds";
import { themesByName } from "ace-builds/src-noconflict/ext-themelist";
import "ace-builds/src-noconflict/theme-chrome";
import "ace-builds/src-noconflict/theme-twilight";
import { getTheme } from "./theme";
export const getEditorTheme = (themeName: string) => {
const key = themeName.replace(/^ace\/theme\//, "");
if (themesByName[key] !== undefined) return `ace/theme/${key}`;
export const getEditorTheme = () => {
return getTheme() === "dark" ? "ace/theme/twilight" : "ace/theme/chrome";
};