0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console): rename Go Web to Go in SDK docs (#3063)

This commit is contained in:
Xiao Yijun 2023-02-07 16:53:55 +08:00 committed by GitHub
parent f3fb0ec2a4
commit f804e06252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -31,7 +31,7 @@ const Guides: Record<string, LazyExoticComponent<(props: MDXProps) => JSX.Elemen
vanilla: lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/vanilla.mdx')),
express: lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/express.mdx')),
next: lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/next.mdx')),
'go web': lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/go-web.mdx')),
go: lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/go.mdx')),
'ios_zh-cn': lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/ios_zh-cn.mdx')),
'android_zh-cn': lazy(
async () => import('@/assets/docs/tutorial/integrate-sdk/android_zh-cn.mdx')
@ -45,7 +45,7 @@ const Guides: Record<string, LazyExoticComponent<(props: MDXProps) => JSX.Elemen
async () => import('@/assets/docs/tutorial/integrate-sdk/express_zh-cn.mdx')
),
'next_zh-cn': lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/next_zh-cn.mdx')),
'go web_zh-cn': lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/go-web_zh-cn.mdx')),
'go_zh-cn': lazy(async () => import('@/assets/docs/tutorial/integrate-sdk/go_zh-cn.mdx')),
};
const Guide = ({ app, isCompact, onClose }: Props) => {

View file

@ -37,7 +37,7 @@ const getSampleProjectUrl = (sdk: SupportedSdk) => {
return `${githubUrlPrefix}/js/tree/master/packages/next-sample`;
case SupportedSdk.Express:
return `${githubUrlPrefix}/js/tree/master/packages/express-sample`;
case SupportedSdk.GoWeb:
case SupportedSdk.Go:
return `${githubUrlPrefix}/go/tree/master/gin-sample`;
default:
return '';

View file

@ -15,12 +15,12 @@ export enum SupportedSdk {
Vanilla = 'Vanilla',
Express = 'Express',
Next = 'Next',
GoWeb = 'Go Web',
Go = 'Go',
}
export const applicationTypeAndSdkTypeMappings = Object.freeze({
[ApplicationType.Native]: [SupportedSdk.iOS, SupportedSdk.Android],
[ApplicationType.SPA]: [SupportedSdk.React, SupportedSdk.Vue, SupportedSdk.Vanilla],
[ApplicationType.Traditional]: [SupportedSdk.Next, SupportedSdk.Express, SupportedSdk.GoWeb],
[ApplicationType.Traditional]: [SupportedSdk.Next, SupportedSdk.Express, SupportedSdk.Go],
[ApplicationType.MachineToMachine]: [],
} as const);