-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
3,685 additions
and
883 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
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
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 was deleted.
Oops, something went wrong.
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,25 +1,11 @@ | ||
# .bk.production.env 生产模式生效 | ||
|
||
# 网站前缀 | ||
BK_SITE_URL = '{{ SITE_URL }}' | ||
# 登录地址 | ||
BK_LOGIN_URL = '{{ BK_LOGIN_URL }}' | ||
|
||
# 静态资源路径 | ||
BK_STATIC_URL = '{{ BK_STATIC_URL }}' | ||
|
||
# 当前应用的环境,预发布环境为 stag,正式环境为 prod | ||
BK_PAAS_ENVIRONMENT = '{{ BKPAAS_ENVIRONMENT }}' | ||
|
||
# EngineApp名称,拼接规则:bkapp-{appcode}-{BKPAAS_ENVIRONMENT} | ||
BK_PAAS_ENGINE_APP_NAME = '{{ BKPAAS_ENGINE_APP_NAME }}' | ||
|
||
# 内部版对应ieod,外部版对应tencent,混合云版对应clouds | ||
BK_PAAS_ENGINE_REGION = '{{ BKPAAS_ENGINE_REGION }}' | ||
BK_AJAX_BASE_URL = '{{ AJAX_BASE_URL }}' | ||
|
||
# APP ID | ||
BK_PAAS_APP_ID = '{{ BKPAAS_APP_ID }}' | ||
|
||
# APP SECRET | ||
BK_PAAS_APP_SECRET = '{{ BKPAAS_APP_SECRET }}' | ||
|
||
# 登录地址 | ||
BK_LOGIN_URL = '{{ BK_LOGIN_URL }}' | ||
BK_CSRF_COOKIE_NAME = '{{ CSRF_COOKIE_NAME }}' |
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,9 +1,22 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['@blueking/eslint-config-bk/tsvue3'], | ||
plugins: [ | ||
'simple-import-sort', | ||
], | ||
rules: { | ||
'simple-import-sort/imports': ['error', { | ||
groups: [ | ||
['^[a-zA-Z]'], | ||
['^@\\w'], | ||
['^\\.\\.'], | ||
['^\\.'], | ||
], | ||
}], | ||
'no-param-reassign': 'off', | ||
}, | ||
parserOptions: { | ||
project: [ | ||
'./tsconfig.json', | ||
], | ||
project: 'tsconfig.eslint.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -74,3 +74,5 @@ test/unit/coverage | |
*.njsproj | ||
*.sln | ||
dist/ | ||
|
||
.bk.local.env |
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 +1,3 @@ | ||
node_modules/ | ||
dist | ||
static/ |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="icon" href="{{ BK_STATIC_URL }}/images/favicon.png" type="image/x-icon" /> | ||
<link rel="shortcut icon" href="{{ BK_STATIC_URL }}/images/favicon.png" type="image/x-icon" /> | ||
<link rel="icon" href="<%= process.env.BK_STATIC_URL %>/images/logo.ico" type="image/x-icon" /> | ||
<link rel="shortcut icon" href="<%= process.env.BK_STATIC_URL %>/images/logo.ico" type="image/x-icon" /> | ||
<meta charset="utf-8"> | ||
<title> {{ TITLE }} </title> | ||
</head> | ||
<body> | ||
<div class="app"></div> | ||
<script> | ||
// 登录页面 | ||
window.BK_LOGIN_URL = '{{ BK_LOGIN_URL }}' | ||
window.BK_LOGIN_URL = '<%= process.env.BK_LOGIN_URL %>'; | ||
// 开发环境域名 | ||
window.AJAX_BASE_URL = '{{ AJAX_BASE_URL }}' | ||
window.AJAX_BASE_URL = '<%= process.env.BK_AJAX_BASE_URL %>'; | ||
// 静态资源路径 | ||
window.BK_STATIC_URL = '{{ BK_STATIC_URL }}' | ||
window.CSRF_COOKIE_NAME = '{{ CSRF_COOKIE_NAME }}' | ||
window.BK_STATIC_URL = '<%= process.env.BK_STATIC_URL %>'; | ||
window.CSRF_COOKIE_NAME = '<%= process.env.BK_CSRF_COOKIE_NAME %>'; | ||
</script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.