-
Notifications
You must be signed in to change notification settings - Fork 2
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
liangling
committed
Sep 21, 2023
1 parent
610d2c9
commit 1d113c2
Showing
145 changed files
with
37,766 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,8 @@ | ||
node_modules | ||
/lib | ||
/dev | ||
/docs | ||
/plugins | ||
/src/__tests__/demos | ||
/*.js | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making | ||
* 蓝鲸智云PaaS平台 (BlueKing PaaS) available. | ||
* | ||
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* 蓝鲸智云PaaS平台 (BlueKing PaaS) is licensed under the MIT License. | ||
* | ||
* License for 蓝鲸智云PaaS平台 (BlueKing PaaS): | ||
* | ||
* --------------------------------------------------- | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation | ||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and | ||
* to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of | ||
* the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO | ||
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | ||
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
* IN THE SOFTWARE. | ||
*/ | ||
const { createEslint } = require('./create-eslint.cjs'); | ||
|
||
module.exports = createEslint(__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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
## Git Commit Message Convention | ||
|
||
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). | ||
#### TL;DR: | ||
|
||
Messages must be matched by the following regex: | ||
|
||
``` js | ||
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/ | ||
``` | ||
|
||
#### Examples | ||
|
||
Appears under "Features" header, `compiler` subheader: | ||
|
||
``` | ||
feat(compiler): add 'comments' option | ||
``` | ||
|
||
Appears under "Bug Fixes" header, `v-model` subheader, with a link to issue #28: | ||
|
||
``` | ||
fix(v-model): handle events on blur | ||
close #28 | ||
``` | ||
|
||
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: | ||
|
||
``` | ||
perf(core): improve vdom diffing by removing 'foo' option | ||
BREAKING CHANGE: The 'foo' option has been removed. | ||
``` | ||
|
||
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. | ||
|
||
``` | ||
revert: feat(compiler): add 'comments' option | ||
This reverts commit 667ecc1654a317a13331b17617d973392f415f02. | ||
``` | ||
|
||
### Full Message Format | ||
|
||
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: | ||
|
||
``` | ||
<type>(<scope>): <subject> | ||
<BLANK LINE> | ||
<body> | ||
<BLANK LINE> | ||
<footer> | ||
``` | ||
|
||
The **header** is mandatory and the **scope** of the header is optional. | ||
|
||
### Revert | ||
|
||
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body, it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted. | ||
|
||
### Type | ||
|
||
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However, if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog. | ||
|
||
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks. | ||
|
||
### Scope | ||
|
||
The scope could be anything specifying the place of the commit change. For example `core`, `compiler`, `ssr`, `v-model`, `transition` etc... | ||
|
||
### Subject | ||
|
||
The subject contains a succinct description of the change: | ||
|
||
* use the imperative, present tense: "change" not "changed" nor "changes" | ||
* don't capitalize the first letter | ||
* no dot (.) at the end | ||
|
||
### Body | ||
|
||
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes". | ||
The body should include the motivation for the change and contrast this with previous behavior. | ||
|
||
### Footer | ||
|
||
The footer should contain any information about **Breaking Changes** and is also the place to | ||
reference GitHub issues that this commit **Closes**. | ||
|
||
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this. |
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,21 @@ | ||
node_modules/ | ||
.DS_Store | ||
/dist/ | ||
/typings/ | ||
|
||
# editor config | ||
.idea | ||
*.iml | ||
*.swp | ||
*.swo | ||
.history | ||
.codecc | ||
# istanbul | ||
coverage | ||
|
||
# Logs | ||
logs | ||
*.log | ||
# eslint | ||
.eslintcache | ||
.vscode |
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,10 @@ | ||
.git | ||
.github | ||
.vscode | ||
dist/ | ||
node_modules | ||
.history | ||
.codecc | ||
.eslintcache | ||
.prettierignore | ||
pnpm-lock.yaml |
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,16 @@ | ||
module.exports = { | ||
semi: true, | ||
quoteProps: 'as-needed', | ||
jsxSingleQuote: true, | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 2, | ||
useTabs: false, | ||
quoteProps: 'as-needed', | ||
trailingComma: 'all', | ||
arrowParens: 'always', | ||
bracketSameLine: false, | ||
arrowParens: 'avoid', | ||
vueIndentScriptAndStyle: false, | ||
singleAttributePerLine: true | ||
}; |
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,6 @@ | ||
*.min.css | ||
|
||
*.js | ||
*.jpg | ||
*.woff | ||
|
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,71 @@ | ||
module.exports = { | ||
plugins: [ | ||
'stylelint-scss', | ||
'stylelint-order' | ||
], | ||
extends: [ | ||
'stylelint-config-recommended-vue', | ||
'stylelint-config-recess-order' | ||
], | ||
rules: { | ||
// Base rules | ||
indentation: 2, | ||
'number-leading-zero': 'never', | ||
'string-quotes': 'single', | ||
'selector-max-id': 3, | ||
'selector-list-comma-newline-after': 'always', | ||
'comment-empty-line-before': [ | ||
'always', | ||
{ except: ['first-nested'] } | ||
], | ||
'block-opening-brace-space-before': 'always', | ||
'declaration-colon-space-after': 'always', | ||
'declaration-colon-space-before': 'never', | ||
'declaration-block-single-line-max-declarations': 1, | ||
// Sass rules | ||
'max-nesting-depth': 10, | ||
'scss/dollar-variable-pattern': '^_?[a-z]+[\\w-]*$', | ||
'scss/at-extend-no-missing-placeholder': true, | ||
'order/order': [ | ||
'declarations', | ||
{ type: 'at-rule' }, | ||
{ type: 'at-rule', hasBlock: true }, | ||
'rules' | ||
], | ||
|
||
// 不要使用已被 autoprefixer 支持的浏览器前缀 | ||
'media-feature-name-no-vendor-prefix': true, | ||
'at-rule-no-unknown': [true, { | ||
ignoreAtRules: ['/.*/'] | ||
}], | ||
'at-rule-no-vendor-prefix': true, | ||
'selector-no-vendor-prefix': true, | ||
'property-no-vendor-prefix': true, | ||
'value-no-vendor-prefix': true, | ||
// 颜色值要小写 | ||
'color-hex-case': 'lower', | ||
// 颜色值能短则短 | ||
'color-hex-length': 'short', | ||
// 不能用important | ||
'declaration-no-important': true, | ||
// 去掉多个import、extends、父子声明之间的空行 --开始 | ||
'rule-empty-line-before': ['always', { | ||
except: ['first-nested'], | ||
ignore: ['after-comment'] | ||
}], | ||
'at-rule-empty-line-before': ['always', { | ||
except: ['first-nested', 'blockless-after-blockless'], | ||
ignore: ['after-comment'] | ||
}] | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.scss', '*.css', './**/*.scss'], | ||
customSyntax: 'postcss-scss' | ||
}, | ||
{ | ||
files: ['*.vue', './**/*.vue'], | ||
customSyntax: 'postcss-html' | ||
} | ||
] | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 腾讯蓝鲸 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,25 @@ | ||
version: v2.0 | ||
|
||
stages: | ||
- name: "stage1" | ||
jobs: | ||
job1: | ||
runs-on: | ||
pool-name: docker-on-devcloud #docker-on-devcloud、docker、local、agentless | ||
container: | ||
image: mirrors.tencent.com/ci/tlinux3_ci:2.1.0 | ||
needs: | ||
jdk: "1.8.0_161" | ||
steps: | ||
- uses: syncLocalCode@latest | ||
name: 同步文件到云端插件 | ||
with: | ||
syncGitRepository: true | ||
- uses: CodeccCheckAtomDebug@4.* | ||
name: 腾讯代码分析 | ||
with: | ||
beAutoLang: true | ||
# languages: # 工程语言, 可取值:"C_CPP", "JAVA", "C_SHARP", "JS", "OC", "PYTHON", "PHP", "RUBY", "GOLANG", "SWIFT", "TYPESCRIPT", "KOTLIN", "LUA", "OTHERS" | ||
# - "JAVA" | ||
checkerSetType: "openScan" #openScan对应按开源治理要求配置规则集,epcScan对应按PCG EPC要求配置,normal对应自主配置规则集 | ||
toolScanType: "0" # 扫描方式。0是全量扫描,1是增量扫描。 |
Oops, something went wrong.