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

refactor: rename ui -> journey

This commit is contained in:
Gao Sun 2023-09-10 17:04:01 +08:00
parent d576664fcf
commit 57e81f27c4
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
457 changed files with 269 additions and 305 deletions

View file

@ -7,7 +7,7 @@ module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'ui', 'deps','cli', 'toolkit', 'cloud', 'app-insights']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'journey', 'deps','cli', 'toolkit', 'app-insights']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] }),
'body-max-line-length': [2, 'always', 110],

View file

@ -47,7 +47,7 @@
"@logto/core-kit": "workspace:^2.0.1",
"@logto/language-kit": "workspace:^1.0.0",
"@logto/phrases": "workspace:^1.4.1",
"@logto/phrases-ui": "workspace:^1.2.0",
"@logto/phrases-journey": "workspace:^1.2.0",
"@logto/schemas": "workspace:1.8.0",
"@logto/shared": "workspace:^2.0.0",
"@silverhand/essentials": "^2.8.4",

View file

@ -1,6 +1,6 @@
import { isLanguageTag } from '@logto/language-kit';
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
import type { CommandModule } from 'yargs';
import { consoleLog } from '../../utils.js';

View file

@ -1,6 +1,6 @@
import { languages } from '@logto/language-kit';
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
import chalk from 'chalk';
import type { CommandModule } from 'yargs';

View file

@ -1,6 +1,6 @@
import { languages } from '@logto/language-kit';
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
import PQueue from 'p-queue';
import type { CommandModule } from 'yargs';

View file

@ -31,7 +31,7 @@
"@logto/core-kit": "workspace:^2.0.1",
"@logto/language-kit": "workspace:^1.0.0",
"@logto/phrases": "workspace:^1.4.1",
"@logto/phrases-ui": "workspace:^1.2.0",
"@logto/phrases-journey": "workspace:^1.2.0",
"@logto/react": "^2.1.0",
"@logto/schemas": "workspace:^1.8.0",
"@logto/shared": "workspace:^2.0.0",

View file

@ -1,5 +1,5 @@
import type { LanguageTag } from '@logto/language-kit';
import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-ui';
import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-journey';
import { deduplicate } from '@silverhand/essentials';
import { useCallback, useMemo } from 'react';
import useSWR from 'swr';

View file

@ -1,7 +1,7 @@
import type { LanguageTag } from '@logto/language-kit';
import { languages as uiLanguageNameMapping } from '@logto/language-kit';
import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui';
import en from '@logto/phrases-ui/lib/locales/en';
import resource, { isBuiltInLanguageTag } from '@logto/phrases-journey';
import en from '@logto/phrases-journey/lib/locales/en';
import type { SignInExperience, Translation } from '@logto/schemas';
import cleanDeep from 'clean-deep';
import deepmerge from 'deepmerge';

View file

@ -1,4 +1,4 @@
import en from '@logto/phrases-ui/lib/locales/en';
import en from '@logto/phrases-journey/lib/locales/en';
import type { Translation } from '@logto/schemas';
export const flattenTranslation = (

View file

@ -37,10 +37,10 @@
"@logto/demo-app": "workspace:*",
"@logto/language-kit": "workspace:^1.0.0",
"@logto/phrases": "workspace:^1.4.1",
"@logto/phrases-ui": "workspace:^1.2.0",
"@logto/phrases-journey": "workspace:^1.2.0",
"@logto/schemas": "workspace:^1.8.0",
"@logto/shared": "workspace:^2.0.0",
"@logto/ui": "workspace:*",
"@logto/journey": "workspace:*",
"@silverhand/essentials": "^2.8.4",
"@withtyped/client": "^0.7.22",
"chalk": "^5.0.0",

View file

@ -1,4 +1,4 @@
import resource from '@logto/phrases-ui';
import resource from '@logto/phrases-journey';
import { type CustomPhrase } from '@logto/schemas';
import deepmerge from 'deepmerge';

View file

@ -1,5 +1,5 @@
import type { LocalePhrase } from '@logto/phrases-ui';
import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui';
import type { LocalePhrase } from '@logto/phrases-journey';
import resource, { isBuiltInLanguageTag } from '@logto/phrases-journey';
import { trySafe } from '@silverhand/essentials';
import cleanDeep from 'clean-deep';
import deepmerge from 'deepmerge';

View file

@ -1,5 +1,5 @@
import type { LanguageTag } from '@logto/language-kit';
import { builtInLanguages } from '@logto/phrases-ui';
import { builtInLanguages } from '@logto/phrases-journey';
import type { CreateSignInExperience, SignInExperience } from '@logto/schemas';
import {

View file

@ -1,4 +1,4 @@
import { builtInLanguages } from '@logto/phrases-ui';
import { builtInLanguages } from '@logto/phrases-journey';
import type { ConnectorMetadata, LanguageInfo } from '@logto/schemas';
import { ConnectorType } from '@logto/schemas';
import { deduplicate } from '@silverhand/essentials';

View file

@ -1,4 +1,4 @@
import en from '@logto/phrases-ui/lib/locales/en/index.js';
import en from '@logto/phrases-journey/lib/locales/en/index.js';
import { type CustomPhrase, type SignInExperience } from '@logto/schemas';
import { pickDefault, createMockUtils } from '@logto/shared/esm';

View file

@ -1,5 +1,5 @@
import { languageTagGuard } from '@logto/language-kit';
import resource from '@logto/phrases-ui';
import resource from '@logto/phrases-journey';
import type { Translation } from '@logto/schemas';
import { CustomPhrases, translationGuard } from '@logto/schemas';
import cleanDeep from 'clean-deep';

View file

@ -1,4 +1,4 @@
import en from '@logto/phrases-ui/lib/locales/en/index.js';
import en from '@logto/phrases-journey/lib/locales/en/index.js';
import type { SignInExperience } from '@logto/schemas';
import { pickDefault } from '@logto/shared/esm';

View file

@ -1,4 +1,4 @@
import zhCN from '@logto/phrases-ui/lib/locales/zh-cn/index.js';
import zhCN from '@logto/phrases-journey/lib/locales/zh-cn/index.js';
import type { CustomPhrase, SignInExperience } from '@logto/schemas';
import { pickDefault, createMockUtils } from '@logto/shared/esm';

View file

@ -1,4 +1,4 @@
import { isBuiltInLanguageTag } from '@logto/phrases-ui';
import { isBuiltInLanguageTag } from '@logto/phrases-journey';
import { adminTenantId } from '@logto/schemas';
import { conditionalArray } from '@silverhand/essentials';
import { z } from 'zod';

View file

@ -1,5 +1,5 @@
import en from '@logto/phrases-ui/lib/locales/en/index.js';
import fr from '@logto/phrases-ui/lib/locales/fr/index.js';
import en from '@logto/phrases-journey/lib/locales/en/index.js';
import fr from '@logto/phrases-journey/lib/locales/fr/index.js';
import { isStrictlyPartial } from '#src/utils/translation.js';

View file

@ -1,3 +1,3 @@
# @logto/ui
# @logto/journey
The register / sign-in experience for end-users.

View file

@ -1,5 +1,5 @@
{
"name": "@logto/ui",
"name": "@logto/journey",
"version": "1.1.5",
"license": "MPL-2.0",
"type": "module",
@ -26,7 +26,7 @@
"@logto/core-kit": "workspace:^2.0.1",
"@logto/language-kit": "workspace:^1.0.0",
"@logto/phrases": "workspace:^1.4.1",
"@logto/phrases-ui": "workspace:^1.2.0",
"@logto/phrases-journey": "workspace:^1.2.0",
"@logto/schemas": "workspace:^1.6.0",
"@parcel/compressor-brotli": "2.9.3",
"@parcel/compressor-gzip": "2.9.3",

View file

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View file

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 592 B

View file

Before

Width:  |  Height:  |  Size: 939 B

After

Width:  |  Height:  |  Size: 939 B

View file

Before

Width:  |  Height:  |  Size: 977 B

After

Width:  |  Height:  |  Size: 977 B

View file

Before

Width:  |  Height:  |  Size: 959 B

After

Width:  |  Height:  |  Size: 959 B

View file

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 468 B

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 772 B

After

Width:  |  Height:  |  Size: 772 B

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View file

Before

Width:  |  Height:  |  Size: 541 B

After

Width:  |  Height:  |  Size: 541 B

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

View file

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

View file

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 823 B

After

Width:  |  Height:  |  Size: 823 B

View file

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 481 B

View file

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 587 B

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Some files were not shown because too many files have changed in this diff Show more