path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
generators/app/templates/client/src/components/logo.js
tbehrsin/generator-react-native-cross-platform
import React from 'react'; import { View, Text, Image, StyleSheet } from 'react-native'; import Config from '../config'; import logoImage from '../images/company-logo.png'; const styles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', backgroundColor: Config.backgr...
app/packs/src/admin/AdminNavigation.js
ComPlat/chemotion_ELN
import React from 'react'; import { Nav, Navbar, MenuItem, NavDropdown } from 'react-bootstrap'; import UserAuth from '../components/UserAuth'; import UserStore from '../components/stores/UserStore'; import UserActions from '../components/actions/UserActions'; import NavNewSession from '../libHome/NavNewSession'; imp...
docs/app/Examples/collections/Table/Types/TableExampleCollapsing.js
ben174/Semantic-UI-React
import React from 'react' import { Header, Image, Table } from 'semantic-ui-react' const TableExampleCollapsing = () => { return ( <Table basic='very' celled collapsing> <Table.Header> <Table.Row> <Table.HeaderCell>Employee</Table.HeaderCell> <Table.HeaderCell>Correct Guesses</T...
webapp/app/components/NotificationsGroups/Form/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component notifications form // import React from 'react'; import Title from 'containers/Notifications/Form/Title'; import Description from 'containers/Notifications/Form/Description'; import Persistence from 'containers/Notifications/Form/Persistence'; import Groups from 'containers/Notifications/Form/Groups'; ...
src/components/PrivateRoute.js
elamperti/OpenWebScrobbler
import React from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { Navigate } from 'react-router-dom'; export default function PrivateRoute({ using: View }) { const isLoggedIn = useSelector((state) => state.user.isLoggedIn); if (isLoggedIn) { return <View />; }...
packages/cf-component-card/src/CardMessages.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; class CardMessages extends React.Component { render() { return ( <div className="cf-card__messages"> {this.props.messages.map((message, index) => { return ( <div key={index} role="alert...
frontend/src/components/editor/actions/link.js
1905410/Misago
// jshint ignore:start import React from 'react'; import Action from './action'; import isUrl from 'misago/utils/is-url'; export default function(props) { return ( <Action execAction={insertLink} title={gettext("Insert link")} {...props} > <span className="material-icon"> inse...
web/src/components/colorblindcheckbox.js
corradio/electricitymap
/* eslint-disable jsx-a11y/label-has-for */ /* eslint-disable jsx-a11y/label-has-associated-control */ import React from 'react'; import { useSelector } from 'react-redux'; import { dispatchApplication } from '../store'; import { saveKey } from '../helpers/storage'; import { useTranslation } from '../helpers/translati...
examples/counter/containers/App.js
noscripter/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
view/src/index.js
reliablejs/reliable-master
'use strict'; import React from 'react'; import ReactGA from 'react-ga'; import ReactDOM from 'react-dom'; import { Route, BrowserRouter } from 'react-router-dom'; import { addLocaleData, IntlProvider } from 'react-intl'; import zhCN from './i18n/zh_CN'; import enUS from './i18n/en_US'; import zh from 'react-intl/loc...
src/components/Card/index.js
d-amit/in-di-go
import React from 'react'; import MDL from 'material-design-lite/material.min.js'; class Card extends React.Component { render() { let cardClass = this.props.className ? `mdl-card ${this.props.className}` : 'mdl-card'; return ( <div className={cardClass} data-aos={this.props.aos.type} ...
screens/WelcomeScreen/Welcome.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { Image, StyleSheet, View } from 'react-native' import { Colors } from 'constants' import { MainNavigator } from 'navigation' const styles = StyleSheet.create( { backgroundImage: { height: 89, width: 254, }, container: { backgroundColor: Colors.tintColor, }, } ) c...
node_modules/react-navigation/src/navigators/TabNavigator.js
RahulDesai92/PHR
/* @flow */ import React from 'react'; import { Platform } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import TabView from '../views/TabView/TabView'; import TabBarTop from '.....
src/components/obligee/ObligeeTable1.js
axmand/react-webpack-redux
import React, { Component } from 'react'; import InputCell from './InputCell' import SelectCell from './SelectCell' class ObligeeTable1 extends Component { render() { //用于封装宗地基本信息表第一页 var table=( <table className="mytable"> <tbody > <tr> <td...
prototypes/console-boilerplate/src/containers/navigation/breadcrumb.js
yldio/joyent-portal
import React from 'react'; import paramCase from 'param-case'; import get from 'lodash.get'; import { Link } from 'react-router-dom'; import { Breadcrumb, BreadcrumbItem } from 'joyent-ui-toolkit'; export default ({ match }) => { const resource = get(match, 'params.resource'); const links = [ { name: '...
src/App.js
batmanimal/react-hot-boilerplate
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello, world.</h1> ); } }
src/svg-icons/maps/local-parking.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
examples/js/selection/unselectable-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/app/index.js
grvsooryen/mern-stack
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter} from 'react-router-dom'; import {Provider} from "react-redux"; import {configureStore} from "./stores/index"; import App from './App'; // import NewContact from './testdemo'; // import ForgotPassword from './ForgotPassword'; ReactDOM.r...
src/components/Todo.js
chrissm79/universal-redux-relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
app/containers/HomePage/index.js
nypl-spacetime/where
import React from 'react' import { connect } from 'react-redux' import { createSelector } from 'reselect' import { selectItem, selectLoading, selectError } from 'containers/App/selectors' import { loadItem } from '../App/actions' import Error from 'containers/Error' import Loading from 'containers/Loading' i...
react/src/base/inputs/SprkSelectionInput/SprkSelectionInput.js
sparkdesignsystem/spark-design-system
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import uniqueId from 'lodash/uniqueId'; import SprkErrorContainer from '../SprkErrorContainer/SprkErrorContainer'; import SprkLabelLocationCheck from '../components/SprkLabelLocationCheck/SprkLabelLocationCheck'; import ...
fields/types/select/SelectField.js
naustudio/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValu...
examples/huge-apps/routes/Course/components/Course.js
rdjpalmer/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import Nav from './Nav' const styles = {} styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 } class Course extends React.Component { render() { let { sidebar...
blueocean-dashboard/src/main/js/creation/bitbucket/cloud/BbCloudFlowManager.js
alvarolobato/blueocean-plugin
import React from 'react'; import { action, computed, observable } from 'mobx'; import { sseService } from '@jenkins-cd/blueocean-core-js'; import { logging, i18nTranslator } from '@jenkins-cd/blueocean-core-js'; import waitAtLeast from '../../flow2/waitAtLeast'; import FlowManager from '../../flow2/FlowManager'; imp...
src-client/modules/extractor/containers/Extractor/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
src/features/tab-view/index.js
rldona/react-native-tab-view-seed
import React, { Component } from 'react'; import { View, StyleSheet, Dimensions, Text, TouchableOpacity, } from 'react-native'; import * as firebase from 'firebase'; import * as themoviedb from '../../services/movies-service'; import * as colors from '../../common/colors'; import Icon from 'react-native-v...
stories/UserTopData.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links' import UserTopData from '../src/js/components/ui/UserTopData/UserTopData.js'; storiesOf('UserTopData', module) .add('with all', () => ( ...
fields/types/number/NumberColumn.js
cermati/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
src/Dropdown/stories/Dropdown.story.js
xDae/styled-bootstrap
import React, { Component } from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import { host } from 'storybook-host'; import { withKnobs, boolean, select } from '@storybook/addon-knobs/react'; import { caretWidth } from '../../utils/defaultTheme'; import Dropdown from...
src/svg-icons/action/flight-takeoff.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
src/components/SurveyGroup.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * 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...
src/components/Loader/index.js
dramich/Chatson
import React from 'react'; import { styles } from './styles.scss'; export default function Loader(props) { return ( <div key={props.key} className={`${styles}`}> <div className="outer-container"> <div className="inner-container"> <div className="section"> <div className="face"...
src/index.js
vladovidiu/soundcloud
import SC from 'soundcloud'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import configureStore from './stores/configureStore'; imp...
docs/client/components/pages/Linkify/CustomLinkifyEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createLinkifyPlugin from 'draft-js-linkify-plugin'; // eslint-disable-line import/no-unresolved import editorStyles from './editorStyles.css'...
test/fixtures/block/input.js
mistadikay/babel-plugin-transform-rebem-jsx
import React from 'react'; function Test() { return <div block="test"></div>; }
client/src/pages/payment/payments/status/index.js
csleary/nemp3
import { shallowEqual, useSelector } from 'react-redux'; import React from 'react'; import Underpaid from './underPaid'; import styles from './status.module.css'; const Status = () => { const { priceInRawXem, transactions } = useSelector(state => state.payment, shallowEqual); const hasUnconfirmed = transactions.so...
client/src/index.js
galiarmero/draft-buddy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/youtube_search2/youtube_search_modal2.js
dcporter44/tunefest-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import YoutubeSearchBar from './youtube_search_bar'; import { fetchYoutubeResults } from '../../actions/youtube_search_actions'; import { closeModal } from '../../actions/modal_actions'; import { clearYoutubeResults } from '../../actions/y...
frontend/component/Footer.js
gaofeixmrs/gf_node
import React from 'react'; const footerStyle = { marginTop: 50, padding: 20, }; export default class Footer extends React.Component { render() { return ( <div className="text-center" style={footerStyle}> &copy; CopyRight Node.js实战 </div> ) } }
app/src/components/ui/Loading.js
zhanglun/fist
import React, { Component } from 'react'; export class ColorfulBarLoading extends Component { constructor(props) { super(props); this.state = { text: props.text, }; } render() { return ( <div className="loading loading-colorfulbar"> <div className="loading-elem"> <d...
packages/icons/src/instances.js
geek/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg wid...
src/js/utils.js
souhe/reactScrollbar
import React from 'react'; const react13 = isReact13(React); var didWarnAboutChild = false; export function findDOMNode(component){ if(!react13){ return component; }else{ return React.findDOMNode(component); } } export function warnAboutFunctionChild() { if (didWarnAboutChild || react...
components/Rain.js
kristajg/react-native-weather
import React from 'react'; import { StyleSheet, Text, Animated, View, Easing } from 'react-native'; import Raindrop from './Raindrop'; export default class Rain extends React.Component { static navigationOptions = { title: 'Rain Drop (Drop Top)', }; state = { numRaindrops: 50, // TODO: accept numRaindro...
screens/HouseScreen/House.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { Image, ScrollView, Text, TouchableOpacity, View } from 'react-native' import Spinner from 'react-native-loading-spinner-overlay' import PropTypes from 'prop-types' import { ga } from 'services' import { object } from 'utilities' import { Card } from '@components' import styles from '...
src/components/settings/Goal.js
reichert621/log-book
import React from 'react' import EditableText from '../forms/EditableText' import css from '../../styles/main.scss' import classNames from 'classnames' const Goal = ({ goal, onUpdate, onRemove }) => { const styles = STYLES(goal) return ( <div className={css['item-container']} style={styles['item-container']}>...
client/src_old/components/common/LoadingIndicator.js
Del7a/vehicle-finder
import React from 'react' function LoadingIndicator () { return ( <div> Loading <div className='sk-fading-circle'> <div className='sk-circle1 sk-circle' /> <div className='sk-circle2 sk-circle' /> <div className='sk-circle3 sk-circle' /> <div className='sk-circle4 sk-c...
examples/counter/src/containers/DevTools.js
YoruNoHikage/redux-devtools-dispatch
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import MultipleMonitors from 'redux-devtools-multiple-monitors'; import Dispatcher from 'redux-devtools-dispatch'; import * as actionCr...
packages/core/stories/elements/Heading/Heading.stories.js
massgov/mayflower
import React from 'react'; import ColoredHeading from '@massds/mayflower-react/dist/ColoredHeading'; import CompHeading from '@massds/mayflower-react/dist/CompHeading'; import SidebarHeading from '@massds/mayflower-react/dist/SidebarHeading'; import { attachHTML } from '../../util/renderCode'; const { STORYBOOK_CDN_PA...
react/react_harry/command/harry-react2.js
caiting/react-webpack-mud
/** * Created by tt on 16/6/2. */ import React from 'react'; import ReactDOM from 'react-dom'; var HarryStyle =require('./harry-react1.css'); var date = [ { "title": "新浪微博", "content": "诞生于1991年,性格开朗,毛病不少" }, { "title": "QQ微博", "content": "诞生于1991年,性格开朗,毛病不少" } ]; var ...
src/client/index.js
amayun/react-redux-seed
import App from './containers/App' import React from 'react' import ReactDom from 'react-dom' import Reducer from './reducers/Reducers' import thunk from 'redux-thunk' import {createStore, applyMiddleware, compose } from 'redux' import {Provider} from 'react-redux' require('./index.scss') const composeEnhancers = __D...
src/svg-icons/av/not-interested.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNotInterested = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12...
src/components/LaborRightsSingle/MarkdownParser.js
chejen/GoodJobShare
import React from 'react'; import marked from 'marked'; import styles from './MarkdownParser.module.css'; const MarkdownParser = ({ content }) => ( <div className={styles.md} // eslint-disable-next-line react/no-danger dangerouslySetInnerHTML={{ __html: marked(content), }} /> ); MarkdownPars...
test/input.js
caseywebdev/cogs-transformer-babel
import $ from 'jquery'; import React from 'react'; const app = $(() => <div id='foo' />); export default app;
web/src/client/createRoutes.js
zanj2006/este
import App from './app/app.react'; import Home from './pages/home.react'; import Login from './pages/auth.react'; import Me from './pages/me.react'; import NotFound from './pages/notFound.react'; import React from 'react'; import Todos from './pages/todos.react'; import {IndexRoute, Route} from 'react-router'; export ...
example/index.android.js
beast/react-native-scan-doc
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, Dimensions, StyleSheet, Text, View } from 'react-native'; import Camera from 'react-native-camera'; import Scanner from 'react-native-scan-doc' export defau...
src/routes/user/Modal.js
caijinchun/hsweb-antd
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' import city from '../../utils/city' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6, }, wrapperCol: { span: 14, }, } const modal = ({ item = {...
src/app/components/resourses/moon/Components.js
maullerz/eve-react
import React from 'react' import {connect} from 'react-redux' import Helper from '../../../helpers' import { ItemView } from '../../item' class Components extends React.Component { render() { let _inputComponents = this.props.materials.map((val) => { let itemId = val.item_id let price = this.props....
blueocean-material-icons/src/js/components/svg-icons/device/battery-charging-20.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBatteryCharging20 = (props) => ( <SvgIcon {...props}> <path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h4v-2.5H9L13 7v5.5...
react/IconMail/IconMail.js
seekinternational/seek-asia-style-guide
import svgMarkup from './IconMail.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function IconMail(props) { return <Icon markup={svgMarkup} {...props} />; } IconMail.displayName = 'Mali icon';
src/Parser/DeathKnight/Blood/Modules/Features/UnendingThirstTracker.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Mo...
stories/core/Field.js
rentpath/react-ui
import React from 'react' import { Field } from 'react-ui-core/src' export const SelectField = ( <Field type="select" label="Priority" options={[ { label: 'Low', value: 'low' }, { label: 'High', value: 'high' }, ]} /> ) export const DefaultField = ( <Field label="Name" placeh...
docs/client.js
laran/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
resources/apps/frontend/src/contexts/auth-context.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import {login, forgot, reset} from 'requests/auth'; import getErrorMessage from 'utils/getErrorMessage'; import notify from 'utils/notify'; import initAxios from 'utils/initAxios'; const AuthContext = React.createContext(); const __state__ = () => { try { return { user: JSON.par...
src/common/syntax-select/index.js
stylelint/stylelint-demo
import PropTypes from 'prop-types'; import React from 'react'; import styles from './index.css'; const syntaxes = [ { name: 'CSS', id: 'css', }, { name: 'SCSS', id: 'scss', }, { name: 'Sass', id: 'sass', }, { name: 'Less', id: 'less', }, { name: 'SugarSS', id: 'sugarss', }, { name: 'H...
app/javascript/mastodon/features/compose/components/upload_progress.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
src/shared/form/StatefulError.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import { connect } from 'react-redux'; import { Errors } from 'react-redux-form'; import { addMessage, removeMessage } from '../reduxModules/errorMessage'; class StatefulError extends React.Component { componentDidMount() { const { dispatch, messag...
packages/material-ui-icons/src/EditLocation.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-.7c.15-.15.39-.15.54 0l.9.9c.15.15.15.39 0 .54z" /...
cheesecakes/plugins/content-manager/admin/src/containers/EditPage/index.js
strapi/strapi-examples
/** * * EditPage * */ import React from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import PropTypes from 'prop-types'; import { cloneDeep, findIndex, get, includes, ...
src/interface/icons/More.js
sMteX/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=Misc&i=932100 // more by K Ξ L L Ξ R from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" className="icon" {...other}> <path d="M470,36 C461.163444,36 454,28.836556 454,20 C454,11.1634...
pages/components/Line.js
thibthib/maton
import * as d3 from 'd3'; import React from 'react'; const Line = props => { const path = d3.line() .x(props.accessors.x) .y(props.accessors.y)(props.data); return <path d={path} fill={'none'} stroke={props.stroke} strokeWidth={props.strokeWidth} className={props.className} />; }; export default Line;
src/views/discover/Happiness.js
anysome/objective
/** * Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 16/7/14. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, ListView, Image} from 'react-native'; import moment from 'moment'; import {airloy, styles, colors, api, toast, L} from '../../app'; export default class Happi...
app/m_components/Similar.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import ArticleObjStore from '../stores/ArticleObjStore'; import ArticleObjActions from '../actions/ArticleObjActions'; class Similar extends React.Component { constructor(props) { super(props); this.state = ArticleObjStore.getState(); this.onChan...
node_modules/react-bootstrap/es/SplitToggle.js
caughtclean/but-thats-wrong-blog
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
src/screens/WelcomeScreen.js
dbyilmaz/jobs
import _ from 'lodash'; import React, { Component } from 'react'; import { View, Text, Image, AsyncStorage } from 'react-native'; import Slides from '../components/Slides' import ActivityIndicatorr from '../components/ActivityIndicatorr'; const SLIDE_DATA = [ { text: 'Welcome to JobApp', color:'#00B9FC' }, { t...
server/sonar-web/src/main/js/main/nav/component/component-nav-meta.js
vamsirajendra/sonarqube
import moment from 'moment'; import React from 'react'; import PendingIcon from '../../../components/shared/pending-icon'; export default React.createClass({ render() { let metaList = []; let canSeeBackgroundTasks = this.props.conf.showBackgroundTasks; let backgroundTasksUrl = `${baseUrl}/project/backgro...
examples/src/components/NumericSelect.js
ygkee/React-select
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
blueocean-material-icons/src/js/components/svg-icons/editor/merge-type.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType.displayName = 'EditorMergeType'; EditorMergeTy...
tests/format/misc/flow-babel-only/class_with_generics.js
prettier/prettier
import React from 'react'; /*:: type Props = { foo?: ?string, bar: number, }; */ /*:: type State = { baz: number }; */ class Component extends React.Component/*:: <Props, State> */ { }
src/svg-icons/image/filter.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter = (props) => ( <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1...
src/NodeOutputList.js
falcon-client/hawk
import React from 'react'; import NodeOutputListItem from './NodeOutputListItem'; export default class NodeOutputList extends React.Component { onMouseDown(i) { this.props.onStartConnector(i); } render() { let i = 0; return ( <div className="nodeOutputWrapper"> <ul className="nodeOutp...
src/NotesLister.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; import { get } from 'lodash'; import ModalSchemaBasedEditor from './modules/ModalSchemaBasedEditor'; import FontAwesome from 'react-fontawesome'; import {Button, ButtonGroup, ControlLabel, FormControl, FormGroup, Panel } from 'rea...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
Just-D/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
src/utils/fieldUtils/renderOptGroup.js
policygenius/athenaeum
import React from 'react'; import renderOption from 'utils/fieldUtils/renderOption'; function renderOptions(options) { if (!options) return null; return options.map(renderOption); } export default function renderOptGroup(optionGroup, idx) { const { reactKey, group, options, } = optionGroup; re...
src/components/Theme.js
mxenabled/mx-react-components
import React from 'react'; const { themeShape } = require('../constants/App'); /** * Use ThemeProvider at the top-level of the application to * make theme available to all theme-able components without * the need to explicitly pass the theme prop. */ export class ThemeProvider extends React.Component { static p...
client/modules/core/components/post.js
MechJosh0/storybook-mdl-error
import React from 'react'; import CommentList from '../../comments/containers/comment_list'; const Post = ({post}) => ( <div> {post.saving ? <p>Saving...</p> : null} <h2>{post.title}</h2> <p> {post.content} </p> <div> <h4>Comments</h4> <CommentList postId={post._id}/> </div>...
src/ParallaxScrollView.js
Monte9/react-native-parallax-scrollview
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text, View, Image, Animated, ScrollView } from 'react-native'; import { Icon, List, ListItem } from 'react-native-elements'; import { USER, FACEBOOK_LIST, SLACK_LIST, GENERIC_LIST, SCREEN_WIDTH, SCREEN_HEIGHT, DEFAULT_WI...
fields/types/location/LocationField.js
joerter/keystone
import _ from 'lodash'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', getIn...
examples/auth/src/components/Login.js
lore/lore
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import Auth0 from 'auth0-js'; import ShowLoadingScreen from './ShowLoadingScreen'; export default createReactClass({ displayName: 'Login', componentDidMount() { const auth0 = new Auth0.WebAuth(lor...
webpack/components/EditableSwitch.js
Katello/katello
import React from 'react'; import { Switch } from '@patternfly/react-core'; import { noop } from 'foremanReact/common/helpers'; import PropTypes from 'prop-types'; const EditableSwitch = ({ value, attribute, onEdit, disabled, setCurrentAttribute, }) => { const identifier = `${attribute} switch`; const onSwitch =...
app/javascript/mastodon/components/domain.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
react-flux-mui/js/material-ui/src/svg-icons/av/forward-10.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (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.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
media_client/src/components/Upload.js
ntamvl/react-upload-progress-bar-with-rails-5-api
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import { Field, reduxForm } from 'redux-form'; import { post } from 'axios'; import { Line, Circle } from 'rc-progress'; import { v4 } from 'node-uuid'; class Upload extends Component { constructor(props) { super(props); this.on...
src/ui/dashboard/components/numberCard.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Icon, Card } from 'antd' import CountUp from 'react-countup' import styles from './numberCard.less' function NumberCard ({ icon, color, title, number, countUp }) { return ( <Card className={styles.numberCard} bordered={false} bodyStyle={{ padd...
data-browser-ui/public/app/components/tableComponents/td/listComponents/booleanList.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; class BooleanListComponent extends React.Component { constructor(){ super() this.state = { } } updateValue(e){ this.props.updateElementData(e.target.checked,...
node_modules/@material-ui/core/es/StepIcon/StepIcon.js
pcclarke/civ-techs
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import CheckCircle from '../internal/svg-icons/CheckCircle'; import Warning from '../internal/svg-icons/Warning'; import withStyles from '../styles/withStyles'; import SvgIcon from '../SvgIcon'; export const styles = theme => ({ /...
ui/src/components/workflow/queues/QueueList.js
grfeng/conductor
import React from 'react'; import moment from 'moment'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { connect } from 'react-redux'; import { getQueueData } from '../../../actions/WorkflowActions'; class QueueListList extends React.Component { state = { queueData: [] }; ...
src/svg-icons/communication/call-split.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallSplit = (props) => ( <SvgIcon {...props}> <path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/> </SvgIcon> ); CommunicationCallS...
src/components/Header.js
iWader/website
// @flow import React from 'react'; import { Link } from 'react-router-dom'; export default () => ( <header className="app-header"> <h1>WADE URRY</h1> <Link to="/"> Home </Link> <Link to="/blog"> Blog </Link> </header> );
packages/docs/components/Examples/video/gettingStarted.js
nikgraf/draft-js-plugin-editor
// It is important to import the Editor which accepts plugins. import Editor from '@draft-js-plugins/editor'; import createVideoPlugin from '@draft-js-plugins/video'; import React from 'react'; // Creates an Instance. At this step, a configuration object can be passed in // as an argument. const videoPlugin = createVi...