-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: thread pool * feat: remove yarnloack --------- Co-authored-by: yikai <[email protected]>
- Loading branch information
Showing
23 changed files
with
458 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 40 additions & 14 deletions
54
threadpool/console-new/src/components/layout-com/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
threadpool/console-new/src/config/i18n/locales/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export enum STR_MAP { | ||
DYNAMIC_THREAD_POOL = 'dynamicThreadPool', | ||
THREAD_POOL_MANAGE = 'threadPoolManage', | ||
PROJECT = 'project', | ||
SEARCH = 'search', | ||
ADD = 'add', | ||
SERIAL_NUMBER = 'serialNumber', | ||
TENANTRY = 'tenantry', | ||
THREAD_POOL = 'threadPool', | ||
CORE_THREAD = 'coreThread', | ||
MAXIMUM_THREAD = 'maximumThread', | ||
QUEUE_TYPE = 'queueType', | ||
QUEUE_CAPACITY = 'queueCapacity', | ||
REJECTION_STRATEGY = 'rejectionStrategy', | ||
EXECUTION_TIMEOUT = 'executionTimeout', | ||
ALARM_OR_NOT = 'alarmOrNot', | ||
CREATION_TIME = 'creationTime', | ||
UPDATE_TIME = 'update time', | ||
EDIT = 'edit', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
import { STR_MAP } from './constants'; | ||
|
||
const enTranslationMap: { [key: string]: string } = { | ||
hello: 'hello', | ||
[STR_MAP.DYNAMIC_THREAD_POOL]: 'Dynamic thread pool', | ||
[STR_MAP.THREAD_POOL_MANAGE]: 'Thread pool management', | ||
[STR_MAP.PROJECT]: 'project', | ||
[STR_MAP.SEARCH]: 'search', | ||
[STR_MAP.ADD]: 'add', | ||
[STR_MAP.SERIAL_NUMBER]: 'number', | ||
[STR_MAP.TENANTRY]: 'tenantry', | ||
[STR_MAP.THREAD_POOL]: 'thread pool', | ||
[STR_MAP.CORE_THREAD]: 'core thread', | ||
[STR_MAP.MAXIMUM_THREAD]: 'maximum thread', | ||
[STR_MAP.QUEUE_TYPE]: 'queue type', | ||
[STR_MAP.QUEUE_CAPACITY]: 'queue capacity', | ||
[STR_MAP.REJECTION_STRATEGY]: 'rejection strategy', | ||
[STR_MAP.EXECUTION_TIMEOUT]: 'execution timeout', | ||
[STR_MAP.ALARM_OR_NOT]: 'alarm or not', | ||
[STR_MAP.CREATION_TIME]: 'creation time', | ||
[STR_MAP.UPDATE_TIME]: 'update time', | ||
[STR_MAP.EDIT]: 'edit', | ||
}; | ||
|
||
export default enTranslationMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
import { STR_MAP } from './constants'; | ||
|
||
const zhTranslationMap: { [key: string]: string } = { | ||
hello: '你好', | ||
[STR_MAP.DYNAMIC_THREAD_POOL]: '动态线程池', | ||
[STR_MAP.THREAD_POOL_MANAGE]: '线程池管理', | ||
[STR_MAP.PROJECT]: '项目', | ||
[STR_MAP.SEARCH]: '搜索', | ||
[STR_MAP.ADD]: '添加', | ||
[STR_MAP.SERIAL_NUMBER]: '序号', | ||
[STR_MAP.TENANTRY]: '租户', | ||
[STR_MAP.THREAD_POOL]: '线程池', | ||
[STR_MAP.CORE_THREAD]: '核心线程', | ||
[STR_MAP.MAXIMUM_THREAD]: '最大线程', | ||
[STR_MAP.QUEUE_TYPE]: '队列类型', | ||
[STR_MAP.QUEUE_CAPACITY]: '队列容量', | ||
[STR_MAP.REJECTION_STRATEGY]: '拒绝策略', | ||
[STR_MAP.EXECUTION_TIMEOUT]: '执行超时', | ||
[STR_MAP.ALARM_OR_NOT]: '是否报警', | ||
[STR_MAP.CREATION_TIME]: '创建时间', | ||
[STR_MAP.UPDATE_TIME]: '更新时间', | ||
[STR_MAP.EDIT]: '操作', | ||
}; | ||
|
||
export default zhTranslationMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './useThemeMode'; | ||
export * from './useTransLate'; | ||
export * from './useFormToUrl'; |
Oops, something went wrong.