新增:应用配置管理模块,优化文件系统功能
- 新增 ConfigAPI 和 ConfigService 实现配置管理 - 新增 SettingsPanel 和 UpdateNotification 组件 - 文件系统模块化重构,提升代码质量 - 提取公共函数,优化代码结构 - 版本号更新至 0.2.0
This commit is contained in:
@@ -18,9 +18,14 @@ import { json } from '@codemirror/lang-json'
|
||||
import { markdown } from '@codemirror/lang-markdown'
|
||||
import { html } from '@codemirror/lang-html'
|
||||
import { css } from '@codemirror/lang-css'
|
||||
import { sql } from '@codemirror/lang-sql'
|
||||
import { yaml } from '@codemirror/lang-yaml'
|
||||
import { oneDark } from '@codemirror/theme-one-dark'
|
||||
import { keymap } from '@codemirror/view'
|
||||
import { bracketMatching } from '@codemirror/language'
|
||||
import { StreamLanguage } from '@codemirror/language'
|
||||
import { shell } from '@codemirror/legacy-modes/mode/shell'
|
||||
import { powerShell } from '@codemirror/legacy-modes/mode/powershell'
|
||||
import { useTheme } from '@/composables/useTheme'
|
||||
|
||||
// 使用主题系统
|
||||
@@ -78,6 +83,24 @@ const LANGUAGE_MAP = {
|
||||
'scss': css(),
|
||||
'sass': css(),
|
||||
'less': css(),
|
||||
|
||||
// SQL
|
||||
'sql': sql(),
|
||||
|
||||
// YAML
|
||||
'yml': yaml(),
|
||||
'yaml': yaml(),
|
||||
|
||||
// Shell/Bash
|
||||
'sh': StreamLanguage.define(shell),
|
||||
'bash': StreamLanguage.define(shell),
|
||||
'zsh': StreamLanguage.define(shell),
|
||||
'fish': StreamLanguage.define(shell),
|
||||
|
||||
// Windows Batch/PowerShell
|
||||
'bat': StreamLanguage.define(powerShell),
|
||||
'cmd': StreamLanguage.define(powerShell),
|
||||
'ps1': StreamLanguage.define(powerShell),
|
||||
}
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
Reference in New Issue
Block a user