feat(mysql): optimize table structure loading

This commit is contained in:
zipg authored and GitHub committed 2026-06-23 17:31:37 +08:00
1 parent 5c4c87a042
commit 1c7ef0d235
10 files changed
+469 -96

No files matched your search

@@ -223,6 +223,20 @@ const zoomCommitScheduler = createEditorZoomCommitScheduler((fontSize) => {
settingsStore.updateEditorSettings({ fontSize });
});
const queryEditorAppearanceSettings = computed(() => {
const settings = settingsStore.editorSettings;
return {
fontFamily: settings.fontFamily,
fontSize: settings.fontSize,
theme: settings.theme,
customThemeColors: settings.customThemeColors,
customThemes: settings.customThemes,
activeCustomThemeId: settings.activeCustomThemeId,
wordWrap: settings.wordWrap,
shortcuts: settings.shortcuts,
};
});
function syncEditorFontCssVars(fontSize = liveFontSize.value, fontFamily = settingsStore.editorSettings.fontFamily) {
if (!editorRef.value) return;
editorRef.value.style.setProperty(EDITOR_FONT_SIZE_CSS_VAR, `${clampEditorFontSize(fontSize)}px`);
@@ -2221,7 +2235,7 @@ function getCurrentCustomThemeColors() {
// Reactively apply editor settings changes
watch(
[() => settingsStore.editorSettings, () => isDark.value],
[queryEditorAppearanceSettings, () => isDark.value],
async ([ss]) => {
if (!view.value || !codeMirrorTheme || !fontThemeComp || !wordWrapComp || !runKeymapComp || !editorViewModule) {
return;