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
import React, { Component } from "react"; | |
import { Link, Redirect } from "react-router-dom"; | |
import SweetAlert from "sweetalert2-react"; | |
import { connect } from "react-redux"; | |
import { Card, Form, Button, Divider } from "semantic-ui-react"; | |
import "../../../../css/style.css"; | |
import HomePageHeader from "../Headers/HomePageHeader"; | |
import MainFooter from "../Footers/MainFooter"; |
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
const stepsConstructor = children.map(el => { | |
const step = el.props; | |
return { | |
settings: { | |
name: step.name, | |
status: step.status | |
}, | |
options: step.options | |
}; | |
}); |
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
const React = require('react'); | |
const ReactDOM = require('react-dom'); | |
const TodoInput = require('./todo_input.js'); | |
const TodoList = require('./todo_list.js'); | |
var tasks = [ | |
{ text : 'buy milk' }, | |
{ text : 'do exercises' } | |
]; |
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
const server = new WebSocket("ws://localhost:3000"); | |
export default const server = { | |
sendmessage: () => { | |
return server.onmessage = () => {} | |
} | |
} |
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
var Question = React.createClass({ | |
onChangeTitle: function (e) { | |
this.props.qTitleCallback(this.props.ordering, e); | |
}, | |
onChangeType: function (e) { | |
this.props.qTypeCallback(this.props.ordering, e); | |
}, | |
render: function() { | |
return ( | |
<div> |