@sugarat/theme 0.4.7 → 0.4.9

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/node.d.ts CHANGED
@@ -483,7 +483,11 @@ declare namespace Theme {
483
483
  /**
484
484
  * 是否展示主题版本信息
485
485
  */
486
- version?: boolean;
486
+ version?: boolean | {
487
+ name?: string;
488
+ link?: string;
489
+ icon?: boolean | string;
490
+ };
487
491
  /**
488
492
  * copyright
489
493
  */
package/node.js CHANGED
@@ -40,7 +40,7 @@ module.exports = __toCommonJS(node_exports);
40
40
  // src/utils/node/mdPlugins.ts
41
41
  var import_module = require("module");
42
42
 
43
- // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.3.0_@algolia+client-search@4.19.1_@types+node@20.6.3__sj5mge46erqqa56uabqhqr6ucy/node_modules/vitepress-plugin-tabs/dist/index.js
43
+ // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.3.1_@algolia+client-search@4.19.1_@types+node@20.6.3__tymgq2io4kjnp3wlifsw2g5vnu/node_modules/vitepress-plugin-tabs/dist/index.js
44
44
  var tabsMarker = "=tabs";
45
45
  var tabsMarkerLen = tabsMarker.length;
46
46
  var ruleBlockTabs = (state, startLine, endLine, silent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -51,18 +51,18 @@
51
51
  "vitepress-plugin-mermaid": "2.0.13",
52
52
  "vitepress-plugin-tabs": "0.2.0",
53
53
  "@sugarat/theme-shared": "0.0.2",
54
- "vitepress-plugin-pagefind": "0.4.5",
55
- "vitepress-plugin-rss": "0.2.8"
54
+ "vitepress-plugin-pagefind": "0.4.10",
55
+ "vitepress-plugin-rss": "0.2.9"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@element-plus/icons-vue": "^2.3.1",
59
59
  "artalk": "^2.8.5",
60
60
  "element-plus": "^2.7.2",
61
61
  "pagefind": "^1.1.0",
62
- "sass": "^1.76.0",
62
+ "sass": "^1.77.8",
63
63
  "typescript": "^5.4.5",
64
64
  "vite": "^5.2.11",
65
- "vitepress": "1.3.0",
65
+ "vitepress": "1.3.1",
66
66
  "vue": "^3.4.26"
67
67
  },
68
68
  "scripts": {
@@ -25,11 +25,13 @@ const renderData = computed(() => {
25
25
 
26
26
  // version
27
27
  const isLast = idx === flatData.length - 1
28
- if ((version !== false && isLast) || version === true) {
28
+ if ((version !== false && isLast) || version) {
29
+ const versionItem = typeof version === 'object' ? version : {}
30
+
29
31
  data.push({
30
- name: `@sugarat/theme@${packageJSON.version}`,
31
- link: 'https://theme.sugarat.top/',
32
- icon: themeSVG
32
+ name: versionItem?.name || `@sugarat/theme@${packageJSON.version}`,
33
+ link: versionItem?.link || 'https://theme.sugarat.top/',
34
+ icon: versionItem?.icon || themeSVG
33
35
  })
34
36
  }
35
37
  // copyright
@@ -523,7 +523,11 @@ export namespace Theme {
523
523
  /**
524
524
  * 是否展示主题版本信息
525
525
  */
526
- version?: boolean
526
+ version?: boolean | {
527
+ name?: string
528
+ link?: string
529
+ icon?: boolean | string
530
+ }
527
531
  /**
528
532
  * copyright
529
533
  */
@@ -23,6 +23,9 @@ html.dark {
23
23
  }
24
24
 
25
25
  .VPHome {
26
+ min-height: 100vh;
27
+ background: radial-gradient(ellipse, rgba(var(--bg-gradient-home), 1) 0%, rgba(var(--bg-gradient-home), 0) 700%);
28
+
26
29
  &::before {
27
30
  content: "";
28
31
  inset: 0;
@@ -33,9 +36,6 @@ html.dark {
33
36
  background-repeat: repeat;
34
37
  min-height: 100%;
35
38
  }
36
-
37
- min-height: 100vh;
38
- background: radial-gradient(ellipse, rgba(var(--bg-gradient-home), 1) 0%, rgba(var(--bg-gradient-home), 0) 700%);
39
39
  }
40
40
 
41
41
  // 样式重写