hexo-theme-shokax
Advanced tools
Comparing version 0.2.8 to 0.2.9
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "a hexo theme based on shoka", | ||
"main": "index.js", | ||
"repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX", | ||
"author": "Chou kaitaku", | ||
"author": "zkz098", | ||
"license": "GPL-3.0-or-later", | ||
@@ -14,3 +14,2 @@ "scripts": { | ||
"devDependencies": { | ||
"@types/fancybox": "^3.5.3", | ||
@@ -21,15 +20,14 @@ "@types/hexo": "^3.8.8", | ||
"@types/lozad": "^1.16.1", | ||
"@types/node": "^20.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.0", | ||
"@typescript-eslint/parser": "^5.59.0", | ||
"eslint": "^8.39.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"@types/node": "^20.2.3", | ||
"@typescript-eslint/eslint-plugin": "^5.59.7", | ||
"@typescript-eslint/parser": "^5.59.7", | ||
"eslint": "^8.41.0", | ||
"eslint-config-standard": "*", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vue": "^9.11.0", | ||
"eslint-plugin-vue": "^9.14.0", | ||
"hexo-fs": "^4.1.1", | ||
"hexo-util": "^3.0.1", | ||
"instantsearch.js": "^4.54.1", | ||
"instantsearch.js": "^4.56.0", | ||
"theme-shokax-anime": "^0.0.4", | ||
@@ -36,0 +34,0 @@ "theme-shokax-pjax": "^0.0.2", |
@@ -1,2 +0,2 @@ | ||
If the repository address you are visiting is zkz098/hexo-theme-shokaX, please switch to the latest address: theme-shoka-x/hexo-theme-shokaX. | ||
If the repository address you are visiting is **zkz098/hexo-theme-shokaX**, please switch to the latest address: [theme-shoka-x/hexo-theme-shokaX](https://github.com/theme-shoka-x/hexo-theme-shokaX) | ||
@@ -14,3 +14,3 @@ # hexo-theme-shokaX | ||
The community resource navigation and plugin repository for shokaX is awesome-shokaX. | ||
The community resource navigation and plugin repository for shokaX is [awesome-shokaX](https://github.com/theme-shoka-x/awesome-shokaX) | ||
@@ -34,3 +34,3 @@ ## 💬 Differences with shoka | ||
## 🔧 How to Install? | ||
It is recommended to use [ShokaX-CLI](https://github.com/zkz098/shokaX-CLI) and execute the following command: | ||
It is recommended to use [ShokaX-CLI](https://github.com/theme-shoka-x/shokaX-CLI) and execute the following command: | ||
```bash | ||
@@ -55,5 +55,5 @@ npm i shokax-cli --location=global | ||
[![](https://contributors-img.web.app/image?repo=zkz098/hexo-theme-shokaX)](https://github.com/zkz098/hexo-theme-shokaX/graphs/contributors) | ||
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors) | ||
## Special thanks | ||
[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" width="25%">](https://jb.gg/OpenSourceSupport) |
@@ -10,7 +10,7 @@ 如果你访问的仓库地址是**zkz098/hexo-theme-shokaX**,请转为访问最新地址: [theme-shoka-x/hexo-theme-shokaX](https://github.com/theme-shoka-x/hexo-theme-shokaX) | ||
语言(language): 简体中文 | [English](./README_en.md) \ | ||
语言(language): 简体中文 | [English](./README_en.MD) \ | ||
此项目是shoka的一个二次开发版(算精神续作),致力于提高性能和优化魔改体验 \ | ||
诞生原因是目前shoka已经两年没有更新了,积压了大量BUG和功能请求。\ | ||
诞生原因是目前shoka已经两年没有更新了,积压了大量BUG和功能请求。 | ||
shokaX的社区资源导航和插件仓库为[awesome-shokaX](https://github.com/zkz098/awesome-shokaX) | ||
shokaX的社区资源导航和插件仓库为[awesome-shokaX](https://github.com/theme-shoka-x/awesome-shokaX) | ||
@@ -79,3 +79,3 @@ ## 💬 和shoka的区别 | ||
## 开发者们 | ||
[![](https://contributors-img.web.app/image?repo=zkz098/hexo-theme-shokaX)](https://github.com/zkz098/hexo-theme-shokaX/graphs/contributors) | ||
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors) | ||
@@ -82,0 +82,0 @@ ## 特别鸣谢 |
@@ -94,3 +94,3 @@ "use strict"; | ||
const fontStyles = ':300,300italic,400,400italic,700,700italic'; | ||
const fontHost = '//fonts.geekzu.org'; | ||
const fontHost = 'https://fonts.googleapis.com'; | ||
let fontFamilies = ['global', 'logo', 'title', 'headings', 'posts', 'codes'].map(item => { | ||
@@ -97,0 +97,0 @@ if (config[item] && config[item].family && config[item].external) { |
@@ -11,2 +11,4 @@ 'use strict'; | ||
class StylusInject { | ||
files; | ||
base_dir; | ||
constructor(base_dir) { | ||
@@ -21,2 +23,4 @@ this.base_dir = base_dir; | ||
class ViewInject { | ||
base_dir; | ||
raws; | ||
constructor(base_dir) { | ||
@@ -23,0 +27,0 @@ this.base_dir = base_dir; |
@@ -20,9 +20,4 @@ const getDocHeight = () => $dom('main > .inner').offsetHeight; | ||
}; | ||
$dom.asyncifyAll = async (selector, element = document) => { | ||
return element.querySelectorAll(selector); | ||
}; | ||
$dom.asyncifyEach = (selector, callback, element) => { | ||
$dom.asyncifyAll(selector, element).then((tmp) => { | ||
tmp.forEach(callback); | ||
}); | ||
$dom.all(selector, element).forEach(callback); | ||
}; | ||
@@ -29,0 +24,0 @@ Object.assign(HTMLElement.prototype, { |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
556083
171
5428