path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/device/airplanemode-inactive.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeInactive = (props) => ( <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1...
src/admin/src/components/controls/renderers/render_number.js
jgretz/zen-express
import React from 'react'; export const renderNumber = (data) => ( <span>{data ? data.toLocaleString() : ''}</span> );
docs-ui/components/tableChart.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {number, text, boolean, array} from '@storybook/addon-knobs'; import TableChart from 'app/components/charts/tableChart'; storiesOf('Charts/TableChart', module).add( 'default', withInfo( ...
text-dream/webapp/src/components/heads/DreamHeadComponent.js
PAIR-code/interpretability
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
assets/javascripts/sso/components/AdminIndexCard.js
laincloud/sso
import StyleSheet from 'react-style'; import React from 'react'; import {History} from 'react-router'; let AdminIndexCard = React.createClass({ mixins: [History], render() { const buttons = [ { title: "我的应用管理", target: "apps" }, { title: "我的群组管理", target: "groups" }, { title: "用户管理-管理员特供",...
src/__mocks__/react-intl.js
shayc/cboard
import React from 'react'; const Intl = jest.genMockFromModule('react-intl'); // Here goes intl context injected into component, feel free to extend const intl = { formatMessage: ({ defaultMessage }) => defaultMessage }; Intl.injectIntl = Node => { const renderWrapped = props => <Node {...props} intl={intl} />; ...
examples/js/custom/csv-button/fully-custom-csv-button.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertButton } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; ...
js/components/Header/6.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import { openDra...
app/components/material/Material_5.js
tw00089923/kcr_bom
import React from 'react'; import style from './Material.css'; import cx from 'classname'; import _ from 'lodash'; export default class Material_5 extends React.Component { constructor(props) { super(props); this.state ={ show_first:false, show_3_2_1:true, show_3_2_2:false, show_3_1:fal...
node_modules/native-base/Components/Widgets/ProgressBar.android.js
tedsf/tiptap
/* @flow */ 'use strict'; import React from 'react'; import ProgressBar from "ProgressBarAndroid"; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; export default class SpinnerNB extends NativeBaseComponent { prepareRootProps() { var ty...
src/lib/plot/hint.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
src/components/UserList/UserList.js
Pamplemaus/raincloud
import React from 'react'; import UserItem from '../UserItem/UserItem'; import styles from './UserList.scss'; const UserList = ({ users, removeUser, togglePlaylist }) => { return( <div className={styles.userlist}> { users.map((user) => ( <UserItem key={user.id} selected={user.selected} image={user....
frontend/src/components/common/pagination.js
unicef/un-partner-portal
import React, { Component } from 'react'; import withStyles from 'material-ui/styles/withStyles'; import IconButton from 'material-ui/IconButton'; import Input from 'material-ui/Input'; import { MenuItem } from 'material-ui/Menu'; import Select from 'material-ui/Select'; import Toolbar from 'material-ui/Toolbar'; impo...
src/App.js
MichaelKohler/where
import React from 'react'; import Overview from './Overview'; import Footer from './Footer'; import './scss/app.scss'; const App = () => { return ( <div> <Overview /> <Footer /> </div> ); }; export default App;
src/Parser/DeathKnight/Shared/RuneDetails.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { Scatter } from 'react-chartjs-2'; import Analyzer from 'Parser/Core/Analyzer'; import Tab from 'Main/Tab'; import { formatDuration } from 'common/format'; import RuneBreakdown from './RuneBreakdown'; import RuneTracker from './RuneTracker'; class RuneDetails extends Analyzer { s...
src/svg-icons/device/usb.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceUsb = (props) => ( <SvgIcon {...props}> <path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3....
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
yangchenghu/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import classnames from 'classnames'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import...
src/components/SocialIcon/SocialIcon.js
denichodev/personal-web
import React from 'react'; import PropTypes from 'prop-types'; import './SocialIcon.css'; const SocialIcon = ({ to, className }) => { return ( <div> <a href={to} target="_blank" rel="noreferrer noopener"> <i className={`social-icon centered ${className}`} /> </a> </div> ); }; SocialIco...
src/svg-icons/image/camera-front.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
PeerAI/index.ios.js
peerism/peer.ai
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import MainApp from './src/MainApp'; AppRegistry.registerComponent('PeerAI', () => MainApp);
src/svg-icons/action/card-travel.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
src/components/bottomBar.item.js
pcyan/dva-example-rn
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, } from 'react-native'; import { IconToggle } from 'react-native-material-design'; const NORMAL_COLOR = '#2b2b2b'; const SELECTED_COLOR = '#006eff'; class Item extends Component { constructor(props) { super(props); l...
examples/with-firebase-functions/src/server.js
jaredpalmer/react-production-starter
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const server = express(); server .disable('x-powered-by') .use(express.static(process.env.RAZZLE_PUBLIC_DIR)) .get('/...
docs/app/Examples/collections/Table/Variations/TableExampleTextAlign.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleTextAlign = () => { return ( <Table striped> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell textAli...
src/components/Header/Header.js
rickyduck/pp-frontend
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> </div> ) export default Header
app/components/App.js
erlswtshrt/react-es6-boilerplate
import React from 'react'; class App extends React.Component { render() { return ( <div> {this.props.children} </div> ); } } export default App;
src/index.js
hartzis/react-redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, connect } = createAll(React);
frontend/src/Calendar/Legend/LegendItem.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import titleCase from 'Utilities/String/titleCase'; import styles from './LegendItem.css'; function LegendItem(props) { const { name, status, tooltip, colorImpairedMode } = props; return ( <di...
src/svg-icons/action/offline-pin.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
admin/client/components/ListFilters.js
efernandesng/keystone
import React from 'react'; import filterComponents from '../filters'; import CurrentListStore from '../stores/CurrentListStore'; import Popout from './Popout'; import { Pill } from 'elemental'; const Filter = React.createClass({ propTypes: { filter: React.PropTypes.object.isRequired }, getInitialState () { retu...
src/routes/Home/components/Home/Home-Devs.js
Ryana513/ccproject
import React from 'react' import Paper from 'material-ui/Paper' import ryanj from '../../assets/ryanj.jpg' import drew from '../../assets/drew.jpg' import sdg from '../../assets/sdg.jpg' import ryanW from '../../assets/ryanW.jpg' import bghero from '../../assets/bg-hero-online.jpg' // import { BrowserRouter as NavLink ...
src/lists.js
Zyj163/React_learning
/** * Created by ddn on 16/11/7. */ import React from 'react'; import ReactDOM from 'react-dom'; //A "key" is a special string attribute you need to include when creating lists of elements. //并且key必须是唯一的,在一个数组中 function NumberList(props) { const numbers = props.numbers; const listItems = numbers.map((number,...
src/js/ui/pages/welcome/loadDiary.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import Icon from '../../components/icon'; import Button from '../../components/button'; import Loading from '../../components/loading'; import Layout from './layout'; import { connectRedux, routing } from '../../helpers/decorators'; var Component = React.createClass...
src/frontend/components/survey-renderers/BSDPhonebankRSVPSurvey.js
al3x/ground-control
import React from 'react'; import Relay from 'react-relay' import BSDSurvey from './BSDSurvey' import {BernieColors, BernieText} from '../styles/bernie-css' import {GoogleMapLoader, GoogleMap, Marker} from 'react-google-maps'; import {FlatButton, Paper} from 'material-ui'; import moment from 'moment'; import FontIcon f...
packages/react/src/components/ContentSwitcher/next/index.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { settings } from 'carbon-components'; import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; imp...
stories/typography.stories.js
buildkite/frontend
/* global module */ import React from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; const Example = function(props) { return <div className={`my3 border-left border-${props.border || "gray"} pl4 py2`}>{props.children}</div>; }; Example.propTypes = { children: PropTypes.n...
react/redux-start/react-redux-todos-review/src/components/TodoList.js
kobeCan/practices
import React from 'react'; import Todo from './Todo' const TodoList = ({ todos, onClick }) => ( todos.map(todo => ( <Todo key={todo.id} {...todo} onClick={() => onClick(todo.id)} /> )) ); export default TodoList
examples/basic/app.js
revolunet/cmp1
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Cmp1 from '../../lib/index'; class App extends Component { click() { alert('Roger that !'); } render() { return ( <div className='example'> <h1>cmp1</h1> <Cmp1 click={ this.click } name='Click me'/...
ReactNativeExampleApp/node_modules/react-native/Libraries/Text/Text.js
weien/Auth0Exercise
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
mjw56/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleResponsiveWidth.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleResponsiveWidth = () => ( <div> <Grid> <Grid.Column mobile={16} tablet={8} computer={4}> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column mobile={1...
app/components/Message.js
alexbooker/pusher-realtime-chat
import React from 'react' import Time from './Time' const Message = React.createClass({ render () { return ( <div className='message'> <div className='message__top'> <img className='message__author-avatar' src={this.props.message.user.avatarUrl} alt={this.props.message.user.username} /> ...
docs/app/Examples/elements/Icon/Groups/IconExampleCornerGroup.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleCornerGroup = () => ( <Icon.Group size='huge'> <Icon name='puzzle' /> <Icon corner name='add' /> </Icon.Group> ) export default IconExampleCornerGroup
src/js/components/icons/base/BackTen.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
resources/apps/frontend/src/pages/attendance/index.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import Loadable from 'components/Loadable'; import {PrivateLayout} from 'components/Layouts'; import renderRoutes from './../routes'; export default { exact: false, auth: true, path: '/attendance', component: ({routes}) => { return <PrivateLayout>{renderRoutes(routes)}</PrivateL...
src/parser/priest/discipline/modules/features/Checklist/Module.js
FaideWW/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import ManaValues from 'parser/shared/modules/ManaValues'; import PreparationRuleAnalyze...
src/components/MainLayout/Header.js
waltcow/newsApp
import React from 'react'; import { Menu, Icon } from 'antd'; import { Link } from 'dva/router'; function Header({ location }) { return ( <Menu selectedKeys={[location.pathname]} mode="horizontal" theme="dark" > <Menu.Item key="/users"> <Link to="/users"><Icon type="bars" />Us...
react/features/room-lock/components/RoomLockPrompt.native.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Dialog } from '../../base/dialog'; import { endRoomLockRequest } from '../actions'; /** * Implements a React Component which prompts the user for a password to lock a * conference/room. */ class RoomLockPrompt extends Compon...
src/components/Column/RadioButtonColumn.js
TheBurningRed/react-gridview
'use strict'; import React from 'react'; require('styles/GridView/RadioButtonColumn.css'); let RadioButtonColumnComponent = (props) => ( <div className="radiobuttoncolumn-component"> Please edit src/components/gridView//RadioButtonColumnComponent.js to update this component! </div> ); RadioButtonColumnCompo...
frontend/src/components/YoutubeVideo.js
carlosascari/opencollective-website
import React from 'react'; export default ({ video, width='560', height='315' }) => { if(!video || !video.match(/watch\?v=/)) { return; } const id = video.match(/watch\?v=([^&]*)/)[1]; return ( <div className='YoutubeVideo height-100'> <iframe width={width} height={height...
src/svg-icons/maps/directions-walk.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsWalk = (props) => ( <SvgIcon {...props}> <path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-...
src/svg-icons/action/gavel.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
src/svg-icons/image/brightness-3.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness3 = (props) => ( <SvgIcon {...props}> <path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/> </SvgIcon> ); I...
src/components/cropper-view/index.js
olofd/react-native-insta-photo-studio
import { View, Text, StyleSheet, TouchableOpacity, Dimensions, Image, Animated, ScrollView, InteractionManager } from 'react-native'; import React, { Component } from 'react'; import ImageCopperView from './image-cropper-view'; import BlockView from 'react-native-scroll-block-view'; import { BlurView ...
client/components/MasterPage.js
JSVillage/military-families-backend
import React from 'react'; import {Link} from 'react-router'; class MasterPage extends React.Component { render() { return <div> <div className="container"> <div className ="row"> <nav className="navbar navbar-default navbar-fixed-top"> <div className="container-fluid"> ...
app/packs/src/admin/text_templates/TextTemplateIcon.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; const TextTemplateIcon = ({ template }) => { if (!template) return <span />; const { data, name } = template; if (data.icon) { return ( <i className={data.icon} /> ); } const text = (data || {}).text || name; return ( <spa...
packages/bonde-styleguide/src/content/IconColorful/svg/Abc.js
ourcities/rebu-client
import React from 'react' const Icon = () => ( <svg xmlns='http://www.w3.org/2000/svg' width='46' height='40' viewBox='0 0 46 40'> <g fill='none' fillRule='evenodd' transform='translate(-27)'> <circle cx='52' cy='20' r='20' fill='#E09' opacity='.297' /> <circle cx='52' cy='20' r='16' fill='#E09' opac...
src/components/Toggle/Toggle-story.js
jzhang300/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Toggle from '../Toggle'; const toggleProps = { onToggle: action('toggle'), className: 'some-class', }; storiesOf('Toggle', module).addWithInfo( 'Default', ` Toggles are cont...
fields/types/relationship/RelationshipFilter.js
ratecity/keystone
import _ from 'lodash'; import async from 'async'; import React from 'react'; import { findDOMNode } from 'react-dom'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl, } from '../../../admin/client/App/elemental'; import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList'; ...
src/app/pages/Home.js
skratchdot/audio-links
import React, { Component } from 'react'; import { Row, Col, Button, Input, Jumbotron, Label, Glyphicon } from 'react-bootstrap'; import { connect } from 'react-redux'; import { setFilterText } from '../actions/filterText'; import { addTag, deleteTag, clearTags } from '../actions/tags'; import allTags from '../../../da...
src/routes/HelloWorld/Component.js
bryanmartin82/react-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as ActionCreators from './actions'; import styles from './styles.css'; import checkmark from 'svg/icons/checkmark.svg'; import Icon from 'components/Icon/Component'; class HelloWorldC...
src/components/InnerLayout/ImageUpload/ImageUpload.js
Venumteam/loafer-front
import React from 'react' // styles import classNames from 'classnames/bind' import styles from './ImageUpload.scss' // constants const avatarPlaceholder = require('../../../../static/user.svg') const cx = classNames.bind(styles) export default class ImageUpload extends React.Component { static propTypes = { use...
fields/types/boolean/BooleanFilter.js
dryna/keystone-twoje-urodziny
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const VALUE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false }, ]; function getDefaultValue () { return { value: true, }; } var BooleanFilter = React.createClass({ propTy...
js/components/Nav.js
ShadowZheng/CodingLife
import React from 'react'; import {Link} from 'react-router'; import NavAction from '../actions/NavAction'; import NavStore from '../stores/NavStore'; import $ from '../jquery'; function openNav() { $('#app').addClass('show-nav'); $('#nav-toggle').addClass('uac-close') $('#nav-toggle').addClass('uac-dark')...
jqwidgets/jqwidgets-react/react_jqxtabs.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxTabs extends React.Component { componentDidMount() { let options = this.manageAtt...
src/components/PaginationControls/PaginationControls.stories.js
austinknight/ui-components
import React from "react"; import styled from "styled-components"; import { storiesOf, action } from "@storybook/react"; import PaginationControls from "./PaginationControls"; import { renderThemeIfPresentOrDefault, wrapComponentWithContainerAndTheme, colors } from "../styles"; const Wrapper = styled.div` bac...
containers/SetupScreenContainer.js
sayakbiswas/Git-Blogger
import React from 'react'; import globalVars from '../config/globalVars'; import SetupScreen from '../components/SetupScreen'; import GitHubAPIUtils from '../utils/GitHubAPIUtils'; class SetupScreenContainer extends React.Component { constructor(props) { super(props); } render() { console.log('rendering'); r...
src/components/chat/Chat.js
mBeierl/Better-Twitch-Chat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import firebase from 'firebase'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card'; import TextField...
src/svg-icons/av/explicit.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
app/javascript/client_messenger/gdprView.js
michelson/chaskiq
import React from 'react' import styled from '@emotion/styled' import tw from 'twin.macro' export const Wrapper = styled.div` top: 0px; z-index: 999999; position: fixed; width: 100%; height: 100vh; background: white; //font-size: .92em; //line-height: 1.5em; //color: #eee; ` export const Padder = t...
frontend/src/Components/Menu/FilterMenuContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FilterMenuItem from './FilterMenuItem'; import MenuContent from './MenuContent'; import MenuItem from './MenuItem'; import MenuItemSeparator from './MenuItemSeparator'; class FilterMenuContent extends Component { // // Render ...
src/svg-icons/action/payment.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js
hwo411/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * `DatePicker` can be implemented as a controlled input, * where `value` is handled by state in the parent component. */ export default class DatePickerExampleControlled extends React.Component { constructor(props) { super(props)...
examples/example2.js
gabrielbull/react-tether2
import React, { Component } from 'react'; import Target from './example2/target'; const style = { position: 'fixed', top: '0px', left: '0px', width: '100%', height: '50px', display: 'flex', justifyContent: 'center' }; class Example2 extends Component { render() { return ( <div style={style}>...
packages/icons/src/md/content/LowPriority.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLowPriority(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M28 9h16v4H28V9zm0 11h16v4H28v-4zm0 11h16v4H28v-4zM4 22c0 7.17 5.83 13 13 13h1v4l6-6-6-6v4h-1c-4.96 0-9-4.04-9-9s4.04-9 9-9h7V9h-7C9.83 9 4 14.83...
app/javascript/mastodon/components/column.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { supportsPassiveEvents } from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, bindToDoc...
src/svg-icons/communication/chat-bubble.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubble = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/> </SvgIcon> ); CommunicationChatBubble = pure(CommunicationChatBubble)...
src/layouts/PageLayout/PageLayout.js
larsdolvik/portfolio
import React from 'react' import {IndexLink, Link} from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({children}) => ( <div className='container text-center'> <h1>Lars Bendik Dølvik</h1> <IndexLink to='/' activeClassName='page-layout__nav-item--activ...
src/components/stories/Gallery.js
neontribe/spool
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Gallery } from '../Gallery'; import { entries } from './fixtures'; const initialData = { role: { entries: { edges: [] } } }; const entriesData = { role: { entries: { edges: en...
client/components/icons/icon-components/instagram-white.js
HelpAssistHer/help-assist-her
import React from 'react' export default function InstagramWhite(props) { return ( <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-6 -8 229 232" enableBackground="new -6 -8 229 232" xmlSpace="preserve" ...
packages/react-instantsearch-dom/src/components/SearchBox.js
algolia/react-instantsearch
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { translatable } from 'react-instantsearch-core'; import { createClassNames } from '../core/utils'; const cx = createClassNames('SearchBox'); const defaultLoadingIndicator = ( <svg width="18...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleChecked.js
mohammed88/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleChecked = () => ( <Checkbox label='This checkbox comes pre-checked' defaultChecked /> ) export default CheckboxExampleChecked
src/components/Loading/Loading.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' const Loading = ({ layers, showLoader, downloadLoader }) => { let loadingClass = 'module-loading' if (!showLoader && showLoader !== undefined) { loadingClass += ' hidden' } if (downloadLoader && downloadLoader === true) { loadingClass = 'module-loading' }...
node_modules/react-bootstrap/es/MediaRight.js
Technaesthetic/ua-tools
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 ...
app/javascript/components/RoundMap/Map/ReferencePoints/index.js
skyderby/skyderby
import React from 'react' import { useSelector } from 'react-redux' import { selectAssignedReferencePoints } from 'redux/events/round/selectors' import Marker from './Marker' const ReferencePoints = () => { const referencePoints = useSelector(selectAssignedReferencePoints) return ( <> {referencePoints....
test/components/counter.spec.js
TYRONEMICHAEL/recompose
import test from 'tape'; import sinon from 'sinon'; import createDocument from '../utils/createDocument'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import counterFactory from '../../src/components/counter'; function setup() { const document = ...
test/dummy/client/components/posts/record-expanded-content.js
factore/tenon
import React from 'react'; module.exports = (props) => { const editPath = props.record.edit_path; const onDelete = props.onDelete; return ( <div className="record__expanded-content"> <div dangerouslySetInnerHTML={{ __html: props.record.excerpt }} /> <div className="record__expanded-actions"> ...
docs/app/Examples/collections/Table/States/TableExampleWarningShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const tableData = [ { name: undefined, status: undefined, notes: undefined }, { name: 'Jimmy', status: 'Requires Action', notes: undefined }, { name: 'Jamie', status: undefined, notes: 'Hostile' }, { name: 'Jill', status: undefined, notes: un...
src/components/Gauge/Gauge.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './Gauge.css'; import React from 'react'; import GaugeChart from '../GaugeChart/GaugeChart'; const Gauge = ({ name, id, data, max }) => { return ( <div className={styles.root} id={id} > <GaugeChart name={name} ...
src/components/Player/extensions/playerEvents.js
Magics-Group/throw-client
import { throttle } from 'lodash'; import { EventEmitter } from 'events'; import dns from 'dns' import os from 'os' import Promise from 'bluebird' import { remote } from 'electron' import React from 'react' import ReactQR from 'react-qr' import socketIO from 'socket.io' import getPort from 'get-port' con...
src/index.js
hofnarwillie/weather-demo
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import {getWeather} from './actions/weatherActions'; import configureStore from './store/configu...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
w01fgang/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlLocalesSupported(['fr', 'fa-IR'])) { DateTimeFormat = global.Intl...
src/svg-icons/image/slideshow.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow = pure(I...
src/ModalDialog.js
andrew-d/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop ...
react16-feature/src/App.js
wefine/reactjs-guide
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class Overlay extends Component { constructor(props) { super(props); this.container = document.createElement('div'); document.body.appendChild(this.container); } componentWillUnmount() { document.b...
src/components/DeviceCardComponent.js
hzburki/innexiv-front-end
import React, { Component } from 'react'; import { Panel, Col } from 'react-bootstrap'; import { Link } from 'react-router'; class DeviceCardComponent extends Component { state = { id: this.props.device.id, } onDeviceClick() { this.props.deviceClick(this.state.id); } render() { const { enteries...
src/js/components/Camera.js
deluxe-pig/Aquila
import {Entity} from 'aframe-react'; import React from 'react'; export default props => ( <Entity> <Entity camera="" look-controls="" wasd-controls="" {...props}/> </Entity> );
react/src/SpinnerDonut.js
Chalarangelo/react-mini.css
import React from 'react'; // Module constants (change according to your flavor file) var spinnerDonutClassName = 'spinner-donut'; // Donut Spinner component. export function SpinnerDonut (props){ var outProps = Object.assign({}, props); if (typeof outProps.children !== 'undefined') throw "Error: A 'SpinnerDonut' c...
src/svg-icons/toggle/star-border.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
main.js
FindEarth/app
import Expo from 'expo' import React from 'react' import { Platform, StatusBar, View } from 'react-native' import { NavigationProvider, StackNavigation } from '@expo/ex-navigation' import { FontAwesome } from '@expo/vector-icons' import Router from './navigation/Router' import cacheAssetsAsync from './utilities/cacheA...