path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/Components/DragPreviewLayer.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import styles from './DragPreviewLayer.css'; function DragPreviewLayer({ children, ...otherProps }) { return ( <div {...otherProps}> {children} </div> ); } DragPreviewLayer.propTypes = { children: PropTypes.node, className: PropTypes...
src/parser/paladin/retribution/modules/core/ArtOfWar.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Combatants from 'parser/shared/modul...
src/components/TimelineBox/index.js
IDEOorg/steps-guide-builder
import React from 'react'; import PropTypes from 'prop-types'; import marked from 'marked'; import './index.less'; import { getTranslation } from '../../globals/utils'; marked.setOptions({ breaks: true }); const hrLine = (<hr className="timeline-hr" />); const TimelineBox = (props) => { let sections = props.cont...
admin/client/App/components/Navigation/Mobile/ListItem.js
rafmsou/keystone
/** * A list item of the mobile navigation */ import React from 'react'; import { Link } from 'react-router'; const MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRe...
react_native/mobile_app/index.ios.js
gilson27/LearnRevise
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class mobile_app extends Component { render() { return ( <View style={styles.container}> <Te...
server/sonar-web/src/main/js/apps/projects/components/AllProjects.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...
Demo4/Container/ArticleDetail.js
Quxiaolei/Study_RN
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Image, ListView, Dimensions, Navigator, NavigatorIOS, ScrollView, ActivityIndicator, Platform, WebView, View, PanResponder } from 'react-native'; import Article from './Article'; import ArticleList from './Art...
newclient/scripts/components/admin/detail-view/additional-review-panel/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...
src/scenes/home/getInvolved/whyGive/whyGive.js
OperationCode/operationcode_frontend
import React from 'react'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import faCheck from '@fortawesome/fontawesome-free-solid/faCheck'; import LinkButton from 'shared/components/linkButton/linkButton'; import Section from 'shared/components/section/section'; import styles from '../getInvolved.css'; ...
example/src/components/app.js
jerairrest/react-chartjs-2
import React from 'react'; import DoughnutExample from './doughnut'; import DynamicDoughnutExample from './dynamic-doughnut'; import PieExample from './pie'; import LineExample from './line'; import BarExample from './bar'; import HorizontalBarExample from './horizontalBar'; import RadarExample from './radar'; import ...
webapp/app/components/DashboardByUser/Save/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component save dashboard by user page // import React from 'react'; import { Panel, ButtonToolbar, Glyphicon } from 'react-bootstrap'; import SaveHistoryTable from 'containers/SaveHistory/Table'; import moment from 'moment'; import LinkContainerButton from 'components/Button'; import styles from './styles.css'; ...
src/pages/about.js
nennes/nenn_es
import React from 'react' const AboutPage = () => ( <div> <h1>About me</h1> <section> I studied Industrial Management and then Computer Engineering, before coming to the UK. I currently work at eBay, where I help bring awesome web experiences to life. After work, I try to remain creative an...
src/components/common/svg-icons/maps/directions-bus.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8...
client/modules/Post/__tests__/components/PostList.spec.js
jyothigundeti/sample-app
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js
barakmitz/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; const FlatButtonExampleSimple = () => ( <div> <FlatButton label="Default" /> <FlatButton label="Primary" primary={true} /> <FlatButton label="Secondary" secondary={true} /> <FlatButton label="Disabled" disabled={true} /> </...
NavigationReactMobile/sample/isomorphic/Isomorphic.js
grahammendick/navigation
import React from 'react'; import {NavigationMotion} from 'navigation-react-mobile'; export default () => ( <NavigationMotion unmountedStyle={{opacity: 1, translate: 100}} mountedStyle={{opacity: 1, translate: 0}} crumbStyle={{opacity: 0, translate: -100}}> {({opacity, translate}, s...
test/test_helper.js
fab1o/YouTube-Viewer
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/server/router.js
junkycoder/obycejnaholka
import React from 'react'; import { match, RouterContext } from 'react-router' import render from './render'; import routes from '../routes'; export default function () { return (req, res) => match({ routes, location: req.url }, (error, redirectLocation, renderProps) => { if (error) { res.status(500).se...
src/svg-icons/editor/format-shapes.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
admin/client/components/Forms/EditFormHeader.js
Tangcuyu/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Toolbar from '../Toolbar'; import { Button, FormIconField, FormInput, ResponsiveText } from 'elemental'; var Header = React.createClass({ displayName: 'EditFormHeader', propTypes: { data: React.PropTypes.object, list: React.PropTypes.object, t...
packages/containers/src/AppLoader/AppLoader.stories.js
Talend/ui
import React from 'react'; import { AppLoader as AppLoaderComponent } from '@talend/react-components'; import { Inject } from '@talend/react-cmf'; import AppLoader from '.'; const ICON = "url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+Cgk8ZyBmaWxsPSJub25...
src/components/MembershipsWithData.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Error from './Error'; import withIntl from '../lib/withIntl'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import Membership from './Membership'; import { Button } from 'react-bootstrap'; import { FormattedMessage } from 're...
src/List/ListItemTextSecondary.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { className: PropTypes.string, }; const ListItemTextSecondary = ({ className, ...otherProps }) => ( <span className={classnames('mdc-list-item__text__secondary', className)} {...otherProps...
admin/client/App/screens/Home/components/Lists.js
linhanyang/keystone
import React from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { plural } from '../../../../utils/string'; import ListTile from './ListTile'; export class Lists extends React.Component { render () { return ( <div className="dashboard-group__lists"> {_.map(this.props.lists, ...
js/views/memoir/CreateMemoir.js
n8e/memoirs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay'; import { Grid, Row, Col, Alert, FormGroup, Button, ControlLabel, FormControl } from 'react-bootstrap'; import { hashHistory } from 'react-router'; import global from 'global'; import CreateMemoirMutation from ...
app/components/0_Global/Navigation/Navigation.js
shug0/Awesomidi
// CORE import React from 'react'; import AppBar from 'material-ui/AppBar'; import FlatButton from 'material-ui/FlatButton'; import { green200, red500 } from 'material-ui/styles/colors'; const Navigation = (props) => { const statusColor = props.executeBindings ? green200 : red500; const statusText = props.execute...
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.stories.js
theforeman/foreman-tasks
import React from 'react'; import { number, text, select, action } from '@theforeman/stories'; import { TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS_ARRAY } from './TasksDonutChartConstants'; import TasksDonutChart from './TasksDonutChart'; export default { title: 'TasksDashboard/TasksCardsGrid/Charts/TasksDonutChart', c...
src/index.js
aubrian-halili/shout-out
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import { browserHistory } from 'react-router'; import * as storage from 'redux-storage'; import createEngine from 'redux-...
src/Buttons.js
gocreating/react-tocas
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Box from './Box'; class Buttons extends Component { render() { let { fluid, vertical, separated, relaxed, stackable, className, ...rest } = this....
js/jqwidgets/demos/react/app/datatable/columnshierarchy/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'xml', dataFields: [ { name: 'Supp...
src/main/Controls.js
snaheth/pileup.js
/** * Controls for zooming to particular ranges of the genome. * @flow */ 'use strict'; import type {PartialGenomeRange} from './types'; import React from 'react'; import _ from 'underscore'; import utils from './utils'; import Interval from './Interval'; type Props = { range: ?GenomeRange; contigList: strin...
client/src/views/Letter.js
MissUchiha/CANX
import React from 'react' import Footer from './Footer' import Modal from 'react-modal' import {modalStyle} from '../style/modalStyle.js' import DrawApi from '../api/DrawApi' import ErrorModal from './ErrorModal' class Letter extends React.Component { constructor(...args) { super(...args) this.openModal = this.o...
src/client/todos/tocheck.react.js
jaeh/este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {Link} from 'react-router'; export default class ToCheck extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg} = t...
src/components/LandingPage.js
partneran/partneran
import React, { Component } from 'react'; import Intro from './Intro'; import ModalVideo from './ModalVideo'; import PopularIdea from './Category/PopularIdea'; import LatestIdea from './Category/LatestIdea'; // import RecommendedIdea from './Category/RecommendedIdea'; import Marketing from './Marketing' import Footer f...
app/app/common/components/modal.js
inquisive/simpledocs
import React from 'react'; import Dialog from 'material-ui/lib/dialog'; import FlatButton from 'material-ui/lib/flat-button'; import RaisedButton from 'material-ui/lib/raised-button'; export default class DialogExampleModal extends React.Component { constructor(props) { super(props); this.state = { ope...
client/components/Dynamic/Containers/DashboardPage.js
Treeeater/expresshome
import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import { Dashboard } from '../AuthUI/Dashboard'; export class DashboardPage extends React.Component { /** * Render the component. */ render() { return (<Dashboard userEmail={this.context.userEmai...
src/js/components/Panel.js
nicholasodonnell/moonshine
import React from 'react'; class Panel extends React.Component { constructor() { super(); } componentWillMount() { } render() { return ( <div class="o-panel"> {this.props.children} </div> ); } } export default Panel;
hunt/src/components/HistoryItem.js
StamusNetworks/scirius
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { connect } from 'react-redux'; import { Col, Icon, Row, ListViewItem, ListViewInfoItem, ListViewIcon } from 'patternfly-react'; import { PAGE_STATE, sections } from 'hunt_common/constants'; import { addFilter } from '../...
node_modules/_rc-calendar@9.0.4@rc-calendar/es/Picker.js
ligangwolai/blog
import React from 'react'; import ReactDOM from 'react-dom'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import createChainedFunction from 'rc-util/es/createChainedFunction'; import KeyCode from 'rc-util/lib/KeyCode'; import placements from './picker/placements'; import Trigge...
src/components/common/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/> </SvgIcon> ); DeviceSignalCellularC...
src/Notification-Added.js
robreczarek/clouds-stepone-app
import React, { Component } from 'react'; import { withRouter } from 'react-router'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Paper from 'material-ui/Paper...
packages/mineral-ui-icons/src/IconCallEnd.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 IconCallEnd(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
public/src/index.js
alexisbellido/node-tests
// let's go! import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter, Match, Miss } from 'react-router'; import './css/style.css'; import StorePicker from './components/StorePicker'; import App from './components/App'; import NotFound from './components/NotFound'; const Root = () => { ...
src/svg-icons/av/fiber-dvr.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberDvr = (props) => ( <SvgIcon {...props}> <path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8...
node_modules/_redux-form@6.8.0@redux-form/es/createFormValues.js
ligangwolai/blog
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...
src/universalRouter.js
zangrafx/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export func...
fixtures/kitchensink/src/features/webpack/LinkedModules.js
altiore/webpack-react
/** * 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 from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
app/javascript/mastodon/features/compose/components/compose_form.js
glitch-soc/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
es6/Steps/Steps.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...
react-dev/components/menu.js
575617819/yanghang
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import { MenuItems } from './menu_items'; import SearchBar from '../containers/search_bar'; export default class Menu extends Component { constructor(props) { super(props); this.stat...
examples/websdk-samples/LayerReactNativeSample/src/ui/announcements/MessageListItem.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, TouchableOpacity, Text } from 'react-native'; import LayerHelper from '../../layer_helper.js' import TextMessagePart from './TextMessagePart'; import Avatar from '../Avatar'; import Icon from 'react-native-vector-icons/FontAwesome'; /** * ...
samples/react-1/lib/App.js
abouthiroppy/sweetpack
import React from 'react'; import styles from './style.css'; const App = () => ( <div> <h1 className={styles.title}>sample</h1> <input /> <div className={styles.js} /> </div> ); export default App;
src/components/Form/CateSelect/CateSelect.js
hahoocn/hahoo-admin
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; function makeOptions(options, i) { let items = []; let deep = i; let prefix = '|-'; for (let j = 0; j < deep; j++) { prefix = `\u3000${prefix}`; } for (const option of options) { items.push(<option key={option.id}...
app/src/components/common/ReduxTextField/ReduxTextField.js
joedunu/react-redux-example
import React from 'react' import PropTypes from 'prop-types' import TextField from 'material-ui/TextField' const ReduxTextField = ( { input, label, meta: {touched, error} }) => ( <TextField label={label} error={touched && !!error} helperText={touched && error} {...input} multiline...
src/components/common/svg-icons/action/delete-forever.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
src/components/TaskHistory/index.js
bruceli1986/contract-react
import React from 'react' import formatter from 'utils/formatter.js' /** 流转历史列表*/ class TaskHistory extends React.Component { static propTypes = { history: React.PropTypes.arrayOf(React.PropTypes.shape({ assignee: React.PropTypes.string, comment: React.PropTypes.string, taskName: React.PropType...
src/components/appRegionSelect.js
owstat/owstat
import React from 'react' import { Zoom } from 'animate-components' import { CheckServerStatus } from './appStatus' const regionNames = { America: { text_enUS: 'America', text_kr: '미국' }, Europe: { text_enUS: 'Europe', text_kr: '유럽' }, Asia: { text_enUS: 'Asia', text_kr: '아시아' }, ...
example-expo/NavBar.js
FaridSafi/react-native-gifted-messenger
/* eslint jsx-a11y/accessible-emoji: 0 */ import React from 'react'; import { Text } from 'react-native'; import NavBar, { NavTitle, NavButton } from 'react-native-nav'; import { Constants } from 'expo'; export default function NavBarCustom() { return ( <NavBar> <NavButton /> <NavTitle> 💬 Gi...
app/src/components/ProgressBar/index.js
oh-my-github/yo-omg-basic
import React from 'react' import ReactTooltip from 'react-tooltip' import styles from './index.css' /** ref: http://cssdeck.com/labs/twitter-bootstrap-progress-bars */ class ProgressBar extends React.Component { render() { const { width, color, label, animated, tooltipLabel, } = this.props const animationS...
fields/types/select/SelectField.js
michaelerobertsjr/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
app/components/LoadingIndicator/index.js
tomazy/react-boilerplate
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
packages/material-ui-icons/src/Backup.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Backup = 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-4.96zM14 ...
src/components/views/leftsidebar/LeftSidebar.js
DataKind-BLR/antara
import React from 'react'; import { Link, IndexLink } from 'react-router'; import TabsPanel from './subcomponents/TabsPanel'; class LeftSidebar extends React.Component{ render(){ let leftSideBarComponent= this.props.config; let logoWrapper = null; if(leftSideBarComponent.top_logo.format == "text") { logoW...
src/utils/getTipContent.js
wwayne/react-tooltip
/** * To get the tooltip content * it may comes from data-tip or this.props.children * it should support multiline * * @params * - `tip` {String} value of data-tip * - `children` {ReactElement} this.props.children * - `multiline` {Any} could be Bool(true/false) or String('true'/'false') * * @return * - Strin...
src/components/drag/DragContainer.js
TonyYang9527/my-app
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; import DragulaContainers from '../../dragula/DragulaContainers'; import DragDropTip from './DragDropTip'; class DragContainer extends React.Component{ static propTypes = { ...
js/App/Components/Sensor/AddSensor/SensorsListAddSensor.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
src/components/NavBar/NavBar.stories.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import {storiesOf} from '@storybook/react' import {NavBar} from './NavBar.js' import {contextDecorator} from '../../../stories/decorators' storiesOf('NavBar', module) .addDecorator( contextDecorator({ router: { history: { push: () => {}, replace...
src/ButtonInput.js
chilts/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
src/svg-icons/social/pages.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPages = (props) => ( <SvgIcon {...props}> <path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/...
docs/src/sections/ProgressBarSection.js
jesenko/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ProgressBarSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
packages/ui/stories/decorators/withWidget.js
plouc/mozaik
import React from 'react' import styled from 'styled-components' import { Widget } from '../../src' const Container = styled.div` position: fixed; top: 0; left: 0; bottom: 0; right: 0; overflow: auto; display: flex; justify-content: center; align-items: center; background: ${pro...
src/app.js
MatthewKosloski/howlongago
import React, { Component } from 'react'; import { render } from 'react-dom'; import HowLongAgo from './components/HowLongAgo'; render(<HowLongAgo/>, document.getElementById('app'));
src/svg-icons/editor/drag-handle.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
src/svg-icons/device/signal-wifi-1-bar.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01...
src/scripts/components/Footer.js
LWanjiru/ki-news
import React from 'react'; const Footer = () => { function getYear() { const dateNow = new Date(); const thisYear = dateNow.getFullYear(); return thisYear; } return ( <div className="col text-white"> <p>Made with &#x2764;, React, Webpack & Bootstrap</p> <p>Know It All(KI-ALL) News</p...
theme/src/components/checkoutSuccess.js
cezerin/cezerin
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import { text } from '../lib/settings'; import * as helper from '../lib/helper'; const getCheckoutField = (checkoutFields, fieldName) => { if (checkoutFields && checkoutFields.length > 0) { return checkoutFiel...
src/svg-icons/maps/place.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/Watermark.js
quantfive/DotDotDotLoader
/*** * watermark of deployed by helloDeploy */ import React from 'react' import './Watermark.css' export default class Watermark extends React.Component { render() { return ( <a href='https://www.hellodeploy.com' target='_blank' rel="noopener noreferrer"> <div className='watermark'> Deployed by <span c...
src/components/BleedContainer/index.js
deltaidea/planning-app
import React from 'react'; export default props => <div {...props} style={{ display: 'flex', flex: 1 }}>{props.children}</div>;
src/svg-icons/notification/mms.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (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-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
routes/Statistic/components/Card/Title.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` font-weight: bold; margin: 10px 0; `; const Title = () => ( <Wrapper> DIY月餅挑戰 </Wrapper> ); export default Title;
src/TextdomainContext.js
eugene-manuilov/react-gettext
import React from 'react'; import buildTextdomain from './buildTextdomain'; const TextdomainContext = React.createContext(buildTextdomain({}, 'n != 1')); export default TextdomainContext;
app/javascript/mastodon/features/account_gallery/components/media_item.js
ambition-vietnam/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; import { displaySensitiveMedia } from '../../../initial_state'; export default class MediaItem extends Immut...
src/utils/ValidComponentChildren.js
chilts/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
app/containers/NotFoundPage/index.js
frascata/vivaifrappi
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/components/Feed.js
wind85/waterandboards
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import IconButton from 'material-ui/IconButton' import InfiniteScroll from 'react-infinite-scroller' import PostedItem from '../components/PostedItem.js'; import ActionViewModule from 'material-ui/svg-icons/action/view-module'...
src/Slide.js
react-materialize/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; const Slide = ({ image, children }) => ( <li> {image} {children} </li> ); Slide.propTypes = { className: PropTypes.string, children: PropTypes.node, /** * The image that will be used in the Slide */ image: PropTypes.node.isRequir...
src/svg-icons/image/photo-library.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>...
actor-apps/app-web/src/app/components/DialogSection.react.js
Jaeandroid/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/svg-icons/action/all-out.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAllOut = (props) => ( <SvgIcon {...props}> <path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1...
src/svg-icons/hardware/memory.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareMemory = (props) => ( <SvgIcon {...props}> <path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 ...
src/components/partials/top.js
mangal49/HORECA
import React, { Component } from 'react'; class Top extends Component { render() { return ( <div > xxxxx </div> ); } } export default Top;
src/components/game.js
koscelansky/Dama
import React from 'react' import { useSelector } from 'react-redux' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import MoveSelector from '../containers/move-selector' import Footer from '../containers/footer' import Player from '../conta...
src/react/panels/panels.js
pivotal-cf/pivotal-ui
import React from 'react'; import {Grid, FlexCol} from '../flex-grids'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export class Panel extends React.Component { static propTypes = { title: PropTypes.string, titleCols: PropTypes.array, titleClassName: PropTypes.string, pan...
src/propTypes/colSizeType.js
react-fabric/react-fabric
import React from 'react' export const COL_SIZES = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] export default React.PropTypes.oneOf(COL_SIZES)
demo/components/ParseInput.js
technicallyfeasible/dataparser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DataParser from '../../src/DataParser'; import Context from '../../src/PatternContext'; export default class DataParserTest extends Component { static propTypes = { parser: PropTypes.instanceOf(DataParser), }; static defau...
blueocean-material-icons/src/js/components/svg-icons/action/flight-takeoff.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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-.43 5.31-1.42 4.35-1.16L21 11.49c....
component-starter-server/src/main/frontend/src/app/components/DatasetList/DatasetList.component.js
chmyga/component-runtime
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * 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...
scripts/src/pages/views/dashboard.js
Twogether/just-meet-frontend
import React from 'react'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; import Moment from 'react-moment'; import BigCalendar from 'react-big-calendar'; export default (self) => { return ( <div> <Helmet title="Just Meet | Meeting List" /> ...
src/parser/mage/shared/modules/features/MirrorImage.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; const INCANTERS_FLOW_EXPECTE...