Skip to content

Commit

Permalink
Add all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed May 17, 2015
1 parent 056989c commit 4a3c08f
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -50,9 +50,9 @@
"babel-eslint": "^3.1.1",
"babel-loader": "^5.0.0",
"css-loader": "^0.9.1",
"extract-text-webpack-plugin": "^0.3.8",
"eslint": "^0.20.0",
"faker": "2.1.2",
"extract-text-webpack-plugin": "^0.3.8",
"faker": "^2.1.3",
"file-loader": "^0.8.1",
"glob": "^4.3.5",
"html-loader": "^0.2.3",
Expand Down
64 changes: 62 additions & 2 deletions site/Constants.js
Expand Up @@ -6,11 +6,71 @@ export const Pages = {
};

export const ExamplePages = [{
title: 'Passing Data',
title: 'Dustbin',
pages: {
DUSTBIN_SIMPLE: {
location: 'examples-dustbin-simple.html',
title: 'Single Drop Target'
title: 'Single Target'
},
DUSTBIN_INTERESTING: {
location: 'examples-dustbin-interesting.html',
title: 'Multiple Targets'
},
DUSTBIN_STRESS: {
location: 'examples-dustbin-stress.html',
title: 'Stress Test'
}
}
}, {
title: 'Drag Around',
pages: {
DRAG_AROUND_NAIVE: {
location: 'examples-drag-around-naive.html',
title: 'Naïve'
},
DRAG_AROUND_CUSTOM: {
location: 'examples-drag-around-custom.html',
title: 'Custom Drag Layer'
}
}
}, {
title: 'Nesting',
pages: {
NESTING_SOURCES: {
location: 'examples-nesting-sources.html',
title: 'Drag Sources'
},
NESTING_TARGETS: {
location: 'examples-nesting-targets.html',
title: 'Drop Targets'
}
}
}, {
title: 'Sortable',
pages: {
SORTABLE_SIMPLE: {
location: 'examples-sortable-simple.html',
title: 'Simple'
},
SORTABLE_CANCELABLE: {
location: 'examples-sortable-cancelable.html',
title: 'Cancel on Drop Outside'
},
SORTABLE_STRESS: {
location: 'examples-sortable-stress.html',
title: 'Stress Test'
}
}
}, {
title: 'Customization',
pages: {
CUSTOMIZE_HANDLES: {
location: 'examples-customize-handles.html',
title: 'Handles and Previews'
},
CUSTOMIZE_EFFECTS: {
location: 'examples-customize-effects.html',
title: 'Drop Effects'
}
}
}];
Expand Down
13 changes: 12 additions & 1 deletion site/IndexPage.js
Expand Up @@ -22,7 +22,18 @@ const APIDocs = {
};

const Examples = {
DUSTBIN_SIMPLE: require('../examples/_dustbin-simple')
DUSTBIN_SIMPLE: require('../examples/_dustbin-simple'),
DUSTBIN_INTERESTING: require('../examples/_dustbin-interesting'),
DUSTBIN_STRESS: require('../examples/_dustbin-stress'),
DRAG_AROUND_NAIVE: require('../examples/_drag-around-naive'),
DRAG_AROUND_CUSTOM: require('../examples/_drag-around-custom'),
NESTING_SOURCES: require('../examples/_nesting-sources'),
NESTING_TARGETS: require('../examples/_nesting-targets'),
SORTABLE_SIMPLE: require('../examples/_sortable-simple'),
SORTABLE_CANCELABLE: require('../examples/_sortable-cancelable'),
SORTABLE_STRESS: require('../examples/_sortable-stress'),
CUSTOMIZE_HANDLES: require('../examples/_customize-handles'),
CUSTOMIZE_EFFECTS: require('../examples/_customize-effects')
};

export default class IndexPage extends Component {
Expand Down
3 changes: 2 additions & 1 deletion site/webpack-prerender.config.js
Expand Up @@ -26,7 +26,8 @@ module.exports = {
},
{
test: /\.js$/,
loader: 'babel-loader'
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /\.css$/,
Expand Down

0 comments on commit 4a3c08f

Please sign in to comment.