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
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using EFLibSvcc.Models; | |
using Microsoft.EntityFrameworkCore; | |
namespace CarvedRock.Api.Repositories | |
{ | |
public class RoomRepository | |
{ |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Caching.Memory; | |
namespace ClassLib.CacheExtension | |
{ | |
public class TCache<T> | |
{ |
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'); | |
const withTypescript = require('@zeit/next-typescript'); | |
const withOffline = require('next-offline'); | |
//const isProd = process.env.NODE_ENV === 'production'; |
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 { RunTypes } from '../components/codecamp/common/CodeCampInterfaces'; | |
import getConfig from 'next/config'; | |
const { publicRuntimeConfig } = getConfig(); | |
/** A function that when called will return an environmental variable | |
* specified either in the .env file or the next.config.js defaults | |
* @param envKey value passed in which is environmental value without_DEV,_PROD or _STAGING | |
* @param devProdOrStaging | |
* @devProdOrStaging can only be "DEV","PROD", or "STAGING". If not included, then will default to process_env.NODE_ENV | |
* @returns returns the value after evaluating based on process.env.NODE_ENV |
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 axios from 'axios'; | |
import { IUserInfo } from '../components/codecamp/common/CodeCampInterfaces'; | |
//import getEnvParameters from './getEnvParameter'; | |
//import getConfig from 'next/config'; | |
//const { publicRuntimeConfig } = getConfig(); | |
const fetchUserInfoPromise: Promise<{userInfo: IUserInfo} | {hasErrored: boolean,isServer: boolean,errorMessage: any}> = (cookieValue: string) => { | |
//$$$ TODO: check for cookieValue and if null, just return empty speaker so don't need to do check on every request |
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'; | |
import axios, { AxiosResponse } from 'axios'; | |
import useAxiosFetch from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
import getConfig from 'next/config'; | |
import App from '../src/App'; | |
import { IUserInfo, Session } from '../src/components/codecamp/common/CodeCampInterfaces'; | |
import fetchUserInfoPromise from '../src/utils/fetchUserInfoPromise'; |
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
... | |
render() { | |
return ( | |
<div | |
className={`${this.props.className | |
? this.props.className | |
: ''} session-status-dropdown`} | |
ref={dropdownContainer => { | |
this.dropdownContainer = dropdownContainer; |
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'; | |
import axios, {AxiosResponse} from 'axios'; | |
import useAxiosFetch | |
from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
import getConfig from 'next/config'; | |
import App from "../src/App"; | |
import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |
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'; | |
import axios, {AxiosResponse} from 'axios'; | |
import useAxiosFetch | |
from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
import getConfig from 'next/config'; | |
import App from "../src/App"; | |
import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |
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'; | |
import axios, {AxiosResponse} from 'axios'; | |
import useAxiosFetch | |
from '../src/components/codecamp/common/hooks/useAxiosFetch'; | |
import getConfig from 'next/config'; | |
import App from "../src/App"; | |
import {Speaker} from "../src/components/codecamp/common/CodeCampInterfaces"; |