-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from nickcdon/main
✨ UI样式升级,支持规则工具信息展示
- Loading branch information
Showing
613 changed files
with
10,066 additions
and
27,345 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
.temp | ||
.cache | ||
dist |
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
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,42 @@ | ||
/** 平台类型 */ | ||
export enum ScmPlatformEnum { | ||
TGIT = 1, | ||
GIT_TENCENT, | ||
CODING, | ||
GITHUB, | ||
GITEE, | ||
GITLAB, | ||
OTHER, | ||
} | ||
|
||
export const SCM_PLATFORM_CHOICES = { | ||
[ScmPlatformEnum.TGIT]: '腾讯工蜂(OA)', | ||
[ScmPlatformEnum.GIT_TENCENT]: '腾讯工蜂', | ||
[ScmPlatformEnum.CODING]: 'Coding', | ||
[ScmPlatformEnum.GITHUB]: 'GitHub', | ||
[ScmPlatformEnum.GITEE]: 'Gitee', | ||
[ScmPlatformEnum.GITLAB]: 'GitLab', | ||
[ScmPlatformEnum.OTHER]: '其它平台', | ||
}; | ||
|
||
/** | ||
* 凭证类型 | ||
*/ | ||
export const AUTH_TYPE = { | ||
HTTP: 'password', | ||
SSH: 'ssh_token', | ||
OAUTH: 'oauth', | ||
}; | ||
|
||
export const AUTH_TYPE_TXT = { | ||
HTTP: '用户名 + 密码', | ||
SSH: 'SSH', | ||
OAUTH: 'OAuth', | ||
}; | ||
|
||
// 凭证映射,对应 api 返回的字段名 | ||
export const SCM_MAP = { | ||
[AUTH_TYPE.HTTP]: 'scm_account', | ||
[AUTH_TYPE.SSH]: 'scm_ssh', | ||
[AUTH_TYPE.OAUTH]: 'scm_oauth', | ||
}; |
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
File renamed without changes.
Oops, something went wrong.