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

hexo-theme-next

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-theme-next - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

languages/si.yml

4

docs/LICENSE.txt

@@ -29,3 +29,2 @@ «NexT» – Elegant and powerful theme for Hexo.

b) For any part of the covered work in which the copyright not specified,
except of third party libraries ('source/lib/*') and '*custom.*' files,
will mean this part owned by «NexT» in accord with terms in this file.

@@ -55,4 +54,1 @@

3. Priority support for implement all possible features to «NexT».
For more information, please contact «NexT» Organization at this
address: support@theme-next.org

@@ -92,3 +92,3 @@ <div align="right">

NexT выпускает новые версии каждый месяц. You can update NexT by the following command.
NexT выпускает новые версии каждый месяц. Please read the [release notes][docs-release-url] before updating the theme. You can update NexT by the following command.

@@ -99,6 +99,6 @@ Install the latest version throuth npm:

$ cd hexo-site
$ npm update hexo-theme-next
$ npm install hexo-theme-next@latest
```
Or update to latest master branch:
Or update to the latest master branch:

@@ -110,5 +110,2 @@ ```sh

А если всплывают ошибки во время обновления (что-то наподобии **«Commit your changes or stash them before you can merge»**), рекомендуется ознакомиться с особенностью хранения [Alternate Theme Config][docs-configuration-url].\
Как бы то ни было, можно обойти ошибки при обновлении если «Закомитить», «Стэшнуть» или «Откатить» локальные изменения. Смотрим [здесь](https://stackoverflow.com/a/15745424/5861495) как это сделать.
**Если нужно обновиться с версии v5.x / v7.x на последней версиями, читаем [здесь][docs-upgrade-url].**

@@ -119,3 +116,3 @@

* Посетите [Awesome NexT][awesome-next-url] список.
* Вступить в наши [Gitter][gitter-url] чаты.
* Вступить в наши [GitHub discussions][discussions-url] / [Gitter][gitter-url] чаты.
* [Добавить или улучшить перевод][i18n-url] за несколько секунд.

@@ -159,8 +156,10 @@ * Сообщить об ошибке в разделе [GitHub Issues][issues-bug-url].

[docs-custom-files-url]: https://theme-next.js.org/docs/advanced-settings/custom-files.html
[docs-release-url]: https://github.com/next-theme/hexo-theme-next/releases
[docs-upgrade-url]: https://theme-next.js.org/docs/getting-started/upgrade.html
[awesome-next-url]: https://github.com/next-theme/awesome-next
[discussions-url]: https://github.com/next-theme/hexo-theme-next/discussions
[gitter-url]: https://gitter.im/hexo-next
[i18n-url]: https://crowdin.com/project/hexo-theme-next
[awesome-next-url]: https://github.com/next-theme/awesome-next
[issues-bug-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Bug&template=bug-report.md

@@ -167,0 +166,0 @@ [issues-feat-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Feature+Request&template=feature-request.md

@@ -85,6 +85,6 @@ <div align="right">

您可以通过以下任何方法与维护人员联系
您可以通过以下方式与维护人员联系:
* 电子邮件:
* [support@theme-next.org](mailto:support@theme-next.org)
* 讨论:
* [GitHub Discussions](https://github.com/next-theme/hexo-theme-next/discussions)

@@ -91,0 +91,0 @@ * 即时通信:

@@ -92,3 +92,3 @@ <div align="right">

NexT 每个月都会发布新版本。你可以通过如下命令更新 NexT。
NexT 每个月都会发布新版本。请在更新前阅读[更新说明][docs-release-url]。你可以通过如下命令更新 NexT。

@@ -99,3 +99,3 @@ 通过 npm 安装最新版本:

$ cd hexo-site
$ npm update hexo-theme-next
$ npm install hexo-theme-next@latest
```

@@ -115,3 +115,3 @@

* 浏览 [Awesome NexT][awesome-next-url] 列表,与其它用户分享插件和教程。
* 加入我们的 [Gitter][gitter-url] 聊天。
* 加入我们的 [GitHub discussions][discussions-url] / [Gitter][gitter-url] 聊天。
* 请花几秒钟来[添加或修正翻译][i18n-url]。

@@ -155,8 +155,10 @@ * 在 [GitHub Issues][issues-bug-url] 报告Bug。

[docs-custom-files-url]: https://theme-next.js.org/docs/advanced-settings/custom-files.html
[docs-release-url]: https://github.com/next-theme/hexo-theme-next/releases
[docs-upgrade-url]: https://theme-next.js.org/docs/getting-started/upgrade.html
[awesome-next-url]: https://github.com/next-theme/awesome-next
[discussions-url]: https://github.com/next-theme/hexo-theme-next/discussions
[gitter-url]: https://gitter.im/hexo-next
[i18n-url]: https://crowdin.com/project/hexo-theme-next
[awesome-next-url]: https://github.com/next-theme/awesome-next
[issues-bug-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Bug&template=bug-report.md

@@ -163,0 +165,0 @@ [issues-feat-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Feature+Request&template=feature-request.md

@@ -29,3 +29,2 @@ # <div align="center">«NexT» – Elegant and powerful theme for Hexo.</div>

* b) For any part of the covered work in which the copyright not specified,
except of third party libraries ('[source/lib/*](source/lib)') and '\*custom.\*' files,
will mean this part owned by «NexT» in accord with terms in this file.

@@ -56,5 +55,2 @@

For more information, please contact «NexT» Organization at this
address: support@theme-next.org
<p align="center">This license also available in <a href="docs/LICENSE.txt">text format</a>.</p>

@@ -61,0 +57,0 @@

{
"name": "hexo-theme-next",
"version": "8.1.0",
"version": "8.2.0",
"description": "Elegant and powerful theme for Hexo.",

@@ -17,3 +17,3 @@ "main": "package.json",

],
"author": "NexT <support@theme-next.org> (https://theme-next.js.org)",
"author": "NexT (https://theme-next.js.org)",
"license": "AGPL-3.0-or-later",

@@ -25,9 +25,9 @@ "bugs": {

"devDependencies": {
"@next-theme/eslint-config": "0.0.1",
"@next-theme/eslint-config": "0.0.2",
"chai": "4.2.0",
"eslint": "7.14.0",
"hexo": "5.2.0",
"eslint": "7.16.0",
"hexo": "5.3.0",
"hexo-renderer-marked": "3.3.0",
"husky": "4.3.0",
"js-yaml": "3.14.0",
"husky": "4.3.6",
"js-yaml": "3.14.1",
"mocha": "8.2.1",

@@ -34,0 +34,0 @@ "stylint": "2.0.0"

@@ -92,3 +92,3 @@ <div align="right">

A new version of NexT will be released every month. You can update NexT by the following command.
A new version of NexT will be released every month. Please read the [release notes][docs-release-url] before updating the theme. You can update NexT by the following command.

@@ -99,6 +99,6 @@ Install the latest version throuth npm:

$ cd hexo-site
$ npm update hexo-theme-next
$ npm install hexo-theme-next@latest
```
Or update to latest master branch:
Or update to the latest master branch:

@@ -115,3 +115,3 @@ ```sh

* Visit the [Awesome NexT][awesome-next-url] list to share plugins and tutorials with other users.
* Join our [Gitter][gitter-url] chats.
* Join our [GitHub discussions][discussions-url] / [Gitter][gitter-url] chats.
* [Add or improve translation][i18n-url] in few seconds.

@@ -155,8 +155,10 @@ * Report a bug in [GitHub Issues][issues-bug-url].

[docs-custom-files-url]: https://theme-next.js.org/docs/advanced-settings/custom-files.html
[docs-release-url]: https://github.com/next-theme/hexo-theme-next/releases
[docs-upgrade-url]: https://theme-next.js.org/docs/getting-started/upgrade.html
[awesome-next-url]: https://github.com/next-theme/awesome-next
[discussions-url]: https://github.com/next-theme/hexo-theme-next/discussions
[gitter-url]: https://gitter.im/hexo-next
[i18n-url]: https://crowdin.com/project/hexo-theme-next
[awesome-next-url]: https://github.com/next-theme/awesome-next
[issues-bug-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Bug&template=bug-report.md

@@ -163,0 +165,0 @@ [issues-feat-url]: https://github.com/next-theme/hexo-theme-next/issues/new?assignees=&labels=Feature+Request&template=feature-request.md

@@ -13,3 +13,3 @@ 'use strict';

const { cache, language_switcher, leancloud_visitors, valine } = hexo.theme.config;
const { cache, language_switcher } = hexo.theme.config;
const warning = function(...args) {

@@ -27,6 +27,2 @@ hexo.log.warn(`Since ${args[0]} is turned on, the ${args[1]} is disabled to avoid potential hazards.`);

}
if (leancloud_visitors && leancloud_visitors.enable && valine && valine.enable && valine.visitor) {
warning('valine.visitor', 'leancloud_visitors');
leancloud_visitors.enable = false;
}
hexo.config.meta_generator = false;

@@ -33,0 +29,0 @@

@@ -16,2 +16,6 @@ 'use strict';

function parse(line, attr) {
return line.split(attr)[1].replace(';', '').trim();
}
function highlightTheme(name) {

@@ -28,5 +32,5 @@ const file = resolve('highlight.js', `styles/${name}.css`);

rule.split('\n').forEach(line => {
if (line.includes('background:')) background = line.split('background:')[1];
else if (line.includes('background-color:')) background = line.split('background-color:')[1];
else if (line.includes('color:')) foreground = line.split('color:')[1];
if (line.includes('background:')) background = parse(line, 'background:');
else if (line.includes('background-color:')) background = parse(line, 'background-color:');
else if (line.includes('color:')) foreground = parse(line, 'color:');
});

@@ -33,0 +37,0 @@ return {

@@ -13,7 +13,3 @@ /* global hexo */

injects.comment.raw('changyan', `
<div class="comments">
<div id="SOHUCS"></div>
</div>
`, {}, {cache: true});
injects.comment.raw('changyan', '<div class="comments" id="SOHUCS"></div>', {}, {cache: true});

@@ -20,0 +16,0 @@ injects.bodyEnd.file('changyan', path.join(hexo.theme_dir, 'layout/_third-party/comments/changyan.njk'));

@@ -14,6 +14,4 @@ /* global hexo */

injects.comment.raw('disqus', `
<div class="comments">
<div id="disqus_thread">
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
</div>
<div class="comments" id="disqus_thread">
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
</div>

@@ -20,0 +18,0 @@ `, {}, {cache: true});

@@ -9,10 +9,8 @@ /* global hexo */

hexo.extend.filter.register('theme_inject', injects => {
const config = hexo.theme.config.disqus;
const config = hexo.theme.config.disqusjs;
if (!config.enable || !config.shortname || !config.apikey) return;
injects.comment.raw('disqusjs', `
<div class="comments">
<div id="disqus_thread">
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
</div>
<div class="comments" id="disqus_thread">
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
</div>

@@ -19,0 +17,0 @@ `, {}, {cache: true});

@@ -12,3 +12,3 @@ /* global hexo */

injects.comment.raw('gitalk', '<div class="comments" id="gitalk-container"></div>', {}, {cache: true});
injects.comment.raw('gitalk', '<div class="comments gitalk-container"></div>', {}, {cache: true});

@@ -15,0 +15,0 @@ injects.bodyEnd.file('gitalk', path.join(hexo.theme_dir, 'layout/_third-party/comments/gitalk.njk'));

@@ -12,7 +12,3 @@ /* global hexo */

injects.comment.raw('isso', `
<div class="comments">
<div id="isso-thread"></div>
</div>
`, {}, { cache: true });
injects.comment.raw('isso', '<div class="comments" id="isso-thread"></div>', {}, { cache: true });

@@ -19,0 +15,0 @@ injects.bodyEnd.file('isso', path.join(hexo.theme_dir, 'layout/_third-party/comments/isso.njk'));

@@ -12,7 +12,3 @@ /* global hexo */

injects.comment.raw('livere', `
<div class="comments">
<div id="lv-container" data-id="city" data-uid="{{ theme.livere_uid }}"></div>
</div>
`, {}, {cache: true});
injects.comment.raw('livere', '<div class="comments" id="lv-container" data-id="city" data-uid="{{ theme.livere_uid }}"></div>', {}, {cache: true});

@@ -19,0 +15,0 @@ injects.bodyEnd.file('livere', path.join(hexo.theme_dir, 'layout/_third-party/comments/livere.njk'));

@@ -17,7 +17,3 @@ /* global hexo */

injects.comment.raw('utterances', `
<div class="comments">
<div id="utterances-container"></div>
</div>
`, {}, { cache: true });
injects.comment.raw('utterances', '<div class="comments utterances-container"></div>', {}, { cache: true });

@@ -24,0 +20,0 @@ injects.bodyEnd.file('utterances', path.join(hexo.theme_dir, 'layout/_third-party/comments/utterances.njk'));

@@ -21,3 +21,3 @@ 'use strict';

fontFamilies = fontFamilies.map(name => name.trim().replace(/\s/g, '+') + fontStyles);
fontFamilies = [...new Set(fontFamilies)].join('|');
fontFamilies = [...new Set(fontFamilies)].join('%7C');

@@ -24,0 +24,0 @@ // Merge extra parameters to the final processed font string

@@ -70,3 +70,3 @@ /* global instantsearch, algoliasearch, CONFIG */

empty: data => {
return `<div id="algolia-hits-empty">
return `<div class="algolia-hits-empty">
${CONFIG.i18n.empty.replace(/\$\{query}/, data.query)}

@@ -73,0 +73,0 @@ </div>`;

@@ -225,22 +225,2 @@ /* global CONFIG */

/**
* This function returns the parsed url parameters of the
* current request. Multiple values per key are supported,
* it will always return arrays of strings for the value parts.
*/
const getQueryParameters = () => {
const s = location.search;
const parts = s.substr(s.indexOf('?') + 1).split('&');
const result = {};
for (const part of parts) {
const [key, value] = part.split('=', 2);
if (key in result) {
result[key].push(value);
} else {
result[key] = [value];
}
}
return result;
};
// Highlight by wrapping node in mark elements with the given class name

@@ -267,7 +247,7 @@ const highlightText = (node, slice, className) => {

const highlightSearchWords = () => {
const params = getQueryParameters();
const keywords = params.highlight ? params.highlight[0].split(/\+/).map(decodeURIComponent) : [];
const params = new URL(location.href).searchParams.get('highlight');
const keywords = params ? params.split(' ') : [];
const body = document.querySelector('.post-body');
if (!keywords.length || !body) return;
const walk = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null, false);
const walk = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null);
const allNodes = [];

@@ -274,0 +254,0 @@ while (walk.nextNode()) {

@@ -64,5 +64,3 @@ /* global CONFIG */

function buildEventDOM(tense, event) {
const start = event.start.dateTime;
const end = event.end.dateTime;
function buildEventDOM(tense, event, start, end) {
const durationFormat = {

@@ -111,8 +109,8 @@ weekday: 'short',

let prevEnd = 0; // used to decide where to insert an <hr>
const utc = new Date().getTimezoneOffset() * 60000;
data.items.forEach(event => {
// Parse data
const utc = new Date().getTimezoneOffset() * 60000;
const start = event.start.dateTime = new Date(event.start.dateTime || (new Date(event.start.date).getTime() + utc));
const end = event.end.dateTime = new Date(event.end.dateTime || (new Date(event.end.date).getTime() + utc));
const start = new Date(event.start.dateTime || (new Date(event.start.date).getTime() + utc));
const end = new Date(event.end.dateTime || (new Date(event.end.date).getTime() + utc));

@@ -130,3 +128,3 @@ let tense = 'now';

eventList.innerHTML += buildEventDOM(tense, event);
eventList.innerHTML += buildEventDOM(tense, event, start, end);
prevEnd = end;

@@ -133,0 +131,0 @@ });

@@ -43,3 +43,3 @@ /* global CONFIG */

element.classList.add(animateAction);
}, 0);
});
});

@@ -46,0 +46,0 @@ },

@@ -9,3 +9,3 @@ /* global NexT, CONFIG */

// https://caniuse.com/#feat=mdn-api_element_classlist_replace
// https://caniuse.com/mdn-api_element_classlist_replace
if (typeof DOMTokenList.prototype.replace !== 'function') {

@@ -340,9 +340,5 @@ DOMTokenList.prototype.replace = function(remove, add) {

} else {
let script = document.createElement('script');
script.onload = script.onreadystatechange = function(_, isAbort) {
if (isAbort || !script.readyState || /loaded|complete/.test(script.readyState)) {
script.onload = script.onreadystatechange = null;
script = undefined;
if (!isAbort && callback) setTimeout(callback, 0);
}
const script = document.createElement('script');
script.onload = () => {
setTimeout(callback);
};

@@ -349,0 +345,0 @@ script.src = url;

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