-
Notifications
You must be signed in to change notification settings - Fork 455
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
8,296 changed files
with
495,270 additions
and
403,556 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,15 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": false, | ||
"commit": false, | ||
"fixed": [["@ks-console/*"]], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "ksc-release-4.1", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"snapshot": { | ||
"useCalculatedVersion": true, | ||
"prereleaseTemplate": "{tag}.{datetime}" | ||
} | ||
} |
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 @@ | ||
node_modules | ||
|
||
.idea |
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,16 +1,16 @@ | ||
root = true | ||
|
||
[*.jsx?] | ||
charset = utf-8 | ||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
tab_width = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.yaml] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ node_modules/ | |
jest.config.js | ||
babel.config.js | ||
.eslintrc.js | ||
locales/ | ||
locales/ | ||
packages/*/lib/ |
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,116 +1,19 @@ | ||
/* | ||
* This file is part of KubeSphere Console. | ||
* Copyright (C) 2019 The KubeSphere Console Authors. | ||
* | ||
* KubeSphere Console is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* KubeSphere Console is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with KubeSphere Console. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// http://eslint.org/docs/user-guide/configuring | ||
const path = require('path'); | ||
|
||
const resolve = dir => path.resolve(__dirname, dir); | ||
|
||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
modules: true, | ||
}, | ||
project: ['./tsconfig.json'], | ||
}, | ||
env: { | ||
es6: true, | ||
commonjs: true, | ||
browser: true, | ||
jest: true, | ||
}, | ||
extends: ['airbnb-base', 'plugin:prettier/recommended'], | ||
// https://github.com/yannickcr/eslint-plugin-react | ||
plugins: ['react', 'babel', 'promise'], | ||
// check if imports actually resolve | ||
extends: ['kubesphere'], | ||
settings: { | ||
'import/resolver': { | ||
webpack: { | ||
config: 'scripts/webpack.base.js', | ||
config: resolve('packages/bootstrap/webpack/webpack.base.conf.js'), | ||
}, | ||
}, | ||
}, | ||
// add your custom rules here | ||
rules: { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'import/no-dynamic-require': 0, | ||
'import/no-cycle': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | ||
'global-require': 0, | ||
'no-console': ["error", { allow: ["warn", "error"] }], | ||
'dot-notation': 0, | ||
'no-underscore-dangle': 0, | ||
'no-param-reassign': 0, | ||
'no-unused-expressions': 0, | ||
'no-mixed-operators': 0, | ||
'no-return-await': 0, | ||
'no-restricted-syntax': 0, | ||
'no-await-in-loop': 0, | ||
'no-restricted-globals': 0, | ||
'no-empty': [ | ||
2, | ||
{ | ||
allowEmptyCatch: true, | ||
}, | ||
], | ||
camelcase: 0, | ||
'max-len': [ | ||
1, | ||
{ | ||
code: 100, | ||
tabWidth: 2, | ||
ignoreUrls: true, | ||
ignoreComments: true, | ||
ignoreRegExpLiterals: true, | ||
ignoreTrailingComments: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
ignorePattern: | ||
"^(\\s*[a-zA-Z_]+: '[^']+'[,;]*)|(.*require.*)$", | ||
}, | ||
], | ||
'import/prefer-default-export': 0, | ||
'no-eval': 0, | ||
'no-plusplus': 0, | ||
'func-names': 0, | ||
'consistent-return': 0, | ||
'react/jsx-uses-react': 2, | ||
'react/jsx-uses-vars': 2, | ||
'class-methods-use-this': 0, | ||
'no-nested-ternary': 0, | ||
'no-use-before-define': 0, | ||
'prefer-destructuring': 0, | ||
'max-classes-per-file': 0, | ||
'prefer-promise-reject-errors': 0, | ||
}, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
legacyDecorators: true | ||
} | ||
}, | ||
globals: { | ||
t: true, | ||
globals: true, | ||
request: 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
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,25 +1,52 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/dist | ||
|
||
# misc | ||
# macOS | ||
.DS_Store | ||
|
||
# JetBrains | ||
.idea/ | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
## Local History for Visual Studio Code | ||
.history/ | ||
|
||
# Node.js | ||
**/node_modules/ | ||
|
||
# Yarn | ||
.yarn/* | ||
!.yarn/releases | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
.idea/ | ||
# Config | ||
configs/local_config.yaml | ||
|
||
# TypeScript | ||
*.tsbuildinfo | ||
|
||
# local config | ||
/server/local_config.yaml | ||
# Testing | ||
coverage/ | ||
|
||
# Production | ||
**/dist/ | ||
**/cjs/ | ||
**/esm/ | ||
packages/*/lib/ | ||
|
||
# Cache | ||
*.rdb | ||
.cache-loader | ||
|
||
# Misc | ||
bin/ |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run pre-commit |
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,54 @@ | ||
# Please refer to the LICENSE file in the root directory of the project. | ||
# https://github.com/kubesphere/kubesphere/blob/master/LICENSE | ||
|
||
header: | ||
license: | ||
spdx-id: KubeSphere | ||
copyright-owner: KubeSphere Authors | ||
content: | | ||
Please refer to the LICENSE file in the root directory of the project. | ||
https://github.com/kubesphere/console/blob/master/LICENSE | ||
paths: | ||
- 'cypress/**' | ||
- 'jest/**' | ||
- 'locales/**' | ||
- 'packages/**' | ||
- 'scripts/**' | ||
- 'server/**' | ||
|
||
paths-ignore: | ||
- '.DS_Store' | ||
- '.idea/**' | ||
- '.vscode/**' | ||
- '.history/**' | ||
- '**/node_modules/**' | ||
- '**/.yarn/**' | ||
- 'configs/local_config.yaml' | ||
- '**/*.tsbuildinfo' | ||
- '**/coverage/**' | ||
- '**/dist/**' | ||
- '**/cjs/**' | ||
- '**/esm/**' | ||
- '**/v3dist/**' | ||
- 'packages/*/lib/**' | ||
- 'packages/bootstrap/assets/**' | ||
- 'packages/bootstrap/extension/templates/**' | ||
- 'extensions/**' | ||
- 'server/sample/**' | ||
- 'server/locales/*.properties' | ||
- 'bin/**' | ||
- '.github/**' | ||
- '**/*.md' | ||
- '**/*.json' | ||
- '**/*.sh' | ||
- '**/*.svg' | ||
- '**/*.html' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- 'LICENSE' | ||
- 'OWNERS' | ||
- 'Makefile' | ||
|
||
comment: on-failure | ||
license-location-threshold: 80 |
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,4 @@ | ||
.vscode | ||
build | ||
hack | ||
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 @@ | ||
16 |
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,14 @@ | ||
node_modules | ||
.git/ | ||
.history/ | ||
**/node_modules/ | ||
**/dist/ | ||
**/v3dist/ | ||
**/*.tsbuildinfo | ||
packages/*/lib/ | ||
packages/*/esm/ | ||
packages/*/cjs/ | ||
yarn.lock | ||
package-lock.json | ||
package-lock.json | ||
|
||
# system.min.js | ||
**/*.min.js |
Oops, something went wrong.