Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1e206f

Browse files
committed
refactor root into SidePanel
1 parent29f06ed commitd1e206f

File tree

46 files changed

+118
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+118
-112
lines changed

‎lib/components/Alert/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var Alert = (function (_super) {
3939
react_redux_1.connect(function(state){return({
4040
alert:state.alert,
4141
});},function(dispatch){return({
42-
close:function(){returndispatch(actions_1.alertClose());},
42+
close:function(){dispatch(actions_1.alertClose());},
4343
});}),
4444
__metadata('design:paramtypes',[])
4545
],Alert);

‎lib/components/AppMenu/CloseWindow.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var CloseWindow = (function (_super) {
2828
};
2929
CloseWindow=__decorate([
3030
react_redux_1.connect(null,function(dispatch){return({
31-
windowToggle:function(){returndispatch(actions_1.windowToggle());},
31+
windowToggle:function(){dispatch(actions_1.windowToggle());},
3232
});}),
3333
__metadata('design:paramtypes',[])
3434
],CloseWindow);

‎lib/components/AppMenu/MenuLink/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var MenuLink = (function (_super) {
3232
};
3333
MenuLink=__decorate([
3434
react_redux_1.connect(null,function(dispatch){return({
35-
routeTo:function(route){returndispatch(actions_1.routeSet(route));},
35+
routeTo:function(route){dispatch(actions_1.routeSet(route));},
3636
});}),
3737
__metadata('design:paramtypes',[])
3838
],MenuLink);

‎lib/components/Common/RouteButton.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var RouteButton = (function (_super) {
2828
};
2929
RouteButton=__decorate([
3030
react_redux_1.connect(null,function(dispatch){return({
31-
routeTo:function(route){returndispatch(actions_1.routeSet(route));},
31+
routeTo:function(route){dispatch(actions_1.routeSet(route));},
3232
});}),
3333
__metadata('design:paramtypes',[])
3434
],RouteButton);

‎lib/components/Page/Hints/HintButton.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var HintButton = (function (_super) {
3737
hintPosition:state.hintPosition,
3838
hintsLength:selectors_1.hintsSelector(state).length,
3939
});},function(dispatch){return({
40-
hintSet:function(position){returndispatch(actions_1.hintPositionSet(position));},
40+
hintSet:function(position){dispatch(actions_1.hintPositionSet(position));},
4141
});}),
4242
__metadata('design:paramtypes',[])
4343
],HintButton);

‎lib/components/Page/PageToolbar/Continue/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var Continue = (function (_super) {
3434
};
3535
Continue=__decorate([
3636
react_redux_1.connect(null,function(dispatch){return({
37-
callNextPage:function(){returndispatch(actions_1.pageNext());}
37+
callNextPage:function(){dispatch(actions_1.pageNext());},
3838
});}),
3939
__metadata('design:paramtypes',[])
4040
],Continue);

‎lib/components/Page/PageToolbar/Save/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var Save = (function (_super) {
3434
};
3535
Save=__decorate([
3636
react_redux_1.connect(null,function(dispatch){return({
37-
save:function(){returndispatch(actions_1.editorSave());},
37+
save:function(){dispatch(actions_1.editorSave());},
3838
});}),
3939
__metadata('design:paramtypes',[])
4040
],Save);

‎lib/components/Page/PageToolbar/ToggleDevTools/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var ToggleDevTools = (function (_super) {
3333
;
3434
ToggleDevTools=__decorate([
3535
react_redux_1.connect(null,function(dispatch){return({
36-
toggle:function(){returndispatch(actions_1.editorDevToolsToggle());},
36+
toggle:function(){dispatch(actions_1.editorDevToolsToggle());},
3737
});}),
3838
__metadata('design:paramtypes',[])
3939
],ToggleDevTools);

‎lib/components/Progress/index.js‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ var Progress = (function (_super) {
4646
pagePosition:state.pagePosition,
4747
info:state.tutorial.info,
4848
tutorial:state.tutorial
49-
});},function(dispatch){
50-
return{
51-
progressLoad:function(){returndispatch(actions_1.progressLoad());}
52-
};
53-
}),
49+
});},function(dispatch){return({
50+
progressLoad:function(){dispatch(actions_1.progressLoad());}
51+
});}),
5452
__metadata('design:paramtypes',[])
5553
],Progress);
5654
returnProgress;

‎lib/components/App.js‎renamed to ‎lib/components/SidePanel/SidePanel.js‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
1515
};
1616
varReact=require('react');
1717
varreact_redux_1=require('react-redux');
18-
varindex_1=require('./index');
19-
varRoutes_1=require('./Routes');
18+
varindex_1=require('../index');
19+
varRoutes_1=require('../Routes');
2020
varDrawer_1=require('material-ui/Drawer');
21-
varApp=(function(_super){
22-
__extends(App,_super);
23-
functionApp(){
21+
varSidePanel=(function(_super){
22+
__extends(SidePanel,_super);
23+
functionSidePanel(){
2424
_super.apply(this,arguments);
2525
}
26-
App.prototype.render=function(){
26+
SidePanel.prototype.render=function(){
2727
varwindowToggle=this.props.windowToggle;
2828
return(React.createElement("section",null,React.createElement(Drawer_1.default,{width:400,openSecondary:true,open:windowToggle},React.createElement("div",{className:'cr-bg'},React.createElement(index_1.AppMenu,null),React.createElement(Routes_1.default,null))),React.createElement(index_1.Alert,null)));
2929
};
30-
App=__decorate([
30+
SidePanel=__decorate([
3131
react_redux_1.connect(function(state){return({
3232
windowToggle:state.windowToggle,
3333
});}),
3434
__metadata('design:paramtypes',[])
35-
],App);
36-
returnApp;
35+
],SidePanel);
36+
returnSidePanel;
3737
}(React.Component));
3838
Object.defineProperty(exports,"__esModule",{value:true});
39-
exports.default=App;
39+
exports.default=SidePanel;
4040
;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp