Skip to content

Commit

Permalink
init bkmonitor-event-datasource
Browse files Browse the repository at this point in the history
Signed-off-by: unique0lai <11598235+unique0lai@users.noreply.github.com>
  • Loading branch information
unique0lai committed Oct 27, 2022
1 parent 1093300 commit 11edf6c
Show file tree
Hide file tree
Showing 50 changed files with 20,455 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bkmonitor-event-datasource/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# webpack/*
dist/*
node_module/*
babel.config.js
.eslintrc.js
.stylelintrc.js
74 changes: 74 additions & 0 deletions bkmonitor-event-datasource/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
ecmaFeatures: {
globalReturn: false,
impliedStrict: false,
jsx: true
}
},
env: {
browser: true,
es6: true,
node: true
},
extends: ['eslint-config-tencent', 'eslint-config-tencent/ts', 'plugin:json/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
NODE_ENV: true,
SITE_URL: true,
__webpack_public_path__: true
},
plugins: ['react', 'codecc'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'codecc/comment-ratio': ['error', 10],
'codecc/license': [
'error',
{
license: `/*
* Tencent is pleased to support the open source community by making
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
*
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
*
* ---------------------------------------------------
* 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.
*/\n`,
pattern: '.*Tencent is pleased to support the open source community.+'
}
]
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-member-accessibility': 'off'
}
}
]
};
75 changes: 75 additions & 0 deletions bkmonitor-event-datasource/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
webpack-stats.json

webpack_cache/

test/unit/coverage

*.bak*

# Editor directories and files
.DS_Store
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
webpack_cache/

dist/

7 changes: 7 additions & 0 deletions bkmonitor-event-datasource/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
.github
.vscode
node_modules
webpack_cache
dist
grafana_build
9 changes: 9 additions & 0 deletions bkmonitor-event-datasource/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
singleQuote: true,
printWidth: 120,
tabWidth: 2,
useTabs: false,
quoteProps: 'as-needed',
trailingComma: 'none',
arrowParens: 'always'
};
8 changes: 8 additions & 0 deletions bkmonitor-event-datasource/.stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.min.css

*.js
*.ts
*.tsx
*.jpg
*.woff
dist
7 changes: 7 additions & 0 deletions bkmonitor-event-datasource/.stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: '@blueking/stylelint-config',
rules: {
'declaration-no-important': null,
'order/order': null
}
};
1 change: 1 addition & 0 deletions bkmonitor-event-datasource/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## 蓝鲸监控-事件数据 datasource 插件
14 changes: 14 additions & 0 deletions bkmonitor-event-datasource/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/react'],
plugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css'
}
]
],
retainLines: true
};
Loading

0 comments on commit 11edf6c

Please sign in to comment.