@sugarat/theme 0.5.2 → 0.5.4
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.js +1 -1
- package/node.mjs +1 -1
- package/package.json +7 -7
- package/src/hooks/useOml2d.ts +1 -1
- package/src/utils/client/index.ts +0 -7
package/node.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = __toCommonJS(node_exports);
|
|
|
41
41
|
// src/utils/node/mdPlugins.ts
|
|
42
42
|
var import_module = require("module");
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.
|
|
44
|
+
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.6.3_@algolia+client-search@5.20.0_@types+node@2_0c9e09a0b1912fa528cd2bc14eecd563/node_modules/vitepress-plugin-tabs/dist/index.js
|
|
45
45
|
var tabsMarker = "=tabs";
|
|
46
46
|
var tabsMarkerLen = tabsMarker.length;
|
|
47
47
|
var ruleBlockTabs = (state, startLine, endLine, silent) => {
|
package/node.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
// src/utils/node/mdPlugins.ts
|
|
10
10
|
import { createRequire } from "module";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.
|
|
12
|
+
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.6.3_@algolia+client-search@5.20.0_@types+node@2_0c9e09a0b1912fa528cd2bc14eecd563/node_modules/vitepress-plugin-tabs/dist/index.js
|
|
13
13
|
var tabsMarker = "=tabs";
|
|
14
14
|
var tabsMarkerLen = tabsMarker.length;
|
|
15
15
|
var ruleBlockTabs = (state, startLine, endLine, silent) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sugarat/theme",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
|
|
5
5
|
"author": "sugar",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"vitepress-plugin-group-icons": "^1.2.4",
|
|
54
54
|
"vitepress-plugin-mermaid": "2.0.13",
|
|
55
55
|
"vitepress-plugin-tabs": "0.2.0",
|
|
56
|
-
"@sugarat/theme-shared": "0.0.
|
|
57
|
-
"vitepress-plugin-announcement": "0.1.
|
|
58
|
-
"vitepress-plugin-
|
|
59
|
-
"vitepress-plugin-
|
|
56
|
+
"@sugarat/theme-shared": "0.0.4",
|
|
57
|
+
"vitepress-plugin-announcement": "0.1.4",
|
|
58
|
+
"vitepress-plugin-pagefind": "0.4.13",
|
|
59
|
+
"vitepress-plugin-rss": "0.3.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@element-plus/icons-vue": "^2.3.1",
|
|
63
63
|
"artalk": "^2.8.5",
|
|
64
64
|
"element-plus": "^2.7.2",
|
|
65
|
-
"pagefind": "^1.
|
|
65
|
+
"pagefind": "^1.3.0",
|
|
66
66
|
"sass": "^1.80.6",
|
|
67
67
|
"typescript": "^5.4.5",
|
|
68
68
|
"vite": "^5.4.9",
|
|
69
|
-
"vitepress": "1.
|
|
69
|
+
"vitepress": "1.6.3",
|
|
70
70
|
"vue": "^3.5.12",
|
|
71
71
|
"vitepress-plugin-51la": "0.1.0"
|
|
72
72
|
},
|
package/src/hooks/useOml2d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function useOml2d() {
|
|
|
42
42
|
const { loadOml2d } = await import('oh-my-live2d')
|
|
43
43
|
loadOml2d({
|
|
44
44
|
...defaultOptions,
|
|
45
|
-
...oml2dOptions,
|
|
45
|
+
...oml2dOptions?.value,
|
|
46
46
|
models: oml2dOptions?.value?.models?.map(model => ({
|
|
47
47
|
...defaultModelOptions,
|
|
48
48
|
...model,
|
|
@@ -94,13 +94,6 @@ export default function countWord(data: string) {
|
|
|
94
94
|
return count
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export function chineseSearchOptimize(input: string) {
|
|
98
|
-
return input
|
|
99
|
-
.replace(/[\u4E00-\u9FA5]/g, ' $& ')
|
|
100
|
-
.replace(/\s+/g, ' ')
|
|
101
|
-
.trim()
|
|
102
|
-
}
|
|
103
|
-
|
|
104
97
|
/**
|
|
105
98
|
* 根据Github地址跨域获取最后更新时间
|
|
106
99
|
* @param url
|