path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/client/components/Home.js
matystl/shopping_list
import React from 'react'; import {Link} from 'react-router'; export default class Home extends React.Component { componentWillMount() { console.log("Test mountu homu") } render() { return ( <div> <p> This is simple inner component of home. </p> </div> ); ...
packages/ndla-icons/src/license/Publicdomain.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const Publicdomain = props => ( <Icon ...
src/fluxtable/container/ContainerForm.js
MirekSz/avem
import React, { Component } from 'react'; import {observe} from './../lib/Decorators'; import PortService from './../PortService'; import {containersActionCreator} from './ContainersActionCreator'; export default @observe class ContainerForm extends Component { constructor(props) { super(props); t...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
romaindso/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
node_modules/react-bootstrap/es/Breadcrumb.js
superKaigon/TheCave
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 ...
admin/client/components/UpdateForm.js
Redmart/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Fields from '../fields'; import { plural } from '../utils'; import { BlankState, Button, Form, Modal } from 'elemental'; var UpdateForm = React.createClass({ displayName: 'UpdateForm', propTypes: { isOpen: React....
packages/material-ui-icons/src/TurnedIn.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let TurnedIn = props => <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z" /> </SvgIcon>; TurnedIn = pure(TurnedIn); TurnedIn.muiName = 'SvgIcon'; export default Tu...
dva/wd2/src/routes/User/Modify/ModifyNickPage.js
imuntil/React
import React from 'react' import { connect } from 'dva' import QueueAnim from 'rc-queue-anim' import { Icon, Toast } from 'antd-mobile' import Form from '@/components/Common/Form' import InputItem from '@/components/Form/InputItem' import UInput from '@/components/Form/UInput' import { modifyNick } from '@/services' im...
src/index.js
marmelab/restful-devtools
import DevTools from './container/DevTools'; import React from 'react'; import ReactDOM from 'react-dom'; export default function(restful) { const container = window.document.createElement('div'); window.document.body.appendChild(container); ReactDOM.render( <DevTools { ...{ restful } } />, ...
js-old/src/views/Account/Header/header.spec.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
src/components/Modal/Contents/Login.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' const Login = ({ loginError, loginStatus, onLoginClick }) => { let userNameInput; let passwordInput; const handleKeyPress = (target) => { if(target.charCode === 13){ console.log('Enter clicked!!!') let data = { "username": userNameI...
src/components/typography/h1.js
awaseem/Jam
import React from 'react'; import styles from '../../css/skeleton.css'; function H1(props) { return ( <h1 className={styles.h1} style={{ textAlign: props.align }}>{props.children}</h1> ); } H1.propTypes = { children: React.PropTypes.any.isRequired, align: React.PropTypes.string, }; export default H1;
src/IconToggle/index.js
reactivers/react-material-design
/** * Created by Utku on 26/03/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import generateId from "../utils/generateId"; import '@material/icon-toggle/dist/mdc.icon-toggle.css' import {MDCIconToggle} from "@material/icon-toggle/dist/mdc.iconToggle"; import classNames from 'classnames'; ex...
lib/shape/Bar3.js
wangdicoder/react-native-indicator
/** * The scale center of this bar is center */ import React from 'react'; import PropTypes from 'prop-types'; import { Shape, Path } from '@react-native-community/art'; export default class Bar3 extends React.PureComponent { static propTypes = { width: PropTypes.number.isRequired, height: PropTypes.number...
generators/react/templates/src/index.js
theodo/theodo-stack-generator
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/createBrowserHistory'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import configureStore from './redux/store'; const history = createBrowserHistory(); const store =...
transforms/__testfixtures__/class/class-flow2.input.js
reactjs/react-codemod
/* code taken from https://github.com/reactjs/react-router/blob/master/modules/IndexRoute.js */ /* @flow */ import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './Intern...
src/application/components/ParameterListGroup.js
movio/apidoc-ui
// @flow import React from 'react'; import H2 from 'components/H2'; import ParameterList from 'application/components/ParameterList'; import type { Service } from 'generated/version/ServiceType'; import styles from 'application/components/parameter-list-group.css'; const ParameterListGroup = ({ title, parameter...
definitions/npm/react-css-modules_v3.x.x/flow_v0.53.x-v0.103.x/test_react-css-modules-v3.js
flowtype/flow-typed
// @flow import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; import { describe, it } from 'flow-typed-test'; describe('React Component', () => { const styles = { test: '123' }; class ExampleModule extends Component<{ foo: string, styles: typeof styles, }> { render(...
src/components/TabContent/TabContent.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './TabContent.css'; import React from 'react'; import TabContainer from '../../containers/Tab/Tab'; const TabContent = () => { return ( <div className={styles.root}> <TabContainer chart="scatterplot" /> <TabContainer chart="map" /> </div> ) }; export...
src/svg-icons/av/forward-5.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
src/parser/ui/StatisticListBoxItem.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { TooltipElement } from 'interface'; /** * @deprecated Use `parser/ui/Statistic` instead. */ const StatisticListBoxItem = ({ title, value, titleTooltip, valueTooltip}) => ( <div className="flex"> <div className="flex-main"> {titl...
RNApp/node_modules/@exponent/react-native-navigator/ExNavigatorIcons.js
abhaytalreja/react-native-telescope
'use strict'; import React from 'react'; import { StyleSheet, View, } from 'react-native'; import ResponsiveImage from '@exponent/react-native-responsive-image'; import Layout from './Layout'; let { sources, ...iconPropTypes } = ResponsiveImage.propTypes; export class BackIcon extends React.Component { static...
src/components/introduction/introduction.js
cwparsons/cwparsons.ca
import { graphql, useStaticQuery } from 'gatsby'; import Img from 'gatsby-image'; import React from 'react'; import styles from '../../styles/main.module.scss'; export const Introduction = () => { const { image } = useStaticQuery( graphql` query { image: file(relativePath: { eq: "portrait/portrait.jpg" }) {...
src/components/FacebookTabBar/index.js
r1cebank/react-native-boilerplate
/* eslint-disable no-underscore-dangle */ import React from 'react'; import { View, TouchableOpacity, Animated } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Styles from './resources/style'; class FacebookTabBar extends React.Component { static propTypes = { ...
lib/cli/test/fixtures/react_native_scripts/App.js
rhalff/storybook
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
src/containers/SignOut.js
snsavage/timer-react
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import { withRouter } from 'react-router-dom'; import * as actions from '../actions/sessionActions'; class SignOut extends Component { componentWi...
src/decorators/withViewport.js
leftshifters/clipboard
/*! 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/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
React Native/1/__tests__/App.js
hugonasciutti/Exercises
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });
src/common/Billing/ChartLegend.js
Syncano/syncano-dashboard
import React from 'react'; import Radium from 'radium'; import _ from 'lodash'; export default Radium(React.createClass({ displayName: 'ChartLegend', getDefaultProps() { return { rows: [], showUsage: false }; }, getStyles() { const styles = { legendSquere: { marginTop: 3...
src/front-end/js/pages/Public.js
aleksey-gonchar/challenge-zenbrook
import React from 'react' import TopNavbar from '../components/TopNavbar.js' class Public extends React.Component { render () { return ( <div> <TopNavbar /> <div className='container-fluid'> <p>public content pending</p> </div> </div> ) } } export default Pub...
modules/IndexRoute.js
kelsadita/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' var { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRoute>...
src/components/Search/ListItem.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Divider, ListItem, ListItemIcon, ListItemText } from '@material-ui/core' import RemoveMarkup from '../../modules/RemoveMarkup' import ItemImage from './ItemImage' import CollectionUrl from '../../modules/Collec...
examples/src/textfieldRoute.js
HBM/md-components
import React from 'react' import {Textfield, Icon, Select} from 'md-components' export default class TextfieldRoute extends React.Component { state = { country: 'Germany', color: '', phone: '', email: '', name: 'peter', animal: 'Dog', nonfloat: '', weight: '', select: '' } on...
example/examples/LegalLabel.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Animated, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const screen = Dimensions.get('window'); class LegalLabel extends React.Component { static propTypes = { provider: MapView.ProviderProp...
client/modules/App/components/DevTools.js
F4vs/lavendimia
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/client/routes/index.js
mweslander/veery
// Imports import React from 'react'; import { hashHistory as history, IndexRoute, Route, Router } from 'react-router'; import ReactGA from 'react-ga'; // Components import App from '../components/App'; // Routes import adminRoutes from './admin'; // Config import config from '../../api/config'; ReactGA.ini...
tests/components/Header/Header.spec.js
mjchamoures/personalPortfolio
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header />) }) it('Renders a welcome message', () => { ...
src/svg-icons/file/cloud-download.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-...
src/routes/subject/index.js
ykx456654/hr_admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import cookies from 'cookiesjs' import { message } from 'antd' import { Link,routerRedux } from 'dva/router' import MyUpload from '../../components/MyUpload' import moment from 'moment' import style from './index.less' import {...
src/components/WeatherApp/WeatherApp.js
andrkrn/react-weather
import React, { Component } from 'react'; import $ from 'jquery'; import WeatherIcon from '../WeatherIcon'; import WeatherTemperature from '../WeatherTemperature'; import WeatherSearch from '../WeatherSearch'; import './WeatherApp.css'; class WeatherApp extends Component { constructor(props) { super(props); ...
packages/mineral-ui-icons/src/IconSettingsInputAntenna.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSettingsInputAntenna(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...
webapp-src/src/login.js
babelouest/glewlwyd
/** * * Glewlwyd login application * * Web application for users to login to Glewlwyd * Handle password and schemes authentication * * Copyright 2019 Nicolas Mora <mail@babelouest.org> * */ import React from 'react'; import ReactDOM from 'react-dom'; import i18next from 'i18next'; import Backend from 'i18...
app/javascript/mastodon/features/notifications/index.js
MastodonCloud/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
src/modules/Dropdown/DropdownMenu.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, } from '../../lib' /** * A dropdown menu can contain a menu. */ function DropdownMenu(props) { const { children, className, scrolling } ...
server/sonar-web/src/main/js/apps/project-admin/deletion/Header.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the License, o...
src/routes/Spots/components/SpotUsers/index.js
ZeusTheTrueGod/WindsurfingNetwork-client
// @flow import React from 'react'; import { Breadcrumb, Panel } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { type SpotForUsers as SpotForUsersType } from '../../modules/spotUsers'; export type StateProps = {| spot: ?SpotForUsersType, search: string |}; export type DispatchPr...
test/msg.js
n7best/react-weui
import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {Msg, Icon, Button, Footer} = WeUI; describe('<Msg></Msg>', ()=> { const type = 'success'; const title = '成功'; const description = '感谢你的反馈'; const buttons = [{ type...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/window/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxButton from '../../../jqwidgets-react/rea...
Veo/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
JGMorgan/Veo
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
dispatch/static/manager/src/js/components/PageEditor/tabs/BasicFieldsTab.js
ubyssey/dispatch
import React from 'react' import { TextInput, TextAreaInput } from '../../inputs' import * as Form from '../../Form' export default function BasicFieldsTab(props) { return ( <div className='c-article-sidebar__panel'> <Form.Input label='Slug' error={props.errors.slug}> <TextInput...
examples/todomvc/src/components/TodoItem.spec.js
pbomb/redux-devtools-profiler-monitor
import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from './TodoItem' import TodoTextInput from './TodoTextInput' function setup( editing = false ) { const props = { todo: { id: 0, text: 'Use Redux', completed: false }, editTodo: jest.fn(), dele...
src/Panel.js
escabc/members-search-app
import React from 'react' import theme from './theme' const styles = { root: { borderRadius: 2, border: 'solid 1px #E7ECF1', }, header: { padding: '20px 40px', borderBottom: 'solid 1px #E7ECF1', }, title: { fontSize: 18, color: theme.colors.grey.darker, }, } const Panel = ({ title...
src/components/common/Block.js
jaggerwang/zqc-app-demo
/** * 在球场 * zaiqiuchang.com */ import React from 'react' import {StyleSheet, View, TouchableOpacity} from 'react-native' import {COLOR} from '../../config' export default ({children, containerStyle, onPress}) => { if (onPress) { return ( <TouchableOpacity onPress={onPress} style={[styl...
docs/src/app/components/pages/components/Dialog/ExampleSimple.js
w01fgang/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatButtons](/#/components/flat-button...
src/blog/test-article-one.js
nsipplswezey/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; export default class { render() { return ( <div> <h1>Test Article 1</h1> <p>Coming soon.</p> </div> )...
src/client.js
stevoland/bill-test
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
template/__tests__/renderer/routes.js
my-dish/template-electron
import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { MemoryRouter } from 'react-router'; import configureStore from 'redux-mock-store'; import { render } from 'enzyme'; import Routes from '../../src/renderer/Routes'; import rootReducer from '../../src/renderer...
examples/huge-apps/components/GlobalNav.js
chf2/react-router
import React from 'react' import { Link } from 'react-router' const dark = 'hsl(200, 20%, 20%)' const light = '#fff' const styles = {} styles.wrapper = { padding: '10px 20px', overflow: 'hidden', background: dark, color: light } styles.link = { padding: 11, color: light, fontWeight: 200 } styles.activ...
demo/src/PaletteTable.js
kiloe/ui
import React from 'react'; import View from '../../package/View'; import UI from '../../package/index'; UI.registerCSS({ '.palette-table': { }, '.palette-table .color-group': { margin: '15px', }, '.palette-table .color-header': { marginBottom: '5px', }, '.palette-table .color-header .name': { ...
packages/benchmarks/src/implementations/react-native-web/Tweet/TweetText.js
css-components/styled-components
import AppText from './AppText'; import React from 'react'; import TweetTextPart from './TweetTextPart'; import { array, number, string } from 'prop-types'; class TweetText extends React.Component { static displayName = 'TweetText'; static propTypes = { displayMode: TweetTextPart.propTypes.displayMode, la...
node_modules/react-navigation/lib-rn/navigators/createNavigator.js
gunaangs/Feedonymous
import React from 'react'; var babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap || require('prop-types').any; var babelPluginFlowReactPropTypes_proptype_NavigationNavigatorProps = require('../TypeDefinition')...
src/svg-icons/notification/sms.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); NotificationSm...
src/components/Counter.js
rpowelll/universal-react-boilerplate
/* @flow */ import React from 'react' export type Props = { count: number, onIncrement?: () => void, onDecrement?: () => void, onReset?: () => void } const Counter = ({ count, onIncrement, onDecrement, onReset }: Props) => ( <div> <p className='count'>Counter: {count}</p> {onIncrement && <button onC...
es6/auto-complete/AutoComplete.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
analysis/demonhuntervengeance/src/CHANGELOG.js
yajinni/WoWAnalyzer
import React from 'react'; import { Yajinni, Zeboot, LeoZhekov, TurianSniper, Geeii, Makhai } from 'CONTRIBUTORS'; import { change, date } from 'common/changelog'; import { SpellLink } from 'interface'; import SPELLS from 'common/SPELLS'; export default [ change(date(2021, 1, 20), <> Added <SpellLink id={SPELLS.ELY...
app/app.js
emiprandi/toggl
import React from 'react'; import ReactDOM from 'react-dom'; import Api from './services/api'; import DB from './services/db'; const api = new Api(); const db = new DB(); import Login from './components/Login'; import Loading from './components/Loading'; import Entries from './components/Entries'; import Timer from '...
src/components/About.js
akhatri/portfolio-website
import React, { Component } from 'react'; import skills from '../data/skills'; class About extends Component { constructor() { super(); console.log(skills); this.state = { skills: skills, animateTile: false } } clickHandler = () => { this.setState({ animateTile: !this...
front/events/components/listPage.js
RalphSleigh/bookings
import React from 'react' import {connect} from 'react-redux' import {Link, NavLink} from 'react-router-dom' import {push} from 'react-router-redux' import ReactMarkdown from 'react-markdown' import Moment from 'moment' import {getEvents} from '../actions.js' import { showEditLink, showCreateLink, showBook...
docs/src/app/components/pages/components/Toggle/ExampleSimple.js
rhaedes/material-ui
import React from 'react'; import Toggle from 'material-ui/Toggle'; const styles = { block: { maxWidth: 250, }, toggle: { marginBottom: 16, }, }; const ToggleExampleSimple = () => ( <div style={styles.block}> <Toggle label="Simple" style={styles.toggle} /> <Toggle label...
app/components/nav/Nav.js
phillydorn/CAProject2
import React from 'react'; import { Link } from 'react-router'; class Nav extends React.Component { constructor(props) { super(props); this.state = { }; } render() { return ( <nav> <div className="site-header"> <h1>Bracket Draft</h1> </div> <ul> <li...
app/components/Login/Login.js
jasonf7/gordon-restaurant
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import GroupAdd from 'material-ui/svg-icons/social/group-add'; import ArrowForward from 'mat...
src/components/common/svg-icons/places/business-center.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesBusinessCenter = (props) => ( <SvgIcon {...props}> <path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1...
src/svg-icons/action/swap-horiz.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
src/routes/index.js
aredmon/new-plotting-dashboard
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to file...
frontend/js/components/ecosystems/MethodologyPrompt.js
ttavenner/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Card from './../atoms/Card'; class MethodologyPrompt extends Component { render() { return ( <Card title="Methodology" actions={ <button ...
src/Parser/DeathKnight/Shared/Items/ColdHeart.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; //import getDamageBonus from 'Parser/DeathKnight/Shared/getDamageBonus'; import ItemDamageDone from 'Main/ItemDamageDone...
examples/DropdownBasic.js
15lyfromsaturn/react-materialize
import React from 'react'; import Button from '../src/Button'; import Dropdown from '../src/Dropdown'; import NavItem from '../src/NavItem'; export default <Dropdown trigger={ <Button>Drop me!</Button> }> <NavItem>one</NavItem> <NavItem>two</NavItem> <NavItem divider /> <NavItem>three</NavItem> </Dropdow...
src/main.js
annxingyuan/chatscan
/** * App entry point */ // Polyfill import 'babel-polyfill'; // Libraries import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; // Routes import Routes from './common/components/Routes'; // Base styling import './common/base.css'; // ID of the DOM e...
fields/types/date/DateField.js
matthieugayon/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, InputGroup, FormInput } from 'elemental'; /* TODO: Implement yearRange Prop, or deprecate for max / min values (better) */ const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD...
techCurriculum/ui/solutions/6.1/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 in writ...
src/svg-icons/image/assistant-photo.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
src/lib/components/datePicker/DatePicker.js
lighter-cd/ezui_react_one
/** * @module DatePicker Component */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DatePickerItem from './DatePickerItem.js'; import PureRender from './pureRender.js'; import { convertDate, nextDate } from './time.js'; /** * Class DatePicker Component Class * @extends Compo...
src/List/NestedList.spec.js
mmrtnz/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import NestedList from './NestedList'; describe('<NestedList />', () => { describe('prop: open', () => { it('should render the children when open is true', () => { const wrapper = shallow( ...
client/page/search-replace/actions/replace.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import classnames from 'classnames'; import { useSelector, useDispatch } from 'react-redux'; /** * Internal dependencies */ import { isLocked, hasTags, getDefaultPresetValues } from 'state/preset/selector'; i...
src/index.js
mesmerismo/react-boilerplate
import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import Root from './components/Root' const rootEl = document.getElementById('root') render( <Root />, rootEl ) // If hot loader is enabled, enable it on the whole root component if (module.hot) { module....
src/templates/post.js
kvchen/kvchen.github.io
// @flow import Layout from '../components/layout'; import type { PostQuery } from '../codegen/graphql/PostQuery'; import React from 'react'; import { graphql } from 'gatsby'; type Props = { data: PostQuery, }; export default function Post({ data }: Props) { const markdownRemark = data?.markdownRemark; const f...
src/give/ThankYou.js
NewSpring/Apollos
import React from 'react'; import Header from '@ui/Header'; import BackgroundView from '@ui/BackgroundView'; export default function Dashboard() { return ( <BackgroundView> <Header titleText="Give Dashboard" /> </BackgroundView> ); }
src/components/Login/Signup.js
Angular-Toast/habitat
import React, { Component } from 'react'; import{ StyleSheet, View, Image, Text, TouchableOpacity, AsyncStorage } from 'react-native'; import SignupForm from './SignupForm'; import { onSignIn } from '../auth.js'; import axios from 'axios'; export default class Signup extends Component { constructor(props) { sup...
src/views/icons/flags/Flags.js
mrholek/CoreUI-React
import React from 'react' import { CCard, CCardBody, CCardHeader, CRow } from '@coreui/react' import { getIconsView } from '../brands/Brands.js' import { flagSet } from '@coreui/icons' import { DocsCallout } from 'src/components' const CoreUIIcons = () => { return ( <> <DocsCallout name="CoreUI Fla...
src/components/App.js
billdevcode/spaceship-emporium
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' import sampleData from 'sampleData/spaceships.json' import { initialData } from '../modules/spaceshipsDataReducer' class App extends React.Component { static propT...
app/imports/ui/client/components/UserStories/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Session } from 'meteor/session'; import { createContainer } from 'meteor/react-meteor-data'; import { Collections } from '../../../../api/common/collections.js'; import {Meteor} from 'meteor/meteor'; import UserStoriesList from './UserStoriesList.js'; import Feedback...
packages/material-ui/src/Toolbar/Toolbar.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { ...theme.mixins.toolbar, position: 'relative', display: 'flex', alignItems: 'center', }, gutters: theme.mixi...
components/modal/src/story.js
fi11/uikit
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { TeleportContext } from '@uikit/teleport'; import Overlay from '@uikit/overlay'; import Modal from './index'; import StateProvider from '@uikit/state-provider'; const CustomModal = ({ ch...
app/components/profile/profilePage/Profile.js
JoeKarlsson1/post-stream
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { fetchUserPosts } from '../../../actions/profile/profileActions'; import { getUserProfile } from '../../../actions/user/userActions'; import PostList from './postList/PostList'; import ProfileDetails from './P...
src/tab/tab-aside.js
ricsv/react-leonardo-ui
import React from 'react'; const TabAside = (props) => <div className="lui-tab__aside">{props.children}</div>; export default TabAside;
js/components/footer/index.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, List, ListItem } from 'native-base'; import { Actions } from 'react-native-router-flux'; ...
src/components/views/dialogs/ShareDialog.js
aperezdc/matrix-react-sdk
/* Copyright 2018 New Vector Ltd 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 in writing, software ...
src/config/routes.js
derappelt/React.js-Template
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute} from 'react-router'; import Main from '../components/main.jsx'; import Hello from '../components/hello.jsx'; import World from '../components/world.jsx'; const NotFound = ( <h1>404.. This page is not found!</h1> ); var...
src/svg-icons/social/group.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroup = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3...
src/CarouselItem.js
rapilabs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...