-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of ssh://gitlab.prod.dtstack.cn:10022/dt-insight-f…
…ront/infrastructure/molecule into feat/collapse
- Loading branch information
Showing
122 changed files
with
3,675 additions
and
3,479 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,35 +1,39 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true, | ||
env: { | ||
browser: true, | ||
es6: true, | ||
}, | ||
'extends': [ | ||
extends: [ | ||
'plugin:react/recommended', | ||
'google', | ||
'prettier', | ||
'prettier/react', | ||
], | ||
'globals': { | ||
'Atomics': 'readonly', | ||
'SharedArrayBuffer': 'readonly', | ||
'__DEVELOPMENT__': 'readonly', | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
__DEVELOPMENT__: 'readonly', | ||
}, | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'jsx': true, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
'ecmaVersion': 11, | ||
'sourceType': 'module', | ||
ecmaVersion: 11, | ||
sourceType: 'module', | ||
}, | ||
'plugins': [ | ||
'react', | ||
'@typescript-eslint', | ||
], | ||
'rules': { | ||
'indent': ['error', 4], | ||
plugins: ['react', '@typescript-eslint'], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
rules: { | ||
'object-curly-spacing': ['error', 'always'], | ||
'max-len': ['error', { 'ignoreComments': true }, { 'code': 180 }], | ||
'max-len': ['error', { ignoreComments: true }, { code: 180 }], | ||
'require-jsdoc': 0, | ||
'valid-jsdoc': 0, | ||
'no-unused-vars': 0, | ||
'no-invalid-this': 0, | ||
}, | ||
}; |
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,46 +1,47 @@ | ||
# Read more: https://docs.gitlab.com/12.7/ee/ci/yaml/README.html | ||
|
||
cache: | ||
paths: | ||
- .npm/ | ||
|
||
before_script: | ||
- npm ci --cache .npm --prefer-offline | ||
|
||
stages: | ||
- eslint | ||
- check-types | ||
- lint-docs | ||
- test | ||
- release | ||
|
||
static-check: | ||
stage: eslint | ||
script: | ||
- npm run eslint | ||
- npm run check-types | ||
only: | ||
- merge_requests | ||
- .yarn | ||
- node_modules/ | ||
|
||
before_script: | ||
- yarn install --cache-folder .yarn | ||
|
||
docs-check: | ||
stage: lint-docs | ||
script: | ||
- npm run lint-doc | ||
stages: | ||
- static-checking | ||
- type-checking | ||
# - test | ||
- build | ||
|
||
static-checking: | ||
stage: static-checking | ||
script: | ||
- yarn eslint | ||
- yarn prettier | ||
- yarn stylelint | ||
only: | ||
- /doc(s)|release|master/ | ||
- merge_requests | ||
- dev | ||
|
||
test: | ||
stage: test | ||
script: | ||
- npm run test | ||
type-checking: | ||
stage: type-checking | ||
script: | ||
- yarn check-types | ||
only: | ||
- merge_requests | ||
- dev | ||
- merge_requests | ||
- dev | ||
|
||
# test: | ||
# stage: test | ||
# script: | ||
# - yarn test | ||
# only: | ||
# - merge_requests | ||
# - dev | ||
|
||
release: | ||
stage: release | ||
script: | ||
- npm run release | ||
build: | ||
stage: build | ||
script: | ||
- yarn build | ||
only: | ||
- master | ||
|
||
- dev |
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 @@ | ||
# Ignore artifacts: | ||
dist | ||
.history | ||
node_modules | ||
yarn.lock | ||
coverage |
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 @@ | ||
{ | ||
"tabWidth": 4, | ||
"singleQuote": 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const path = require("path"); | ||
const path = require('path'); | ||
const { merge } = require('webpack-merge'); | ||
const baseConf = require('../build/webpack.base'); | ||
|
||
module.exports = { | ||
stories: ["../stories/**/*.stories.tsx"], | ||
addons: ["@storybook/addon-actions", "@storybook/addon-links"], | ||
webpackFinal: async (config) => { | ||
return merge(config, baseConf); | ||
}, | ||
stories: ['../stories/**/*.stories.tsx'], | ||
addons: ['@storybook/addon-actions', '@storybook/addon-links'], | ||
webpackFinal: async (config) => { | ||
return merge(config, baseConf); | ||
}, | ||
}; |
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,8 +1,8 @@ | ||
{ | ||
"extends": "stylelint-config-sass-guidelines", | ||
"rules": { | ||
"indentation": 4, | ||
"scss/dollar-variable-pattern": null, | ||
"max-nesting-depth": 4 | ||
} | ||
"extends": "stylelint-config-sass-guidelines", | ||
"rules": { | ||
"indentation": 4, | ||
"scss/dollar-variable-pattern": null, | ||
"max-nesting-depth": 4 | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Molecule Sample</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Molecule Sample</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Note | ||
|
||
- Workbench layout need more thinking | ||
- Optimize the load method of extension | ||
- Import IOC for manage services? |
Oops, something went wrong.