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 { Component } from "React"; | |
export var Enhance = (ComposedComponent, ajaxCall) => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
ajaxCall() | |
.then(function(data) { | |
this.setState({ data: data }); |
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 openpgp = require('openpgp'); // use as CommonJS | |
var path = require('path'); | |
//var __dirname = '/home/evan/Documents/jeff/node/jb'; | |
var worker_path = path.join(__dirname, 'node_modules', 'openpgp','worker', 'worker.js'); | |
openpgp.initWorker({ path: worker_path }); // set the relative web worker path | |
openpgp.config.aead_protect = true; // activate fast AES-GCM mode (not yet OpenPGP standard) | |
var fs = require('fs'); |
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 axios from "axios"; | |
import moment from "moment"; | |
export default class Feutred extends Component { | |
state = { | |
sports: [], | |
events: [], | |
isLoading: true, | |
errors: 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
import { connect } from "react-redux"; | |
import Dashboard from "./dashboard"; | |
import { ApplicationState } from "../../store"; | |
const mapStateToProps = (state: ApplicationState) => { | |
const sessions = sessionsArraySelector(state) | |
console.log(sessions) | |
return { | |
user: state.oidc.user, | |
sessions: Object.values(sessions), |