@ablula/egg-yuque-viewer
Advanced tools
Comparing version 0.1.8-beta.3 to 0.1.8-beta.4
@@ -131,2 +131,4 @@ 'use strict'; | ||
const themeStyleTag = config.themeStyle && `<link href="${config.themeStyle}" rel="stylesheet">` || null; | ||
const npmCssUrl = config.npmCssUrl || `https://cdn.jsdelivr.net/npm/${config.npm}/build/index.css`; | ||
const npmJsUrl = config.npmCssUrl || `https://cdn.jsdelivr.net/npm/${config.npm}/build/index.js`; | ||
return `<!DOCTYPE html> | ||
@@ -138,3 +140,4 @@ <html lang="zh-CN"> | ||
<title>${config.title || 'Ablula-Yuque'}</title> | ||
<link href="https://cdn.jsdelivr.net/npm/${config.npm}/build/index.css" rel="stylesheet"> | ||
<link rel="shortcut icon" href="${config.favicon || 'favicon.ico'}"> | ||
<link href="${npmCssUrl}" rel="stylesheet"> | ||
${themeStyleTag || ''} | ||
@@ -154,3 +157,3 @@ </head> | ||
}, config, { token: null }))}</script> | ||
<script src="https://cdn.jsdelivr.net/npm/${config.npm}/build/index.js"></script> | ||
<script src="${npmJsUrl}"></script> | ||
</html>`; | ||
@@ -157,0 +160,0 @@ } |
{ | ||
"name": "@ablula/egg-yuque-viewer", | ||
"author": "mark.ck", | ||
"version": "0.1.8-beta.3", | ||
"version": "0.1.8-beta.4", | ||
"description": "egg plugin for yuque viewer", | ||
@@ -6,0 +6,0 @@ "eggPlugin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13844
336