mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(client): integrate highlight.js (partially)
This commit is contained in:
		
							parent
							
								
									875075e8c4
								
							
						
					
					
						commit
						bfa4c09c7e
					
				| @ -18,6 +18,7 @@ | |||||||
|     "@fullcalendar/list": "6.1.17", |     "@fullcalendar/list": "6.1.17", | ||||||
|     "@fullcalendar/multimonth": "6.1.17", |     "@fullcalendar/multimonth": "6.1.17", | ||||||
|     "@fullcalendar/timegrid": "6.1.17", |     "@fullcalendar/timegrid": "6.1.17", | ||||||
|  |     "@highlightjs/cdn-assets": "11.11.1", | ||||||
|     "@mermaid-js/layout-elk": "0.1.7", |     "@mermaid-js/layout-elk": "0.1.7", | ||||||
|     "@mind-elixir/node-menu": "1.0.5", |     "@mind-elixir/node-menu": "1.0.5", | ||||||
|     "@popperjs/core": "2.11.8", |     "@popperjs/core": "2.11.8", | ||||||
|  | |||||||
| @ -6,8 +6,7 @@ | |||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "better-sqlite3": "11.10.0", |     "better-sqlite3": "11.10.0", | ||||||
|     "jquery.fancytree": "2.38.5", |     "jquery.fancytree": "2.38.5", | ||||||
|     "jquery-hotkeys": "0.2.2", |     "jquery-hotkeys": "0.2.2" | ||||||
|     "@highlightjs/cdn-assets": "11.11.1" |  | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@electron/remote": "2.1.2", |     "@electron/remote": "2.1.2", | ||||||
|  | |||||||
| @ -65,8 +65,6 @@ async function register(app: express.Application) { | |||||||
|     app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(nodeModulesDir, "normalize.css/"))); |     app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(nodeModulesDir, "normalize.css/"))); | ||||||
| 
 | 
 | ||||||
|     app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/"))); |     app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/"))); | ||||||
| 
 |  | ||||||
|     app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(nodeModulesDir, "@highlightjs/cdn-assets/"))); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|  | |||||||
| @ -19,7 +19,6 @@ function buildFilesToCopy() { | |||||||
|     "jquery-hotkeys", |     "jquery-hotkeys", | ||||||
|     "normalize.css/normalize.css", |     "normalize.css/normalize.css", | ||||||
|     "jquery.fancytree/dist", |     "jquery.fancytree/dist", | ||||||
|     "@highlightjs/cdn-assets", |  | ||||||
| 
 | 
 | ||||||
|     // Required as they are native dependencies and cannot be well bundled.
 |     // Required as they are native dependencies and cannot be well bundled.
 | ||||||
|     "better-sqlite3", |     "better-sqlite3", | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							| @ -191,6 +191,9 @@ importers: | |||||||
|       '@fullcalendar/timegrid': |       '@fullcalendar/timegrid': | ||||||
|         specifier: 6.1.17 |         specifier: 6.1.17 | ||||||
|         version: 6.1.17(@fullcalendar/core@6.1.17) |         version: 6.1.17(@fullcalendar/core@6.1.17) | ||||||
|  |       '@highlightjs/cdn-assets': | ||||||
|  |         specifier: 11.11.1 | ||||||
|  |         version: 11.11.1 | ||||||
|       '@mermaid-js/layout-elk': |       '@mermaid-js/layout-elk': | ||||||
|         specifier: 0.1.7 |         specifier: 0.1.7 | ||||||
|         version: 0.1.7(mermaid@11.6.0) |         version: 0.1.7(mermaid@11.6.0) | ||||||
| @ -472,9 +475,6 @@ importers: | |||||||
| 
 | 
 | ||||||
|   apps/server: |   apps/server: | ||||||
|     dependencies: |     dependencies: | ||||||
|       '@highlightjs/cdn-assets': |  | ||||||
|         specifier: 11.11.1 |  | ||||||
|         version: 11.11.1 |  | ||||||
|       better-sqlite3: |       better-sqlite3: | ||||||
|         specifier: 11.10.0 |         specifier: 11.10.0 | ||||||
|         version: 11.10.0 |         version: 11.10.0 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran