hexo-theme-shokax
Advanced tools
Comparing version 0.5.0-dev-31f9f21 to 0.5.0-dev-4774f82
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.5.0-dev-31f9f21", | ||
"version": "0.5.0-dev-4774f82", | ||
"description": "a hexo theme based on shoka", | ||
@@ -45,3 +45,2 @@ "main": "index.js", | ||
"mouse-firework": "^0.0.6", | ||
"quicklink": "^2.3.0", | ||
"theme-shokax-anime": "^0.0.7", | ||
@@ -48,0 +47,0 @@ "twikoo": "^1.6.39", |
@@ -62,6 +62,2 @@ var __create = Object.create; | ||
}, | ||
quicklink: { | ||
timeout: theme.quicklink.timeout, | ||
priority: theme.quicklink.priority | ||
}, | ||
playerAPI: theme.playerAPI, | ||
@@ -68,0 +64,0 @@ experiments: { |
@@ -112,7 +112,2 @@ type vendorUrl = { | ||
walinePageView: boolean | ||
quicklink: { | ||
ignores: any | ||
timeout: number | ||
priority: boolean | ||
} | ||
playerAPI: string | ||
@@ -119,0 +114,0 @@ experiments: { |
import { cardActive } from '../page/common' | ||
import { resizeHandle } from '../globals/handles' | ||
import { | ||
CONFIG, | ||
setLocalHash, setLocalUrl, setOriginTitle, | ||
toolPlayer | ||
} from '../globals/globalVars' | ||
@@ -19,3 +17,3 @@ import { positionInit } from '../globals/tools' | ||
// @ts-ignore | ||
await import('katex/dist/katex.min.css') | ||
// await import('katex/dist/katex.min.css') | ||
await import('katex/dist/contrib/copy-tex.mjs') | ||
@@ -99,6 +97,11 @@ | ||
if (__shokax_player__) { | ||
toolPlayer.player.load(LOCAL.audio || CONFIG.audio || {}) | ||
// if (__shokax_player__) { | ||
// toolPlayer.player.load(LOCAL.audio || CONFIG.audio || {}) | ||
// } | ||
if (sessionStorage.getItem('loaded') === 'true') { | ||
Loader.hide(30) | ||
} else { | ||
sessionStorage.setItem('loaded', 'true') | ||
Loader.hide(500) | ||
} | ||
Loader.hide(100) | ||
@@ -105,0 +108,0 @@ setTimeout(() => { |
@@ -17,7 +17,2 @@ import domInit from './domInit' | ||
CONFIG.quicklink.ignores = LOCAL.ignores | ||
import('quicklink').then(({listen}) => { | ||
listen(CONFIG.quicklink) | ||
}) | ||
autoDarkmode() | ||
@@ -74,10 +69,2 @@ | ||
// window.addEventListener('pjax:send', pjaxReload, { | ||
// passive: true | ||
// }) | ||
// window.addEventListener('pjax:success', siteRefresh, { | ||
// passive: true | ||
// }) // 默认会传入一个event参数 | ||
window.addEventListener('beforeunload', () => { | ||
@@ -87,2 +74,3 @@ pagePosition() | ||
await siteRefresh(1) | ||
// TODO 修复内页跳转后重复出现加载动画的问题 | ||
} | ||
@@ -89,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
18
503575
4291
- Removedquicklink@^2.3.0
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedquicklink@2.3.0(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedregexparam@1.3.0(transitive)
- Removedroute-manifest@1.0.0(transitive)
- Removedscheduler@0.19.1(transitive)
- Removedthrottles@1.0.1(transitive)