New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hexo-theme-shokax

Package Overview
Dependencies
Maintainers
1
Versions
105
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.2.10 to 0.3.0

scripts/plugin/check.js

12

package.json
{
"name": "hexo-theme-shokax",
"version": "0.2.10",
"version": "0.3.0",
"description": "a hexo theme based on shoka",

@@ -8,3 +8,3 @@ "main": "index.js",

"author": "zkz098",
"license": "GPL-3.0-or-later",
"license": "AGPL-3.0-or-later",
"scripts": {

@@ -21,3 +21,3 @@ "test": "tsc",

"@types/node": "^20.2.3",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^5.59.7",

@@ -40,3 +40,7 @@ "eslint": "^8.41.0",

"js-yaml": "^4.1.0"
}
},
"engines": {
"node": ">=18.0.0"
},
"engineStrict": true
}

@@ -1,3 +0,1 @@

如果你访问的仓库地址是**zkz098/hexo-theme-shokaX**,请转为访问最新地址: [theme-shoka-x/hexo-theme-shokaX](https://github.com/theme-shoka-x/hexo-theme-shokaX)
# hexo-theme-shokaX

@@ -53,3 +51,3 @@ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fzkz098%2Fhexo-theme-shokaX?ref=badge_shield)

## 🛠️二次开发
二次开发文档正在筹备中...
[ShokaX官方开发文档](https://docs.kaitaku.xyz/develop/basic/)

@@ -64,9 +62,13 @@ 参与开发建议阅读的文档:

# 许可证
许可证: GPL 3 or later \
许可证: AGPL 3 or later \
[![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)
## 特别说明
GPL许可证主要目的是限制修改后的分发行为,避免未经许可的二次修改封装商业行为 \
仅修改源代码并不需要开源,因为未进行分发行为
AGPL许可证主要目的是限制修改后的分发行为,避免未经许可的二次修改封装商业行为 \
仅修改源代码**需要**开源,因为根据AGPL许可,搭建网站需要开源修改部分
## 使用特殊说明
依照AGPLv3 Section 7,我们添加了一些附加条款:
请查看[使用限制](./UsageRestrictions.md),使用ShokaX则默认您已知晓此文件内容
# 致谢名单

@@ -73,0 +75,0 @@ ## 开源项目

@@ -8,2 +8,20 @@ "use strict";

const fs = require("hexo-fs");
const node_path_1 = __importDefault(require("node:path"));
function findJsFile(path) {
console.log(path);
let result = [];
fs.readdirSync(path).forEach((item) => {
console.log(item);
if (!item.endsWith('js')) {
result = result.concat(findJsFile(node_path_1.default.join(path, item)));
}
else {
if (item.indexOf('player') === -1 && item.indexOf('fireworks') === -1) {
console.log('push');
result.push(node_path_1.default.join(path, item));
}
}
});
return result;
}
hexo.extend.generator.register('script', function (locals) {

@@ -63,9 +81,17 @@ const log = hexo.log || console.log;

let text = '';
['library', 'global', 'page', 'vue', 'components'].forEach(function (item) {
if (fs.existsSync(`themes/shokaX/source/js/_app/${item}.js`)) {
text += fs.readFileSync(`themes/shokaX/source/js/_app/${item}.js`).toString();
}
else {
text += fs.readFileSync(`node_modules/hexo-theme-shokax/source/js/_app/${item}.js`).toString();
}
let path = '';
if (fs.existsSync('themes/shokaX/source/js/_app/library/dom.js')) {
path = 'themes/shokaX/source/js/_app';
}
else {
path = 'node_modules/hexo-theme-shokax/source/js/_app';
}
let files = findJsFile(node_path_1.default.join(path, 'library'));
files = files.concat(findJsFile(node_path_1.default.join(path, 'globals')));
files = files.concat(findJsFile(node_path_1.default.join(path, 'page')));
files = files.concat(findJsFile(node_path_1.default.join(path, 'pjax')));
files = files.concat(findJsFile(node_path_1.default.join(path, 'components')));
console.log(files);
files.forEach(function (item) {
text += fs.readFileSync(item).toString();
});

@@ -72,0 +98,0 @@ if (!theme.experiments?.noPlayer) {

"use strict";
/*!
index.js in next-theme/hexo-theme-next by theme-next
under GNU AFFERO GENERAL PUBLIC LICENSE v3.0
https://github.com/next-theme/hexo-theme-next/blob/master/LICENSE.md
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -3,0 +8,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

@@ -665,3 +665,3 @@ let NOWPLAYING = null;

.replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, '')
.trim;
.trim();
if (lrcTimes) {

@@ -668,0 +668,0 @@ const timeLen = lrcTimes.length;

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