This file contains hidden or 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, {FunctionComponent} from 'react'; | |
interface Props { | |
errorMessage: string, | |
children: JSX.Element | |
} | |
const ErrorSegment: FunctionComponent<Props> = | |
({errorMessage,children}) => { | |
return ( |
This file contains hidden or 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 withCSS = require("@zeit/next-css"); | |
require('dotenv').config() | |
const path = require('path') | |
const Dotenv = require('dotenv-webpack') | |
const withImages = require('next-images') | |
module.exports = withCSS(withImages({ | |
inlineImageLimit: 16384, | |
webpack(config, options) { |
This file contains hidden or 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
<Link | |
href={{ | |
pathname: "/session", query: | |
{ | |
sessionSlug: 'cracking-the-product-manager-interview', | |
sessionId: '7368', | |
sessionData: { | |
id: 7368, | |
junk: 'abcd', | |
sessionSlug: 'cracking-the-product-manager-interview'} |
This file contains hidden or 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 Link from 'next/link' | |
import axios from 'axios' | |
export default class Index extends React.Component { | |
constructor(props) { | |
super(props); | |
console.log("Index:constructor called"); | |
this.state = { |
This file contains hidden or 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 { createServer } = require("http"); | |
const next = require("next"); | |
const routes = require("./routes"); | |
const { parse } = require("url"); | |
const port = parseInt(process.env.PORT, 10) || 3000; | |
const dev = process.env.NODE_ENV !== "production"; | |
const app = next({ dev }); | |
const handler = routes.getRequestHandler(app); |
This file contains hidden or 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 SpeakersHeader from './SpeakersHeader'; | |
import SpeakerList from './SpeakerList'; | |
import axios from "axios"; | |
class Speakers extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains hidden or 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 Layout from "../src/components/codecamp/common/Layout"; | |
import Speakers from "../src/components/codecamp/speakers/Speakers"; | |
import axios from "axios"; | |
class speakers extends Component { | |
constructor(props) { | |
super(); |
This file contains hidden or 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 CodeCampMenu from './CodeCampMenu'; | |
import PageTop from './PageTop'; | |
import Footer from './Footer'; | |
import Routes from '../../Routes'; | |
class FullPage extends Component { |
This file contains hidden or 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'; | |
class App extends Component { | |
constructor() { | |
super(); | |
this.timeIncrementMs = 50; | |
this.showSpinnerIfReturnGreaterThanMs = 200; | |
this.state = { |
This file contains hidden or 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 express from 'express'; | |
import renderer from './renderer'; | |
const app = express(); | |
app.use(express.static('public', { | |
// index: false | |
index: false | |
})); |