-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🆙 upgrade rc-trigger and remove polyfill * 🔧 use father over rc-tools * ✅ fix test cases * 🚮 remove prop-types and findDOMNode * ✅ improve eslint rules
- Loading branch information
Showing
32 changed files
with
206 additions
and
322 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,37 @@ | ||
version: 2 | ||
jobs: | ||
lint: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
- run: npm run lint | ||
test: | ||
docker: | ||
- image: circleci/node:latest | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
- run: npm test -- --coverage | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- lint | ||
- test |
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 @@ | ||
module.exports= require('@umijs/fabric/dist/eslint'); |
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 @@ | ||
export default { | ||
cjs: 'babel', | ||
esm: { type: 'babel', importLibToEs: true }, | ||
preCommit: { | ||
eslint: true, | ||
prettier: 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
Empty file.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import 'rc-time-picker/assets/index.less'; | ||
import '../assets/index.less'; | ||
import React from 'react'; | ||
import ReactDom from 'react-dom'; | ||
import moment from 'moment'; | ||
import TimePicker from 'rc-time-picker'; | ||
import TimePicker from '..'; | ||
|
||
ReactDom.render( | ||
<div> | ||
const App = () => ( | ||
<> | ||
<TimePicker defaultValue={moment()} showHour={false} /> | ||
<TimePicker defaultValue={moment()} showMinute={false} /> | ||
<TimePicker defaultValue={moment()} showSecond={false} /> | ||
|
||
<TimePicker defaultValue={moment()} showMinute={false} showSecond={false} /> | ||
<TimePicker defaultValue={moment()} showHour={false} showSecond={false}/> | ||
<TimePicker defaultValue={moment()} showHour={false} showSecond={false} /> | ||
<TimePicker defaultValue={moment()} showHour={false} showMinute={false} /> | ||
</div> | ||
, document.getElementById('__react-content')); | ||
</> | ||
); | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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,29 +1,24 @@ | ||
/* eslint no-console:0 */ | ||
|
||
import 'rc-time-picker/assets/index.less'; | ||
|
||
import '../assets/index.less'; | ||
import React from 'react'; | ||
import ReactDom from 'react-dom'; | ||
|
||
import moment from 'moment'; | ||
|
||
import TimePicker from 'rc-time-picker'; | ||
import TimePicker from '..'; | ||
|
||
const showSecond = true; | ||
const str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | ||
|
||
|
||
function onChange(value) { | ||
console.log(value && value.format(str)); | ||
} | ||
|
||
ReactDom.render( | ||
const App = () => ( | ||
<TimePicker | ||
style={{ width: 100 }} | ||
showSecond={showSecond} | ||
defaultValue={moment()} | ||
className="xxx" | ||
onChange={onChange} | ||
/>, | ||
document.getElementById('__react-content') | ||
/> | ||
); | ||
|
||
export default App; |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import 'rc-time-picker/assets/index.less'; | ||
|
||
import '../assets/index.less'; | ||
import React from 'react'; | ||
import ReactDom from 'react-dom'; | ||
import moment from 'moment'; | ||
import TimePicker from 'rc-time-picker'; | ||
import TimePicker from '..'; | ||
|
||
const App = () => <TimePicker defaultValue={moment()} showSecond={false} minuteStep={15} />; | ||
|
||
ReactDom.render( | ||
<TimePicker defaultValue={moment()} showSecond={false} minuteStep={15} /> | ||
, document.getElementById('__react-content')); | ||
export default App; |
Oops, something went wrong.
d708d84
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: