Skip to content

Commit

Permalink
Merge pull request #54 from JuckZ/develop
Browse files Browse the repository at this point in the history
fix: 拼写错误
  • Loading branch information
JuckZ authored Dec 17, 2024
2 parents 2e13530 + 2a8ca21 commit bae5f50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/ui/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import {
} from 'naive-ui';
import { onUpdated, ref, watchEffect } from 'vue';
import { storeToRefs } from 'pinia';
import ToolBar from '@/ui/Toolbar.vue';
import { useSystemStore } from '@/stores';
import ToolBar from '@/ui/ToolBar.vue';
import { LoggerUtil } from '@/utils/logger';
let theme = ref(darkTheme);
Expand Down
13 changes: 7 additions & 6 deletions src/ui/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ import { useEditorStore } from '@/stores';
import { eventTypes } from '@/types/types';
import { LoggerUtil } from '@/utils/logger';
import { getNumberFromStr } from '@/utils/common';
import OpenAI from '@/ui/components/icon/OpenAIIcon.vue';
import Baidu from '@/ui/components/icon/BaiduIcon.vue';
import Bing from '@/ui/components/icon/BingIcon.vue';
import ChatGPT from '@/ui/components/icon/ChatGPTIcon.vue';
import Google from '@/ui/components/icon/GoogleIcon.vue';
import OpenAIIcon from '@/ui/components/icon/OpenAIIcon.vue';
import BaiduIcon from '@/ui/components/icon/BaiduIcon.vue';
import BingIcon from '@/ui/components/icon/BingIcon.vue';
import ChatGPTIcon from '@/ui/components/icon/ChatGPTIcon.vue';
import GoogleIcon from '@/ui/components/icon/GoogleIcon.vue';
import ScanImageIcon from '@/ui/components/icon/ScanImageIcon.vue';
import { customAvatar, customContent, customDescription, customTitle } from '@/ui/CustomContent';
Expand Down Expand Up @@ -170,7 +170,8 @@ const getComputedStyle = () => {
const getLeft = () => {
const activeDoc = activeDocument.querySelector('.workspace-leaf.mod-active .cm-content');
if (activeDoc.innerWidth < 250) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if ((activeDoc as any)?.innerWidth < 250) {
return getElementViewLeft(activeLine);
} else {
// FIXME hack value
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
// "extends": "@tsconfig/svelte/tsconfig.json",
"include": ["src/**/*.ts", "types.d.ts",],
"include": ["src", "types.d.ts",],
"exclude": ["node_modules"],
"compilerOptions": {
"baseUrl": "./",
"baseUrl": ".",
// "inlineSourceMap": true,
// "inlineSources": true,
"module": "ESNext",
Expand Down Expand Up @@ -39,7 +39,7 @@
"svelte"
],
"paths": {
"@/*": ["src/*"]
"@/*": ["./src/*"]
},
}
}

0 comments on commit bae5f50

Please sign in to comment.