path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/av/replay-5.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay5 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2...
src/components/UserForm/index.js
cowback/charcode-client
import React from 'react' import Panel from '../Panel' import Input from '../Input' import Button from '../Button' const errorMessages = { '400': 'Telefone ou senha inválidos.', '404': 'Usuário não encontrado.', } class UserForm extends React.Component { constructor(props) { super(props) this.state = ...
example/client/src/index.js
samsarahq/thunder
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/src/components/content/UserPage/StatusCard/index.js
ouxu/NEUQ-OJ
/** * Created by out_xu on 17/2/20. */ import React from 'react' import { Card, Col, Row } from 'antd' import './index.less' class Statuscard extends React.Component { render () { const userdata = this.props.userdata const passrate = userdata.submit ? (100 * userdata.solved / userdata.submit).toFixed(2) : ...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
rubengrill/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
fields/types/markdown/MarkdownField.js
benkroeger/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remo...
view/index.js
unyo/react-mobx
import React from 'react' import { observer, inject } from 'mobx-react' import { observable, action } from 'mobx' import CSS from '../css/index.sass' @inject('model') @observer export default class Index extends React.Component { @observable color = 'white' // use @action.bound instead of an arrow function to bin...
js/page/my/MyPage.js
duangangqiang/GitHubTrending
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import Colors from '../../constants/Colors'; import PAGE_CONFIG from '../../config/pages'; import NavigationBar from '../../common/NavigationBar'; import CustomKeyPage from './CustomKeyPage'; import {FLAG_LANGUAGE} ...
src/library/navigation/buildNavigationConfig.js
Digitova/reactova-framework
import React, { Component } from 'react'; import deepmerge from "deepmerge" import DrawerNavigatorContent from '../../components/Navigation/DrawerNavigatorContent' import TabBar from '../../components/Navigation/TabBar' import StackHeader from '../../components/Navigation/StackHeader' export default buildNavigationCo...
assets/jqwidgets/jqwidgets-react/react_jqxrepeatbutton.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxRepeatButton extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.c...
src/js/admin/photos/photo-flow/photo-item/photo-item-rename-dialog/photo-item-rename-dialog.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import InputDialog from '$components/dialogs/input-dialog' import { photoInputDialogVisible, photoRename } from '$actions/photos' class PhotoItemRenameDialog extends React.Component { constructor (props) { super(props) this.hide = this.hide.bin...
src/js/components/quote.js
JJVvV/react-blog
/** * Created by Administrator on 2015/7/2. */ import React from 'react'; import Authentic from './authenticatedComponent.js'; var appActions = require('../actions/appActions'); var request = require('reqwest'); import {quoteUrl as QUOTEURL} from '../constants/quoteConstants.js'; var QuoteService = require('../servi...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
codevlabs/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ ...
client/js/components/Job.js
bmacheski/tech-connect
'use strict'; import React from 'react'; class Job extends React.Component { render() { return ( <div className="job-container"> <div className="content"> <h3> <span>Title: </span> {this.props.job.title} </h3> </div> <div className="content"...
app/javascript/mastodon/components/dropdown_menu.js
imomix/mastodon
import React from 'react'; import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; import PropTypes from 'prop-types'; class DropdownMenu extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { icon: PropTypes.string.isRequired...
src/svg-icons/maps/local-post-office.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPostOffice = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); MapsLocalPostOff...
imports/ui/layouts/LoginLayout/LoginLayout.js
jamiebones/Journal_Publication
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; import { Grid, Alert, Button , Row , Col } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import Authenticated from '../../components/Authentica...
src/svg-icons/file/cloud-upload.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudUpload = (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....
frontend/components/Spinner.js
relekang/accio
import React from 'react'; import './Spinner.styl'; export default function Spinner() { return <span className="relative Spinner--wrapper"><span className="Spinner" /></span>; }
src/Popover.js
jakubsikora/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/Parser/Hunter/Survival/Modules/Traits/TalonBond.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from "common/SpellIcon"; import SpellLink from "common/SpellLink"; import ItemDamageDone from 'Main/ItemDamageDone'; /* * When Talon S...
client/app/components/auth/PasswordConfirmInput.js
joelseq/SourceGrade
import React from 'react'; import { FormGroup, FormControl, ControlLabel, Alert, } from 'react-bootstrap'; /* eslint-disable react/prop-types */ const PasswordConfirmInput = ({ input, meta: { touched, error }, ...custom }) => { let validationState = null; if (touched) { validationState = error ? 'erro...
src/components/GoogleAdv/GoogleAdv.js
febobo/react-redux-start
import React, { Component } from 'react'; export default class GoogleAdv extends Component { componentDidMount (){ const script2 = document.createElement("script"); script2.id="adv_register"; script2.async = true; document.body.appendChild(script2); document.getElementById('adv_register...
client/src/index.js
DukeNLIDB/NLIDB
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import App from './app'; import registerServiceWorker from './utils/registerServiceWorker'; ReactDOM.render( ( <Provider store={store}> <App /> </Provider> ), document.g...
src/components/sidebar-link.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
src/EventList.js
odtorres/react-calendar
import React, { Component } from 'react'; import './EventList.css'; //import UtilDate from './UtilDate'; import EventHandler from './EventHandler'; import EventForm from './EventForm'; class EventList extends Component { constructor() { super(); this.state = { visible: true, ...
lib/Pane/stories/Pane.stories.js
folio-org/stripes-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import readme from '../readme.md'; import BasicUsage from './BasicUsage'; import UsingCenterContent from './UsingCenterContent'; import PaneHeaderReadme from '../../PaneHeader/readme.md'; im...
pootle/static/js/admin/general/components/ContentPreview.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const ContentPreview = React....
src/components/blocks/BlockVideo.js
m0sk1t/react_email_editor
import React from 'react'; const BlockVideo = ({ blockOptions }) => { const alt = "cool video!"; return ( <table width="550" cellPadding="0" cellSpacing="0" role="presentation" > <tbody> <tr> <td width={blockOptions.elements[0].width.match(/\d+/)[0]} > <a href={block...
examples/huge-apps/components/GlobalNav.js
zipongo/react-router
import React from 'react' import { Link } from 'react-router' const dark = 'hsl(200, 20%, 20%)' const light = '#fff' const styles = {} styles.wrapper = { padding: '10px 20px', overflow: 'hidden', background: dark, color: light } styles.link = { padding: 11, color: light, fontWeight: 200 } styles.activ...
frontend/landing_page/src/pages/OracleEasyAccess/index.js
linea-it/dri
/* eslint-disable max-len */ import React from 'react'; import { Grid, Container, Typography, Breadcrumbs, Link, } from '@material-ui/core'; import { urlLogin } from '../../Services/api'; import styles from './styles'; function AboutUs() { const classes = styles(); return ( <div className={classes.initContai...
src/svg-icons/action/translate.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTranslate = (props) => ( <SvgIcon {...props}> <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7...
examples/03 Nesting/Drop Targets/Container.js
nagaozen/react-dnd
import React from 'react'; import Dustbin from './Dustbin'; import Box from './Box'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { return ( <div> <div style={{ over...
app/javascript/mastodon/features/ui/components/actions_modal.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
public/src/js/pages/wall/components/picture/picture.js
Robertmw/imagistral
/** * * Picture Component * @parent Wall * @author Robert P. * */ import React from 'react'; import Classnames from 'classnames'; import BaseComponent from '../../../../components/base-component/base-component'; class Picture extends BaseComponent { constructor(props) { super(props); this._bind('_onClic...
src/containers/CustomerOrder/CustomerOrder.js
kingpowerclick/kpc-web-backend
import React, { Component } from 'react'; import classNames from 'classnames'; import { Link } from 'react-router'; import { FilterPage, Breadcrumb, CustomerDetail } from 'components'; import { Tabs, Tab, Collapse } from 'react-bootstrap'; export default class CustomerOrder extends Component { constructor(...args)...
src/App/Link/index.js
mikearnaldi/react-starter
import React from 'react' import {connect} from 'react-redux' import {linkActions} from './module' import styled from 'styled-components' import {materialBlueGrey} from '../styles/colors' const Wrapper = styled.div` display: inline-block; padding: 5px; cursor: default; user-select: none; border: 1px solid ${...
src/components/notes/NoteHeader.js
yuri/notality
/* eslint react/prop-types: 0 */ /* eslint space-infix-ops: 0 */ /* eslint indent: 0 */ /* eslint react/sort-comp: 0 */ /* eslint no-var: 0 */ /* eslint vars-on-top: 0 */ /* eslint no-else-return: 0 */ import { Component } from 'react'; import moment from 'moment'; import React from 'react'; // Returns the date objec...
src/pages/About.js
kevoree-modeling/mwg.web.boilerplate
import React, { Component } from 'react'; import Menu from '../components/Menu' class About extends Component { render() { return ( <div> <span>Tutu</span> <Menu></Menu> <span>This is page about</span> </div> ) } } export default About;
test/integration/image-component/default/pages/static-img.js
zeit/next.js
import React from 'react' import testImg from '../public/foo/test-rect.jpg' import Image from 'next/image' import testJPG from '../public/test.jpg' import testPNG from '../public/test.png' import testWEBP from '../public/test.webp' import testAVIF from '../public/test.avif' import testSVG from '../public/test.svg' imp...
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForText.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...
client/src/components/ChannelsListWithData.js
hankolsen/graphql-tutorial
import React from 'react'; import { gql, graphql } from 'react-apollo'; import AddChannel from './AddChannel'; const ChannelsList = ({ data: {loading, error, channels} }) => { if (loading) { return <p>Loading...</p>; } if (error) { return <p>{error.message}</p>; } return ( <div className="channel...
packages/idyll-docs/pages/docs/plugin-system.js
idyll-lang/idyll
import React from 'react'; import Link from 'next/link'; import Layout from '../../components/layout'; import Highlight from 'react-highlight'; export default ({ url }) => ( <Layout url={url} title={'Idyll Documentation | Plugin System'}> <link rel="stylesheet" href="../../../static/styles/tomorrow-n...
src/wallet/ClaimReward.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import steem from 'steem'; import { FormattedMessage, FormattedRelative, FormattedNumber, FormattedDate, FormattedTime, } from 'react-intl'; import { Tooltip } from 'antd'; const getFormattedPayout = ( rewardSteem, rewardSbd, rewardVests, ...
src/app/components/source/UserPrivacy.js
meedan/check-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import Relay from 'react-relay/classic'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Button from '@mater...
frontend/src/containers/StatsPage.js
user01/PresidentialDebates
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../actions/playActions'; import StatsComponent from '../components/StatsComponent'; export const StatsPage = ({state}) => { return ( <div> <StatsComponent data={state}...
anubis/ui/components/scratchpad/ScratchpadRecordsTableContainer.js
KawashiroNitori/Anubis
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import ScratchpadRecordsRow from './ScratchpadRecordsRowContainer'; const mapStateToProps = (state) => ({ rows: state.records.rows, isLoading: state.ui.records.isLoading, }); @connect(mapStateToProps) export...
client/src/templates/Challenges/projects/frontend/Show.js
jonathanihm/freeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import { ChallengeNode } ...
test/integration/scss-fixtures/url-global-asset-prefix-1/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.scss' import '../styles/global2.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
js/lessons/lesson1/index.js
leftstick/react-lesson
'use strict'; import React from 'react'; import DocumentLink from 'fw/DocumentLink'; import LessonTitle from 'fw/LessonTitle'; import LessonHelper from 'fw/LessonHelper'; import Preview from 'fw/Preview'; class Lesson1 extends React.Component { constructor(props) { super(props); } render() { ...
src/pages/conference/info/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import { Subheader, IconButton, Tabs, Tab } from 'material-ui'; import { Link } from 'react-router-dom'; import { queries, mutations } from './helpers'; import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons'; import ConferenceInfo from './conferenceInfo'...
app/app/components/Dashboard/AnalysisParameters.js
lycha/masters-thesis
import React from 'react'; import DatePicker from 'react-datepicker'; import moment from 'moment'; import CampaignsSelector from './CampaignsSelector'; import store from '../../store'; import { setStartDate, setEndDate, setAnalysisCampaign } from '../../actions/AnalysisActions'; class AnalysisParameters extends React...
src/icons/AssessmentIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class AssessmentIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM18 34h-4V20...
src/admin/components/media/index.js
ccetc/platform
import React from 'react' import Media from './media' class Index extends React.Component { static contextTypes = { modal: React.PropTypes.object } render() { return ( <a className="ui button" onClick={ this._handleOpen.bind(this) }>Media</a> ) } _handleOpen() { this.context.modal.pu...
analysis/demonhunterhavoc/src/modules/Abilities.js
anom0ly/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import COVENANTS from 'game/shadowlands/COVENANTS'; import { SpellLink } from 'interface'; import CoreAbilities from 'parser/core/modules/Abilities'; import React from 'react'; import { FEL_DEFENDER_COOLDOWN_REDUCTION } from '@wowanalyzer/demonhunter'; class Abilities extends CoreA...
src/svg-icons/action/swap-vertical-circle.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVerticalCircle = (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 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/> ...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
mohammed52/door-quote-automator
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
app/javascript/mastodon/features/compose/components/reply_indicator.js
theoria24/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
src/svg-icons/places/smoking-rooms.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokingRooms = (props) => ( <SvgIcon {...props}> <path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16....
docs/src/pages/customization/WithTheme.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import { withTheme } from 'material-ui/styles'; function WithTheme(props) { const { theme } = props; const primaryText = theme.palette.text.primary; const primaryColor = theme.palette.pr...
ReactApp/modules/example/config.ios.js
johnsiwicki/tbsrn
/** * Module Specific Config * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ 'use strict'; /* ============================== Initialise App =============================== */ // React Plugins // import React, { Component } from 'react'; /* ===========================...
src/svg-icons/device/devices.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> </Sv...
src/components/Main.js
dadifeihong/react-gallery
require('normalize.css/normalize.css'); require('styles/App.scss'); //把图片等数据加载进来 let imgDatas = require('../data/imgData.json'); //从加载进来的图片数组中获取图片路径 imgDatas = (function (imgDatasArr) { var singleImageData = ''; for (var i = 0, j = imgDatasArr.length; i < j; i++) { singleImageData = imgDatasArr[i]; singleI...
src/svg-icons/image/filter-b-and-w.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterBAndW = (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-2zm0 16l-7-8v8H5l7-8V5h7v14z"/> </SvgIcon> ); ImageFilterBAndW = pure(Im...
src/components/ExperienceSearch/Pagination/Pagination.js
WendellLiu/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { P } from 'common/base'; import Button from 'common/button/Button'; import { ArrowLeft } from 'common/icons'; import { getFromCount, getToCount, isPreviousDisabled, isNextDisabled, getTotalPage, getCurrentCount, } from './helpers'; im...
src/js/components/icons/base/Contact.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...
src/svg-icons/device/signal-cellular-4-bar.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
docs/src/app/pages/components/Toggle/ExampleToggleDefault.js
GetAmbassador/react-ions
import React from 'react' import Toggle from 'react-ions/lib/components/Toggle' const ExampleToggleDefault = () => ( <Toggle /> ) export default ExampleToggleDefault
src/svg-icons/social/pages.js
lawrence-yu/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"/...
src/client/app/footer.react.js
sljuka/portfolio-este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; export default class Footer extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {app: {footer}}} = this.props; ret...
src/containers/auth/Forms/FormView.js
arayi/SLions
/** * Login/Sign Up/Forgot Password Screen * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ScrollView, AsyncStorage, TouchableOpacity, } from 'react-native'; import FormValidat...
src/Popover.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/NavDropdown.js
chrishoage/react-bootstrap
import React from 'react'; import Dropdown from './Dropdown'; class NavDropdown extends React.Component { render() { let { children, title, noCaret, ...props } = this.props; return ( <Dropdown {...props} componentClass="li"> <Dropdown.Toggle useAnchor disabled={props.disab...
src/svg-icons/av/mic-none.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
src/components/ProgressBar/ProgressBar.js
bfletcherbiggs/DocreactJS
import React from 'react'; import PropTypes from 'prop-types'; class ProgressBar extends React.Component {   getColor = (percent) => {     if (this.props.percent === 100) return 'green';     return this.props.percent > 50 ? 'lightgreen' : 'red';   } getWidthAsPercentOfTotalWidth = () => { return parseInt(this.p...
src/parser/hunter/survival/modules/talents/BirdOfPrey.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import { encodeTargetString } from 'parser/shared/modules/EnemyInstances'; import SpellLink from 'common/SpellLink'; import STATISTIC_ORDER from 'interface/other...
src/svg-icons/navigation/chevron-left.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
web/src/js/components/Search/TextAdSearchResult.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import { find } from 'lodash/collection' import { get } from 'lodash/object' import LinkWithActionBeforeNavigate from 'js/components/General/LinkWithActionBeforeNavigate' import { linkColor, linkColorV...
src/components/topic/snapshots/foci/builder/FocusForm1TechniqueContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { reduxForm, formValueSelector } from 'redux-form'; import { FormattedMessage, injectIntl } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../../../commo...
techCurriculum/ui/solutions/4.1/src/components/User.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
packages/reactor-conference-app/src/Search.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Toolbar, Sheet, SearchField, List, Button } from '@extjs/ext-react'; import { connect } from 'react-redux'; import { toggleSearch, search } from './actions'; import { Template } from '@extjs/reactor'; import ScheduleList from './schedule/ScheduleList'; class Search ex...
packages/material-ui/src/ExpansionPanel/ExpansionPanelSummary.js
cherniavskii/material-ui
// @inheritedComponent ButtonBase import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ButtonBase from '../ButtonBase'; import IconButton from '../IconButton'; import withStyles from '../styles/withStyles'; export const styles = theme => { const transition = { ...
Chapter11/chapter11-react/src/App.js
johnciliberti/AspNetCoreRecipes
import React, { Component } from 'react'; import ArtistProfileContainer from './components/artist-profile/ArtistProfileContainer'; class App extends Component { render() { return ( <ArtistProfileContainer /> ); } } export default App;
src/components/Map.js
bchuup/lhl-final-trip-me-up
import React from 'react'; import { withRouter, Link } from 'react-router' import { withGoogleMap, GoogleMap, Marker, DirectionsRenderer } from 'react-google-maps' import _ from 'lodash' const MapAPI = withGoogleMap(props => ( <GoogleMap ref={props.onMapLoad} defaultZoom={3} defaultCenter={{ lat: 43.645...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-table-tr.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from './../common/common.js'; import './table-tr.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin ], //@@viewOf...
src/svg-icons/image/crop-3-2.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop32 = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/> </SvgIcon> ); ImageCrop32 = pure(ImageCrop32); ImageCro...
packages/giu/src/components/backdrop.js
guigrpa/giu
// @flow import React from 'react'; import classnames from 'classnames'; import { cancelEvent } from '../gral/helpers'; import { IS_IOS } from '../gral/constants'; // ========================================== // Declarations // ========================================== type Props = { className?: string, id?: st...
frontend/src/components/task/task-status-icons.js
worknenjoy/gitpay
import React from 'react' import PropTypes from 'prop-types' import { Lock as PrivateIcon, LockOpen as PublicIcon } from '@material-ui/icons' const styles = { IconStyle: { fontSize: 24, marginLeft: 12 } } const TaskStatusIcons = ({ status, bounty }) => { const Status = () => { if (status) { ...
src/Error.js
walles/weatherclock
import React from 'react' import PropTypes from 'prop-types' import Dialog from '@material-ui/core/Dialog' import DialogTitle from '@material-ui/core/DialogTitle' import DialogContent from '@material-ui/core/DialogContent' import DialogContentText from '@material-ui/core/DialogContentText' import DialogActions from '@...
src/svg-icons/action/home.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHome = (props) => ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> </SvgIcon> ); ActionHome = pure(ActionHome); ActionHome.displayName = 'ActionHome'; ActionHome.muiName = 'SvgIcon...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
anatolie-darii/angular2
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
client/src/javascript/components/sidebar/TransferData.js
stephdewit/flood
import React from 'react'; import ClientStatusStore from '../../stores/ClientStatusStore'; import connectStores from '../../util/connectStores'; import EventTypes from '../../constants/EventTypes'; import TransferRateDetails from './TransferRateDetails'; import TransferRateGraph from './TransferRateGraph'; class Tran...
src/svg-icons/navigation/arrow-forward.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowForward = (props) => ( <SvgIcon {...props}> <path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/> </SvgIcon> ); NavigationArrowForward = pure(NavigationArrowForward); Navigation...
src/pages/index.js
nprail/blog
import React from 'react' import { graphql, Link } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' import Section from '../components/section' import Pills from '../components/pills' import MainBio from '../components/main-bio' import { formatPostDate, formatReadingTime } fr...
src/PageHeader.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
app/App.js
rafaellucio/react-learning
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import routes from './config/routes'; ReactDOM.render( <Router history={hashHistory}>{routes}</Router>, document.getElementById('app') )
src/components/Layout/Menu.js
caijinchun/hsweb-antd
import React from 'react' import PropTypes from 'prop-types' import { Menu, Icon } from 'antd' import { Link } from 'dva/router' import { arrayToTree, queryArray } from '../../utils' import pathToRegexp from 'path-to-regexp' const Menus = ({ siderFold, darkTheme, location, handleClickNavMenu, navOpenKeys, changeOpenKe...
packages/playground/stories/Btn.story.js
appearhere/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Btn, Modifiers as m, Icon, Loader } from '@appearhere/bloom'; storiesOf('Btn', module) .add('Default button', () => <Btn onClick={action('Button clicked')}>Cancel</Btn>) .add...
src/svg-icons/image/flare.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlare = (props) => ( <SvgIcon {...props}> <path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-...
src/app/container/modal/confirm-currency-change.js
all3dp/printing-engine-client
import React from 'react' import {connect} from 'react-redux' import Button from '../../component/button' import Modal from '../../component/modal' import Headline from '../../component/headline' import Paragraph from '../../component/paragraph' import * as modalActions from '../../action/modal' import * as coreActio...