-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ecd4b5
commit c215235
Showing
18 changed files
with
396 additions
and
21 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,32 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.1 on 2017-08-01 05:15 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('demos', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='demo', | ||
name='demo_base_url', | ||
field=models.URLField(default='permalink', max_length=100), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='demo', | ||
name='permalink', | ||
field=models.CharField(default='permalink', max_length=100), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name='demo', | ||
name='demo_url', | ||
field=models.URLField(), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.1 on 2017-08-01 05:07 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('web', '0002_team_year'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='team', | ||
name='team_type', | ||
field=models.CharField(choices=[('Team', 'Team'), ('GSoC Students, Mentors and Interns', 'GSoC Students, Mentors and Interns'), ('Contributors', 'Contributors')], max_length=50), | ||
), | ||
] |
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 +1 @@ | ||
|
||
export const TOGGLE_SHOW_QUEUE = "TOGGLE_SHOW_QUEUE"; |
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,14 @@ | ||
import * as types from "./actionTypes"; | ||
|
||
function toggleShowQueueSuccess(value) { | ||
return { type: types.TOGGLE_SHOW_QUEUE, value }; | ||
} | ||
|
||
export function toggleShowQueue(value) { | ||
return function(dispatch) { | ||
return new Promise((resolve, reject) => { | ||
dispatch(toggleShowQueueSuccess(value)); | ||
resolve("dispatch showQueue value change call"); | ||
}); | ||
}; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import { PropTypes } from "prop-types"; | ||
|
||
class DemoContainer extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
demo: this.props.demo, | ||
height: "auto" | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<main className="cv-project-demo-container"> | ||
<iframe | ||
className="cv-project-demo-iframe" | ||
src={this.state.demo.demo_url} | ||
height={this.state.height} | ||
/> | ||
</main> | ||
); | ||
} | ||
} | ||
|
||
DemoContainer.propTypes = { | ||
demo: PropTypes.object.isRequired | ||
}; | ||
|
||
export default DemoContainer; |
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
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 @@ | ||
export default { | ||
holder: [] | ||
sidebar: { | ||
showQueue: false | ||
} | ||
}; |
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,11 @@ | ||
import * as types from "../actions/actionTypes"; | ||
import initialState from "./initialState"; | ||
|
||
export default function sidebarReducer(state = initialState.sidebar, action) { | ||
switch (action.type) { | ||
case "TOGGLE_SHOW_QUEUE": | ||
return Object.assign({}, state, { showQueue: action.value }); | ||
default: | ||
return state; | ||
} | ||
} |
Oops, something went wrong.