View InstallHaProxy.sh
#!/bin/bash | |
### VARIABLES ### | |
PRE_PACK="openssl-devel pcre-devel make gcc" | |
VER="1.7.0" | |
# Setup Colours | |
black='\E[30;40m' | |
red='\E[31;40m' | |
green='\E[32;40m' |
View md_colors.xml
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- Google's material design colors from | |
https://www.google.com/design/spec/style/color.html#color-color-palette | |
Last updated: 2015-10-06 --> | |
<!-- Red --> | |
<color name="red_50">#FFEBEE</color> | |
<color name="red_100">#FFCDD2</color> |
View routes.js
import auth from "../utils/auth"; | |
function logout(nextState, replaceState) { | |
auth.logout(); | |
replaceState(null, "/"); | |
} | |
function redirectToLogin(nextState, replaceState) { | |
if (!auth.isLoggedIn()) { | |
replaceState({ |