From c25916687f606e7b2b260f4db0d98d5acf2b5b1e Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Mon, 18 Sep 2023 11:00:12 +0800 Subject: [PATCH] refactor(console): add management api notice and update logo (#4532) --- .../src/assets/icons/api-resource-dark.svg | 86 +++++++++---------- .../console/src/assets/icons/api-resource.svg | 78 ++++++++--------- .../icons/management-api-resource-dark.svg | 59 +++++++++++++ .../assets/icons/management-api-resource.svg | 59 +++++++++++++ .../console/src/hooks/use-user-preferences.ts | 1 + .../components/ManagementApiNotice/index.tsx | 38 ++++++++ .../src/pages/ApiResourceDetails/index.tsx | 12 ++- .../console/src/pages/ApiResources/index.tsx | 30 ++++--- .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 2 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + .../admin-console/api-resource-details.ts | 3 + 23 files changed, 314 insertions(+), 93 deletions(-) create mode 100644 packages/console/src/assets/icons/management-api-resource-dark.svg create mode 100644 packages/console/src/assets/icons/management-api-resource.svg create mode 100644 packages/console/src/pages/ApiResourceDetails/components/ManagementApiNotice/index.tsx diff --git a/packages/console/src/assets/icons/api-resource-dark.svg b/packages/console/src/assets/icons/api-resource-dark.svg index 6855828ad..1d6db6ee3 100644 --- a/packages/console/src/assets/icons/api-resource-dark.svg +++ b/packages/console/src/assets/icons/api-resource-dark.svg @@ -1,51 +1,51 @@ - - - - + + + + - - - + + + - - - + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/packages/console/src/assets/icons/api-resource.svg b/packages/console/src/assets/icons/api-resource.svg index 53a5b42c6..45fa81494 100644 --- a/packages/console/src/assets/icons/api-resource.svg +++ b/packages/console/src/assets/icons/api-resource.svg @@ -1,51 +1,51 @@ - - + + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/packages/console/src/assets/icons/management-api-resource-dark.svg b/packages/console/src/assets/icons/management-api-resource-dark.svg new file mode 100644 index 000000000..75519df1b --- /dev/null +++ b/packages/console/src/assets/icons/management-api-resource-dark.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/console/src/assets/icons/management-api-resource.svg b/packages/console/src/assets/icons/management-api-resource.svg new file mode 100644 index 000000000..bb829558b --- /dev/null +++ b/packages/console/src/assets/icons/management-api-resource.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/console/src/hooks/use-user-preferences.ts b/packages/console/src/hooks/use-user-preferences.ts index 3d8e24b14..b94a73cd5 100644 --- a/packages/console/src/hooks/use-user-preferences.ts +++ b/packages/console/src/hooks/use-user-preferences.ts @@ -17,6 +17,7 @@ const userPreferencesGuard = z.object({ experienceNoticeConfirmed: z.boolean().optional(), getStartedHidden: z.boolean().optional(), connectorSieNoticeConfirmed: z.boolean().optional(), + managementApiAcknowledged: z.boolean().optional(), }); type UserPreferences = z.infer; diff --git a/packages/console/src/pages/ApiResourceDetails/components/ManagementApiNotice/index.tsx b/packages/console/src/pages/ApiResourceDetails/components/ManagementApiNotice/index.tsx new file mode 100644 index 000000000..98b64baa6 --- /dev/null +++ b/packages/console/src/pages/ApiResourceDetails/components/ManagementApiNotice/index.tsx @@ -0,0 +1,38 @@ +import { Trans, useTranslation } from 'react-i18next'; + +import InlineNotification from '@/ds-components/InlineNotification'; +import TextLink from '@/ds-components/TextLink'; +import useDocumentationUrl from '@/hooks/use-documentation-url'; +import useUserPreferences from '@/hooks/use-user-preferences'; + +function ManagementApiNotice() { + const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); + const { getDocumentationUrl } = useDocumentationUrl(); + const { data, isLoading, update } = useUserPreferences(); + const { managementApiAcknowledged } = data; + + if (isLoading || managementApiAcknowledged) { + return null; + } + + const learnMoreLink = getDocumentationUrl('/docs/tutorials/get-started/explore-management-api'); + + return ( + { + void update({ managementApiAcknowledged: true }); + }} + > + , + }} + > + {t('api_resource_details.management_api_notice')} + + + ); +} + +export default ManagementApiNotice; diff --git a/packages/console/src/pages/ApiResourceDetails/index.tsx b/packages/console/src/pages/ApiResourceDetails/index.tsx index 941b9a796..206cc89eb 100644 --- a/packages/console/src/pages/ApiResourceDetails/index.tsx +++ b/packages/console/src/pages/ApiResourceDetails/index.tsx @@ -11,6 +11,8 @@ import useSWR from 'swr'; import ApiResourceDark from '@/assets/icons/api-resource-dark.svg'; import ApiResource from '@/assets/icons/api-resource.svg'; import Delete from '@/assets/icons/delete.svg'; +import ManagementApiResourceDark from '@/assets/icons/management-api-resource-dark.svg'; +import ManagementApiResource from '@/assets/icons/management-api-resource.svg'; import More from '@/assets/icons/more.svg'; import DetailsPage from '@/components/DetailsPage'; import Drawer from '@/components/Drawer'; @@ -30,9 +32,15 @@ import useTheme from '@/hooks/use-theme'; import GuideDrawer from './components/GuideDrawer'; import GuideModal from './components/GuideModal'; +import ManagementApiNotice from './components/ManagementApiNotice'; import * as styles from './index.module.scss'; import { type ApiResourceDetailsOutletContext } from './types'; +const icons = { + [Theme.Light]: { ApiIcon: ApiResource, ManagementApiIcon: ManagementApiResource }, + [Theme.Dark]: { ApiIcon: ApiResourceDark, ManagementApiIcon: ManagementApiResourceDark }, +}; + function ApiResourceDetails() { const { pathname } = useLocation(); const { id, guideId } = useParams(); @@ -43,10 +51,11 @@ function ApiResourceDetails() { const { data, error, mutate } = useSWR(id && `api/resources/${id}`); const isLoading = !data && !error; const theme = useTheme(); - const Icon = theme === Theme.Light ? ApiResource : ApiResourceDark; + const { ApiIcon, ManagementApiIcon } = icons[theme]; const isOnPermissionPage = pathname.endsWith(ApiResourceDetailsTabs.Permissions); const isLogtoManagementApiResource = isManagementApi(data?.indicator ?? ''); + const Icon = isLogtoManagementApiResource ? ManagementApiIcon : ApiIcon; const [isGuideDrawerOpen, setIsGuideDrawerOpen] = useState(false); const [isDeleteFormOpen, setIsDeleteFormOpen] = useState(false); @@ -101,6 +110,7 @@ function ApiResourceDetails() { onRetry={mutate} > + {isLogtoManagementApiResource && } {data && ( <> diff --git a/packages/console/src/pages/ApiResources/index.tsx b/packages/console/src/pages/ApiResources/index.tsx index 62f4174fd..1b315bddb 100644 --- a/packages/console/src/pages/ApiResources/index.tsx +++ b/packages/console/src/pages/ApiResources/index.tsx @@ -1,12 +1,14 @@ import { withAppInsights } from '@logto/app-insights/react'; import type { Resource } from '@logto/schemas'; -import { Theme } from '@logto/schemas'; +import { Theme, isManagementApi } from '@logto/schemas'; import { useTranslation } from 'react-i18next'; import { useLocation } from 'react-router-dom'; import useSWR from 'swr'; import ApiResourceDark from '@/assets/icons/api-resource-dark.svg'; import ApiResource from '@/assets/icons/api-resource.svg'; +import ManagementApiResourceDark from '@/assets/icons/management-api-resource-dark.svg'; +import ManagementApiResource from '@/assets/icons/management-api-resource.svg'; import EmptyDataPlaceholder from '@/components/EmptyDataPlaceholder'; import ItemPreview from '@/components/ItemPreview'; import ListPage from '@/components/ListPage'; @@ -29,6 +31,11 @@ const createApiResourcePathname = `${apiResourcesPathname}/create`; const buildDetailsPathname = (id: string) => `${apiResourcesPathname}/${id}/${ApiResourceDetailsTabs.Settings}`; +const icons = { + [Theme.Light]: { ApiIcon: ApiResource, ManagementApiIcon: ManagementApiResource }, + [Theme.Dark]: { ApiIcon: ApiResourceDark, ManagementApiIcon: ManagementApiResourceDark }, +}; + function ApiResources() { const { search } = useLocation(); const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); @@ -49,7 +56,7 @@ function ApiResources() { const theme = useTheme(); const [apiResources, totalCount] = data ?? []; - const ResourceIcon = theme === Theme.Light ? ApiResource : ApiResourceDark; + const { ApiIcon, ManagementApiIcon } = icons[theme]; const isCreating = match(createApiResourcePathname); return ( @@ -79,14 +86,17 @@ function ApiResources() { title: t('api_resources.api_name'), dataIndex: 'name', colSpan: 6, - render: ({ id, name, isDefault }) => ( - } - to={buildDetailsPathname(id)} - suffix={isDefault && {t('api_resources.default_api')}} - /> - ), + render: ({ id, name, isDefault, indicator }) => { + const Icon = isManagementApi(indicator) ? ManagementApiIcon : ApiIcon; + return ( + } + to={buildDetailsPathname(id)} + suffix={isDefault && {t('api_resources.default_api')}} + /> + ); + }, }, { title: t('api_resources.api_identifier'), diff --git a/packages/phrases/src/locales/de/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/de/translation/admin-console/api-resource-details.ts index bae342630..e9b5b4964 100644 --- a/packages/phrases/src/locales/de/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/de/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API-Ressourcen, auch Ressourcenindikatoren genannt, geben die Ziel-Dienste oder Ressourcen an, die angefordert werden sollen. Häufig handelt es sich um eine URI-Formatvariable, die die Identität der Ressource darstellt.', management_api_settings_description: 'Die Logto Management-API ist eine umfassende Sammlung von APIs, die Administratoren befähigen, eine Vielzahl von Aufgaben im Zusammenhang mit Identitäten zu verwalten, Sicherheitsrichtlinien durchzusetzen und Vorschriften und Standards einzuhalten.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token-Ablaufzeit (in Sekunden)', token_expiration_time_in_seconds_placeholder: 'Gib die Ablaufzeit des Tokens ein', delete_description: diff --git a/packages/phrases/src/locales/en/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/en/translation/admin-console/api-resource-details.ts index ade69064d..d505e0c52 100644 --- a/packages/phrases/src/locales/en/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/en/translation/admin-console/api-resource-details.ts @@ -8,6 +8,8 @@ const api_resource_details = { 'API resources, a.k.a. Resource Indicators, indicate the target services or resources to be requested, usually, a URI format variable representing the resource‘s identity.', management_api_settings_description: 'The Logto Management API is a comprehensive collection of APIs that empower administrators to manage a wide range of identity-related tasks, enforce security policies, and comply with regulations and standards.', + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token expiration time (in seconds)', token_expiration_time_in_seconds_placeholder: 'Enter your token expiration time', delete_description: diff --git a/packages/phrases/src/locales/es/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/es/translation/admin-console/api-resource-details.ts index a62a10014..e59fef633 100644 --- a/packages/phrases/src/locales/es/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/es/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'Los recursos de API, también conocidos como indicadores de recurso, indican los servicios o recursos de destino que se solicitarán, generalmente, una variable de formato URI que representa la identidad del recurso.', management_api_settings_description: 'La API de administración de Logto es una colección completa de API que permiten a los administradores administrar una amplia gama de tareas relacionadas con la identidad, hacer cumplir políticas de seguridad y cumplir con regulaciones y estándares.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Tiempo de expiración del token (en segundos)', token_expiration_time_in_seconds_placeholder: 'Ingrese el tiempo de expiración de su token', delete_description: diff --git a/packages/phrases/src/locales/fr/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/fr/translation/admin-console/api-resource-details.ts index 57ae10742..9712b0850 100644 --- a/packages/phrases/src/locales/fr/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/fr/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { "Les ressources API, également connues sous le nom d'indicateurs de ressource, indiquent les services ou les ressources cibles à demander, généralement une variable de format d'URI représentant l'identité de la ressource.", management_api_settings_description: "La Logto Management API est une collection complète d'API qui permettent aux administrateurs de gérer une large gamme de tâches liées à l'identité, d'appliquer des politiques de sécurité et de se conformer aux réglementations et normes.", + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: "Temps d'expiration du jeton (en secondes)", token_expiration_time_in_seconds_placeholder: "Entrez le délai d'expiration de votre jeton", delete_description: diff --git a/packages/phrases/src/locales/it/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/it/translation/admin-console/api-resource-details.ts index c7e5970ed..88d7d1c24 100644 --- a/packages/phrases/src/locales/it/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/it/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { "Le risorse API, anche note come Indicatori di Risorse, indicano i servizi o le risorse di destinazione da richiedere, di solito una variabile di formato URI che rappresenta l'identità della risorsa.", management_api_settings_description: "La Logto Management API è una raccolta completa di API che consentono agli amministratori di gestire una vasta gamma di attività relative all'identità, far rispettare le politiche di sicurezza e conformarsi a regolamenti e standard.", + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Tempo di scadenza del token (in secondi)', token_expiration_time_in_seconds_placeholder: 'Inserisci il tempo di scadenza del tuo token', delete_description: diff --git a/packages/phrases/src/locales/ja/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/ja/translation/admin-console/api-resource-details.ts index e736e419b..bd40e7843 100644 --- a/packages/phrases/src/locales/ja/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/ja/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'APIリソース、またはリソースインジケータは、通常、リソースの識別子を表すURI形式の変数を表します。', management_api_settings_description: 'Logto管理APIは、管理者が幅広いID関連タスクを管理し、セキュリティポリシーを強制し、規制や標準に準拠するための包括的なAPIのコレクションです。', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'トークンの有効期限(秒単位)', token_expiration_time_in_seconds_placeholder: 'トークンの有効期限を入力してください', delete_description: diff --git a/packages/phrases/src/locales/ko/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/ko/translation/admin-console/api-resource-details.ts index b73c02cdb..c3235135c 100644 --- a/packages/phrases/src/locales/ko/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/ko/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API 리소스(리소스 표시기) - 요청할 대상 서비스 또는 리소스(일반적으로 리소스의 ID를 나타내는 URI 형식 변수)를 나타내요.', management_api_settings_description: 'Logto 관리 API는 관리자가 다양한 ID 관련 작업을 관리하고 보안 정책을 시행하며 규정 및 표준을 준수할 수 있도록 하는 포괄적인 API 컬렉션입니다.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: '토큰 만료 시간 (초)', token_expiration_time_in_seconds_placeholder: '토큰 만료 시간을 입력해주세요', delete_description: diff --git a/packages/phrases/src/locales/pl-pl/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/pl-pl/translation/admin-console/api-resource-details.ts index cba38ac43..a3f22aaa1 100644 --- a/packages/phrases/src/locales/pl-pl/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/pl-pl/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'Zasoby API, tzw. wskaźniki zasobów, wskazują na usługi lub zasoby docelowe, które mają być żądane, zwykle w zmiennej formatu URI reprezentującej tożsamość zasobu.', management_api_settings_description: 'Logto Management API to kompleksowa kolekcja interfejsów API, które umożliwiają administratorom zarządzanie szerokim zakresem zadań związanych z tożsamością, egzekwowanie polityk bezpieczeństwa oraz przestrzeganie przepisów i standardów.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Czas wygaśnięcia tokenu (w sekundach)', token_expiration_time_in_seconds_placeholder: 'Wprowadź czas wygaśnięcia tokenu', delete_description: diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/api-resource-details.ts index c7e701bc6..6514f5736 100644 --- a/packages/phrases/src/locales/pt-br/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/pt-br/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'Os recursos da API, também conhecidos como Indicadores de recursos, indicam os serviços ou recursos de destino a serem solicitados, geralmente uma variável de formato de URI que representa a identidade do recurso.', management_api_settings_description: 'A API de Gerenciamento do Logto é uma coleção abrangente de APIs que capacitam os administradores a gerenciar uma ampla gama de tarefas relacionadas à identidade, aplicar políticas de segurança e cumprir regulamentos e padrões.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Tempo de expiração do token (em segundos)', token_expiration_time_in_seconds_placeholder: 'Digite o tempo de expiração do seu token', delete_description: diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/api-resource-details.ts index b3003e37d..133719145 100644 --- a/packages/phrases/src/locales/pt-pt/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'Recursos da API, também conhecidos como indicadores de recursos, indicam os serviços ou recursos de destino a serem solicitados, geralmente uma variável de formato URI que representa a identidade do recurso.', management_api_settings_description: 'A API de Gerenciamento do Logto é uma coleção abrangente de APIs que capacitam os administradores a gerenciar uma ampla gama de tarefas relacionadas à identidade, aplicar políticas de segurança e cumprir regulamentos e padrões.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Tempo de expiração do token (em segundos)', token_expiration_time_in_seconds_placeholder: 'Insira o tempo de expiração do token', delete_description: diff --git a/packages/phrases/src/locales/ru/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/ru/translation/admin-console/api-resource-details.ts index 3a5f9877b..995385b13 100644 --- a/packages/phrases/src/locales/ru/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/ru/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'Ресурсы API, также известные как индикаторы ресурсов, указывают целевые службы или ресурсы, запрашиваемые обычно в виде переменной формата URI, представляющей идентификатор ресурса.', management_api_settings_description: 'Logto Management API - это комплексный набор API, который дает администраторам возможность управлять широким спектром задач, связанных с идентификацией, обеспечивать политику безопасности и соблюдать требования и стандарты.', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Время истечения токена (в секундах)', token_expiration_time_in_seconds_placeholder: 'Введите время истечения вашего токена', delete_description: diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/api-resource-details.ts index f124bd019..6bd8e2862 100644 --- a/packages/phrases/src/locales/tr-tr/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API kaynakları, Resource göstergeleri olarak da bilinir. Genellikle, kaynağın kimliğini temsil eden bir URI formatındaki değişkeni içerir.', management_api_settings_description: "Logto Yönetim API'si, yöneticilerin kimlikle ilgili birçok görevi yönetmelerine, güvenlik politikalarını uygulamalarına ve yönetmeliklere ve standartlara uyum sağlamalarına olanak tanıyan kapsamlı bir API koleksiyonudur.", + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token sona erme süresi (saniye)', token_expiration_time_in_seconds_placeholder: 'Token zaman aşım süresini giriniz', delete_description: diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/api-resource-details.ts index 406155fbd..cb6c687b1 100644 --- a/packages/phrases/src/locales/zh-cn/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API 资源,又称资源指示器,表示要请求的目标服务或资源,通常是表示资源身份的 URI 格式变量。', management_api_settings_description: 'Logto 管理 API 是一组全面的 API,使管理员能够管理各种与身份相关的任务,执行安全策略并遵守法规和标准。', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token 过期时间(秒)', token_expiration_time_in_seconds_placeholder: '请输入你的 token 过期时间', delete_description: diff --git a/packages/phrases/src/locales/zh-hk/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/zh-hk/translation/admin-console/api-resource-details.ts index 46f94f756..331e8c3b7 100644 --- a/packages/phrases/src/locales/zh-hk/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/zh-hk/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API 資源,又稱資源指示器,表示要請求的目標服務或資源,通常是表示資源身份的 URI 格式變數。', management_api_settings_description: 'Logto 管理 API 是一個全面的 API 集合,使管理員能夠管理各種與身份有關的任務,執行安全策略,並遵守法規和標準。', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token 過期時間(秒)', token_expiration_time_in_seconds_placeholder: '請輸入你的 token 過期時間', delete_description: diff --git a/packages/phrases/src/locales/zh-tw/translation/admin-console/api-resource-details.ts b/packages/phrases/src/locales/zh-tw/translation/admin-console/api-resource-details.ts index 078d687eb..7d86fbc7f 100644 --- a/packages/phrases/src/locales/zh-tw/translation/admin-console/api-resource-details.ts +++ b/packages/phrases/src/locales/zh-tw/translation/admin-console/api-resource-details.ts @@ -8,6 +8,9 @@ const api_resource_details = { 'API 資源,又稱資源指標,表示要請求的目標服務或資源,通常是表示資源身份的 URI 格式變數。', management_api_settings_description: 'Logto 管理 API 是一個全面的 API 集合,使管理員能夠管理各種與身份有關的任務,執行安全策略,並遵守法規和標準。', + /** UNTRANSLATED */ + management_api_notice: + 'This API represents Logto entity and cannot be modified or deleted. You can use management API for a wide range of identity related tasks. Learn more', token_expiration_time_in_seconds: 'Token 過期時間(秒)', token_expiration_time_in_seconds_placeholder: '請輸入你的 token 過期時間', delete_description: