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'; | |
class Notification extends Component { | |
render() { | |
var type = this.props.type == null ? 'default' : this.props.type; | |
return <div className={"notification " + type}>{this.props.message}{this.props.cancellable == 1 && <i className="material-icons" onClick={this.props.onCancel}></i>}</div>; | |
} | |
} | |
export default Notification; |
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
# Git | |
GIT_REF = $(shell git rev-parse --abbrev-ref HEAD) | |
GIT_REV = $(shell git rev-parse HEAD) | |
# CI | |
CI_COMMIT_REF_SLUG ?= $(GIT_REF) | |
CI_ENVIRONMENT_SLUG ?= local | |
CI_RUNNER_DESCRIPTION ?= $(shell hostname) | |
# Debug |
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 KEYWORD_MAP = {}; | |
/* | |
KEYWORD_MAP[<user_id>][<term>] returns the reply | |
*/ | |
KEYWORD_MAP[774078] = { | |
'jesus': 'http://i.imgur.com/V1kcfEU.jpg' | |
}; | |
KEYWORD_MAP[617762] = { | |
'BAM!' : 'SPACE GUN!' | |
}; |
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 PropTypes from 'prop-types'; | |
import { accessor } from 'react-big-calendar/lib/utils/accessors'; | |
import { accessor as accessorPropType } from 'react-big-calendar/lib/utils/propTypes'; | |
import { noop } from 'lodash'; | |
import { zonedToLocal, localToZoned } from '/client/utils/timezones'; | |
import { hasTime, shiftDate, shiftHour } from '/client/utils/date'; | |
/** | |
* withTimeZone - HOC to add time zone support to react-big-calendar |