Skip to content

Commit 1725ddb

Browse files
committed
merge lang
1 parent ee8f5dc commit 1725ddb

File tree

4 files changed

+45
-85
lines changed

4 files changed

+45
-85
lines changed

docs/.vuepress/components/Pricing.vue

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
import { NButton, NCard, NGrid, NGridItem, NH1, NIcon, NSpace, NText } from "naive-ui";
33
import Check from './icon/Check.vue'
4-
const data = {
4+
let data = {
55
pricing: [
66
{
77
title: "Open Source",
@@ -46,6 +46,49 @@ const data = {
4646
],
4747
};
4848
49+
if (location.pathname.startsWith("/zh/")) {
50+
data = {
51+
pricing: [
52+
{
53+
title: "开源",
54+
price: "免费",
55+
features: [
56+
"支持所有平台",
57+
"支持所有功能",
58+
"支持超过30种驱动",
59+
"无广告",
60+
"没有限制",
61+
"..."
62+
],
63+
btns: [{
64+
text: '下载',
65+
link: 'https://github.com/alist-org/alist/releases',
66+
}, {
67+
text: "赞助",
68+
link: "/zh/guide/sponsor.html",
69+
secondary: false,
70+
type: "success"
71+
}]
72+
},
73+
{
74+
title: '技术支持',
75+
price: '按需付费',
76+
features: [
77+
'所有开源功能',
78+
'针对具体案例分析解答',
79+
'协助部署和调试',
80+
'根据具体需求进行二次开发',
81+
'...'
82+
],
83+
btns: [{
84+
text: '联系',
85+
link: 'mailto:[email protected]'
86+
}]
87+
}
88+
],
89+
};
90+
}
91+
4992
function openLink(link: string) {
5093
window.open(link, "_blank");
5194
}

docs/.vuepress/components/zh/Pricing.vue

Lines changed: 0 additions & 82 deletions
This file was deleted.

docs/.vuepress/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,5 @@ export default defineUserConfig({
127127
"./components/aliyundrive/Callback.vue"
128128
),
129129
"@Pricing": path.resolve(__dirname, "./components/Pricing.vue"),
130-
"@zh/Pricing": path.resolve(__dirname, "./components/zh/Pricing.vue"),
131130
},
132131
});

docs/zh/pricing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ contributors: false
1616
</NaiveClient>
1717

1818
<script setup lang="ts">
19-
import Pricing from "@zh/Pricing";
19+
import Pricing from "@Pricing";
2020
</script>

0 commit comments

Comments
 (0)