Skip to content

Commit dd25f54

Browse files
authored
chore: add tencent cloudbase #no-ticket (#17)
1 parent 101a6c4 commit dd25f54

3 files changed

Lines changed: 24 additions & 81 deletions

File tree

docs/sdk/announcements/sunset-export.mdx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,27 @@ Class](/sdk/storage/guide/rest/#遍历-class)。
6767

6868
如果需要榜单的热数据,则可以通过 REST API 进行遍历导出,请参考[查询排行榜](/sdk/leaderboard/guide/rest/#查询排行榜)
6969

70-
## 常见问题
71-
7270
## 技术支持
7371

7472
如果您在数据导出和迁移过程中遇到问题,可以通过工单联系我们。
7573

74+
75+
<Conditional region="cn">
76+
<br />
77+
78+
## 腾讯云 CloudBase
79+
80+
我们推荐使用腾讯云 CloudBase 作为 LeanCloud 的替代方案。CloudBase 提供数据库、云函数、云存储、身份认证等与 LeanCloud
81+
类似的能力,并配备完整迁移指南及智能迁移脚本,支持自动数据格式转换。迁移详情请参考
82+
[从 LeanCloud 迁移至 CloudBase 完整指南](https://docs.cloudbase.net/quick-start/migration/leancloud)
83+
84+
迁移用户可使用专属优惠码领取免费云资源,[点击领取](https://buy.cloud.tencent.com/lowcode?buyType=tcb)
85+
86+
如遇兑换码领取和技术问题,可加群咨询:
87+
<img width="150" src="http://lc-OMMmeGjC.cn-n1.lcfile.com/yJnpL4loRXyhKTFLsQ2Ng6N6HoPDYzlb/cloudbase-qrcode.png" alt="cloudbase-group" />
88+
89+
</Conditional>
90+
7691
---
7792

7893
**再次感谢您对 LeanCloud 的支持。**

src/docComponents/conditional.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
import { BRAND, REGION } from "../constants/env";
2+
import React, { type ReactNode } from "react";
23

34
interface ConditionalProps {
4-
children: React.ReactElement[];
5+
children?: ReactNode;
56
brand?: string;
67
region?: string;
78
if?: boolean;
89
}
910

1011
export function Conditional(props: ConditionalProps) {
11-
12-
13-
1412
const { children, brand, region } = props;
1513
if (
1614
(!brand || brand === BRAND) &&
1715
(!region || region === REGION) &&
1816
(props.if === undefined || props.if)
1917
) {
20-
return children;
18+
return <>{children}</>;
2119
} else {
2220
return null;
2321
}

src/theme/Footer/index.tsx

Lines changed: 4 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import React from "react";
22
import Link from "@docusaurus/Link";
3-
import Translate from "@docusaurus/Translate";
43
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
54
import styles from "./styles.module.scss";
65
import Logo from "@theme/Logo";
76
import { BRAND, REGION } from "../../constants/env";
87
import { getNavLinks, getLicenceLinks } from "./_config";
9-
import DiscordLogo from "./discord-mark-white.svg";
10-
import Arrow from "./arrow.svg";
11-
import TdsFooter from "./TdsFooter";
12-
import useBaseUrl from "@docusaurus/useBaseUrl";
138

149
function getCopyrightNotice(brand: string): string {
1510
const year = new Date().getFullYear();
@@ -23,48 +18,15 @@ function Footer() {
2318
i18n: { currentLocale },
2419
} = useDocusaurusContext();
2520

26-
return BRAND === 'tds' && REGION === 'cn' ? <TdsFooter /> : (
21+
return (
2722
<footer className={styles.footer}>
2823
<div className={styles.stage}>
2924
<div>
3025
<section>
31-
{ REGION === 'global' ?<section className={styles.logo}>
26+
<section className={styles.logo}>
3227
{/* @ts-ignore */}
33-
{
34-
(currentLocale === "en" )?
35-
<img src={useBaseUrl("/img/logo_en_footer.png")} width="200" height="30"></img>
36-
:
37-
<img src={useBaseUrl("/img/logo_zh_footer.png")} width="180" height="30"></img>
38-
}
39-
40-
</section>:<section className={styles.logo}>
41-
{/* @ts-ignore */}
42-
<Logo noLabel reversed={BRAND === "leancloud"} />
43-
</section>}
44-
45-
46-
{BRAND === "tds" ? <section className={styles.discord}>
47-
<a
48-
href="https://discord.com/invite/xt3f3XpuQa"
49-
target="_blank"
50-
rel="noreferrer nofollow noopener"
51-
>
52-
<div>
53-
<span>
54-
<DiscordLogo />
55-
<span>
56-
<Translate
57-
id="tds-footer-来-Discord-和我们交流"
58-
description="from Footer"
59-
>
60-
来 Discord 和我们交流
61-
</Translate>
62-
</span>
63-
</span>
64-
<Arrow />
65-
</div>
66-
</a>
67-
</section> : <></>}
28+
<Logo noLink noLabel reversed={BRAND === "leancloud"} />
29+
</section>
6830
</section>
6931

7032
<section>
@@ -93,38 +55,6 @@ function Footer() {
9355
</section>
9456

9557
<section className={styles.info}>
96-
{BRAND === "tds" &&
97-
(REGION === "cn" ? (
98-
<>
99-
<div>
100-
<Translate
101-
id="tds-footer-易玩(上海)网络科技有限公司"
102-
description="from Footer"
103-
>
104-
易玩(上海)网络科技有限公司
105-
</Translate>
106-
</div>
107-
<div>
108-
<Translate
109-
id="tds-footer-公司地址:上海市静安区灵石路 718 号 B1 北楼"
110-
description="from Footer"
111-
>
112-
公司地址:上海市静安区灵石路 718 号 B1 北楼
113-
</Translate>
114-
</div>
115-
<div>
116-
<Translate
117-
id="tds-footer-注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室"
118-
description="from Footer"
119-
>
120-
注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室
121-
</Translate>
122-
</div>
123-
</>
124-
) : (
125-
<div>TapTap Pte. Ltd.</div>
126-
))}
127-
12858
<div>{getCopyrightNotice(BRAND)}</div>
12959
</section>
13060
</section>

0 commit comments

Comments
 (0)