hexo-theme-particlex 2.5.4 → 2.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@
8
8
  <% } %>
9
9
  <div id="timeline-wrap" ref="timeline">
10
10
  <% posts.reverse().forEach((post, id) => { %>
11
- <div class="timeline" data-title="<%- post.title.toLowerCase().replace(/\s+/gm, "") %>">
11
+ <div class="timeline" data-title="<%- post.title.toLowerCase().replace(/\s+/g, "") %>">
12
12
  <div class="timeline-tail"></div>
13
13
  <div class="timeline-content">
14
14
  <div class="item-time"><%= date(post.date, "YYYY/M/D") %></div>
package/layout/import.ejs CHANGED
@@ -1,5 +1,5 @@
1
- <script src="https://cdn.staticfile.org/vue/3.2.45/vue.global.prod.min.js"></script>
2
- <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.2.1/css/all.min.css" />
1
+ <script src="https://cdn.staticfile.org/vue/3.2.47/vue.global.prod.min.js"></script>
2
+ <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.3.0/css/all.min.css" />
3
3
  <link rel="stylesheet" href="<%- url_for("/css/fonts.min.css") %>" />
4
4
  <script> const mixins = {}; </script>
5
5
  <% if (theme.polyfill.enable) { %>
@@ -35,12 +35,12 @@
35
35
  <link rel="stylesheet" href="https://cdn.staticfile.org/gitalk/1.8.0/gitalk.min.css" />
36
36
  <% } %>
37
37
  <% if (theme.waline.enable) { %>
38
- <script src="https://cdn.staticfile.org/waline/2.14.7/waline.min.js"></script>
39
- <link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.7/waline.min.css" />
40
- <link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.7/waline-meta.min.css" />
38
+ <script src="https://cdn.staticfile.org/waline/2.14.8/waline.min.js"></script>
39
+ <link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.8/waline.min.css" />
40
+ <link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.8/waline-meta.min.css" />
41
41
  <% } %>
42
42
  <% if (theme.twikoo.enable) { %>
43
- <script src="https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js"></script>
43
+ <script src="https://cdn.staticfile.org/twikoo/1.6.10/twikoo.all.min.js"></script>
44
44
  <% } %>
45
45
  <% } %>
46
46
  <% if (type === "index") { %>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,9 @@
1
1
  mixins.crypto = {
2
2
  data() {
3
- return { crypto: "", check: false };
3
+ return {
4
+ crypto: "",
5
+ check: false,
6
+ };
4
7
  },
5
8
  methods: {
6
9
  SHA(word) {
@@ -1,9 +1,12 @@
1
1
  mixins.highlight = {
2
2
  data() {
3
- return { copying: false, renderers: [this.highlight] };
3
+ return {
4
+ copying: false,
5
+ };
4
6
  },
5
7
  created() {
6
8
  hljs.configure({ ignoreUnescapedHTML: true });
9
+ this.renderers.push(this.highlight);
7
10
  },
8
11
  methods: {
9
12
  highlight() {
@@ -1,6 +1,6 @@
1
1
  mixins.math = {
2
- data() {
3
- return { renderers: [this.math] };
2
+ created() {
3
+ this.renderers.push(this.math);
4
4
  },
5
5
  methods: {
6
6
  math() {
@@ -1,6 +1,11 @@
1
1
  mixins.preview = {
2
2
  data() {
3
- return { previewShow: false, renderers: [this.preview] };
3
+ return {
4
+ previewShow: false,
5
+ };
6
+ },
7
+ created() {
8
+ this.renderers.push(this.preview);
4
9
  },
5
10
  methods: {
6
11
  preview() {
@@ -1,6 +1,8 @@
1
1
  mixins.search = {
2
2
  data() {
3
- return { rawSearch: "" };
3
+ return {
4
+ rawSearch: "",
5
+ };
4
6
  },
5
7
  watch: {
6
8
  search(value) {
@@ -19,7 +21,7 @@ mixins.search = {
19
21
  },
20
22
  computed: {
21
23
  search() {
22
- return this.rawSearch.toLowerCase().replace(/s+/gm, "");
24
+ return this.rawSearch.toLowerCase().replace(/\s+/g, "");
23
25
  },
24
26
  },
25
27
  };
package/source/js/main.js CHANGED
@@ -1,7 +1,12 @@
1
1
  const app = Vue.createApp({
2
2
  mixins: Object.values(mixins),
3
3
  data() {
4
- return { loading: true, showMenu: false, barLocal: 0 };
4
+ return {
5
+ loading: true,
6
+ showMenu: false,
7
+ barLocal: 0,
8
+ renderers: [],
9
+ };
5
10
  },
6
11
  created() {
7
12
  window.addEventListener("load", () => {