hexo-theme-solitude 2.0.12-rc.1 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README_zh-Hans.md +1 -1
- package/README_zh-Hant.md +3 -1
- package/languages/default.yml +0 -1
- package/languages/zh-CN.yml +0 -1
- package/layout/includes/head/page_config.pug +2 -1
- package/layout/includes/page/says.pug +1 -1
- package/layout/includes/widgets/page/about/other.pug +2 -8
- package/layout/includes/widgets/post/postInfo.pug +1 -1
- package/package.json +1 -1
- package/source/css/_comments/comment.styl +3 -1
- package/source/css/_layout/fullpage.styl +1 -0
- package/source/css/_post/copyright.styl +1 -0
- package/source/css/_post/meta.styl +1 -1
- package/source/css/_post/tools.styl +2 -0
- package/source/js/covercolor/api.js +5 -0
- package/source/js/covercolor/ave.js +5 -0
- package/source/js/covercolor/local.js +5 -0
- package/source/js/main.js +2 -2
- package/source/js/right_menu.js +10 -10
package/README.md
CHANGED
@@ -81,4 +81,6 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
|
|
81
81
|
|
82
82
|
## License
|
83
83
|
|
84
|
-
[MIT](./LICENSE) License © 2023-PRESENT [
|
84
|
+
[MIT](./LICENSE) License © 2023-PRESENT [一小只托尼](https://github.com/everfu)
|
85
|
+
|
86
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/README_zh-Hans.md
CHANGED
@@ -82,6 +82,6 @@
|
|
82
82
|
|
83
83
|
## 版权
|
84
84
|
|
85
|
-
[MIT](./LICENSE) License © 2023-至今 [
|
85
|
+
[MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/efuo)
|
86
86
|
|
87
87
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/README_zh-Hant.md
CHANGED
@@ -79,4 +79,6 @@
|
|
79
79
|
|
80
80
|
## 版權
|
81
81
|
|
82
|
-
[MIT](./LICENSE) License © 2023-至今 [
|
82
|
+
[MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/everfu)
|
83
|
+
|
84
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/languages/default.yml
CHANGED
package/languages/zh-CN.yml
CHANGED
@@ -6,5 +6,6 @@ script#config-diff.
|
|
6
6
|
page: '!{page.type}',
|
7
7
|
toc: !{!!page.toc},
|
8
8
|
comment: !{!!page.comment},
|
9
|
-
ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false}
|
9
|
+
ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false},
|
10
|
+
color: !{page.color ? "'"+ page.color+"'" : false},
|
10
11
|
}
|
@@ -42,7 +42,7 @@ if theme.says.enable
|
|
42
42
|
time.datetime(datetime=moment(item.date).format())
|
43
43
|
if item.location
|
44
44
|
.bber-info-location
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fas.fa-location-dot
|
46
46
|
= item.location
|
47
47
|
if item.link
|
48
48
|
a.bber-content-link(href=url_for(item.link) target="_blank")
|
@@ -9,13 +9,7 @@ if tj || oneself
|
|
9
9
|
.author-content-item-tips=_p('about.other.tj.tip')
|
10
10
|
span.author-content-item-title=_p('about.other.tj.title')
|
11
11
|
#statistic
|
12
|
-
.post-tips
|
13
|
-
= _p('about.other.tj.post_tip')
|
14
|
-
case tj.provider
|
15
|
-
when '51la'
|
16
|
-
a(href="https://v6.51.la/") 51la网站统计
|
17
|
-
when 'baidu'
|
18
|
-
a(href="https://tongji.baidu.com/") 百度统计
|
12
|
+
.post-tips!= _p(tj.desc)
|
19
13
|
if tj.button
|
20
14
|
.banner-button-group
|
21
15
|
a.banner-button(href=url_for(tj.button_link))
|
@@ -42,7 +36,7 @@ if tj || oneself
|
|
42
36
|
}
|
43
37
|
s.innerHTML = html;
|
44
38
|
});
|
45
|
-
when '
|
39
|
+
when 'custom'
|
46
40
|
script.
|
47
41
|
fetch("#{tj.url}")
|
48
42
|
.then(res => res.json())
|
@@ -35,7 +35,7 @@
|
|
35
35
|
span= min2read(page.content) + " min"
|
36
36
|
if theme.post.meta.locate
|
37
37
|
span.post-meta-position(title=_p('post.ip') + page.locate)
|
38
|
-
i.post-meta-icon.solitude.
|
38
|
+
i.post-meta-icon.solitude.fas.fa-location-dot
|
39
39
|
span= page.locate
|
40
40
|
if theme.post.meta.pv
|
41
41
|
a.post-meta-pv(href=url_for(page.path), title=_p('post.pv'))
|
package/package.json
CHANGED
package/source/js/main.js
CHANGED
@@ -154,10 +154,10 @@ const sco = {
|
|
154
154
|
$console.classList.toggle("on", this.musicPlaying);
|
155
155
|
if (this.musicPlaying) {
|
156
156
|
$meting.aplayer.play();
|
157
|
-
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude
|
157
|
+
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude fas fa-pause')
|
158
158
|
} else {
|
159
159
|
$meting.aplayer.pause();
|
160
|
-
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude
|
160
|
+
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude fas fa-play')
|
161
161
|
}
|
162
162
|
},
|
163
163
|
switchCommentBarrage() {
|
package/source/js/right_menu.js
CHANGED
@@ -108,7 +108,7 @@ window.oncontextmenu = (ele) => {
|
|
108
108
|
if (document.body.clientWidth <= 768) return;
|
109
109
|
let x = ele.clientX + 10;
|
110
110
|
let y = ele.clientY;
|
111
|
-
Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "
|
111
|
+
Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "flex"));
|
112
112
|
rm.globalEvent = ele;
|
113
113
|
|
114
114
|
let display = false;
|
@@ -117,9 +117,9 @@ window.oncontextmenu = (ele) => {
|
|
117
117
|
|
118
118
|
if (selectTextNow && window.getSelection()) {
|
119
119
|
display = true;
|
120
|
-
rm.menuItems.copy.style.display = "
|
121
|
-
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "
|
122
|
-
rm.menuItems.search && (rm.menuItems.search.style.display = "
|
120
|
+
rm.menuItems.copy.style.display = "flex";
|
121
|
+
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "flex");
|
122
|
+
rm.menuItems.search && (rm.menuItems.search.style.display = "flex");
|
123
123
|
} else {
|
124
124
|
rm.menuItems.copy.style.display = "none";
|
125
125
|
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "none");
|
@@ -128,8 +128,8 @@ window.oncontextmenu = (ele) => {
|
|
128
128
|
|
129
129
|
if (link) {
|
130
130
|
display = true;
|
131
|
-
rm.menuItems.new.style.display = "
|
132
|
-
rm.menuItems.copyLink.style.display = "
|
131
|
+
rm.menuItems.new.style.display = "flex";
|
132
|
+
rm.menuItems.copyLink.style.display = "flex";
|
133
133
|
rm.domhref = link;
|
134
134
|
} else {
|
135
135
|
rm.menuItems.new.style.display = "none";
|
@@ -138,8 +138,8 @@ window.oncontextmenu = (ele) => {
|
|
138
138
|
|
139
139
|
if (src) {
|
140
140
|
display = true;
|
141
|
-
rm.menuItems.copyImg.style.display = "
|
142
|
-
rm.menuItems.downloadImg.style.display = "
|
141
|
+
rm.menuItems.copyImg.style.display = "flex";
|
142
|
+
rm.menuItems.downloadImg.style.display = "flex";
|
143
143
|
rm.domsrc = src;
|
144
144
|
} else {
|
145
145
|
rm.menuItems.copyImg.style.display = "none";
|
@@ -149,14 +149,14 @@ window.oncontextmenu = (ele) => {
|
|
149
149
|
let tagName = ele.target.tagName.toLowerCase();
|
150
150
|
if (tagName === "input" || tagName === "textarea") {
|
151
151
|
display = true;
|
152
|
-
rm.menuItems.paste.style.display = "
|
152
|
+
rm.menuItems.paste.style.display = "flex";
|
153
153
|
} else {
|
154
154
|
rm.menuItems.paste.style.display = "none";
|
155
155
|
}
|
156
156
|
|
157
157
|
if (tagName === "meting-js") {
|
158
158
|
display = true;
|
159
|
-
rm.menuItems.music.forEach((item) => (item.style.display = "
|
159
|
+
rm.menuItems.music.forEach((item) => (item.style.display = "flex"));
|
160
160
|
} else {
|
161
161
|
rm.menuItems.music[0] &&
|
162
162
|
rm.menuItems.music.forEach((item) => (item.style.display = "none"));
|