From ce276df55c495849b9725aa9017fd407fceb01d9 Mon Sep 17 00:00:00 2001
From: alger
Date: Sat, 8 Mar 2025 23:22:56 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E4=BC=98=E5=8C=96=E8=B5=9E?=
=?UTF-8?q?=E8=B5=8F=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/lang/en-US/comp.ts | 3 ++-
src/i18n/lang/en-US/donation.ts | 3 ++-
src/i18n/lang/zh-CN/comp.ts | 3 ++-
src/i18n/lang/zh-CN/donation.ts | 3 ++-
src/renderer/components/Coffee.vue | 13 +++++++++++++
src/renderer/components/common/DonationList.vue | 15 +++++++++++++--
src/renderer/layout/components/SearchBar.vue | 2 +-
7 files changed, 35 insertions(+), 7 deletions(-)
diff --git a/src/i18n/lang/en-US/comp.ts b/src/i18n/lang/en-US/comp.ts
index 33f96d6..994c279 100644
--- a/src/i18n/lang/en-US/comp.ts
+++ b/src/i18n/lang/en-US/comp.ts
@@ -52,7 +52,8 @@ export default {
qqGroup: 'QQ group: 789288579',
messages: {
copySuccess: 'Copied to clipboard'
- }
+ },
+ donateList: 'Buy me a coffee'
},
playlistType: {
title: 'Playlist Category',
diff --git a/src/i18n/lang/en-US/donation.ts b/src/i18n/lang/en-US/donation.ts
index ff64ccb..58cf19c 100644
--- a/src/i18n/lang/en-US/donation.ts
+++ b/src/i18n/lang/en-US/donation.ts
@@ -2,5 +2,6 @@ export default {
description:
'Your donation will be used to support development and maintenance work, including but not limited to server maintenance, domain name renewal, etc.',
message: 'You can leave your email or github name when leaving a message.',
- refresh: 'Refresh List'
+ refresh: 'Refresh List',
+ toDonateList: 'Buy me a coffee'
};
diff --git a/src/i18n/lang/zh-CN/comp.ts b/src/i18n/lang/zh-CN/comp.ts
index 759d771..53344a6 100644
--- a/src/i18n/lang/zh-CN/comp.ts
+++ b/src/i18n/lang/zh-CN/comp.ts
@@ -51,7 +51,8 @@ export default {
qqGroup: 'QQ群:789288579',
messages: {
copySuccess: '已复制到剪贴板'
- }
+ },
+ donateList: '请我喝咖啡'
},
playlistType: {
title: '歌单分类',
diff --git a/src/i18n/lang/zh-CN/donation.ts b/src/i18n/lang/zh-CN/donation.ts
index 6f22e54..e79eeb5 100644
--- a/src/i18n/lang/zh-CN/donation.ts
+++ b/src/i18n/lang/zh-CN/donation.ts
@@ -1,5 +1,6 @@
export default {
description: '您的捐赠将用于支持开发和维护工作,包括但不限于服务器维护、域名续费等。',
message: '留言时可留下您的邮箱或 github名称。',
- refresh: '刷新列表'
+ refresh: '刷新列表',
+ toDonateList: '请我喝咖啡'
};
diff --git a/src/renderer/components/Coffee.vue b/src/renderer/components/Coffee.vue
index 0e09420..025c0d1 100644
--- a/src/renderer/components/Coffee.vue
+++ b/src/renderer/components/Coffee.vue
@@ -46,6 +46,15 @@
{{ t('comp.coffee.qqGroup') }}
+
+
+
+ {{ t('comp.coffee.donateList') }}
+
+
@@ -66,6 +75,10 @@ const copyQQ = () => {
message.success('已复制到剪贴板');
};
+const toDonateList = () => {
+ window.open('http://donate.alger.fun', '_blank');
+};
+
defineProps({
alipayQR: {
type: String,
diff --git a/src/renderer/components/common/DonationList.vue b/src/renderer/components/common/DonationList.vue
index dac3d21..5271350 100644
--- a/src/renderer/components/common/DonationList.vue
+++ b/src/renderer/components/common/DonationList.vue
@@ -76,12 +76,12 @@
-
+
{{ t('donation.description') }}
{{ t('donation.message') }}
-
+
{{ t('common.alipay') }}
+
+
+
+
+ {{ t('donation.toDonateList') }}
+
+
{
const toggleExpand = () => {
isExpanded.value = !isExpanded.value;
};
+
+const toDonateList = () => {
+ window.open('http://donate.alger.fun', '_blank');
+};