- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
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 axios from 'axios'; | |
const getUsers = (id) => { | |
return axios.get('http://localhost:3000/users/'.concat(id)); | |
} | |
const validateUser = (userName, password) => { | |
// if (userName.length > 0 && password.length > 0) { | |
// return true; | |
// } |
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 './App.css'; | |
import { BrowserRouter as Router } from 'react-router-dom'; | |
import Nav from './Nav'; | |
import LoginForm from './components/LoginForm'; | |
import Welcome from './components/Welcome'; | |
import { getUsers, validateUser } from './controllers/LoginController'; | |
class App extends Component { | |
constructor(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, { Component } from 'react' | |
const sampleList = [{ | |
name: 'Punith', | |
link: '[email protected]' | |
}, | |
{ | |
name: 'Rama', | |
link: '[email protected]' | |
}]; |
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 org.junit.Assert; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.Mock; | |
import org.mockito.runners.MockitoJUnitRunner; | |
import java.util.Map; | |
import static org.mockito.Mockito.doReturn; | |
import static org.mockito.Mockito.when; | |
@RunWith(MockitoJUnitRunner.class) |
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
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
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
// A helper for RTL | |
export const expandSelect = selectInput => { | |
if (_.toLower(selectInput.tagName) !== 'input') { | |
selectInput = selectInput.querySelector('input') | |
} | |
fireEvent.mouseDown(selectInput) | |
fireEvent.focus(selectInput) | |
} | |
export const showInfoTip = async infoTip => { |
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, { useReducer } from 'react'; | |
import { login } from './utils'; | |
const initialState: LoginState = { | |
username: '', | |
password: '', | |
isLoading: false, | |
error: '', | |
isLoggedIn: false, | |
variant: 'login', |
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 containerStyles from "./container.module.css" | |
const Container = ({ children }) => { | |
return <div className={containerStyles.container}>{children}</div> | |
} | |
export default Container |
OlderNewer