@ablula/egg-yuque-viewer
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -50,6 +50,6 @@ 'use strict'; | ||
router.get(`Static Resources-${view}/js`, `${view}/index.js`, async ctx => { | ||
return ctx.redirect(`https://unpkg.com/${_config.npm}/build/index.js`); | ||
return ctx.redirect(`https://cdn.jsdelivr.net/npm/${_config.npm}/build/index.js`); | ||
}); | ||
router.get(`Static Resources-${view}/css`, `${view}/index.css`, async ctx => { | ||
return ctx.redirect(`https://unpkg.com/${_config.npm}/build/index.css`); | ||
return ctx.redirect(`https://cdn.jsdelivr.net/npm/${_config.npm}/build/index.css`); | ||
}); | ||
@@ -67,3 +67,3 @@ | ||
<title>${_config.title || 'Ablula-Yuque'}</title> | ||
<link href="https://unpkg.com/${_config.npm}/build/index.css" rel="stylesheet"></head> | ||
<link href="https://cdn.jsdelivr.net/npm/${_config.npm}/build/index.css" rel="stylesheet"></head> | ||
<body> | ||
@@ -79,3 +79,3 @@ <noscript> | ||
}, _config))}</script> | ||
<script src="https://unpkg.com/${_config.npm}/build/index.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/${_config.npm}/build/index.js"></script> | ||
</html>`; | ||
@@ -82,0 +82,0 @@ next(); |
{ | ||
"name": "@ablula/egg-yuque-viewer", | ||
"author": "mark.ck", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "egg plugin for yuque viewer", | ||
@@ -6,0 +6,0 @@ "eggPlugin": { |
@@ -51,3 +51,3 @@ # egg-yuque-viewer | ||
view: '/documents', | ||
token: 'lXioZgnPjfP6tNkxGOvT3x1rbTqNMGWlzW5pIIVn', | ||
token: '', | ||
darkMode: true, | ||
@@ -54,0 +54,0 @@ lightColor: '#ffffff00', |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10198
0