mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	load jquery from node_modules
This commit is contained in:
		
							
								
								
									
										10704
									
								
								libraries/jquery.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10704
									
								
								libraries/jquery.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										2
									
								
								libraries/jquery.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								libraries/jquery.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										11
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										11
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -48,6 +48,7 @@ | ||||
|         "is-svg": "4.3.2", | ||||
|         "jimp": "0.22.10", | ||||
|         "joplin-turndown-plugin-gfm": "1.0.12", | ||||
|         "jquery": "^3.7.1", | ||||
|         "jsdom": "22.1.0", | ||||
|         "katex": "0.16.9", | ||||
|         "marked": "9.1.6", | ||||
| @@ -8778,6 +8779,11 @@ | ||||
|       "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", | ||||
|       "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" | ||||
|     }, | ||||
|     "node_modules/jquery": { | ||||
|       "version": "3.7.1", | ||||
|       "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", | ||||
|       "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" | ||||
|     }, | ||||
|     "node_modules/js-tokens": { | ||||
|       "version": "4.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", | ||||
| @@ -21770,6 +21776,11 @@ | ||||
|       "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", | ||||
|       "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" | ||||
|     }, | ||||
|     "jquery": { | ||||
|       "version": "3.7.1", | ||||
|       "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", | ||||
|       "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" | ||||
|     }, | ||||
|     "js-tokens": { | ||||
|       "version": "4.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", | ||||
|   | ||||
| @@ -74,6 +74,7 @@ | ||||
|     "is-svg": "4.3.2", | ||||
|     "jimp": "0.22.10", | ||||
|     "joplin-turndown-plugin-gfm": "1.0.12", | ||||
|     "jquery": "^3.7.1", | ||||
|     "jsdom": "22.1.0", | ||||
|     "katex": "0.16.9", | ||||
|     "marked": "9.1.6", | ||||
|   | ||||
| @@ -56,6 +56,8 @@ function register(app) { | ||||
|     app.use(`/${assetPath}/node_modules/boxicons/fonts/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/boxicons/fonts/'))); | ||||
|  | ||||
|     app.use(`/${assetPath}/node_modules/mermaid/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/mermaid/dist/'))); | ||||
|  | ||||
|     app.use(`/${assetPath}/node_modules/jquery/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/jquery/dist/'))); | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|   | ||||
| @@ -49,7 +49,7 @@ | ||||
| <!-- Required for correct loading of scripts in Electron --> | ||||
| <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> | ||||
|  | ||||
| <script src="<%= assetPath %>/libraries/jquery.min.js"></script> | ||||
| <script src="<%= assetPath %>/node_modules/jquery/dist/jquery.min.js"></script> | ||||
|  | ||||
| <link href="<%= assetPath %>/libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | ||||
| <script src="<%= assetPath %>/libraries/bootstrap/js/bootstrap.bundle.min.js"></script> | ||||
|   | ||||
| @@ -123,7 +123,7 @@ | ||||
|     }; | ||||
| </script> | ||||
|  | ||||
| <script src="<%= assetPath %>/libraries/jquery.min.js"></script> | ||||
| <script src="<%= assetPath %>/node_modules/jquery/dist/jquery.min.js"></script> | ||||
|  | ||||
| <script src="<%= assetPath %>/node_modules/dayjs/dayjs.min.js"></script> | ||||
|  | ||||
|   | ||||
| @@ -153,7 +153,7 @@ | ||||
| <!-- Required for correct loading of scripts in Electron --> | ||||
| <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> | ||||
|  | ||||
| <script src="<%= assetPath %>/libraries/jquery.min.js"></script> | ||||
| <script src="<%= assetPath %>/node_modules/jquery/dist/jquery.min.js"></script> | ||||
| <script src="<%= assetPath %>/libraries/jquery.hotkeys.js"></script> | ||||
|  | ||||
| <link href="<%= assetPath %>/libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user