hexo-theme-shokax 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
@@ -14,26 +14,26 @@
14
14
  "@types/chai": "^4.3.5",
15
15
  "@types/fancybox": "^3.5.3",
16
16
  "@types/hexo": "^3.8.8",
17
- "@types/jquery": "^3.5.16",
17
+ "@types/jquery": "^3.5.17",
18
18
  "@types/js-yaml": "^4.0.5",
19
19
  "@types/lozad": "^1.16.1",
20
20
  "@types/mocha": "^10.0.1",
21
- "@types/node": "^20.4.4",
22
- "@typescript-eslint/eslint-plugin": "^6.2.0",
23
- "@typescript-eslint/parser": "^6.2.0",
24
- "chai": "^4.3.7",
25
- "eslint": "^8.45.0",
21
+ "@types/node": "^20.5.6",
22
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
23
+ "@typescript-eslint/parser": "^6.4.1",
24
+ "chai": "^4.3.8",
25
+ "eslint": "^8.47.0",
26
26
  "eslint-config-standard": "*",
27
27
  "eslint-plugin-chai-friendly": "^0.7.2",
28
- "eslint-plugin-import": "^2.27.5",
29
- "eslint-plugin-n": "^16.0.1",
28
+ "eslint-plugin-import": "^2.28.1",
29
+ "eslint-plugin-n": "^16.0.2",
30
30
  "eslint-plugin-promise": "^6.1.1",
31
- "eslint-plugin-vue": "^9.15.1",
31
+ "eslint-plugin-vue": "^9.17.0",
32
32
  "hexo-fs": "^4.1.1",
33
33
  "hexo-util": "^3.1.0",
34
- "instantsearch.js": "^4.56.7",
34
+ "instantsearch.js": "^4.56.9",
35
35
  "mocha": "^10.2.0",
36
- "typescript": "^5.1.6",
36
+ "typescript": "^5.2.2",
37
37
  "vue": "^3.3.4",
38
38
  "jsdom": "^22.1.0"
39
39
  },
@@ -46,7 +46,9 @@ hexo.extend.generator.register('script', function (locals) {
46
46
  disableVL: theme.disableVL,
47
47
  noPlayer: theme.experiments?.noPlayer,
48
48
  audio: undefined,
49
- fireworks: undefined
49
+ fireworks: (theme.fireworks && theme.fireworks.enable) ?
50
+ (theme.fireworks.color || ['rgba(255,182,185,.9)', 'rgba(250,227,217,.9)', 'rgba(187,222,214,.9)', 'rgba(138,198,209,.9)']) :
51
+ undefined
50
52
  };
51
53
  if (config?.algolia) {
52
54
  siteConfig.search = {
@@ -15,7 +15,6 @@ const fireworks_1 = require("../fireworks");
15
15
  const theme_shokax_pjax_1 = __importDefault(require("theme-shokax-pjax"));
16
16
  const vue_1 = require("../library/vue");
17
17
  const siteInit = () => {
18
- (0, scriptPjax_1.cloudflareInit)();
19
18
  (0, domInit_1.default)();
20
19
  (0, vue_1.initVue)();
21
20
  (0, globalVars_1.setPjax)(new theme_shokax_pjax_1.default({
@@ -47,6 +46,7 @@ const siteInit = () => {
47
46
  });
48
47
  (0, refresh_1.siteRefresh)(1);
49
48
  };
49
+ (0, scriptPjax_1.cloudflareInit)();
50
50
  window.addEventListener('DOMContentLoaded', siteInit, {
51
51
  passive: true
52
52
  });
@@ -369,11 +369,11 @@ const mediaPlayer = (t, config) => {
369
369
  ['music.163.com.*artist.*id=(\\d+)', 'netease', 'artist'],
370
370
  ['music.163.com.*playlist.*id=(\\d+)', 'netease', 'playlist'],
371
371
  ['music.163.com.*discover/toplist.*id=(\\d+)', 'netease', 'playlist'],
372
- ['y.qq.com.*song/(\\w+).html', 'tencent', 'song'],
373
- ['y.qq.com.*album/(\\w+).html', 'tencent', 'album'],
374
- ['y.qq.com.*singer/(\\w+).html', 'tencent', 'artist'],
375
- ['y.qq.com.*playsquare/(\\w+).html', 'tencent', 'playlist'],
376
- ['y.qq.com.*playlist/(\\w+).html', 'tencent', 'playlist'],
372
+ ['y.qq.com.*song/(\\w+)(.html)?', 'tencent', 'song'],
373
+ ['y.qq.com.*album/(\\w+)(.html)?', 'tencent', 'album'],
374
+ ['y.qq.com.*singer/(\\w+)(.html)?', 'tencent', 'artist'],
375
+ ['y.qq.com.*playsquare/(\\w+)(.html)?', 'tencent', 'playlist'],
376
+ ['y.qq.com.*playlist/(\\w+)(.html)?', 'tencent', 'playlist'],
377
377
  ['xiami.com.*song/(\\w+)', 'xiami', 'song'],
378
378
  ['xiami.com.*album/(\\w+)', 'xiami', 'album'],
379
379
  ['xiami.com.*artist/(\\w+)', 'xiami', 'artist'],
package/.eslintrc.cjs DELETED
@@ -1,32 +0,0 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- env: {
4
- browser: true,
5
- commonjs: true,
6
- es6: true,
7
- node: true
8
- },
9
- extends: [
10
- 'standard',
11
- 'plugin:@typescript-eslint/recommended',
12
- 'plugin:vue/vue3-recommended',
13
- 'plugin:chai-friendly/recommended'
14
- ],
15
- plugins: [
16
- '@typescript-eslint',
17
- 'vue',
18
- 'chai-friendly'
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 12
22
- },
23
- rules: {
24
- camelcase: 'off',
25
- 'n/no-callback-literal': 'off',
26
- '@typescript-eslint/ban-types': 'off',
27
- '@typescript-eslint/ban-ts-comment': 'off',
28
- '@typescript-eslint/no-var-requires': 'off',
29
- '@typescript-eslint/no-unused-vars': 'off',
30
- 'prefer-const': 'off'
31
- }
32
- }