refactor: separate user agreement and privacy policy links (#777)

This commit is contained in:
ayangweb
2025-07-19 10:24:29 +08:00
committed by GitHub
parent 2b48cdf84a
commit 5e536e1444
3 changed files with 29 additions and 11 deletions

View File

@@ -210,15 +210,31 @@ const ServiceAuth = memo(
/>
)}
{/* Privacy Policy Link */}
<button
className="text-xs text-[#0096FB] dark:text-blue-400 block"
onClick={() =>
OpenURLWithBrowser(currentService?.provider?.privacy_policy)
}
>
{t("cloud.privacyPolicy")}
</button>
<div className="flex items-center gap-2">
{/* EULA Link */}
<button
className="text-xs text-[#0096FB] dark:text-blue-400 block"
onClick={() =>
OpenURLWithBrowser(currentService?.provider?.eula)
}
>
{t("cloud.eula")}
</button>
<span className="text-xs text-[#0096FB] dark:text-blue-400 block">
|
</span>
{/* Privacy Policy Link */}
<button
className="text-xs text-[#0096FB] dark:text-blue-400 block"
onClick={() =>
OpenURLWithBrowser(currentService?.provider?.privacy_policy)
}
>
{t("cloud.privacyPolicy")}
</button>
</div>
</div>
)}
</div>

View File

@@ -459,7 +459,8 @@
"login": "Login",
"cancel": "Cancel",
"copyUrl": "Copy URL",
"privacyPolicy": "EULA | Privacy Policy",
"eula": "EULA",
"privacyPolicy": "Privacy Policy",
"connect": {
"back": "Back",
"title": "Connecting to Your Coco-Server",

View File

@@ -459,7 +459,8 @@
"login": "登录",
"cancel": "取消",
"copyUrl": "复制链接",
"privacyPolicy": "用户协议 | 隐私政策",
"eula": "用户协议",
"privacyPolicy": "隐私政策",
"connect": {
"back": "返回",
"title": "连接到您的 Coco-Server",