hexo-theme-shokax 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -65,8 +65,10 @@ github仓库建议通过右边的 releases 下载,步骤为:
65
65
  | hexo-theme-shoka | amehime | 本项目的父主题 |
66
66
 
67
67
  ## 贡献者
68
- | 名称 | 站点 | 描述 |
69
- |:-----------|:---------------------------|:-----------------------|
70
- | Lavender | https://www.lavenderdh.cn/ | 提供了大量shoka主题的魔改 |
71
- | AdminZhang | https://www.a9-9.top/ | 为本项目提供了大量想法并进行了DEBUG工作 |
68
+ shokaX的贡献者包括以非代码形式进行贡献的开发者(例如社区教程、想法分享、DEBUG等)和以代码形式进行贡献的开发者
72
69
 
70
+ | 名称 | 站点 |
71
+ |:-----------|:---------------------------|
72
+ | Lavender | https://www.lavenderdh.cn/ |
73
+ | AdminZhang | https://www.a9-9.top/ |
74
+ | D-Sketon | http://d-sketon.top/ |
@@ -13,9 +13,10 @@ mixin CardRender(item)
13
13
  div(class="info")
14
14
  if item.link
15
15
  - var postTitleIcon = '<i class="ic i-link-alt"></i>'
16
- - var postText = itemname || item.link || __('post.untitled')
16
+ - var postText = itemname || item.link || item.path || __('post.untitled')
17
17
  div(class="ribbon")
18
- != _url(item.link , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
18
+ - var tempL = item.link || item.path
19
+ != _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
19
20
  div(class="inner")
20
21
  - var len = ''
21
22
  if item.child
@@ -36,6 +36,7 @@ div(class="status")
36
36
  a(target="_blank" href=`https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${RC}`)
37
37
  img(src=theme.statics + theme.assets + '/' + theme.footer.icp.icon style="max-width: 2em;display:inline;")
38
38
  != beianN
39
+ != shokax_inject('status')
39
40
 
40
41
  != shokax_inject('footer')
41
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",
@@ -10,22 +10,22 @@
10
10
  "test": "cd ./source/js && tsc"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/animejs": "^3.1.6",
13
+ "@types/animejs": "^3.1.7",
14
14
  "@types/fancybox": "^3.5.3",
15
15
  "@types/hexo": "^3.8.8",
16
- "@types/jquery": "^3.5.14",
16
+ "@types/jquery": "^3.5.16",
17
17
  "@types/js-yaml": "^4.0.5",
18
18
  "@types/lozad": "^1.16.1",
19
19
  "@types/node": "^18.11.18",
20
20
  "@types/shelljs": "^0.8.11",
21
- "@typescript-eslint/eslint-plugin": "^5.47.1",
22
- "@typescript-eslint/parser": "^5.47.1",
23
- "eslint": "^8.30.0",
21
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
22
+ "@typescript-eslint/parser": "^5.49.0",
23
+ "eslint": "^8.32.0",
24
24
  "eslint-config-standard": "^17.0.0",
25
- "eslint-plugin-import": "^2.26.0",
26
- "eslint-plugin-n": "^15.6.0",
25
+ "eslint-plugin-import": "^2.27.5",
26
+ "eslint-plugin-n": "^15.6.1",
27
27
  "eslint-plugin-promise": "^6.1.1",
28
- "eslint-plugin-vue": "^9.8.0",
28
+ "eslint-plugin-vue": "^9.9.0",
29
29
  "typescript": "^4.9.4",
30
30
  "vue": "^3.2.45"
31
31
  },
@@ -9,7 +9,8 @@ module.exports = {
9
9
  'postBodyEnd',
10
10
  'footer',
11
11
  'bodyEnd',
12
- 'comment'
12
+ 'comment',
13
+ 'status'
13
14
  ],
14
15
  styles: [
15
16
  'variable',
@@ -9,8 +9,8 @@ $item {
9
9
 
10
10
  &.show {
11
11
  @extend .slide-up-big-in;
12
- content-visibility: auto;
13
- contain-intrinsic-size: 250px;
12
+ // content-visibility: auto;
13
+ // contain-intrinsic-size: 250px;
14
14
  opacity: 1;
15
15
  }
16
16
 
@@ -26,6 +26,9 @@ $item {
26
26
  position: absolute;
27
27
  bottom: 0;
28
28
  right: 0;
29
+ transform-style: preserve-3d;
30
+ transform: translateZ(2rem);
31
+ backface-visibility: hidden;
29
32
  padding: .3rem 1rem;
30
33
  border-radius: 1rem 0;
31
34
  color: var(--grey-0);
@@ -37,6 +40,9 @@ $item {
37
40
  content: '';
38
41
  height: calc(100% - 1rem);
39
42
  width: calc(100% - 1rem);
43
+ transform-style: preserve-3d;
44
+ transform: translateZ(-2rem);
45
+ backface-visibility: hidden;
40
46
  border-radius: 5rem;
41
47
  left: .5rem;
42
48
  top: .8rem;
@@ -53,7 +59,7 @@ $item {
53
59
  }
54
60
  }
55
61
 
56
- .active .btn {
62
+ /*.active .btn {
57
63
  transform-style: preserve-3d;
58
64
  transform: translateZ(2rem);
59
65
  backface-visibility: hidden;
@@ -63,7 +69,7 @@ $item {
63
69
  transform: translateZ(-2rem);
64
70
  backface-visibility: hidden;
65
71
  }
66
- }
72
+ }*/
67
73
 
68
74
  .meta {
69
75
  font-size: $font-size-smaller;
@@ -288,27 +288,15 @@ const pjaxScript = function (element) {
288
288
  }
289
289
  parent.appendChild(script);
290
290
  };
291
- const pageScroll = (target, offset, complete) => {
291
+ const pageScroll = function (target, offset, complete) {
292
292
  const opt = {
293
- left: 0,
294
- behavior: "smooth"
295
- };
296
- if (typeof target === "number") {
297
- opt.top = target;
298
- }
299
- else {
300
- if (typeof target === 'number') {
301
- opt.top = offset || target;
302
- }
303
- else {
304
- if (offset || target) {
305
- opt.top = target.top() + document.documentElement.scrollTop - siteNavHeight;
306
- }
307
- else {
308
- opt.top = 0;
309
- }
293
+ targets: typeof offset === 'number' ? target.parentNode : document.scrollingElement,
294
+ duration: 500,
295
+ easing: 'easeInOutQuad',
296
+ scrollTop: offset || (typeof target === 'number' ? target : (target ? target.top() + document.documentElement.scrollTop - siteNavHeight : 0)),
297
+ complete: function () {
298
+ complete && complete();
310
299
  }
311
- }
312
- scrollTo(opt);
313
- complete && complete();
300
+ };
301
+ anime(opt);
314
302
  };