Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions docs/sdk/announcements/sunset-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,27 @@ Class](/sdk/storage/guide/rest/#遍历-class)。

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

## 常见问题

## 技术支持

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


<Conditional region="cn">
<br />

## 腾讯云 CloudBase

我们推荐使用腾讯云 CloudBase 作为 LeanCloud 的替代方案。CloudBase 提供数据库、云函数、云存储、身份认证等与 LeanCloud
类似的能力,并配备完整迁移指南及智能迁移脚本,支持自动数据格式转换。迁移详情请参考
[从 LeanCloud 迁移至 CloudBase 完整指南](https://docs.cloudbase.net/quick-start/migration/leancloud)。

迁移用户可使用专属优惠码领取免费云资源,[点击领取](https://buy.cloud.tencent.com/lowcode?buyType=tcb)。

如遇兑换码领取和技术问题,可加群咨询:
<img width="150" src="http://lc-OMMmeGjC.cn-n1.lcfile.com/yJnpL4loRXyhKTFLsQ2Ng6N6HoPDYzlb/cloudbase-qrcode.png" alt="cloudbase-group" />

</Conditional>

---

**再次感谢您对 LeanCloud 的支持。**
Expand Down
8 changes: 3 additions & 5 deletions src/docComponents/conditional.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import { BRAND, REGION } from "../constants/env";
import React, { type ReactNode } from "react";

interface ConditionalProps {
children: React.ReactElement[];
children?: ReactNode;
brand?: string;
region?: string;
if?: boolean;
}

export function Conditional(props: ConditionalProps) {



const { children, brand, region } = props;
if (
(!brand || brand === BRAND) &&
(!region || region === REGION) &&
(props.if === undefined || props.if)
) {
return children;
return <>{children}</>;
} else {
return null;
}
Expand Down
78 changes: 4 additions & 74 deletions src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import React from "react";
import Link from "@docusaurus/Link";
import Translate from "@docusaurus/Translate";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import styles from "./styles.module.scss";
import Logo from "@theme/Logo";
import { BRAND, REGION } from "../../constants/env";
import { getNavLinks, getLicenceLinks } from "./_config";
import DiscordLogo from "./discord-mark-white.svg";
import Arrow from "./arrow.svg";
import TdsFooter from "./TdsFooter";
import useBaseUrl from "@docusaurus/useBaseUrl";

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

return BRAND === 'tds' && REGION === 'cn' ? <TdsFooter /> : (
return (
<footer className={styles.footer}>
<div className={styles.stage}>
<div>
<section>
{ REGION === 'global' ?<section className={styles.logo}>
<section className={styles.logo}>
{/* @ts-ignore */}
{
(currentLocale === "en" )?
<img src={useBaseUrl("/img/logo_en_footer.png")} width="200" height="30"></img>
:
<img src={useBaseUrl("/img/logo_zh_footer.png")} width="180" height="30"></img>
}

</section>:<section className={styles.logo}>
{/* @ts-ignore */}
<Logo noLabel reversed={BRAND === "leancloud"} />
</section>}


{BRAND === "tds" ? <section className={styles.discord}>
<a
href="https://discord.com/invite/xt3f3XpuQa"
target="_blank"
rel="noreferrer nofollow noopener"
>
<div>
<span>
<DiscordLogo />
<span>
<Translate
id="tds-footer-来-Discord-和我们交流"
description="from Footer"
>
来 Discord 和我们交流
</Translate>
</span>
</span>
<Arrow />
</div>
</a>
</section> : <></>}
<Logo noLink noLabel reversed={BRAND === "leancloud"} />
</section>
</section>

<section>
Expand Down Expand Up @@ -93,38 +55,6 @@ function Footer() {
</section>

<section className={styles.info}>
{BRAND === "tds" &&
(REGION === "cn" ? (
<>
<div>
<Translate
id="tds-footer-易玩(上海)网络科技有限公司"
description="from Footer"
>
易玩(上海)网络科技有限公司
</Translate>
</div>
<div>
<Translate
id="tds-footer-公司地址:上海市静安区灵石路 718 号 B1 北楼"
description="from Footer"
>
公司地址:上海市静安区灵石路 718 号 B1 北楼
</Translate>
</div>
<div>
<Translate
id="tds-footer-注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室"
description="from Footer"
>
注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室
</Translate>
</div>
</>
) : (
<div>TapTap Pte. Ltd.</div>
))}

<div>{getCopyrightNotice(BRAND)}</div>
</section>
</section>
Expand Down