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 { Query } from "react-apollo"; | |
import { GET_ALL_TODOS } from "../queries"; | |
import MarkTodo from "./MarkTodo"; | |
import DeleteTodo from "./DeleteTodo"; | |
import { | |
ListGroup, | |
ListGroupItem, | |
ButtonGroup, | |
Grid, |
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 { Mutation } from "react-apollo"; | |
import { DELETE_TODO, GET_INCOMPLETE_TODOS, GET_ALL_TODOS } from "../queries"; | |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | |
import { faTimes } from "@fortawesome/free-solid-svg-icons"; | |
import { Button } from "react-bootstrap"; | |
class DeleteTodo extends Component { | |
constructor(props) { | |
super(props); |
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 { | |
MARK_TODO_COMPLETE, | |
GET_INCOMPLETE_TODOS, | |
GET_ALL_TODOS | |
} from "../queries"; | |
import { Mutation } from "react-apollo"; | |
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | |
import { faCheck } from "@fortawesome/free-solid-svg-icons"; | |
import { Button } from "react-bootstrap"; |
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 from "react"; | |
import { Query } from "react-apollo"; | |
import { GET_INCOMPLETE_TODOS } from "../queries"; | |
import MarkTodo from "./MarkTodo"; | |
import DeleteTodo from "./DeleteTodo"; | |
import AddTodos from "./AddTodo"; | |
import { | |
ListGroup, | |
ListGroupItem, | |
ButtonGroup, |
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 gql from "graphql-tag"; | |
export const GET_ALL_TODOS = gql` | |
{ | |
todos { | |
todo_id | |
todo_text | |
todo_completed | |
todo_user | |
} |
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 ApolloClient from "apollo-boost"; | |
import { ApolloProvider } from "react-apollo"; | |
import GetTodos from "./GetTodos"; | |
export var client; | |
class Home extends Component { | |
constructor(props) { | |
super(props); |
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 { | |
Navbar, | |
Button, | |
Nav, | |
NavItem, | |
Image, | |
Grid, | |
Row, | |
Col |
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 from 'react'; | |
import { Route, Router } from 'react-router-dom'; | |
import App from './App'; | |
import Home from './Components/Home'; | |
import Callback from './Components/Callback'; | |
import Auth from './Auth/Auth'; | |
import history from './history'; | |
import GetAllTodos from './Components/GetAllTodos'; | |
const auth = new Auth(); |
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 ReactDOM from 'react-dom'; | |
import './index.css'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import { makeMainRoutes } from './routes'; | |
const routes = makeMainRoutes(); | |
ReactDOM.render(routes, document.getElementById('root')); | |
registerServiceWorker(); |
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 express = require('express'); | |
var app = express(); | |
var requestClient = require('request'); | |
app.route('/').get((request, response) => { | |
var token = request.get('Authorization'); | |
if (!token) { |
NewerOlder