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 authentication = require('@feathersjs/authentication'); | |
const jwt = require('@feathersjs/authentication-jwt'); | |
const local = require('@feathersjs/authentication-local'); | |
const oauth2 = require('@feathersjs/authentication-oauth2'); | |
const GithubStrategy = require('passport-github'); | |
module.exports = function (app) { | |
const config = app.get('authentication'); | |
// Set up authentication with the secret |
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 PropTypes from 'prop-types' | |
import { compose } from 'recompose' | |
import {connect} from 'react-redux' | |
import { | |
withRouter, | |
} from 'react-router-dom'; | |
import { | |
Divider, Message,Container |
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
// CLIENT | |
// src/App.js | |
// other imports | |
import VerifySocialPage from './pages/VerifySocialPage' | |
function App () { | |
return ( | |
<Switch> | |
// .... other routes | |
<Route path="/verify-social" exact component={VerifySocialPage} /> |
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 PropTypes from 'prop-types' | |
import { compose } from 'recompose' | |
import {connect} from 'react-redux' | |
import { | |
withRouter, | |
} from 'react-router-dom'; | |
import { | |
Divider, Message,Container,Header |
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 PropTypes from 'prop-types' | |
import {compose} from 'recompose' | |
import {connect} from 'react-redux' | |
import { | |
Divider, Message,Container | |
} from 'semantic-ui-react'; | |
import { withRouter,} from 'react-router-dom' | |
import withAuthorization from './hocs/withAuthorization' | |
import SetUpProfile from './dashboardComponents/SetUpProfile' |
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 PropTypes from 'prop-types' | |
import { connect } from 'react-redux'; | |
import { compose } from 'recompose'; | |
import {services} from '../../services' | |
class WithNetworks extends Component{ | |
componentDidMount(){ | |
const { findNetworks}=this.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 from 'react' | |
import { Input,Card,Statistic,Button } from 'semantic-ui-react' | |
import PropTypes from 'prop-types' | |
import WithStockQuantities from './WithStockQuantities' | |
function AirtimeCard ({card,name,logedIn}){ | |
return ( |
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
// src/CreateProductForm.js | |
import React, { Component } from 'react'; | |
import { Form, Button} from 'semantic-ui-react'; | |
import client from './feathers' | |
export default class CreateProductForm extends Component { | |
state = { | |
product:{ | |
name:'', | |
description:'', | |
price:null |
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
//add this to feather's src/channels.js around line 53 | |
app.service(‘products’) | |
.publish(‘created’, () => app.channel(‘anonymous’)); |
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
// src/DisplayGrid.js | |
import React,{Component} from 'react' | |
import { Container,Divider,Header,Card,Button } from 'semantic-ui-react'; | |
import {Link} from 'react-router-dom' | |
import client from './feathers' | |
export default class DisplayGrid extends Component { | |
state = { | |
products:[] | |
}; |
OlderNewer