mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	server: Fix search-related imports
This commit is contained in:
		
							parent
							
								
									2787feb593
								
							
						
					
					
						commit
						20ee62dfb1
					
				| @ -1,7 +1,7 @@ | |||||||
| "use strict"; | "use strict"; | ||||||
| 
 | 
 | ||||||
| import hoistedNoteService from "../hoisted_note.js"; | import hoistedNoteService from "../hoisted_note.js"; | ||||||
| import { SearchParams } from './services/types'; | import { SearchParams } from './services/types.js'; | ||||||
| 
 | 
 | ||||||
| class SearchContext { | class SearchContext { | ||||||
|      |      | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { TokenData, TokenStructure } from "./types"; | import { TokenData, TokenStructure } from "./types.js"; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * This will create a recursive object from a list of tokens - tokens between parenthesis are grouped in a single array |  * This will create a recursive object from a list of tokens - tokens between parenthesis are grouped in a single array | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { TokenData } from "./types"; | import { TokenData } from "./types.js"; | ||||||
| 
 | 
 | ||||||
| function lex(str: string) { | function lex(str: string) { | ||||||
|     str = str.toLowerCase(); |     str = str.toLowerCase(); | ||||||
|  | |||||||
| @ -21,7 +21,7 @@ import utils from "../../utils.js"; | |||||||
| import TrueExp from "../expressions/true.js"; | import TrueExp from "../expressions/true.js"; | ||||||
| import IsHiddenExp from "../expressions/is_hidden.js"; | import IsHiddenExp from "../expressions/is_hidden.js"; | ||||||
| import SearchContext from "../search_context.js"; | import SearchContext from "../search_context.js"; | ||||||
| import { TokenData, TokenStructure } from "./types"; | import { TokenData, TokenStructure } from "./types.js"; | ||||||
| import Expression from "../expressions/expression.js"; | import Expression from "../expressions/expression.js"; | ||||||
| 
 | 
 | ||||||
| function getFulltext(_tokens: TokenData[], searchContext: SearchContext) { | function getFulltext(_tokens: TokenData[], searchContext: SearchContext) { | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ import log from "../../log.js"; | |||||||
| import hoistedNoteService from "../../hoisted_note.js"; | import hoistedNoteService from "../../hoisted_note.js"; | ||||||
| import BNote from "../../../becca/entities/bnote.js"; | import BNote from "../../../becca/entities/bnote.js"; | ||||||
| import BAttribute from "../../../becca/entities/battribute.js"; | import BAttribute from "../../../becca/entities/battribute.js"; | ||||||
| import { SearchParams, TokenStructure } from "./types"; | import { SearchParams, TokenStructure } from "./types.js"; | ||||||
| import Expression from "../expressions/expression.js"; | import Expression from "../expressions/expression.js"; | ||||||
| import sql from "../../sql.js"; | import sql from "../../sql.js"; | ||||||
| import scriptService from "../../script.js"; | import scriptService from "../../script.js"; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran