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

fix(console): change PAT and app secrets phrases (#6504)

This commit is contained in:
wangsijie 2024-08-22 17:50:26 +08:00 committed by GitHub
parent ad4e146922
commit ed774bf62d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 15 deletions

View file

@ -208,14 +208,10 @@ function EndpointsAndCredentials({
<FormField title="application_details.application_secret_other">
{secretsData.length === 0 && !secrets.error ? (
<>
<div className={styles.empty}>
{t('organizations.empty_placeholder', {
entity: t('application_details.application_secret').toLowerCase(),
})}
</div>
<div className={styles.empty}>{t('application_details.secrets.empty')}</div>
<Button
icon={<Plus />}
title="general.add"
title="application_details.secrets.create_new_secret"
onClick={() => {
setShowCreateSecretModal(true);
}}

View file

@ -104,14 +104,10 @@ function PersonalAccessTokens({ userId }: Props) {
>
{data?.length === 0 && !error ? (
<>
<div className={styles.empty}>
{t('organizations.empty_placeholder', {
entity: t('user_details.personal_access_tokens.title').toLowerCase(),
})}
</div>
<div className={styles.empty}>{t('user_details.personal_access_tokens.empty')}</div>
<Button
icon={<Plus />}
title="general.add"
title="user_details.personal_access_tokens.create"
onClick={() => {
setShowCreateTokenModal(true);
}}

View file

@ -169,6 +169,7 @@ const application_details = {
},
secrets: {
value: 'Value',
empty: 'The application does not have any secrets.',
created_at: 'Created at',
expires_at: 'Expires at',
never: 'Never',

View file

@ -101,6 +101,8 @@ const user_details = {
title: 'Personal access token',
title_other: 'Personal access tokens',
title_short: 'token',
empty: 'The user does not have any personal access tokens.',
create: 'Create new token',
tip: 'Personal access tokens (PATs) provide a secure way for users to grant access tokens without using their credentials and interactive sign-in. This is useful for CI/CD, scripts, or applications that need to access resources programmatically. <a>Learn more</a>',
value: 'Value',
created_at: 'Created at',

View file

@ -40,9 +40,9 @@ export const defaultConfig: UserConfig = {
},
],
},
optimizeDeps: {
include: ['@logto/phrases', '@logto/phrases-experience', '@logto/schemas'],
},
// optimizeDeps: {
// include: ['@logto/phrases', '@logto/phrases-experience', '@logto/schemas'],
// },
build: {
sourcemap: true,
rollupOptions: {