chore: deps update and fixed some import paths
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
"author": "Simon Cambier",
|
||||
"license": "GPL-3",
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.24.6",
|
||||
"@babel/preset-typescript": "^7.24.6",
|
||||
"@babel/preset-env": "^7.25.4",
|
||||
"@babel/preset-typescript": "^7.24.7",
|
||||
"@testing-library/jest-dom": "^5.17.0",
|
||||
"@tsconfig/svelte": "^3.0.0",
|
||||
"@types/jest": "^27.5.2",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^16.18.97",
|
||||
"@types/node": "^16.18.108",
|
||||
"@types/pako": "^2.0.3",
|
||||
"babel-jest": "^27.5.1",
|
||||
"builtin-modules": "^3.3.0",
|
||||
|
||||
2158
pnpm-lock.yaml
generated
2158
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { debounce, Platform } from 'obsidian'
|
||||
import { toggleInputComposition } from 'src/globals'
|
||||
import { toggleInputComposition } from '../globals'
|
||||
import { createEventDispatcher, tick } from 'svelte'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
import { wait } from "../tools/utils";
|
||||
import { wait } from '../tools/utils'
|
||||
|
||||
export let initialValue = ''
|
||||
export let placeholder = ''
|
||||
@@ -60,7 +60,7 @@
|
||||
placeholder="{placeholder}"
|
||||
spellcheck="false"
|
||||
type="text"
|
||||
use:selectInput/>
|
||||
use:selectInput />
|
||||
</div>
|
||||
<slot/>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -6,18 +6,18 @@
|
||||
excerptAfter,
|
||||
type ResultNote,
|
||||
type SearchMatch,
|
||||
} from 'src/globals'
|
||||
import { getCtrlKeyLabel, loopIndex } from 'src/tools/utils'
|
||||
} from '../globals'
|
||||
import { getCtrlKeyLabel, loopIndex } from '../tools/utils'
|
||||
import { onDestroy, onMount, tick } from 'svelte'
|
||||
import { MarkdownView, Platform } from 'obsidian'
|
||||
import ModalContainer from './ModalContainer.svelte'
|
||||
import {
|
||||
OmnisearchInFileModal,
|
||||
OmnisearchVaultModal,
|
||||
} from 'src/components/modals'
|
||||
} from '../components/modals'
|
||||
import ResultItemInFile from './ResultItemInFile.svelte'
|
||||
import { Query } from 'src/search/query'
|
||||
import { openNote } from 'src/tools/notes'
|
||||
import { Query } from '../search/query'
|
||||
import { openNote } from '../tools/notes'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
|
||||
export let plugin: OmnisearchPlugin
|
||||
@@ -52,6 +52,7 @@
|
||||
if (searchQuery) {
|
||||
query = new Query(searchQuery, {
|
||||
ignoreDiacritics: plugin.settings.ignoreDiacritics,
|
||||
ignoreArabicDiacritics: plugin.settings.ignoreArabicDiacritics,
|
||||
})
|
||||
note =
|
||||
(
|
||||
|
||||
@@ -10,20 +10,20 @@
|
||||
type ResultNote,
|
||||
SPACE_OR_PUNCTUATION,
|
||||
Action,
|
||||
} from 'src/globals'
|
||||
import { createNote, openNote } from 'src/tools/notes'
|
||||
} from '../globals'
|
||||
import { createNote, openNote } from '../tools/notes'
|
||||
import {
|
||||
getCtrlKeyLabel,
|
||||
getExtension,
|
||||
isFilePDF,
|
||||
loopIndex,
|
||||
} from 'src/tools/utils'
|
||||
} from '../tools/utils'
|
||||
import {
|
||||
OmnisearchInFileModal,
|
||||
type OmnisearchVaultModal,
|
||||
} from 'src/components/modals'
|
||||
} from '../components/modals'
|
||||
import ResultItemVault from './ResultItemVault.svelte'
|
||||
import { Query } from 'src/search/query'
|
||||
import { Query } from '../search/query'
|
||||
import { cancelable, CancelablePromise } from 'cancelable-promise'
|
||||
import { debounce } from 'lodash-es'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { showExcerpt } from 'src/settings'
|
||||
import { showExcerpt } from '../settings'
|
||||
import type { ResultNote } from '../globals'
|
||||
import {
|
||||
getExtension,
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { Modifier } from 'obsidian'
|
||||
import ModalVault from './ModalVault.svelte'
|
||||
import ModalInFile from './ModalInFile.svelte'
|
||||
import { Action, eventBus, EventNames, isInputComposition } from '../globals'
|
||||
import type OmnisearchPlugin from 'src/main'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
|
||||
abstract class OmnisearchModal extends Modal {
|
||||
protected constructor(plugin: OmnisearchPlugin) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { QueryCombination } from 'minisearch'
|
||||
import { BRACKETS_AND_SPACE, chsRegex, SPACE_OR_PUNCTUATION } from 'src/globals'
|
||||
import { logDebug, splitCamelCase, splitHyphens } from 'src/tools/utils'
|
||||
import { BRACKETS_AND_SPACE, chsRegex, SPACE_OR_PUNCTUATION } from '../globals'
|
||||
import { logDebug, splitCamelCase, splitHyphens } from '../tools/utils'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
|
||||
const markdownLinkExtractor = require('markdown-link-extractor')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { excerptAfter, excerptBefore, type SearchMatch } from 'src/globals'
|
||||
import { excerptAfter, excerptBefore, type SearchMatch } from '../globals'
|
||||
import { removeDiacritics, warnDebug } from './utils'
|
||||
import type { Query } from 'src/search/query'
|
||||
import type { Query } from '../search/query'
|
||||
import { Notice } from 'obsidian'
|
||||
import { escapeRegExp } from 'lodash-es'
|
||||
import type OmnisearchPlugin from '../main'
|
||||
|
||||
Reference in New Issue
Block a user