@fuxishi/vitepress-theme 1.0.9 → 1.0.11
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 +35 -23
- package/dist/chunk/FxCodeBlockFold-C7zqZ39g.js +57 -0
- package/dist/chunk/FxConfetti-DFRD5KKS.js +87 -0
- package/dist/chunk/FxHeroImageBg-CiY3qciK.js +216 -0
- package/dist/chunk/{FxHomeFeatureBefore-B-_BJxjO.js → FxHomeFeatureBefore-Cd9m9wit.js} +14 -12
- package/dist/chunk/FxMusicBall-DwxRT1yK.js +226 -0
- package/dist/chunk/icons-DtAsNqxj.js +21 -0
- package/dist/config.d.ts +13 -7
- package/dist/index.js +54 -37
- package/dist/style.css +1 -1
- package/package.json +4 -5
- package/dist/chunk/FxConfetti-BA6pwd1S.js +0 -116
- package/dist/chunk/FxHeroImageBg-BgS1cNDu.js +0 -886
- package/dist/chunk/FxMusicBall-BYNfzoJY.js +0 -199
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fuxishi/vitepress-theme",
|
|
3
3
|
"displayName": "@fuxishi/vitepress-theme",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.11",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "一款精美的 VitePress 主题",
|
|
8
8
|
"keywords": [
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"theme",
|
|
11
11
|
"vitepress-theme",
|
|
12
12
|
"@fuxishi/vitepress-theme",
|
|
13
|
-
"fuxishi"
|
|
14
|
-
"fx-core"
|
|
13
|
+
"fuxishi"
|
|
15
14
|
],
|
|
16
15
|
"type": "module",
|
|
17
16
|
"files": [
|
|
@@ -57,9 +56,9 @@
|
|
|
57
56
|
"@types/node": "^25.6.0",
|
|
58
57
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
59
58
|
"typescript": "^6.0.3",
|
|
60
|
-
"vite": "^8.0.
|
|
59
|
+
"vite": "^8.0.10",
|
|
61
60
|
"vitepress": "^1.6.4",
|
|
62
|
-
"vue": "^3.5.
|
|
61
|
+
"vue": "^3.5.33"
|
|
63
62
|
},
|
|
64
63
|
"peerDependencies": {
|
|
65
64
|
"vitepress": "^1.6.4"
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, onMounted as t } from "vue";
|
|
2
|
-
import n from "canvas-confetti";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region .vitepress/components/FxConfetti.vue
|
|
5
|
-
var r = /* @__PURE__ */ e({
|
|
6
|
-
__name: "FxConfetti",
|
|
7
|
-
props: { confetti: { type: [Boolean, Object] } },
|
|
8
|
-
setup(e) {
|
|
9
|
-
let r = e, i = typeof r.confetti == "object" ? r.confetti : {}, a = i.shape || "star", o = i.shapes ? Array.isArray(i.shapes) ? i.shapes : [i.shapes] : null, s = [];
|
|
10
|
-
t(() => {
|
|
11
|
-
o && (s = o.map((e) => n.shapeFromText({
|
|
12
|
-
text: e,
|
|
13
|
-
scalar: 2
|
|
14
|
-
}))), window.addEventListener("click", (e) => {
|
|
15
|
-
let t = e.clientX / (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth), n = e.clientY / (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight);
|
|
16
|
-
s.length > 0 ? u(t, n) : a === "firework" ? l(t, n) : c(t, n);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
let c = (e, t) => {
|
|
20
|
-
let r = {
|
|
21
|
-
spread: 360,
|
|
22
|
-
ticks: 50,
|
|
23
|
-
gravity: 0,
|
|
24
|
-
decay: .94,
|
|
25
|
-
startVelocity: 10,
|
|
26
|
-
colors: [
|
|
27
|
-
"FFE400",
|
|
28
|
-
"FFBD00",
|
|
29
|
-
"E89400",
|
|
30
|
-
"FFCA6C",
|
|
31
|
-
"FDFFB8"
|
|
32
|
-
],
|
|
33
|
-
origin: {
|
|
34
|
-
x: e,
|
|
35
|
-
y: t
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
function i() {
|
|
39
|
-
n({
|
|
40
|
-
...r,
|
|
41
|
-
particleCount: 4,
|
|
42
|
-
scalar: 1.2,
|
|
43
|
-
shapes: ["star"]
|
|
44
|
-
}), n({
|
|
45
|
-
...r,
|
|
46
|
-
particleCount: 10,
|
|
47
|
-
scalar: .75,
|
|
48
|
-
shapes: ["circle"]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
setTimeout(i, 0), setTimeout(i, 50), setTimeout(i, 100);
|
|
52
|
-
}, l = (e, t) => {
|
|
53
|
-
let r = {
|
|
54
|
-
spread: 360,
|
|
55
|
-
ticks: 50,
|
|
56
|
-
gravity: 0,
|
|
57
|
-
decay: .94,
|
|
58
|
-
startVelocity: 10,
|
|
59
|
-
colors: [
|
|
60
|
-
"#FF1461",
|
|
61
|
-
"#18FF92",
|
|
62
|
-
"#5A87FF",
|
|
63
|
-
"#FBF38C",
|
|
64
|
-
"#FF6B35"
|
|
65
|
-
],
|
|
66
|
-
origin: {
|
|
67
|
-
x: e,
|
|
68
|
-
y: t
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
function i() {
|
|
72
|
-
n({
|
|
73
|
-
...r,
|
|
74
|
-
particleCount: 10,
|
|
75
|
-
scalar: 1.2
|
|
76
|
-
}), n({
|
|
77
|
-
...r,
|
|
78
|
-
particleCount: 10,
|
|
79
|
-
scalar: .75,
|
|
80
|
-
shapes: ["circle"]
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
setTimeout(i, 0), setTimeout(i, 50), setTimeout(i, 100);
|
|
84
|
-
}, u = (e, t) => {
|
|
85
|
-
let r = {
|
|
86
|
-
spread: 360,
|
|
87
|
-
ticks: 50,
|
|
88
|
-
gravity: 0,
|
|
89
|
-
decay: .94,
|
|
90
|
-
startVelocity: 10,
|
|
91
|
-
shapes: s,
|
|
92
|
-
origin: {
|
|
93
|
-
x: e,
|
|
94
|
-
y: t
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
function i() {
|
|
98
|
-
n({
|
|
99
|
-
...r,
|
|
100
|
-
particleCount: 10,
|
|
101
|
-
scalar: 1.5,
|
|
102
|
-
flat: !0
|
|
103
|
-
}), n({
|
|
104
|
-
...r,
|
|
105
|
-
particleCount: 10,
|
|
106
|
-
scalar: .75,
|
|
107
|
-
shapes: ["circle"]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
setTimeout(i, 0), setTimeout(i, 50), setTimeout(i, 100);
|
|
111
|
-
};
|
|
112
|
-
return (e, t) => null;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
//#endregion
|
|
116
|
-
export { r as default };
|