diff --git a/src/components/editor/EditorSettingsDialog.vue b/src/components/editor/EditorSettingsDialog.vue index adc046843..4db087c11 100644 --- a/src/components/editor/EditorSettingsDialog.vue +++ b/src/components/editor/EditorSettingsDialog.vue @@ -2,7 +2,7 @@ import { ref, watch, shallowRef, computed } from "vue"; import type { EditorView as EditorViewType } from "@codemirror/view"; import { useI18n } from "vue-i18n"; -import { CircleHelp, FolderOpen, Loader2, Settings, Trash2 } from "lucide-vue-next"; +import { CircleHelp, ExternalLink, FolderOpen, Loader2, Settings, Trash2 } from "lucide-vue-next"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; @@ -10,6 +10,7 @@ import { Label } from "@/components/ui/label"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Separator } from "@/components/ui/separator"; +import { Switch } from "@/components/ui/switch"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useSettingsStore, @@ -491,30 +492,52 @@ watch( - -
- - -

- SELECT * FROM users WHERE id = 1; -

-
+
+ +
+ + +
- + +
+ + +
+
@@ -540,54 +563,27 @@ watch( - -
- - -
- - - -
- - -
- - - -
-
- -

{{ t("settings.wordWrapDescription") }}

+
+
+ + +
+ +
+
+ +

{{ t("settings.wordWrapDescription") }}

+
+
-
@@ -942,25 +938,78 @@ watch(
-
+
-
+ + + +
diff --git a/src/components/ui/switch/Switch.vue b/src/components/ui/switch/Switch.vue new file mode 100644 index 000000000..40cd7b3c4 --- /dev/null +++ b/src/components/ui/switch/Switch.vue @@ -0,0 +1,47 @@ + + + diff --git a/src/components/ui/switch/index.ts b/src/components/ui/switch/index.ts new file mode 100644 index 000000000..c986f8abc --- /dev/null +++ b/src/components/ui/switch/index.ts @@ -0,0 +1 @@ +export { default as Switch } from "./Switch.vue"; diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index d0566ee7f..9cef06334 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -944,5 +944,6 @@ export default { qqGroup: "QQ Group", project: "Project", openSource: "Open-source repository", + officialDocs: "Official docs", }, }; diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index ad7331398..19733b5b9 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -941,5 +941,6 @@ export default { qqGroup: "Grupo QQ", project: "Proyecto", openSource: "Repositorio de código abierto", + officialDocs: "Documentación oficial", }, }; diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 65c5942af..f834ccc58 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -929,5 +929,6 @@ export default { qqGroup: "QQ 群", project: "项目", openSource: "开源仓库", + officialDocs: "官方文档", }, };