mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	chore(share): bring back boxicons
This commit is contained in:
		
							parent
							
								
									21b20cf575
								
							
						
					
					
						commit
						395f33cd5b
					
				@ -100,7 +100,6 @@ export function renderNoteContent(note: SNote) {
 | 
				
			|||||||
    if (!note.isLabelTruthy("shareOmitDefaultCss")) {
 | 
					    if (!note.isLabelTruthy("shareOmitDefaultCss")) {
 | 
				
			||||||
        cssToLoad.push(`assets/styles.css`);
 | 
					        cssToLoad.push(`assets/styles.css`);
 | 
				
			||||||
        cssToLoad.push(`assets/scripts.css`);
 | 
					        cssToLoad.push(`assets/scripts.css`);
 | 
				
			||||||
        cssToLoad.push(`assets/boxicons.css`);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    for (const cssRelation of note.getRelations("shareCss")) {
 | 
					    for (const cssRelation of note.getRelations("shareCss")) {
 | 
				
			||||||
        cssToLoad.push(`api/notes/${cssRelation.value}/download`);
 | 
					        cssToLoad.push(`api/notes/${cssRelation.value}/download`);
 | 
				
			||||||
 | 
				
			|||||||
@ -23,7 +23,8 @@
 | 
				
			|||||||
  "license": "Apache-2.0",
 | 
					  "license": "Apache-2.0",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "katex": "0.16.25",
 | 
					    "katex": "0.16.25",
 | 
				
			||||||
    "mermaid": "11.12.0"
 | 
					    "mermaid": "11.12.0",
 | 
				
			||||||
 | 
					    "boxicons": "2.1.4"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@digitak/esrun": "3.2.26",
 | 
					    "@digitak/esrun": "3.2.26",
 | 
				
			||||||
 | 
				
			|||||||
@ -60,6 +60,8 @@ async function runBuild() {
 | 
				
			|||||||
            ".woff": "dataurl",
 | 
					            ".woff": "dataurl",
 | 
				
			||||||
            ".woff2": "dataurl",
 | 
					            ".woff2": "dataurl",
 | 
				
			||||||
            ".ttf": "dataurl",
 | 
					            ".ttf": "dataurl",
 | 
				
			||||||
 | 
					            ".eot": "empty",
 | 
				
			||||||
 | 
					            ".svg": "empty",
 | 
				
			||||||
            ".html": "text",
 | 
					            ".html": "text",
 | 
				
			||||||
            ".css": "css"
 | 
					            ".css": "css"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,7 @@ import setupThemeSelector from "./modules/theme";
 | 
				
			|||||||
import setupMermaid from "./modules/mermaid";
 | 
					import setupMermaid from "./modules/mermaid";
 | 
				
			||||||
import setupMath from "./modules/math";
 | 
					import setupMath from "./modules/math";
 | 
				
			||||||
import api from "./modules/api";
 | 
					import api from "./modules/api";
 | 
				
			||||||
 | 
					import "boxicons/css/boxicons.min.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function $try<T extends (...a: unknown[]) => unknown>(func: T, ...args: Parameters<T>) {
 | 
					function $try<T extends (...a: unknown[]) => unknown>(func: T, ...args: Parameters<T>) {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					import "katex/dist/katex.min.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default async function setupMath() {
 | 
					export default async function setupMath() {
 | 
				
			||||||
    const anyMathBlock = document.querySelector("#content .math-tex");
 | 
					    const anyMathBlock = document.querySelector("#content .math-tex");
 | 
				
			||||||
    if (!anyMathBlock) {
 | 
					    if (!anyMathBlock) {
 | 
				
			||||||
@ -6,7 +8,6 @@ export default async function setupMath() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    const renderMathInElement = (await import("katex/contrib/auto-render")).default;
 | 
					    const renderMathInElement = (await import("katex/contrib/auto-render")).default;
 | 
				
			||||||
    await import("katex/contrib/mhchem");
 | 
					    await import("katex/contrib/mhchem");
 | 
				
			||||||
    await import("katex/dist/katex.min.css");
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    renderMathInElement(document.getElementById("content"));
 | 
					    renderMathInElement(document.getElementById("content"));
 | 
				
			||||||
    document.body.classList.add("math-loaded");
 | 
					    document.body.classList.add("math-loaded");
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										7
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							@ -1329,6 +1329,9 @@ importers:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  packages/share-theme:
 | 
					  packages/share-theme:
 | 
				
			||||||
    dependencies:
 | 
					    dependencies:
 | 
				
			||||||
 | 
					      boxicons:
 | 
				
			||||||
 | 
					        specifier: 2.1.4
 | 
				
			||||||
 | 
					        version: 2.1.4
 | 
				
			||||||
      katex:
 | 
					      katex:
 | 
				
			||||||
        specifier: 0.16.25
 | 
					        specifier: 0.16.25
 | 
				
			||||||
        version: 0.16.25
 | 
					        version: 0.16.25
 | 
				
			||||||
@ -15088,6 +15091,8 @@ snapshots:
 | 
				
			|||||||
      '@ckeditor/ckeditor5-core': 47.1.0
 | 
					      '@ckeditor/ckeditor5-core': 47.1.0
 | 
				
			||||||
      '@ckeditor/ckeditor5-utils': 47.1.0
 | 
					      '@ckeditor/ckeditor5-utils': 47.1.0
 | 
				
			||||||
      ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
 | 
					      ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
 | 
				
			||||||
 | 
					    transitivePeerDependencies:
 | 
				
			||||||
 | 
					      - supports-color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  '@ckeditor/ckeditor5-code-block@47.1.0(patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':
 | 
					  '@ckeditor/ckeditor5-code-block@47.1.0(patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':
 | 
				
			||||||
    dependencies:
 | 
					    dependencies:
 | 
				
			||||||
@ -15838,6 +15843,8 @@ snapshots:
 | 
				
			|||||||
      '@ckeditor/ckeditor5-ui': 47.1.0
 | 
					      '@ckeditor/ckeditor5-ui': 47.1.0
 | 
				
			||||||
      '@ckeditor/ckeditor5-utils': 47.1.0
 | 
					      '@ckeditor/ckeditor5-utils': 47.1.0
 | 
				
			||||||
      ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
 | 
					      ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
 | 
				
			||||||
 | 
					    transitivePeerDependencies:
 | 
				
			||||||
 | 
					      - supports-color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  '@ckeditor/ckeditor5-restricted-editing@47.1.0':
 | 
					  '@ckeditor/ckeditor5-restricted-editing@47.1.0':
 | 
				
			||||||
    dependencies:
 | 
					    dependencies:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user