Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-theme-shokax

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-theme-shokax - npm Package Compare versions

Comparing version 0.0.2-alpha2 to 0.0.2-alpha3

CODE_OF_CONDUCT.md

0

languages/README.md

@@ -0,0 +0,0 @@ # Override Default Translations

2

package.json
{
"name": "hexo-theme-shokax",
"version": "0.0.2-alpha2",
"version": "0.0.2-alpha3",
"description": "a hexo theme based on shoka",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,2 +7,3 @@ # hexo-theme-shokaX

语言(language): 简体中文 | [English](https://github.com/zkz098/hexo-theme-shokaX/blob/main/README_en.MD) \
此项目是shoka的一个二次开发版(算精神续作),致力于提高性能和优化魔改体验 \

@@ -15,12 +16,2 @@ 诞生原因是目前shoka已经两年没有更新了,积压了大量BUG和功能请求。\

## 待办名单
- [x] 推出一个可用的测试版
- [x] 支持twikoo和waline评论系统
- [x] 优化部分html标签
- [x] 原生PWA支持
- [x] 注入js和css支持
- [x] 自定义font
- [x] 部分功能调整为可关闭
- [x] 插件系统
## 和shoka的区别

@@ -39,6 +30,6 @@ 原先shoka使用了javascript+Native+nunjucks的技术 \

```
后续配置请点[这里](https://www.kaitaku.xyz/webbuild/shokaX/) 查看
# 许可证
许可证: BSD-3-Clause \
请注意: `0.0.1-alpha6`版本开始,shokaX使用BSD协议,这意味着删除页脚处的shokaX标识是违反许可证的
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX?ref=badge_large)

@@ -45,0 +36,0 @@

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ 'use strict'

@@ -66,4 +66,4 @@ /* global hexo */

if (!Object.prototype.hasOwnProperty.call(posts, year)) {
// 13 arrays. The first array is for posts in this year
// and the other arrays is for posts in this month
// 13个数组. 第一个数组是给这一年的文章准备的
// 其他则是各个月份的文章
posts[year] = [

@@ -70,0 +70,0 @@ [],

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ /* global hexo */

@@ -7,36 +7,2 @@ /* global hexo */

hexo.extend.helper.register('_init_comments', function (mode) {
if (mode === 'twikoo') {
const options = {
// eslint-disable-next-line no-useless-escape
envId: `${hexo.theme.config?.twikoo?.envId}`,
el: '#tcomments'
}
if (hexo.theme.config.twikoo.mode === 'tencent') {
// eslint-disable-next-line no-useless-escape
options.region = `\'${hexo.theme.config.twikoo.region}\'`
}
return `
<script data-pjax>
setTimeout(function () {
twikoo.init(${JSON.stringify(options)})
}, 1000)
</script>`
} else if (mode === 'waline') {
const options = {
el: '#wcomments',
serverURL: hexo.theme.config.waline.serverURL
}
return `
<script type="module">
import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs'
init(${JSON.stringify(options)});
</script>
<script nomodule type="text/javascript">
Waline.init(${JSON.stringify(options)});
</script>
`
}
})
hexo.extend.helper.register('_new_comments', function (mode) {

@@ -84,10 +50,5 @@ if (mode === 'twikoo') {

</script>
<script nomodule type="text/javascript">
Waline.RecentComments({
el: '#new-comment',
serverURL: '${hexo.theme.config.waline.serverURL}',
count: 10,
});
</script>
`
} else {
console.log(`${mode} is not supported recent comment`)
}

@@ -139,18 +100,3 @@ })

hexo.extend.helper.register('_local_fonts', () => {
let res = '<style>'
const fonts = hexo.theme.config.custom.font
fonts.forEach((item) => {
const tmp = `
@font-face {
font-family: ${item.family};
src: ${item.src};
font-display: swap;
};`
res += tmp
})
res += '</style>'
return res
})
// TODO 废弃方法
hexo.extend.helper.register('_vendor_js', () => {

@@ -157,0 +103,0 @@ const config = hexo.theme.config.vendors.js

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ 'use strict'

'use strict'
// 插件部分参考自theme-next
const fs = require('fs')

@@ -4,0 +5,0 @@ const path = require('path')

@@ -0,0 +0,0 @@ /* global hexo */

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ const canvasEl = document.createElement('canvas');

@@ -0,0 +0,0 @@ const statics = CONFIG.statics.indexOf('//') > 0 ? CONFIG.statics : CONFIG.root;

@@ -0,0 +0,0 @@ const getDocHeight = () => $dom('main > .inner').offsetHeight;

@@ -0,0 +0,0 @@ const cardActive = function () {

@@ -0,0 +0,0 @@ let NOWPLAYING = null;

@@ -0,0 +0,0 @@ Vue.createApp({

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc