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
openapi: 3.0.3 | |
info: | |
title: Cool VLab RESTful API | |
version: 1.0.0 | |
description: API for vlab. | |
servers: | |
- url: https://api.domain.example | |
description: Production server | |
- url: https://api-dev.domain.example |
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, {useEffect, useState} from 'react'; | |
import { | |
View, | |
Text, | |
Image, | |
ProgressBarAndroid, | |
StyleSheet, | |
Dimensions, | |
StatusBar, | |
} from 'react-native'; |
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, { useState, useEffect } from 'react'; | |
const OneSignal = window.OneSignal || []; | |
function useNotification() { | |
const [permission, setPermission] = useState('granted'); | |
useEffect(() => { | |
try { | |
if (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
{ | |
"name": "surge", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"react": "^16.2.0", | |
"react-dom": "^16.2.0", | |
"react-scripts": "1.0.17" | |
}, | |
"scripts": { |
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'; | |
// material-ui components | |
import Grid from 'material-ui/Grid'; | |
// react-router-dom | |
import { | |
BrowserRouter as Router, | |
Route, | |
Switch |
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'; | |
//material-ui components | |
import Grid from 'material-ui/Grid'; | |
import Typography from 'material-ui/Typography'; | |
class NotFound extends Component { | |
render() { |
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'; | |
// material-ui components | |
import Grid from 'material-ui/Grid'; | |
import Typography from 'material-ui/Typography'; | |
import Paper from 'material-ui/Paper'; | |
import TextField from 'material-ui/TextField'; | |
import IconButton from 'material-ui/IconButton'; | |
import CheckIcon from 'material-ui-icons/Check'; | |
import BackIcon from 'material-ui-icons/ArrowBack'; |
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'; | |
// material-ui components | |
import Grid from 'material-ui/Grid'; | |
import Typography from 'material-ui/Typography'; | |
import Paper from 'material-ui/Paper'; | |
import TextField from 'material-ui/TextField'; | |
import List, { ListItem, ListItemSecondaryAction, ListItemText } from 'material-ui/List'; | |
import Checkbox from 'material-ui/Checkbox'; | |
import IconButton from 'material-ui/IconButton'; |
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
/* | |
* path : src/index.js | |
* description : applicatoin entry point | |
*/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; |
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
/* | |
* path: src/reducers/index.js | |
* description: this file is a rootReducer that combine all reducers including todo reducer | |
*/ | |
import { combineReducers } from 'redux'; | |
//reducers | |
import todo from './todo'; |
NewerOlder