mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/develop' into feature/ckeditor_lib
This commit is contained in:
		
						commit
						3e468d7960
					
				| @ -9,7 +9,7 @@ export interface Froca { | |||||||
|     branches: Record<string, FBranch>; |     branches: Record<string, FBranch>; | ||||||
|     attributes: Record<string, FAttribute>; |     attributes: Record<string, FAttribute>; | ||||||
|     attachments: Record<string, FAttachment>; |     attachments: Record<string, FAttachment>; | ||||||
|     blobPromises: Record<string, Promise<void | FBlob> | null>; |     blobPromises: Record<string, Promise<void | FBlob | null> | null>; | ||||||
| 
 | 
 | ||||||
|     getBlob(entityType: string, entityId: string): Promise<FBlob | null>; |     getBlob(entityType: string, entityId: string): Promise<FBlob | null>; | ||||||
|     getNote(noteId: string, silentNotFoundError?: boolean): Promise<FNote | null>; |     getNote(noteId: string, silentNotFoundError?: boolean): Promise<FNote | null>; | ||||||
|  | |||||||
| @ -36,7 +36,7 @@ class FrocaImpl implements Froca { | |||||||
|     branches!: Record<string, FBranch>; |     branches!: Record<string, FBranch>; | ||||||
|     attributes!: Record<string, FAttribute>; |     attributes!: Record<string, FAttribute>; | ||||||
|     attachments!: Record<string, FAttachment>; |     attachments!: Record<string, FAttachment>; | ||||||
|     blobPromises!: Record<string, Promise<FBlob> | null>; |     blobPromises!: Record<string, Promise<FBlob | null> | null>; | ||||||
| 
 | 
 | ||||||
|     constructor() { |     constructor() { | ||||||
|         this.initializedPromise = this.loadInitialTree(); |         this.initializedPromise = this.loadInitialTree(); | ||||||
|  | |||||||
							
								
								
									
										7
									
								
								apps/client/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								apps/client/src/types.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -21,7 +21,7 @@ interface CustomGlobals { | |||||||
|     getHeaders: typeof server.getHeaders; |     getHeaders: typeof server.getHeaders; | ||||||
|     getReferenceLinkTitle: (href: string) => Promise<string>; |     getReferenceLinkTitle: (href: string) => Promise<string>; | ||||||
|     getReferenceLinkTitleSync: (href: string) => string; |     getReferenceLinkTitleSync: (href: string) => string; | ||||||
|     getActiveContextNote: () => FNote; |     getActiveContextNote: () => FNote | null; | ||||||
|     requireLibrary: typeof library_loader.requireLibrary; |     requireLibrary: typeof library_loader.requireLibrary; | ||||||
|     ESLINT: Library; |     ESLINT: Library; | ||||||
|     appContext: AppContext; |     appContext: AppContext; | ||||||
| @ -74,6 +74,9 @@ declare global { | |||||||
|     type AutoCompleteCallback = (values: AutoCompleteArg[]) => void; |     type AutoCompleteCallback = (values: AutoCompleteArg[]) => void; | ||||||
| 
 | 
 | ||||||
|     interface AutoCompleteArg { |     interface AutoCompleteArg { | ||||||
|  |         name?: string; | ||||||
|  |         value?: string; | ||||||
|  |         notePathTitle?: string; | ||||||
|         displayKey?: "name" | "value" | "notePathTitle"; |         displayKey?: "name" | "value" | "notePathTitle"; | ||||||
|         cache?: boolean; |         cache?: boolean; | ||||||
|         source?: (term: string, cb: AutoCompleteCallback) => void, |         source?: (term: string, cb: AutoCompleteCallback) => void, | ||||||
| @ -83,7 +86,7 @@ declare global { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     interface JQuery { |     interface JQuery { | ||||||
|         autocomplete: (action?: "close" | "open" | "destroy" | "val" | AutoCompleteConfig, args?: object[] | string) => JQuery<HTMLElement>; |         autocomplete: (action?: "close" | "open" | "destroy" | "val" | AutoCompleteConfig, args?: AutoCompleteArg[] | string) => JQuery<HTMLElement>; | ||||||
| 
 | 
 | ||||||
|         getSelectedNotePath(): string | undefined; |         getSelectedNotePath(): string | undefined; | ||||||
|         getSelectedNoteId(): string | null; |         getSelectedNoteId(): string | null; | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ import utils from "../../services/utils.js"; | |||||||
| import { Dropdown } from "bootstrap"; | import { Dropdown } from "bootstrap"; | ||||||
| import type FAttachment from "../../entities/fattachment.js"; | import type FAttachment from "../../entities/fattachment.js"; | ||||||
| import type AttachmentDetailWidget from "../attachment_detail.js"; | import type AttachmentDetailWidget from "../attachment_detail.js"; | ||||||
| import { NoteRow } from "@triliumnext/commons"; | import type { NoteRow } from "@triliumnext/commons"; | ||||||
| 
 | 
 | ||||||
| const TPL = /*html*/` | const TPL = /*html*/` | ||||||
| <div class="dropdown attachment-actions"> | <div class="dropdown attachment-actions"> | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ import dayjs, { Dayjs } from "dayjs"; | |||||||
| import utc from "dayjs/plugin/utc.js"; | import utc from "dayjs/plugin/utc.js"; | ||||||
| import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"; | import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"; | ||||||
| import "../../stylesheets/calendar.css"; | import "../../stylesheets/calendar.css"; | ||||||
| import { AttributeRow } from "@triliumnext/commons"; | import type { AttributeRow } from "@triliumnext/commons"; | ||||||
| 
 | 
 | ||||||
| dayjs.extend(utc); | dayjs.extend(utc); | ||||||
| dayjs.extend(isSameOrAfter); | dayjs.extend(isSameOrAfter); | ||||||
|  | |||||||
| @ -18,9 +18,6 @@ | |||||||
|     "eslint.config.mjs" |     "eslint.config.mjs" | ||||||
|   ], |   ], | ||||||
|   "references": [ |   "references": [ | ||||||
|     { |  | ||||||
|       "path": "../server/tsconfig.app.json" |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "path": "../desktop/tsconfig.app.json" |       "path": "../desktop/tsconfig.app.json" | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -3,9 +3,6 @@ | |||||||
|   "files": [], |   "files": [], | ||||||
|   "include": [], |   "include": [], | ||||||
|   "references": [ |   "references": [ | ||||||
|     { |  | ||||||
|       "path": "../server" |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "path": "../desktop" |       "path": "../desktop" | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ | |||||||
|     "@excalidraw/excalidraw": "0.18.0", |     "@excalidraw/excalidraw": "0.18.0", | ||||||
|     "@types/archiver": "6.0.3", |     "@types/archiver": "6.0.3", | ||||||
|     "@types/better-sqlite3": "7.6.13", |     "@types/better-sqlite3": "7.6.13", | ||||||
|     "@types/cheerio": "0.22.35", |     "@types/cheerio": "1.0.0", | ||||||
|     "@types/cls-hooked": "4.3.9", |     "@types/cls-hooked": "4.3.9", | ||||||
|     "@types/compression": "1.7.5", |     "@types/compression": "1.7.5", | ||||||
|     "@types/cookie-parser": "1.4.8", |     "@types/cookie-parser": "1.4.8", | ||||||
|  | |||||||
| @ -1,5 +1,4 @@ | |||||||
| import * as utils from "./utils.js"; | import * as utils from "./utils.js"; | ||||||
| import * as ParseRangeHeaderExports from "./parseRangeHeader.js"; |  | ||||||
| import { ContentDoesNotExistError } from "./ContentDoesNotExistError.js"; | import { ContentDoesNotExistError } from "./ContentDoesNotExistError.js"; | ||||||
| import { createPartialContentHandler } from "./createPartialContentHandler.js"; | import { createPartialContentHandler } from "./createPartialContentHandler.js"; | ||||||
| import type { ContentProvider } from "./ContentProvider.js"; | import type { ContentProvider } from "./ContentProvider.js"; | ||||||
| @ -87,11 +86,6 @@ describe("createPartialContentHandler tests", () => { | |||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|     it("returns 500 if parseRangeHeader throws other errors", async () => { |     it("returns 500 if parseRangeHeader throws other errors", async () => { | ||||||
|       const parseRangeHeaderStub = vi |  | ||||||
|         .spyOn(ParseRangeHeaderExports, "parseRangeHeader") |  | ||||||
|         .mockImplementation(() => { |  | ||||||
|             throw new Error("Something went wrong!") |  | ||||||
|         }); |  | ||||||
|       const contentProvider = vi.fn().mockResolvedValue({}) as ContentProvider; |       const contentProvider = vi.fn().mockResolvedValue({}) as ContentProvider; | ||||||
|       const handler = createPartialContentHandler(contentProvider, logger); |       const handler = createPartialContentHandler(contentProvider, logger); | ||||||
|       try { |       try { | ||||||
|  | |||||||
							
								
								
									
										1551
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1551
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -12,8 +12,8 @@ | |||||||
|     "noFallthroughCasesInSwitch": true, |     "noFallthroughCasesInSwitch": true, | ||||||
|     "noImplicitAny": true, |     "noImplicitAny": true, | ||||||
|     "noImplicitOverride": false,  // TODO: Re-enable it at some point. |     "noImplicitOverride": false,  // TODO: Re-enable it at some point. | ||||||
|     "noImplicitReturns": true, |     "noImplicitReturns": false,   // TODO: Re-enable it at some point. | ||||||
|     "noUnusedLocals": true, |     "noUnusedLocals": false,      // TODO: Re-enable it at some point. | ||||||
|     "skipLibCheck": true, |     "skipLibCheck": true, | ||||||
|     "strict": true, |     "strict": true, | ||||||
|     "target": "es2022", |     "target": "es2022", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran