diff --git a/docs/.vuepress/client.ts b/docs/.vuepress/client.ts new file mode 100644 index 000000000..aa8e2c75a --- /dev/null +++ b/docs/.vuepress/client.ts @@ -0,0 +1,12 @@ +import {defineClientConfig} from "vuepress/client"; +import Sponsor from "./components/Sponsor.vue"; + +export default defineClientConfig({ + enhance({app, router, siteData}) { + app.component("Sponsor", Sponsor); + }, + setup() { + }, + layouts: {}, + rootComponents: [], +}); diff --git a/docs/.vuepress/components/Sponsor.vue b/docs/.vuepress/components/Sponsor.vue new file mode 100644 index 000000000..ce540482c --- /dev/null +++ b/docs/.vuepress/components/Sponsor.vue @@ -0,0 +1,244 @@ + + + \ No newline at end of file diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 898580797..87f8e1cc6 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,14 +1,19 @@ +import { getDirname, path } from "vuepress/utils"; import { viteBundler } from "@vuepress/bundler-vite"; import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics"; import { defineUserConfig } from "vuepress"; import theme from "./theme.js"; +const __dirname = getDirname(import.meta.url); + export default defineUserConfig({ base: "/", dest: "./dist", + clientConfigFile: path.resolve(__dirname, "./client.ts"), + head: [ [ "script", diff --git a/docs/.vuepress/navbar/en.ts b/docs/.vuepress/navbar/en.ts index d27e5fdab..5b0b1bbfe 100644 --- a/docs/.vuepress/navbar/en.ts +++ b/docs/.vuepress/navbar/en.ts @@ -12,6 +12,11 @@ export const enNavbar = navbar([ icon: "iconfont icon-install", link: "/en/quick-start", }, + { + text: "Support us", + icon: "iconfont icon-like", + link: "/en/support-us", + }, { text: "Community", icon: "iconfont icon-community", diff --git a/docs/.vuepress/navbar/id.ts b/docs/.vuepress/navbar/id.ts index 6dfd4b8fa..4ca1d3657 100644 --- a/docs/.vuepress/navbar/id.ts +++ b/docs/.vuepress/navbar/id.ts @@ -12,6 +12,11 @@ export const idNavbar = navbar([ icon: "iconfont icon-install", link: "https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52", }, + { + text: "Support us", + icon: "iconfont icon-like", + link: "/id/support-us", + }, { text: "Komunitas", icon: "iconfont icon-community", diff --git a/docs/.vuepress/navbar/ru.ts b/docs/.vuepress/navbar/ru.ts index 4f7467189..a434496e4 100644 --- a/docs/.vuepress/navbar/ru.ts +++ b/docs/.vuepress/navbar/ru.ts @@ -12,6 +12,11 @@ export const ruNavbar = navbar([ icon: "iconfont icon-install", link: "https://api.snapgenshin.com/patch/hutao/download", }, + { + text: "Support us", + icon: "iconfont icon-like", + link: "/ru/support-us", + }, { text: "Сообщество", icon: "iconfont icon-community", diff --git a/docs/.vuepress/navbar/zh.ts b/docs/.vuepress/navbar/zh.ts index c1b268dca..d7d1e006d 100644 --- a/docs/.vuepress/navbar/zh.ts +++ b/docs/.vuepress/navbar/zh.ts @@ -12,6 +12,11 @@ export const zhNavbar = navbar([ icon: "iconfont icon-install", link: "/zh/quick-start", }, + { + text: "支持我们", + icon: "iconfont icon-like", + link: "/zh/support-us", + }, { text: "加入社区", icon: "iconfont icon-community", diff --git a/docs/.vuepress/public/images/202402/aifadian-qr.png b/docs/.vuepress/public/images/202402/aifadian-qr.png new file mode 100644 index 000000000..df6bc3a0c Binary files /dev/null and b/docs/.vuepress/public/images/202402/aifadian-qr.png differ diff --git a/docs/.vuepress/public/images/202402/github-sponsor.png b/docs/.vuepress/public/images/202402/github-sponsor.png new file mode 100644 index 000000000..31e643acc Binary files /dev/null and b/docs/.vuepress/public/images/202402/github-sponsor.png differ diff --git a/docs/.vuepress/public/images/202402/paypal-qr.png b/docs/.vuepress/public/images/202402/paypal-qr.png new file mode 100644 index 000000000..2a9b82263 Binary files /dev/null and b/docs/.vuepress/public/images/202402/paypal-qr.png differ diff --git a/docs/.vuepress/public/svg/afd-official.svg b/docs/.vuepress/public/svg/afd-official.svg new file mode 100644 index 000000000..bed5fb6ec --- /dev/null +++ b/docs/.vuepress/public/svg/afd-official.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/.vuepress/public/svg/afdian.svg b/docs/.vuepress/public/svg/afdian.svg new file mode 100644 index 000000000..ebc15adb8 --- /dev/null +++ b/docs/.vuepress/public/svg/afdian.svg @@ -0,0 +1,79 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/docs/.vuepress/public/svg/paypal.svg b/docs/.vuepress/public/svg/paypal.svg new file mode 100644 index 000000000..07fef2dbf --- /dev/null +++ b/docs/.vuepress/public/svg/paypal.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/.vuepress/shim.d.ts b/docs/.vuepress/shim.d.ts new file mode 100644 index 000000000..bd5125148 --- /dev/null +++ b/docs/.vuepress/shim.d.ts @@ -0,0 +1,5 @@ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent + export default component +} diff --git a/docs/.vuepress/sidebar/en.ts b/docs/.vuepress/sidebar/en.ts index 1c3fa87a4..5f57a7059 100644 --- a/docs/.vuepress/sidebar/en.ts +++ b/docs/.vuepress/sidebar/en.ts @@ -6,6 +6,7 @@ export const enSidebar = sidebar({ "project", "i18n", "quick-start", + "support-us", { icon: "iconfont icon-read", text: "Features", diff --git a/docs/.vuepress/sidebar/id.ts b/docs/.vuepress/sidebar/id.ts index 3c4a98b93..0dd3d595b 100644 --- a/docs/.vuepress/sidebar/id.ts +++ b/docs/.vuepress/sidebar/id.ts @@ -6,6 +6,7 @@ export const idSidebar = sidebar({ "project", "i18n", "quick-start", + "support-us", { icon: "iconfont icon-read", text: "Fitur", diff --git a/docs/.vuepress/sidebar/ru.ts b/docs/.vuepress/sidebar/ru.ts index fc9963aef..fc21e5a6c 100644 --- a/docs/.vuepress/sidebar/ru.ts +++ b/docs/.vuepress/sidebar/ru.ts @@ -6,6 +6,7 @@ export const ruSidebar = sidebar({ "project", "i18n", "quick-start", + "support-us", { icon: "iconfont icon-read", text: "Features", diff --git a/docs/.vuepress/sidebar/zh.ts b/docs/.vuepress/sidebar/zh.ts index 1e0ea3bce..30ff543ca 100644 --- a/docs/.vuepress/sidebar/zh.ts +++ b/docs/.vuepress/sidebar/zh.ts @@ -6,6 +6,7 @@ export const zhSidebar = sidebar({ "project", "i18n", "quick-start", + "support-us", { icon: "iconfont icon-read", text: "功能指南", diff --git a/docs/.vuepress/styles/index.scss b/docs/.vuepress/styles/index.scss index 06b7d1945..87c7e5129 100644 --- a/docs/.vuepress/styles/index.scss +++ b/docs/.vuepress/styles/index.scss @@ -91,3 +91,8 @@ html[data-theme="dark"] { color: #bbbbbb; } } + +// vpbanner 在 dark 模式下边缘不清晰 +html[data-theme="dark"] { + --card-shadow: rgba(255, 255, 255, 0.15); +} diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 3f1efff48..3e41c8142 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -289,6 +289,8 @@ export default hopeTheme({ }, }, + // https://ecosystem.vuejs.press/zh/plugins/feed/ + // https://theme-hope.vuejs.press/zh/config/plugins/feed.html feed: { rss: true, }, @@ -383,4 +385,6 @@ export default hopeTheme({ }, }, }, +},{ + custom: true, }); diff --git a/docs/en/support-us.md b/docs/en/support-us.md new file mode 100644 index 000000000..b4b8d5991 --- /dev/null +++ b/docs/en/support-us.md @@ -0,0 +1,35 @@ +--- +pageClass: link-box +externalLinkIcon: false +comment: false +icon: iconfont icon-like +index: false +headerDepth: 0 +--- + +# Support us + +Snap Hutao, as an open-source project licensed under the MIT License, is dedicated to creating a completely free, ad-free, and privacy-focused program. The members of our development team are currently self-funding the project's operation, with the main expenses being the network system components required by server (you can find our annual expenditure summary below on this page). If you have surplus funds to support Snap Hutao, your generous donation will not only assist the development team but also benefit every Snap Hutao user. Currently, you can donate us in the following ways: + +## Donation + +We accept sponsorship with following methods: + + + +## Sponsorship + +> We refuse any sponsorship aim to achieve user data + +If you are a business entity and would like to support Snap Hutao through your product, please contact us at [support@dgp-studio.cn](mailto://support@dgp-studio.cn). We will display all sponsors on our [home page](README.md#sponsorship). + +## Annual Expense + +> The following information is derived from the 2023 project expenditure summary of Snap Hutao. The current specific data may differ from that. +> All expenditure amounts are in Chinese Yuan (CNY), and if the original expenditure currency is not in Chinese Yuan, it is calculated based on the exchange rate on February 22, 2024. + +| Item | Expense (CNY) | +| :--------------------: | ------------- | +| server | ¥1582.92 | +| domain service | ¥512.7 | +| other network services | ¥129.3 | diff --git a/docs/id/support-us.md b/docs/id/support-us.md new file mode 100644 index 000000000..b4b8d5991 --- /dev/null +++ b/docs/id/support-us.md @@ -0,0 +1,35 @@ +--- +pageClass: link-box +externalLinkIcon: false +comment: false +icon: iconfont icon-like +index: false +headerDepth: 0 +--- + +# Support us + +Snap Hutao, as an open-source project licensed under the MIT License, is dedicated to creating a completely free, ad-free, and privacy-focused program. The members of our development team are currently self-funding the project's operation, with the main expenses being the network system components required by server (you can find our annual expenditure summary below on this page). If you have surplus funds to support Snap Hutao, your generous donation will not only assist the development team but also benefit every Snap Hutao user. Currently, you can donate us in the following ways: + +## Donation + +We accept sponsorship with following methods: + + + +## Sponsorship + +> We refuse any sponsorship aim to achieve user data + +If you are a business entity and would like to support Snap Hutao through your product, please contact us at [support@dgp-studio.cn](mailto://support@dgp-studio.cn). We will display all sponsors on our [home page](README.md#sponsorship). + +## Annual Expense + +> The following information is derived from the 2023 project expenditure summary of Snap Hutao. The current specific data may differ from that. +> All expenditure amounts are in Chinese Yuan (CNY), and if the original expenditure currency is not in Chinese Yuan, it is calculated based on the exchange rate on February 22, 2024. + +| Item | Expense (CNY) | +| :--------------------: | ------------- | +| server | ¥1582.92 | +| domain service | ¥512.7 | +| other network services | ¥129.3 | diff --git a/docs/ru/support-us.md b/docs/ru/support-us.md new file mode 100644 index 000000000..b4b8d5991 --- /dev/null +++ b/docs/ru/support-us.md @@ -0,0 +1,35 @@ +--- +pageClass: link-box +externalLinkIcon: false +comment: false +icon: iconfont icon-like +index: false +headerDepth: 0 +--- + +# Support us + +Snap Hutao, as an open-source project licensed under the MIT License, is dedicated to creating a completely free, ad-free, and privacy-focused program. The members of our development team are currently self-funding the project's operation, with the main expenses being the network system components required by server (you can find our annual expenditure summary below on this page). If you have surplus funds to support Snap Hutao, your generous donation will not only assist the development team but also benefit every Snap Hutao user. Currently, you can donate us in the following ways: + +## Donation + +We accept sponsorship with following methods: + + + +## Sponsorship + +> We refuse any sponsorship aim to achieve user data + +If you are a business entity and would like to support Snap Hutao through your product, please contact us at [support@dgp-studio.cn](mailto://support@dgp-studio.cn). We will display all sponsors on our [home page](README.md#sponsorship). + +## Annual Expense + +> The following information is derived from the 2023 project expenditure summary of Snap Hutao. The current specific data may differ from that. +> All expenditure amounts are in Chinese Yuan (CNY), and if the original expenditure currency is not in Chinese Yuan, it is calculated based on the exchange rate on February 22, 2024. + +| Item | Expense (CNY) | +| :--------------------: | ------------- | +| server | ¥1582.92 | +| domain service | ¥512.7 | +| other network services | ¥129.3 | diff --git a/docs/zh/support-us.md b/docs/zh/support-us.md new file mode 100644 index 000000000..51fa2d2f4 --- /dev/null +++ b/docs/zh/support-us.md @@ -0,0 +1,35 @@ +--- +pageClass: link-box +externalLinkIcon: false +comment: false +icon: iconfont icon-like +index: false +headerDepth: 0 +--- + +# 支持我们 + +Snap Hutao,作为一个使用 MIT 许可证的开源项目,致力于打造一个完全免费、无广告且注重用户隐私的程序。我们的开发团队成员目前正自行资助项目的运营,主要的支出项目为服务端运行所需的网络系统组件(可以在本页下方找到我们总结的年度支出)。如果您有富余的资金可以支持 Snap Hutao,您的慷慨捐赠将不仅帮助开发团队,还将让每一个 Snap Hutao 用户受益。目前,您可以通过以下方式捐赠我们: + +## 捐赠渠道 + +我们通过以下方式接受捐赠 + + + +## 赞助商 + +> 我们拒绝任何以获取用户数据为目的赞助 + +如果您是公司主体并希望通过您的产品帮助到 Snap Hutao,请通过 [support@dgp-studio.cn](mailto://support@dgp-studio.cn) 邮箱与我们取得联系。我们会将全部的赞助商显示在我们的[首页](README.md#赞助商)中。 + +## 年度支出 + +> 以下信息由 Snap Hutao 2023 年项目支持总结而成,当前的具体数据可能与该数据有所不同。 +> 所有支出金额均以人民币为单位,若原始支出货币不为人民币则基于2024年2月22日汇率计算。 + +| 项目 | 支出 (CNY) | +| :----------: | ---------- | +| 服务器 | ¥1582.92 | +| 域名服务 | ¥512.7 | +| 其它网络服务 | ¥129.3 |