Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade husky, add commitlint verification Additionally, upgrading prettier and npm-run-all * remove @types/node dependency * chore: add commitlint config * chore: upgrade webpack, webpack-dev-server, webpack-cli * chore: upgrade lodash * chore: upgrade shallowequal * chore: remove @types/shallowequal dependency, since it was unused * chore: upgrade webpack loaders, babel * chore: upgrade lerna * chore: upgrade jest * chore: upgrade runtime version of react * chore: enable strict-mode in docsite * remove autobind-decorator in favor of class-bind member semantics * chore: use suspense for loading examples * chore: pin the version of react to match what's in react-dom * chore: upgrade react-dom version * chore: remove less, replace with styled-components * chore: update redux * chore: upgrade typescript & tooling * chore: remove suspense from static site generation, as it uses SSR * chore: use gh-pages module to manage docsite deployment * chore: remove less file
- Loading branch information
1 parent
934efc8
commit b144696
Showing
53 changed files
with
4,906 additions
and
4,197 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 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] } |
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,3 +1,5 @@ | ||
declare var require: any | ||
|
||
import { Store } from 'redux' | ||
import matchesType from './utils/matchesType' | ||
import { | ||
|
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,3 +1,5 @@ | ||
declare var require: any | ||
|
||
import { | ||
Action, | ||
DragDropManager, | ||
|
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,3 +1,5 @@ | ||
declare var require: any | ||
|
||
import { | ||
BEGIN_DRAG, | ||
PUBLISH_DRAG_SOURCE, | ||
|
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,5 @@ | ||
declare var require: any | ||
|
||
import { | ||
BEGIN_DRAG, | ||
PUBLISH_DRAG_SOURCE, | ||
|
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,3 +1,5 @@ | ||
declare var require: any | ||
|
||
const intersection = require('lodash/intersection') | ||
|
||
export const NONE: string[] = [] | ||
|
6 changes: 0 additions & 6 deletions
6
packages/documentation/examples/00 Chessboard/Tutorial App/Board.less
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
14 changes: 4 additions & 10 deletions
14
packages/documentation/examples/00 Chessboard/Tutorial App/Game.ts
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
40 changes: 18 additions & 22 deletions
40
packages/documentation/examples/01 Dustbin/Single Target/index.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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import * as React from 'react' | ||
import Container from './Container' | ||
|
||
export default class DustbinSingleTarget extends React.PureComponent { | ||
public render() { | ||
return ( | ||
<div> | ||
<p> | ||
<b> | ||
<a href="https://github.com/react-dnd/react-dnd/tree/master/packages/documentation/examples/01%20Dustbin/Single%20Target"> | ||
Browse the Source | ||
</a> | ||
</b> | ||
</p> | ||
<p>This is the simplest example there is.</p> | ||
<p> | ||
Drag the boxes below and drop them into the dustbin. Note that it has | ||
a neutral, an active and a hovered state. The dragged item itself | ||
changes opacity while dragged. | ||
</p> | ||
<Container /> | ||
</div> | ||
) | ||
} | ||
} | ||
export default (React as any).memo(() => ( | ||
<div> | ||
<p> | ||
<b> | ||
<a href="https://github.com/react-dnd/react-dnd/tree/master/packages/documentation/examples/01%20Dustbin/Single%20Target"> | ||
Browse the Source | ||
</a> | ||
</b> | ||
</p> | ||
<p>This is the simplest example there is.</p> | ||
<p> | ||
Drag the boxes below and drop them into the dustbin. Note that it has a | ||
neutral, an active and a hovered state. The dragged item itself changes | ||
opacity while dragged. | ||
</p> | ||
<Container /> | ||
</div> | ||
)) |
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
Oops, something went wrong.