path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/icons/ErrorIcon.js
maximgatilin/weathernow
import React from 'react'; export default function ErrorIcon() { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"> <path d="M24.406 22.747c0.091-0.147 0.099-0.331 0.022-0.485l-7.982-15.963c-0.17-0.338-0.723-0.338-0.893 0l-7.982 15.963c-0.077 0.155-0.069 0.3...
modules/IndexRoute.js
jamiehill/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
src/components/TutReqList/ListItem.js
MattMcFarland/tw-client
import React from 'react'; import moment from 'moment'; export const ListItem = ( props ) => ( <section className="tut-request-item"> <table className="listitem-table"> <tbody> <tr> <td className="listitem-vote"> <div className="listitem-vote-inner"> <div className="...
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_v2.x.x.js
mkscrg/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, // Temporary ReactComponentFunctional, ReactComponentClass, R...
app/demos/BasicLineChart.js
chunghe/React-Native-Stock-Chart
import React, { Component } from 'react'; import { ScrollView, StyleSheet } from 'react-native'; import { VictoryLine, } from 'victory-chart-native'; import T from '../components/T'; import data from '../data'; class BasicLineChart extends Component { render() { const { ticks } = data; return ( <Scr...
src/modules/player/Player.js
paramsinghvc/harp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Slider from 'material-ui/Slider'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import bindThis from '../../shared/bindThis'; import { setVolume, setAudio, playAudio, pauseAudio, togglePlayPause, set...
templates/rubix/rubix-bootstrap/src/AlertLink.js
jeffthemaximum/jeffline
import React from 'react'; import classNames from 'classnames'; export default class AlertLink extends React.Component { render() { let props = { ...this.props }; props.className = classNames('alert-link', props.className); return ( <a {...props} /> ); } }
src/components/keyboard-shortcut.js
tddbin/tddbin-frontend
import React from 'react'; export default class KeyboardShortcut extends React.Component { render() { const {printableKeys, helpText} = this.props.shortcut; return ( <div> <span className="shortcut">{printableKeys} </span> {helpText} </div> ); } }
examples/router/src/Echo.js
jaysoo/react-transact
import React from 'react' import { connect } from 'react-redux' import { transact, taskCreator } from 'react-transact' import { scan } from 'ramda' const say = taskCreator('ERROR', 'ECHO', (what) => what) const repeat = taskCreator('ERROR', 'ECHO', (what) => { return `${what} ${what}` }) const delay = (ms) => (x) =...
docs/src/app/components/pages/components/List/ExampleSettings.js
kasra-co/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; const style...
examples/real-world/containers/Root.js
lightsinthesky/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
src/App.js
lslima91/React-PostCSS-Playground
import React, { Component } from 'react'; // import {main, section, sec} from './css/style.styl' import {main, section, sec} from './css/style.css' const Responsive = () =>( <div className={section}> <div className={sec}>1</div> <div className={sec}>2</div> <div className={sec}>3</div> ...
dva/wd2/src/routes/User/Modify/ModifyPwdPage.js
imuntil/React
import React from 'react' import { connect } from 'dva' import { List, Toast } from 'antd-mobile' import QueueAnim from 'rc-queue-anim' import Form from '@/components/Common/Form' import InputItem from '@/components/Form/InputItem' import UInput from '@/components/Form/UInput' import { modifyPwd } from '@/services' imp...
client/components/games/index.js
wordupapp/wordup
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { Table, Header, Grid, Container, Icon, Button, Label } from 'semantic-ui-react'; import styles from './styles'; const Games = props => { const { level } = props; const seed = Math.floor(Math.random(...
src/components/AuthenticatedRoutes.js
codefordenver/encorelink
import PropTypes from 'prop-types'; import React from 'react'; import { withRouter } from 'react-router'; function AuthenticatedRoutes({ isAppInitialized, isLoggedIn, children, router, location }) { if (!isAppInitialized) { return <div>Loading...</div>; } else if (!isLoggedIn) { router.replace({ ...
webpack/stores/TodoStore.js
ihenvyr/react_redux_boilerplate
import React, { Component } from 'react'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import thunk from 'redux-thunk'; import * as TodoReducers from './TodoReducers'; let finalCreateStore; if (dev_tools) { var reduxDevtools = require('redux-devtools'); var devTools = reduxDevto...
src/App.js
steve-sarcinella/stevensarcinella.com
import React, { Component } from 'react'; import { ThemeProvider } from 'styled-components' import WeatherWatchContainer from './containers/WeatherWatchContainer'; import './App.css'; const theme = { primary: '#6699CC;' }; // <ThemeProvider theme={theme}> // <div className="app"> // </div> // </ThemeProvider> ...
src/scenes/App/scenes/Home/components/ActivityTopList/index.js
jsza/tempus-website
import React from 'react' import cx from 'classnames' import {mapScreenshot, formatTime, prettyZoneName} from 'root/utils/TempusUtils' import {Link} from 'react-router-dom' import Table from 'react-bootstrap/lib/Table' import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger' import TimeAgo from 'react-timeago'...
src/parser/shaman/restoration/CombatLogParser.js
sMteX/WoWAnalyzer
import React from 'react'; import Panel from 'interface/others/Panel'; import RestorationShamanSpreadsheet from 'interface/others/RestorationShamanSpreadsheet'; import Feeding from 'interface/others/Feeding'; import CoreCombatLogParser from 'parser/core/CombatLogParser'; import HealingEfficiencyDetails from 'parser/c...
src/svg-icons/av/surround-sound.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
app/javascript/mda_viewer/components/riek/src/RIEStatefulBase.js
relf/WhatsOpt
import React from 'react'; import ReactDOM from 'react-dom'; import RIEBase from './RIEBase'; const debug = require('debug')('RIEStatefulBase'); export default class RIEStatefulBase extends RIEBase { constructor(props) { super(props); this.myRef = React.createRef(); } startEditing = () =...
examples/huge-apps/routes/Course/components/Nav.js
darul75/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/components/PersonList.stories.js
janimattiellonen/fgr
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import PersonList from './PersonList'; import { generatePerson, random } from '../utils/random'; const randoms = Array.from('tussi').map(generatePerson()); const oldWomen = Array.from('vanhoinaisii').map(generatePerson( person => ({ ...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Row.js
JamieMason/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
fields/types/text/TextColumn.js
pr1ntr/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.PropType...
es/index.js
localvore-today/react-validator
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
examples/index.js
6174/slate
import React from 'react' import ReactDOM from 'react-dom' import { HashRouter, NavLink, Route, Redirect, Switch } from 'react-router-dom' import CheckLists from './check-lists' import CodeHighlighting from './code-highlighting' import Embeds from './embeds' import Emojis from './emojis' import ForcedLayout from './f...
assets/javascripts/kitten/components/graphics/icons/cross-circle-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import COLORS from '../../../../constants/colors-config' import { computeFromRatio } from '../../../../helpers/utils/ratio' import deprecated from 'prop-types-extra/lib/deprecated' import classNames from 'classnames' const DEFAULT_WIDTH = 20 const DEFAULT_HE...
src/eventDiagram/Consumers.js
camjackson/rr-docs-spike
import React from 'react'; import { services } from '../data'; const consumersOf = eventType => ( Object.keys(services).reduce((consumers, serviceName) => ( services[serviceName].consumes.includes(eventType) ? consumers.concat(serviceName) : consumers ), []) ); const Consumers = ({ eventType }) => ( <div> ...
packages/playground/stories/Select.story.js
appearhere/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean } from '@storybook/addon-knobs'; import { Select, Option } from '@appearhere/bloom'; const icons = [ 'appearhere-brackets', 'automatic-payments', 'calendar-insi...
src/routes/Home/components/HomeView.js
febobo/react-redux-start
import React from 'react' import reactDom from 'react-dom' import DuckImage from '../assets/Duck.jpg' import classes from './HomeView.scss' import {i18n} from '../../../util/i18n' import Adv from '../../../components/Adv' import code from '../../../static/images/code.jpg' import ad1 from '../../../static/images/ad1.jpg...
node_modules/react-router/es/withRouter.js
SpatialMap/SpatialMapDev
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
app/components/Threads/AddNew.js
Bullseyed/Bullseye
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Row, Col, Collapsible, CollapsibleItem, Input, Button, Modal, Icon } from 'react-materialize'; import axios from 'axios'; import { postThread } from '../../reducers/thread-reducer' import { Link } from 'react-router-dom' import Ad...
src/components/Blocks/Cta/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import SmartLink from '../../Ui/SmartLink' import './index.sass' export default ({ text, ctaText, ctaLocation, ...props }) => ( <div className="cta-block"> <SmartLink to={ctaLocation}> <h2>{text}</h2> <span className="link"...
docs/src/app/components/pages/components/IconMenu/ExampleScrollable.js
nathanmarks/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import MapsPlace from 'material-ui/svg-icons/maps/place'; const IconMenuExampleScrollable = () => ( <IconMenu iconButtonElement={<IconBu...
src/icons/SignalWifi2BarLockIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SignalWifi2BarLockIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path opacity=".3" d="M41 19c.7 0 1.4.1 2.1.2l4.2-5.2c-.9-.7-9.9-8-23.3-8S1.6 13.3.7 14L24 43l7-8.7V29c0...
assets/javascripts/kitten/components/action/button-group/stories.js
KissKissBankBank/kitten
import React from 'react' import { ButtonGroup } from './index' import { DocsPage } from 'storybook/docs-page' export default { title: 'Action/ButtonGroup', component: ButtonGroup, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="ButtonGroup" />, }, }, decorators:...
examples/realtime/app.js
jjmulenex/sdk
/* global MAPBOX_API_KEY */ /** Realtime data example. */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import RendererSwitch from '../rendererswitch'...
src/components/icons/ArrowForward.js
austinknight/ui-components
import React from 'react'; export default function ArrowForward(props) { return ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > {props.title && <title>{props.title}</title>} <path d="M12 4l-1.4...
src/class/popup/Button.js
MrMamen/traktflix
import PropTypes from 'prop-types'; import React from 'react'; import ErrorBoundary from '../ErrorBoundary'; class Button extends React.Component { constructor(props) { super(props); } handleClick() { browser.tabs.create({url: this.props.url, active: true}); } render() { return ( <ErrorBo...
src/Parser/VengeanceDemonHunter/Modules/Statistics/Spells/SigilOfFlame.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatThousands, formatDurat...
packages/cf-component-card/src/CardToolbar.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ borderTop: `1px solid ${theme.colorGrayLight}`, minHeight: '2.96666rem', '&:first-child': { borderTop: 'initial' }, '&::after': { content: "''", ...
src/js/components/nodes/registerNodes/NodesFileUpload.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConferenceAlert/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ConferenceAlert from 'ringcentral-widgets/components/AlertRenderer/ConferenceAlert'; const props = {}; props.currentLocale = 'en-US'; props.message = { message: 'test string', }; /** * A example of `ConferenceAlert` */ const ConferenceAlertDemo = () =>...
example/src/app.js
johnnycx127/react-geosuggest-baidu
import React from 'react'; import ReactDOM from 'react-dom'; import Geosuggest from '../../src/Geosuggest'; var App = React.createClass({ // eslint-disable-line /** * Render the example app * @return {Function} React render function */ render: function() { return ( // eslint-disable-line <div> ...
resources/js/Admin/Faq.js
DoSomething/northstar
import React from 'react'; import Layout from './components/Layout'; import NoteCard from '../components/Card/NoteCard'; const Faq = () => ( <article className="base-12-grid pb-20 pt-8"> <h1 className="col-span-full font-bold mb-10 text-2xl uppercase">FAQ</h1> <div className="col-span-6"> {/* DS Admi...
src/Toolbox.js
colinmorris/SongSim
import React, { Component } from 'react'; import Clipboard from 'clipboard'; import './Toolbox.css'; import config from './config.js'; import {MODE, MODE_TOOLTIPS} from './constants.js'; // TODO: is this really the orthodox way to do this? :/ new Clipboard('#perma'); /** * Contains a bunch of controls for stuff li...
src/svg-icons/action/bug-report.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
src/routes/chart/barChart/index.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, am...
src/components/nit-list/index.js
WHCIBoys/nitpik-web
import React from 'react'; import Nit from './nit'; import * as C from '../../constants'; import * as I from 'immutable'; function NitList({ nitList }) { return ( <div> <h2 data-testid="home-heading" className="center caps" style={{color: C.grey500}} id="qa-counter-heading">Nits</h2> <div className="...
src/components/notebook.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Iframe from 'react-iframe' import { Typography, withStyles } from '@material-ui/core'; import PageHead from './page-head'; import PageBody from './page-body'; const styles = () => ({ iframe: { border: 0, left: 0, posit...
pkg/ui/src/i18n/help-text/index.js
matt-deboer/kuill
import React from 'react' import IconButton from 'material-ui/IconButton' import IconHelp from 'material-ui/svg-icons/action/help-outline' import en from './en' var localeMap = {en: en} async function textForLocale(locale) { if (locale in localeMap) { return localeMap[locale] } else { // code-split loadin...
src/svg-icons/hardware/laptop-mac.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopMac = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0...
src/svg-icons/action/settings-overscan.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsOverscan = (props) => ( <SvgIcon {...props}> <path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18...
src/frontend/react/components/Nav.js
FakeYou/voerr
import React from 'react'; import connectToStores from 'alt/utils/connectToStores'; import ClassNames from 'classnames'; import { Link } from 'react-router'; import { contains } from 'lodash'; import LoginStore from 'flux/stores/LoginStore'; import LoginActions from 'flux/actions/LoginActions'; import 'assets/style/n...
client/src/index.js
mozillaSv/TweetGeoViz
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import routes from './routes.js'; import store from './stores/appStore.js'; // <--- dispatch init actions HERE ReactDOM.render( <Provider store={store}> {routes} </Provider>, document.getElementById('app') ...
App/Containers/YakViewContainer.js
bretth18/bison
// This is our redux wrapper for the YakView component. // it injects the state and dispatch functions via props. 'use strict'; import { View } from 'react-native'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import YakView from '../Comp...
src/RelativeSize.js
dunnock/react-sigma
// @flow import React from 'react' import '../sigma/plugins.relativeSize' type Props = { initialSize: number, sigma?: sigma }; /** RelativeSize component, interface for RelativeSize sigma plugin. It supposes that sigma graph is already in place, therefore component should not be mounted until graph is available. ...
client/src/app/views/userProfile.js
jhuntoo/starhackit
import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import { History } from 'react-router'; import userActions from 'actions/user'; import userProfileStore from 'stores/userProfile'; import authStore from 'stores/auth'; import UserAvatar from 'components/userAvatar'; import MarkedDisplay...
src/svg-icons/device/gps-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
src/app.js
Kikonejacob/nodeApp
import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { render() { return <h1>Hi, {this.props.name}!</h1>; } } ReactDOM.render( <App name="stranger"/>, document.querySelector('.react-root') );
src/decorators/withViewport.js
nobesnickr/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: ...
source/components/I18nString.react.js
BeethovensWerkstatt/VideApp
import React from 'react'; import PropTypes from 'prop-types'; var langfile = require('../i18n/i18n.json'); const I18nString = ({ lang, content, tooltip }) => { if(typeof content !== 'undefined' && typeof tooltip !== 'undefined') { if(!langfile.hasOwnProperty(content)) { const tip = 'Unable to ...
demo/public/component/Popover.js
ev-ui/ev-ui
import React from 'react' import {render} from 'react-dom' import styled,{keyframes} from 'styled-components' import Ripple from '../plugin/evolify/ripple.jsx' const swiftIn=keyframes` 0%{ transform:scale(0); } 70%{ transform:scale(1.1); } 100%{ transform:scale(1); } `; ...
components/CustomChart.js
jepz20/coffee_tracker
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; import { Line, Bar, Pie } from 'react-chartjs'; import Loader from './Loader'; const possibleColors = [ { color: '#F7464A', highlight: '#FF5A5E', }, { color: '#46BFBD', highlight: '#5AD3D1', }...
src/parser/hunter/survival/modules/spells/SerpentSting.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import Enemies from 'parser/shared/modules/Ene...
src/containers/weather_list.js
OatsAndSquats25/React-redux-weather-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = cityData.list.ma...
node_modules/react-bootstrap/es/Popover.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
fields/types/html/HtmlField.js
dvdcastro/keystone
import _ from 'lodash'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-html-' + lastId++; } // Workaround for #2834 found here h...
newclient/scripts/components/user/dashboard/dashboard/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
client/src/layout/Dashboard.js
idoalit/slims.js
/** * @Author: Waris Agung Widodo <ido> * @Date: 2017-10-02T14:33:28+07:00 * @Email: ido.alit@gmail.com * @Filename: Dashboard.js * @Last modified by: ido * @Last modified time: 2017-10-03T11:50:20+07:00 */ import React from 'react'; import Card from '../components/Card'; export default class Dashboard e...
src/Pages/Cafes.js
LaurentEtienne/Kfe
import React, { Component } from 'react'; import CafeStore from '../Stores/Cafe'; let getState = () => { return { companyCafes: CafeStore.getCompanyCafes(), partnerCafes: CafeStore.getPartnerCafes() }; }; class Cafes extends Component { constructor(props) { super(props); this.state = getState(...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Shared/Confirm.js
thusithak/carbon-apimgt
import React from 'react' import Dialog, { DialogActions, DialogContent, DialogContentText, DialogTitle, } from 'material-ui/Dialog'; class Confirm extends React.Component{ constructor(props){ super(props); this.state( { open: false } ...
src/components/lists/ConnectionListItem.js
whphhg/vcash-electron
import React from 'react' import { observer } from 'mobx-react' const ConnectionListItem = observer(({ t, connections, index }) => { const instance = connections.instances.get(connections.ids[index]) const { rpc } = instance.status const color = rpc === null ? '' : rpc === true ? 'green' : 'red' return ( ...
src/main.js
cjordanball/cjbinfo
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import reduxThunk from 'redux-thunk'; import { BrowserRouter, Route } from 'react-router-dom'; import reducers from './reducers'; import Tracker from './hocs/ga_tra...
pkg/users/authorized-keys-panel.js
cockpit-project/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
src/components/Order.js
hunt-genes/fasttrack
/* global window */ // Set state during browser rendring. This will cause a flicker, but we need it. /* eslint "react/no-did-mount-set-state": 0 */ import Dialog from 'material-ui/Dialog'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import getMuiTheme from 'mate...
src/svg-icons/action/hourglass-empty.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassEmpty = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/> ...
app/components/Notes/AddNote.js
luketlancaster/github-notetaker
import React from 'react'; class AddNote extends React.Component { handleSubmit() { var newNote = this.refs.note.getDOMNode().value; this.refs.note.getDOMNode().value = ''; this.props.addNote(newNote); } render() { return ( <div className="input-group"> <input type="text" className=...
packages/material-ui-icons/src/Phonelink.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z" /></g> , 'Phonelink');
src/ReactReduxProject/examplePage/controller/entry.js
Terry-Su/MVVC
import React from 'react' import App from '../component/App' import controller from './index' // initialize controller.init(App)
examples/react-redux/src/components/ui/Content.js
rangle/redux-segment
import React from 'react'; const Content = ({ children, style = {}, isVisible }) => { return ( <div className={ `mt3 p1` } style={{ ...styles.base, style }}> { isVisible ? children : null } </div> ); }; const styles = { base: {}, }; export default Content;
src/containers/Base/Base.js
brendo/open-api-renderer
import React from 'react' import { configureAnchors } from 'react-scrollable-anchor' import DocumentTitle from 'react-document-title' import PropTypes from 'prop-types' import Page from '../../components/Page/Page' import Overlay from '../../components/Overlay/Overlay' import { getDefinition, parseDefinition, validateD...
src/views/Notes/NotesIndex.js
aplee29/online-notebook-app-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { NavLink } from 'react-router-dom'; import NoteCard from './NoteCard'; import { getNotes } from '../../redux/modules/Notes/actions'; class NotesIndex extends Component { componentDidMount() { const user_id = this.props.cur...
fields/types/password/PasswordFilter.js
michaelerobertsjr/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes: { filter: React.PropTyp...
src/routes/Battle/components/BattleReady.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import ContentContainer from 'components/ContentContainer' import Button from 'components/Button' import CenterMidContainer from 'components/CenterMidContainer' class BattleReady extends React.PureComponent { render () { const { onClickStart, auth, cr...
demo/src/index.js
UnforbiddenYet/react-sleek-photo-gallery
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Application from './application'; import styles from './styles.css'; const render = (Component) => { ReactDOM.render( <AppContainer> <Component/> </AppContainer>, document.getElem...
src/server.js
CasualBot/learningReact
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
src/svg-icons/alert/add-alert.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertAddAlert = (props) => ( <SvgIcon {...props}> <path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v...
src/CommitTreePanel.js
cynicaldevil/gitrobotic
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import CircleIcon from 'material-ui/svg-icons/av/fiber-manual-record'; import DiffPanel from './utils/DiffPanel'; import Git from 'nodegi...
react-ui/src/components/base/NavLink.js
MaGuangChen/resume-maguangchen
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import * as actions from '../../actions/actions'; const NavLink = (props) => { const { login, dispatch } = props; const handleShowMenu = () => { dispatch(actions.showMenu(false)); } con...
examples/using-sqip/src/components/layout.js
mingaldrichgan/gatsby
import React from 'react' import PropTypes from 'prop-types' import Image from 'gatsby-image' import Polaroid from '../components/polaroid' import '../index.css' const Layout = ({ children, data }) => { const images = data.images.edges.map(image => ( <Polaroid image={image.node} key={image.node.name} /> )) ...
imports/util/users.js
irvinlim/free4all
import { Meteor } from 'meteor/meteor'; import React from 'react'; import Avatar from 'material-ui/Avatar'; import { Link } from 'react-router'; import * as Colors from 'material-ui/styles/colors'; import { nl2br, propExistsDeep } from './helper'; import * as AvatarHelper from './avatar'; import * as IconsHelper from ...
components/Header.js
stevenctl/tweebot-ui
import React from 'react'; import cookie from 'react-cookie'; class Header extends React.Component{ constructor(){ super(); } componentWillMount(props){ this.props.doGetUserInfo(); } render(){ return ( <nav className="navbar navbar-inverse navbar-static-top"> <div className="cont...
docs/component.js
Means88/react-jsport
import React from 'react'; import { load } from '../dist/JSPort'; export class Component1 extends React.Component { componentDidMount() { this.changeText(); } componentDidUpdate() { this.changeText(); } changeText() { $('#hello').text('Changed by jQuery'); } render() { return ( ...
src/ReactBoilerplate/Scripts/server.js
pauldotknopf/react-dot-net
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; import { match } from 'react-router'; import getRoutes from './routes'; import createHistory from 'react-router/lib/createMemoryHistory'; import RouterContext from 'react-router/lib/RouterContext'; import configureSto...
src/Transition.js
azendoo/react-overlays
import React from 'react'; import transitionInfo from 'dom-helpers/transition/properties'; import addEventListener from 'dom-helpers/events/on'; import classnames from 'classnames'; let transitionEndEvent = transitionInfo.end; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export cons...
components/_entry/test.js
joeybaker/rachelandjoey
import test from 'tape' import React from 'react' import {addons} from 'react/addons' import Entry from './index.jsx' const {TestUtils} = addons const {Simulate, renderIntoDocument, isElement, createRenderer} = TestUtils const getReactNode = (dom, node) => TestUtils.findRenderedDOMComponentWithTag(dom, node) const getD...
src/components/Exercises.js
Greynight/Exercises
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; const Exercises = ({ exercises, value, handleExerciseChange }) => { return ( <SelectField fullWidth={true} floatingLabelText="Exercises" value={value} onChange={handl...
app/components/Rectangle.js
amyrebecca/react-animation
import React from 'react' export default class Rectangle extends React.Component { constructor(props) { super(props); } componentDidMount() { var animator = function(){ this.forceUpdate() window.requestAnimationFrame(animator.bind(this)) } window.requestAnimationFrame(animator.bind(this)) ...