mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(code): integrate JavaScript for TypeScript and JSX
This commit is contained in:
		
							parent
							
								
									dbfc36f4aa
								
							
						
					
					
						commit
						fade41ff65
					
				| @ -19,7 +19,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language | |||||||
|     "application/pgp": async () => (await import('@codemirror/legacy-modes/mode/asciiarmor')).asciiArmor, |     "application/pgp": async () => (await import('@codemirror/legacy-modes/mode/asciiarmor')).asciiArmor, | ||||||
|     "application/sieve": async () => (await import('@codemirror/legacy-modes/mode/sieve')).sieve, |     "application/sieve": async () => (await import('@codemirror/legacy-modes/mode/sieve')).sieve, | ||||||
|     "application/sparql-query": async () => (await import('@codemirror/legacy-modes/mode/sparql')).sparql, |     "application/sparql-query": async () => (await import('@codemirror/legacy-modes/mode/sparql')).sparql, | ||||||
|     "application/typescript": async () => (await import('@codemirror/legacy-modes/mode/javascript')).typescript, |     "application/typescript": async () => (await import('@codemirror/lang-javascript')).javascript({ typescript: true }), | ||||||
|     "application/x-aspx": null, |     "application/x-aspx": null, | ||||||
|     "application/x-bat": async () => (await import("./languages/batch.js")).batch, |     "application/x-bat": async () => (await import("./languages/batch.js")).batch, | ||||||
|     "application/x-cypher-query": async () => (await import('@codemirror/legacy-modes/mode/cypher')).cypher, |     "application/x-cypher-query": async () => (await import('@codemirror/legacy-modes/mode/cypher')).cypher, | ||||||
| @ -35,7 +35,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language | |||||||
|     "text/css": async () => (await import('@codemirror/lang-css')).css(), |     "text/css": async () => (await import('@codemirror/lang-css')).css(), | ||||||
|     "text/html": async () => (await import('@codemirror/lang-html')).html(), |     "text/html": async () => (await import('@codemirror/lang-html')).html(), | ||||||
|     "text/jinja2": async () => (await import('@codemirror/legacy-modes/mode/jinja2')).jinja2, |     "text/jinja2": async () => (await import('@codemirror/legacy-modes/mode/jinja2')).jinja2, | ||||||
|     "text/jsx": null, |     "text/jsx": async () => (await import('@codemirror/lang-javascript')).javascript({ jsx: true }), | ||||||
|     "text/mirc": async () => (await import('@codemirror/legacy-modes/mode/mirc')).mirc, |     "text/mirc": async () => (await import('@codemirror/legacy-modes/mode/mirc')).mirc, | ||||||
|     "text/tiki": async () => (await import('@codemirror/legacy-modes/mode/tiki')).tiki, |     "text/tiki": async () => (await import('@codemirror/legacy-modes/mode/tiki')).tiki, | ||||||
|     "text/troff": async () => (await import('@codemirror/legacy-modes/mode/troff')).troff, |     "text/troff": async () => (await import('@codemirror/legacy-modes/mode/troff')).troff, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran