mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
feat(web): use Feishu for Chinese community links (#16908)
Co-authored-by: Frank <frank@anoma.ly>
This commit is contained in:
parent
a1b06d63c9
commit
0843964eb3
@ -137,4 +137,4 @@ OpenCode 内置两种 Agent,可用 `Tab` 键快速切换:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**加入我们的社区** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
|
**加入我们的社区** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)
|
||||||
|
|||||||
@ -137,4 +137,4 @@ OpenCode 內建了兩種 Agent,您可以使用 `Tab` 鍵快速切換。
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**加入我們的社群** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
|
**加入我們的社群** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)
|
||||||
|
|||||||
@ -8,6 +8,12 @@ import { useI18n } from "~/context/i18n"
|
|||||||
export function Footer() {
|
export function Footer() {
|
||||||
const language = useLanguage()
|
const language = useLanguage()
|
||||||
const i18n = useI18n()
|
const i18n = useI18n()
|
||||||
|
const community = createMemo(() => {
|
||||||
|
const locale = language.locale()
|
||||||
|
return locale === "zh" || locale === "zht"
|
||||||
|
? ({ key: "footer.feishu", link: language.route("/feishu") } as const)
|
||||||
|
: ({ key: "footer.discord", link: language.route("/discord") } as const)
|
||||||
|
})
|
||||||
const githubData = createAsync(() => github())
|
const githubData = createAsync(() => github())
|
||||||
const starCount = createMemo(() =>
|
const starCount = createMemo(() =>
|
||||||
githubData()?.stars
|
githubData()?.stars
|
||||||
@ -32,7 +38,7 @@ export function Footer() {
|
|||||||
<a href={language.route("/changelog")}>{i18n.t("footer.changelog")}</a>
|
<a href={language.route("/changelog")}>{i18n.t("footer.changelog")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div data-slot="cell">
|
<div data-slot="cell">
|
||||||
<a href={language.route("/discord")}>{i18n.t("footer.discord")}</a>
|
<a href={community().link}>{i18n.t(community().key)}</a>
|
||||||
</div>
|
</div>
|
||||||
<div data-slot="cell">
|
<div data-slot="cell">
|
||||||
<a href={config.social.twitter}>{i18n.t("footer.x")}</a>
|
<a href={config.social.twitter}>{i18n.t("footer.x")}</a>
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export const dict = {
|
|||||||
"footer.github": "GitHub",
|
"footer.github": "GitHub",
|
||||||
"footer.docs": "Docs",
|
"footer.docs": "Docs",
|
||||||
"footer.changelog": "Changelog",
|
"footer.changelog": "Changelog",
|
||||||
|
"footer.feishu": "Feishu",
|
||||||
"footer.discord": "Discord",
|
"footer.discord": "Discord",
|
||||||
"footer.x": "X",
|
"footer.x": "X",
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@ export const dict = {
|
|||||||
"footer.github": "GitHub",
|
"footer.github": "GitHub",
|
||||||
"footer.docs": "文档",
|
"footer.docs": "文档",
|
||||||
"footer.changelog": "更新日志",
|
"footer.changelog": "更新日志",
|
||||||
|
"footer.feishu": "飞书",
|
||||||
"footer.discord": "Discord",
|
"footer.discord": "Discord",
|
||||||
"footer.x": "X",
|
"footer.x": "X",
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@ export const dict = {
|
|||||||
"footer.github": "GitHub",
|
"footer.github": "GitHub",
|
||||||
"footer.docs": "文件",
|
"footer.docs": "文件",
|
||||||
"footer.changelog": "更新日誌",
|
"footer.changelog": "更新日誌",
|
||||||
|
"footer.feishu": "飞书",
|
||||||
"footer.discord": "Discord",
|
"footer.discord": "Discord",
|
||||||
"footer.x": "X",
|
"footer.x": "X",
|
||||||
|
|
||||||
|
|||||||
7
packages/console/app/src/routes/feishu.ts
Normal file
7
packages/console/app/src/routes/feishu.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { redirect } from "@solidjs/router"
|
||||||
|
|
||||||
|
export async function GET() {
|
||||||
|
return redirect(
|
||||||
|
"https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true",
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user