mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix(client): code not building due to attempt to access server code
This commit is contained in:
		
							parent
							
								
									aa99efc362
								
							
						
					
					
						commit
						9997f5c17a
					
				@ -1,6 +1,20 @@
 | 
				
			|||||||
import OptionsWidget from "../options_widget.js";
 | 
					import OptionsWidget from "../options_widget.js";
 | 
				
			||||||
import { t } from "../../../../services/i18n.js";
 | 
					import { t } from "../../../../services/i18n.js";
 | 
				
			||||||
import { DEFAULT_ALLOWED_TAGS } from "../../../../services/html_sanitizer.js";
 | 
					
 | 
				
			||||||
 | 
					// TODO: Deduplicate with src/services/html_sanitizer once there is a commons project between client and server.
 | 
				
			||||||
 | 
					export const DEFAULT_ALLOWED_TAGS = [
 | 
				
			||||||
 | 
					    'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
 | 
				
			||||||
 | 
					    'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div',
 | 
				
			||||||
 | 
					    'table', 'thead', 'caption', 'tbody', 'tfoot', 'tr', 'th', 'td', 'pre', 'section', 'img',
 | 
				
			||||||
 | 
					    'figure', 'figcaption', 'span', 'label', 'input', 'details', 'summary', 'address', 'aside', 'footer',
 | 
				
			||||||
 | 
					    'header', 'hgroup', 'main', 'nav', 'dl', 'dt', 'menu', 'bdi', 'bdo', 'dfn', 'kbd', 'mark', 'q', 'time',
 | 
				
			||||||
 | 
					    'var', 'wbr', 'area', 'map', 'track', 'video', 'audio', 'picture', 'del', 'ins',
 | 
				
			||||||
 | 
					    'en-media', // for ENEX import
 | 
				
			||||||
 | 
					    // Additional tags (https://github.com/TriliumNext/Notes/issues/567)
 | 
				
			||||||
 | 
					    'acronym', 'article', 'big', 'button', 'cite', 'col', 'colgroup', 'data', 'dd',
 | 
				
			||||||
 | 
					    'fieldset', 'form', 'legend', 'meter', 'noscript', 'option', 'progress', 'rp',
 | 
				
			||||||
 | 
					    'samp', 'small', 'sub', 'sup', 'template', 'textarea', 'tt'
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const TPL = `
 | 
					const TPL = `
 | 
				
			||||||
<div class="options-section">
 | 
					<div class="options-section">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user