-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(installer): fix installer log can't auto scroll than 4170 line (#831
) Co-authored-by: Johnny Wu <[email protected]>
- Loading branch information
Showing
9 changed files
with
19,732 additions
and
6,274 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,39 +1,36 @@ | ||
{ | ||
"presets": ["react"], | ||
"plugins": ["transform-es3-member-expression-literals", "transform-es3-property-literals"], | ||
"presets": [ | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-member-expression-literals", | ||
"@babel/plugin-transform-property-literals" | ||
], | ||
"env": { | ||
"development": { | ||
"presets": [ | ||
[ | ||
"env", | ||
"@babel/preset-env", | ||
{ | ||
"loose": true, | ||
"modules": "commonjs", | ||
"exclude": [ | ||
"babel-plugin-transform-async-to-generator", | ||
"babel-plugin-transform-regenerator", | ||
"babel-plugin-transform-es2015-spread" | ||
"babel-plugin-transform-regenerator" | ||
] | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
[ | ||
"react-transform", | ||
{ | ||
"transforms": [ | ||
{ | ||
"transform": "react-transform-hmr", | ||
"imports": ["react"], | ||
"locals": ["module"] | ||
} | ||
] | ||
} | ||
"react-hot-loader/babel" | ||
] | ||
] | ||
}, | ||
"production": { | ||
"presets": ["es2015"] | ||
"presets": [ | ||
"@babel/preset-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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
stories: ['./stories/**/*.stories.@(js|jsx|ts|tsx|mdx)'], | ||
|
||
addons: ['@storybook/addon-links', '@storybook/addon-essentials'], | ||
|
||
webpackFinal: async (config, { configType }) => { | ||
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
|
||
// Make whatever fine-grained changes you need | ||
Object.assign(config.resolve.alias, { | ||
'@tea/app': path.resolve(__dirname, '../node_modules/@tencent/tea-app'), | ||
'@tea/app/*': path.resolve(__dirname, '../node_modules/@tencent/tea-app/lib/*'), | ||
'@tea/component': path.resolve(__dirname, '../node_modules/@tencent/tea-component/lib'), | ||
'@tea/component/*': path.resolve(__dirname, '../node_modules/@tencent/tea-component/lib/*'), | ||
'@tencent/ff-validator': path.resolve(__dirname, '../lib/ff-validator'), | ||
'@tencent/ff-validator/*': path.resolve(__dirname, '../lib/ff-validator/*'), | ||
'@tencent/ff-redux': path.resolve(__dirname, '../lib/ff-redux'), | ||
'@tencent/ff-redux/*': path.resolve(__dirname, '../lib/ff-redux/*'), | ||
'@tencent/ff-component': path.resolve(__dirname, '../lib/ff-component'), | ||
'@tencent/ff-component/*': path.resolve(__dirname, '../lib/ff-component/*') | ||
}); | ||
|
||
// Return the altered config | ||
return config; | ||
} | ||
}; |
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 @@ | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
} |
20 changes: 20 additions & 0 deletions
20
web/installer/.storybook/stories/CodeMirrorEditor.stories.tsx
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,20 @@ | ||
import React from 'react'; | ||
// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 | ||
import { Story, Meta } from '@storybook/react/types-6-0'; | ||
|
||
import { | ||
CodeMirrorEditor, | ||
CodeMirrorEditorProps | ||
} from '../../src/modules/common/components/codemirror/CodeMirrorEditor'; | ||
|
||
export default { | ||
title: 'Example/CodeMirrorEditor', | ||
component: CodeMirrorEditor, | ||
argTypes: { | ||
backgroundColor: { control: 'color' } | ||
} | ||
} as Meta; | ||
|
||
const Template: Story<CodeMirrorEditorProps> = args => <CodeMirrorEditor {...args} />; | ||
|
||
export const Default = Template.bind({}); |
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 @@ | ||
# installer部分开发说明 | ||
## 起手 | ||
1. `whistle`添加代理规则`/\/static\/js\/installer\.js$/ https://localhost:8088/js/app.js` | ||
2. `npm run common_pre`: 准备依赖 | ||
3. `npm run dev`: dev开发模式,前端经过`whistle`代理进行开发调试 | ||
|
||
## 组件开发调试 | ||
1. `npm run storybook`:自行参考`storybook`开发文档 |
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.