🚚
This commit is contained in:
@@ -7,8 +7,8 @@ import Toolbar from '@/components/toolbar/Toolbar.vue';
|
|||||||
import {useWindowStore} from '@/stores/windowStore';
|
import {useWindowStore} from '@/stores/windowStore';
|
||||||
import LoadingScreen from '@/components/loading/LoadingScreen.vue';
|
import LoadingScreen from '@/components/loading/LoadingScreen.vue';
|
||||||
import {useTabStore} from '@/stores/tabStore';
|
import {useTabStore} from '@/stores/tabStore';
|
||||||
import ContextMenu from './contextMenu/ContextMenu.vue';
|
import ContextMenu from '@/views/editor/extensions/contextMenu/ContextMenu.vue';
|
||||||
import {contextMenuManager} from './contextMenu/manager';
|
import {contextMenuManager} from '@/views/editor/extensions/contextMenu/manager';
|
||||||
import TranslatorDialog from './extensions/translator/TranslatorDialog.vue';
|
import TranslatorDialog from './extensions/translator/TranslatorDialog.vue';
|
||||||
import {translatorManager} from './extensions/translator/manager';
|
import {translatorManager} from './extensions/translator/manager';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { EditorView } from '@codemirror/view';
|
import { EditorView } from '@codemirror/view';
|
||||||
import { Extension } from '@codemirror/state';
|
import { Extension } from '@codemirror/state';
|
||||||
import { copyCommand, cutCommand, pasteCommand } from '../extensions/codeblock/copyPaste';
|
import { copyCommand, cutCommand, pasteCommand } from '../codeblock/copyPaste';
|
||||||
import { KeyBindingCommand } from '@/../bindings/voidraft/internal/models/models';
|
import { KeyBindingCommand } from '../../../../../bindings/voidraft/internal/models/models';
|
||||||
import { useKeybindingStore } from '@/stores/keybindingStore';
|
import { useKeybindingStore } from '@/stores/keybindingStore';
|
||||||
import { undo, redo } from '@codemirror/commands';
|
import { undo, redo } from '@codemirror/commands';
|
||||||
import i18n from '@/i18n';
|
import i18n from '@/i18n';
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { EditorView } from '@codemirror/view';
|
import type { EditorView } from '@codemirror/view';
|
||||||
import { EditorState } from '@codemirror/state';
|
import { EditorState } from '@codemirror/state';
|
||||||
import type { KeyBindingCommand } from '@/../bindings/voidraft/internal/models/models';
|
import type { KeyBindingCommand } from '../../../../../bindings/voidraft/internal/models/models';
|
||||||
|
|
||||||
export interface MenuContext {
|
export interface MenuContext {
|
||||||
view: EditorView;
|
view: EditorView;
|
||||||
@@ -283,7 +283,7 @@ function handleClickOutside(e: MouseEvent) {
|
|||||||
class="cm-translation-copy-btn"
|
class="cm-translation-copy-btn"
|
||||||
@click="copyToClipboard"
|
@click="copyToClipboard"
|
||||||
@mousedown.stop
|
@mousedown.stop
|
||||||
title="复制"
|
title="Copy"
|
||||||
>
|
>
|
||||||
<svg viewBox="0 0 24 24">
|
<svg viewBox="0 0 24 24">
|
||||||
<path fill="currentColor" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
|
<path fill="currentColor" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {createTranslatorExtension} from '../extensions/translator';
|
|||||||
import markdownExtensions from '../extensions/markdown';
|
import markdownExtensions from '../extensions/markdown';
|
||||||
import {foldGutter} from "@codemirror/language";
|
import {foldGutter} from "@codemirror/language";
|
||||||
import {highlightActiveLineGutter, highlightWhitespace, highlightTrailingWhitespace} from "@codemirror/view";
|
import {highlightActiveLineGutter, highlightWhitespace, highlightTrailingWhitespace} from "@codemirror/view";
|
||||||
import createEditorContextMenu from '../contextMenu';
|
import createEditorContextMenu from '../extensions/contextMenu';
|
||||||
import {blockLineNumbers} from '../extensions/codeblock';
|
import {blockLineNumbers} from '../extensions/codeblock';
|
||||||
|
|
||||||
type ExtensionEntry = {
|
type ExtensionEntry = {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export function createBaseTheme(colors: ThemeColors): Extension {
|
|||||||
},
|
},
|
||||||
'.cm-searchMatch-selected': {
|
'.cm-searchMatch-selected': {
|
||||||
backgroundColor: `${colors.searchMatchSelected} !important`,
|
backgroundColor: `${colors.searchMatchSelected} !important`,
|
||||||
outline: `2px solid ${colors.searchMatchSelectedOutline}`,
|
outline: `1px solid ${colors.searchMatchSelectedOutline}`,
|
||||||
borderRadius: '2px',
|
borderRadius: '2px',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user