From a915083b83ef33f240602056405f6fbf624e3f2c Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Tue, 2 Jul 2024 19:47:37 +0800 Subject: [PATCH] refactor(console): update further readings in sdk guides --- .../src/assets/docs/guides/native-android/index.ts | 10 ++++++++++ .../src/assets/docs/guides/native-expo/index.ts | 10 ++++++++++ .../src/assets/docs/guides/native-ios-swift/index.ts | 10 ++++++++++ .../src/assets/docs/guides/spa-angular/index.ts | 10 ++++++++++ .../src/assets/docs/guides/spa-react/index.ts | 10 ++++++++++ .../src/assets/docs/guides/spa-vanilla/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/spa-vue/index.ts | 10 ++++++++++ .../guides/web-dotnet-core-blazor-server/index.ts | 10 ++++++++++ .../docs/guides/web-dotnet-core-blazor-wasm/index.ts | 12 ++++++++++++ .../assets/docs/guides/web-dotnet-core-mvc/index.ts | 10 ++++++++++ .../src/assets/docs/guides/web-express/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/web-go/index.ts | 10 ++++++++++ .../assets/docs/guides/web-next-app-router/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/web-next/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/web-nuxt/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/web-php/index.ts | 10 ++++++++++ .../src/assets/docs/guides/web-python/index.ts | 10 ++++++++++ .../console/src/assets/docs/guides/web-ruby/index.ts | 10 ++++++++++ .../src/assets/docs/guides/web-sveltekit/index.ts | 10 ++++++++++ 19 files changed, 192 insertions(+) diff --git a/packages/console/src/assets/docs/guides/native-android/index.ts b/packages/console/src/assets/docs/guides/native-android/index.ts index a248a0d35..1c9178a70 100644 --- a/packages/console/src/assets/docs/guides/native-android/index.ts +++ b/packages/console/src/assets/docs/guides/native-android/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'android-sample-kotlin', }, fullGuide: 'android', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/android/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/android/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/native-expo/index.ts b/packages/console/src/assets/docs/guides/native-expo/index.ts index 353c64cc6..94a8a1d97 100644 --- a/packages/console/src/assets/docs/guides/native-expo/index.ts +++ b/packages/console/src/assets/docs/guides/native-expo/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/rn-sample', }, fullGuide: 'expo', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/expo/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/expo/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/native-ios-swift/index.ts b/packages/console/src/assets/docs/guides/native-ios-swift/index.ts index 51b991d59..87c21666b 100644 --- a/packages/console/src/assets/docs/guides/native-ios-swift/index.ts +++ b/packages/console/src/assets/docs/guides/native-ios-swift/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'Demos/SwiftUI%20Demo', }, fullGuide: 'swift', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/swift/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/swift/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/spa-angular/index.ts b/packages/console/src/assets/docs/guides/spa-angular/index.ts index 3073c73b7..3a0dda899 100644 --- a/packages/console/src/assets/docs/guides/spa-angular/index.ts +++ b/packages/console/src/assets/docs/guides/spa-angular/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/angular-sample', }, fullGuide: 'angular', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/angular/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/angular/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/spa-react/index.ts b/packages/console/src/assets/docs/guides/spa-react/index.ts index b560d8dd4..34367a1cd 100644 --- a/packages/console/src/assets/docs/guides/spa-react/index.ts +++ b/packages/console/src/assets/docs/guides/spa-react/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ }, isFeatured: true, fullGuide: 'react', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/react/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/react/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/spa-vanilla/index.ts b/packages/console/src/assets/docs/guides/spa-vanilla/index.ts index a75ff94be..8ca626d2c 100644 --- a/packages/console/src/assets/docs/guides/spa-vanilla/index.ts +++ b/packages/console/src/assets/docs/guides/spa-vanilla/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/browser-sample', }, fullGuide: 'vanilla-js', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/vanilla-js/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/vanilla-js/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/spa-vue/index.ts b/packages/console/src/assets/docs/guides/spa-vue/index.ts index 195ceebed..89b13738e 100644 --- a/packages/console/src/assets/docs/guides/spa-vue/index.ts +++ b/packages/console/src/assets/docs/guides/spa-vue/index.ts @@ -13,6 +13,16 @@ const metadata: Readonly = Object.freeze({ }, isFeatured: true, fullGuide: 'vue', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/vue/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/vue/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-server/index.ts b/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-server/index.ts index 1e01259c3..cc2cb2eb0 100644 --- a/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-server/index.ts +++ b/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-server/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: '/', }, fullGuide: 'dotnet-core/blazor-server', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/dotnet-core/blazor-server/#the-user-object'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/dotnet-core/blazor-server/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-wasm/index.ts b/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-wasm/index.ts index 1ad19eeee..0b3849071 100644 --- a/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-wasm/index.ts +++ b/packages/console/src/assets/docs/guides/web-dotnet-core-blazor-wasm/index.ts @@ -11,6 +11,18 @@ const metadata: Readonly = Object.freeze({ path: '/', }, fullGuide: 'dotnet-core/blazor-wasm', + furtherReadings: [ + { + title: 'Get user information', + url: new URL( + 'https://docs.logto.io/quick-starts/dotnet-core/blazor-wasm/#get-user-information' + ), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/dotnet-core/blazor-wasm/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-dotnet-core-mvc/index.ts b/packages/console/src/assets/docs/guides/web-dotnet-core-mvc/index.ts index ac60c2b40..88d69275b 100644 --- a/packages/console/src/assets/docs/guides/web-dotnet-core-mvc/index.ts +++ b/packages/console/src/assets/docs/guides/web-dotnet-core-mvc/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: '/', }, fullGuide: 'dotnet-core/mvc', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/dotnet-core/mvc/#the-user-object'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/dotnet-core/mvc/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-express/index.ts b/packages/console/src/assets/docs/guides/web-express/index.ts index 1f3ac22b3..90dbf6ef5 100644 --- a/packages/console/src/assets/docs/guides/web-express/index.ts +++ b/packages/console/src/assets/docs/guides/web-express/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/express-sample', }, fullGuide: 'express', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/express/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/express/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-go/index.ts b/packages/console/src/assets/docs/guides/web-go/index.ts index e7190d030..b253e20fa 100644 --- a/packages/console/src/assets/docs/guides/web-go/index.ts +++ b/packages/console/src/assets/docs/guides/web-go/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ path: 'gin-sample', }, fullGuide: 'go', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/go/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/go/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-next-app-router/index.ts b/packages/console/src/assets/docs/guides/web-next-app-router/index.ts index 492ee0515..995197a0e 100644 --- a/packages/console/src/assets/docs/guides/web-next-app-router/index.ts +++ b/packages/console/src/assets/docs/guides/web-next-app-router/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ }, isFeatured: true, fullGuide: 'next-app-router', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/next-app-router/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/next-app-router/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-next/index.ts b/packages/console/src/assets/docs/guides/web-next/index.ts index e705492dc..13f2aa9f4 100644 --- a/packages/console/src/assets/docs/guides/web-next/index.ts +++ b/packages/console/src/assets/docs/guides/web-next/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/next-sample', }, fullGuide: 'next', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/next/#get-user-information'), + }, + { + title: 'API resources', + url: new URL('https://docs.logto.io/quick-starts/next/#api-resources'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-nuxt/index.ts b/packages/console/src/assets/docs/guides/web-nuxt/index.ts index 062dcfa66..5b65ab151 100644 --- a/packages/console/src/assets/docs/guides/web-nuxt/index.ts +++ b/packages/console/src/assets/docs/guides/web-nuxt/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/nuxt', }, fullGuide: 'nuxt', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/nuxt/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/nuxt/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-php/index.ts b/packages/console/src/assets/docs/guides/web-php/index.ts index 8fa0568ca..15e51f259 100644 --- a/packages/console/src/assets/docs/guides/web-php/index.ts +++ b/packages/console/src/assets/docs/guides/web-php/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'samples', }, fullGuide: 'php', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/php/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/php/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-python/index.ts b/packages/console/src/assets/docs/guides/web-python/index.ts index ffb9766a3..56f670453 100644 --- a/packages/console/src/assets/docs/guides/web-python/index.ts +++ b/packages/console/src/assets/docs/guides/web-python/index.ts @@ -11,6 +11,16 @@ const metadata: Readonly = Object.freeze({ path: 'samples', }, fullGuide: 'python', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/python/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/python/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-ruby/index.ts b/packages/console/src/assets/docs/guides/web-ruby/index.ts index dbb70b695..33e7327d0 100644 --- a/packages/console/src/assets/docs/guides/web-ruby/index.ts +++ b/packages/console/src/assets/docs/guides/web-ruby/index.ts @@ -13,6 +13,16 @@ const metadata: Readonly = Object.freeze({ path: 'logto-sample', }, fullGuide: 'ruby', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/ruby/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/ruby/#api-resources-and-organizations'), + }, + ], }); export default metadata; diff --git a/packages/console/src/assets/docs/guides/web-sveltekit/index.ts b/packages/console/src/assets/docs/guides/web-sveltekit/index.ts index 1460ca86b..978392b76 100644 --- a/packages/console/src/assets/docs/guides/web-sveltekit/index.ts +++ b/packages/console/src/assets/docs/guides/web-sveltekit/index.ts @@ -12,6 +12,16 @@ const metadata: Readonly = Object.freeze({ path: 'packages/sveltekit-sample', }, fullGuide: 'sveltekit', + furtherReadings: [ + { + title: 'Get user information', + url: new URL('https://docs.logto.io/quick-starts/sveltekit/#get-user-information'), + }, + { + title: 'API resources and organizations', + url: new URL('https://docs.logto.io/quick-starts/sveltekit/#api-resources-and-organizations'), + }, + ], }); export default metadata;