🐛 Fixed data migration issues

This commit is contained in:
2025-11-14 20:16:16 +08:00
parent dec3ef5ef4
commit 1d7aee4cea
7 changed files with 2503 additions and 104 deletions

View File

@@ -14,14 +14,6 @@ import {Call as $Call, Create as $Create} from "@wailsio/runtime";
// @ts-ignore: Unused imports
import * as application$0 from "../../../github.com/wailsapp/wails/v3/pkg/application/models.js";
/**
* OnDataPathChanged handles data path changes
*/
export function OnDataPathChanged(): Promise<void> & { cancel(): void } {
let $resultPromise = $Call.ByID(3652863491) as any;
return $resultPromise;
}
/**
* RegisterModel 注册模型与表的映射关系
*/

File diff suppressed because it is too large Load Diff

View File

@@ -64,14 +64,16 @@
"colors-named-hex": "^1.0.2",
"groovy-beautify": "^0.0.17",
"hsl-matcher": "^1.2.4",
"i": "^0.3.7",
"java-parser": "^3.0.1",
"jsox": "^1.2.123",
"linguist-languages": "^9.1.0",
"markdown-exit": "^1.0.0-beta.6",
"npm": "^11.6.2",
"php-parser": "^3.2.5",
"pinia": "^3.0.4",
"pinia-plugin-persistedstate": "^4.7.1",
"prettier": "^3.6.2",
"remarkable": "^2.0.1",
"sass": "^1.94.0",
"vue": "^3.5.24",
"vue-i18n": "^11.1.12",
@@ -82,7 +84,6 @@
"@eslint/js": "^9.39.1",
"@lezer/generator": "^1.8.0",
"@types/node": "^24.9.2",
"@types/remarkable": "^2.0.8",
"@vitejs/plugin-vue": "^6.0.1",
"@wailsio/runtime": "latest",
"cross-env": "^10.1.0",
@@ -99,4 +100,4 @@
"vue-eslint-parser": "^10.2.0",
"vue-tsc": "^3.1.3"
}
}
}

View File

@@ -133,6 +133,12 @@ export {
type CreateBlockOptions,
} from './types';
// 导出解析器函数
export {
getActiveBlock,
getBlockFromPos
} from './parser';
// 状态管理
export {
blockState,

View File

@@ -6,18 +6,19 @@ import { useUpdateStore } from '@/stores/updateStore';
import SettingSection from '../components/SettingSection.vue';
import SettingItem from '../components/SettingItem.vue';
import ToggleSwitch from '../components/ToggleSwitch.vue';
import { Remarkable } from 'remarkable';
import { createMarkdownExit } from 'markdown-exit'
const { t } = useI18n();
const configStore = useConfigStore();
const updateStore = useUpdateStore();
// 初始化Remarkable实例并配置
const md = new Remarkable({
const md = createMarkdownExit({
html: true, // 允许HTML
xhtmlOut: false, // 不使用'/'闭合单标签
breaks: true, // 将'\n'转换为<br>
typographer: true // 启用排版增强
linkify: false, // 不解析链接
typographer: true, // 开启智能引号
xhtmlOut: true, // 使用xhtml语法输出
breaks: true, // 允许换行
});
// 计算属性