hexo-theme-shokax
Advanced tools
Comparing version 0.0.4-alpha4 to 0.0.4
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.0.4-alpha4", | ||
"version": "0.0.4", | ||
"description": "a hexo theme based on shoka", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"@types/hexo": "^3.8.8", | ||
"@types/jquery": "^3.5.16", | ||
"@types/jquery": "^3.5.14", | ||
"@types/js-yaml": "^4.0.5", | ||
@@ -22,10 +22,10 @@ "@types/lozad": "^1.16.1", | ||
"@types/shelljs": "^0.8.11", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"eslint": "^8.32.0", | ||
"@typescript-eslint/eslint-plugin": "^5.47.1", | ||
"@typescript-eslint/parser": "^5.47.1", | ||
"eslint": "^8.30.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-n": "^15.6.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-n": "^15.6.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vue": "^9.9.0", | ||
"eslint-plugin-vue": "^9.8.0", | ||
"typescript": "^4.9.4", | ||
@@ -32,0 +32,0 @@ "vue": "^3.2.45" |
@@ -12,4 +12,3 @@ 'use strict' | ||
'bodyEnd', | ||
'comment', | ||
'status' | ||
'comment' | ||
], | ||
@@ -16,0 +15,0 @@ styles: [ |
@@ -28,12 +28,12 @@ const statics = CONFIG.statics.indexOf('//') > 0 ? CONFIG.statics : CONFIG.root; | ||
const changeTheme = function (type) { | ||
const btn = $dom('.theme .fa'); | ||
const btn = $dom('.theme .ic'); | ||
if (type === 'dark') { | ||
HTML.attr('data-theme', type); | ||
btn.removeClass('fa-sunrise'); | ||
btn.addClass('fa-moon-stars'); | ||
btn.removeClass('i-sun'); | ||
btn.addClass('i-moon'); | ||
} | ||
else { | ||
HTML.attr('data-theme', null); | ||
btn.removeClass('fa-moon-stars'); | ||
btn.addClass('fa-sunrise'); | ||
btn.removeClass('i-moon'); | ||
btn.addClass('i-sun'); | ||
} | ||
@@ -40,0 +40,0 @@ }; |
@@ -178,3 +178,3 @@ const cardActive = function () { | ||
const caption = element.child('figcaption'); | ||
element.insertAdjacentHTML('beforeend', '<div class="operation"><span class="breakline-btn"><i class="fa fa-solid fa-align-left"></i></span><span class="copy-btn"><i class="fa fa-solid fa-clipboard"></i></span><span class="fullscreen-btn"><i class="fa fa-solid fa-expand"></i></span></div>'); | ||
element.insertAdjacentHTML('beforeend', '<div class="operation"><span class="breakline-btn"><i class="ic i-align-left"></i></span><span class="copy-btn"><i class="ic i-clipboard"></i></span><span class="fullscreen-btn"><i class="ic i-expand"></i></span></div>'); | ||
const copyBtn = element.child('.copy-btn'); | ||
@@ -194,3 +194,3 @@ if (LOCAL.nocopy) { | ||
clipBoard(code, function (result) { | ||
target.child('.fa').className = result ? 'fa fa-solid fa-check' : 'fa fa-solid fa-times'; | ||
target.child('.ic').className = result ? 'ic i-check' : 'ic i-times'; | ||
target.blur(); | ||
@@ -202,3 +202,3 @@ showtip(LOCAL.copyright); | ||
setTimeout(function () { | ||
event.target.child('.fa').className = 'fa fa-solid fa-clipboard'; | ||
event.target.child('.ic').className = 'ic i-clipboard'; | ||
}, 1000); | ||
@@ -212,7 +212,7 @@ }); | ||
element.removeClass('breakline'); | ||
target.child('.fa').className = 'fa fa-solid fa-align-left'; | ||
target.child('.ic').className = 'ic i-align-left'; | ||
} | ||
else { | ||
element.addClass('breakline'); | ||
target.child('.fa').className = 'fa fa-solid fa-align-justify'; | ||
target.child('.ic').className = 'ic i-align-justify'; | ||
} | ||
@@ -225,3 +225,3 @@ }); | ||
BODY.removeClass('fullscreen'); | ||
fullscreenBtn.child('.fa').className = 'fa fa-solid fa-expand'; | ||
fullscreenBtn.child('.ic').className = 'ic i-expand'; | ||
}; | ||
@@ -242,3 +242,3 @@ const fullscreenHandle = function (event) { | ||
BODY.addClass('fullscreen'); | ||
fullscreenBtn.child('.fa').className = 'fa fa-solid fa-compress'; | ||
fullscreenBtn.child('.ic').className = 'ic i-compress'; | ||
if (code_container && code_container.find('tr').length > 15) { | ||
@@ -255,3 +255,3 @@ const showBtn = code_container.child('.show-btn'); | ||
code_container.style.maxHeight = '300px'; | ||
code_container.insertAdjacentHTML('beforeend', '<div class="show-btn"><i class="fa fa-solid fa-angle-down"></i></div>'); | ||
code_container.insertAdjacentHTML('beforeend', '<div class="show-btn"><i class="ic i-angle-down"></i></div>'); | ||
const showBtn = code_container.child('.show-btn'); | ||
@@ -424,3 +424,3 @@ const hideCode = function () { | ||
id: 'search', | ||
innerHTML: '<div class="inner"><div class="header"><span class="icon"><i class="fa fa-solid fa-magnifying-glass"></i></span><div class="search-input-container"></div><span class="close-btn"><i class="fa fa-solid fa-times-circle"></i></span></div><div class="results"><div class="inner"><div id="search-stats"></div><div id="search-hits"></div><div id="search-pagination"></div></div></div></div>' | ||
innerHTML: '<div class="inner"><div class="header"><span class="icon"><i class="ic i-search"></i></span><div class="search-input-container"></div><span class="close-btn"><i class="ic i-times-circle"></i></span></div><div class="results"><div class="inner"><div id="search-stats"></div><div id="search-hits"></div><div id="search-pagination"></div></div></div></div>' | ||
}); | ||
@@ -470,3 +470,3 @@ } | ||
item: function (data) { | ||
const cats = data.categories ? '<span>' + data.categories.join('<i class="fa fa-solid fa-angle-right"></i>') + '</span>' : ''; | ||
const cats = data.categories ? '<span>' + data.categories.join('<i class="ic i-angle-right"></i>') + '</span>' : ''; | ||
return '<a href="' + CONFIG.root + data.path + '">' + cats + data._highlightResult.title.value + '</a>'; | ||
@@ -490,6 +490,6 @@ }, | ||
templates: { | ||
first: '<i class="fa fa=solid fa-angle-double-left"></i>', | ||
last: '<i class="fa fa-solid fa-angle-double-right"></i>', | ||
previous: '<i class="fa fa-solid fa-angle-left"></i>', | ||
next: '<i class="fa fa-solid fa-angle-right"></i>' | ||
first: '<i class="ic i-angle-double-left"></i>', | ||
last: '<i class="ic i-angle-double-right"></i>', | ||
previous: '<i class="ic i-angle-left"></i>', | ||
next: '<i class="ic i-angle-right"></i>' | ||
}, | ||
@@ -543,3 +543,3 @@ cssClasses: { | ||
id: 'tool', | ||
innerHTML: '<div class="item player"></div><div class="item contents"><i class="fa fa-solid fa-list-ol"></i></div><div class="item chat"><i class="fa fa-solid fa-comments"></i></div><div class="item back-to-top"><i class="fa fa-solid fa-arrow-up"></i><span>0%</span></div>' | ||
innerHTML: '<div class="item player"></div><div class="item contents"><i class="ic i-list-ol"></i></div><div class="item chat"><i class="ic i-comments"></i></div><div class="item back-to-top"><i class="ic i-arrow-up"></i><span>0%</span></div>' | ||
}); | ||
@@ -546,0 +546,0 @@ } |
@@ -8,3 +8,3 @@ Vue.createApp({ | ||
let c; | ||
const btn = $dom('.theme').child('.fa'); | ||
const btn = $dom('.theme').child('.ic'); | ||
const neko = BODY.createChild('div', { | ||
@@ -11,0 +11,0 @@ id: 'neko', |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
512501
5147