path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/elements/Button/Types/ButtonExampleContentProp.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleContentProp = () => ( <Button content='Click Here' /> ) export default ButtonExampleContentProp
node_modules/react-bootstrap/src/Accordion.js
gitoneman/react-home
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion={true}> {this.props.children} </PanelGroup> ); } }); export default Accordion;
tests/__mocks__/rc-trigger.js
ddcat1115/select
import React from 'react'; const Trigger = require.requireActual('rc-trigger'); const render = Trigger.prototype.render; Trigger.prototype.render = function () { const { popupVisible } = this.state; return ( <div id="TriggerContainer"> {render.call(this)} {popupVisible && this.getComponent()} ...
src/ContentBlocks/BlockColorSwatch/BlockColorSwatchWireframe.js
grommet/grommet-cms-content-blocks
/* @flow */ import React from 'react'; import Box from 'grommet/components/Box'; import BrushIcon from 'grommet/components/icons/base/Brush'; export default function BlockColorSwatchWireframe() { return ( <Box pad={{ between: 'small' }}> <Box style={{ height: 60 }} pad="small" color...
examples/huge-apps/routes/Course/components/Course.js
Dodelkin/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import Nav from './Nav' const styles = {} styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 } class Course extends React.Component { render() { let { childre...
docs/app/Examples/collections/Message/Types/MessageExampleMessageProps.js
vageeshb/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessageProps = () => ( <Message header='Changes in Service' content='We updated our privacy policy here to better service our customers. We recommend reviewing the changes.' /> ) export default MessageExampleMessageP...
src/components/topic/provider/TopicCountOverTimeContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedHTMLMessage, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@...
scripts/CanvasPannel.js
MarshalW/react-proto
'use strict'; import React from 'react'; import Router from 'react-router'; import _ from 'lodash'; import PageStore from './PageStore'; import AppDispatcher from './AppDispatcher'; var CanvasPannel=React.createClass({ mixins: [ Router.State ], getInitialState:function(){ return {}; }, componentDidMount:function...
server/sonar-web/src/main/js/app/components/extensions/PortfoliosPage.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...
blueocean-material-icons/src/js/components/svg-icons/image/crop-3-2.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.displayName = 'ImageCrop32'; ImageCrop32.muiName = 'SvgIcon'; ...
frontend/js/components/newIssue.js
mcallistersean/b2-issue-tracker
import React from 'react' import Icon from 'react-fa' import urls from '../urls' export default function(props) { let url = urls.createIssue(props.coordinates.lat, props.coordinates.lng); return <div className='panel panel-success'> <div className='panel-body'> <a className='btn btn-xs btn-success' href=...
src/routes/UserEditContainer.js
folio-org/ui-users
import React from 'react'; import UserRecordContainer from './UserRecordContainer'; import { UserEdit } from '../views'; const UserEditContainer = (props) => ( <UserRecordContainer {...props}> { payload => <UserEdit {...payload} /> } </UserRecordContainer> ); export default UserEditContainer;
src/ObjectPreview.js
osnr/react-object-inspector
import React, { Component } from 'react'; import ObjectDescription from './ObjectDescription'; function intersperse(arr, sep){ if (arr.length === 0) { return []; } return arr.slice(1).reduce(function(xs, x, i) { return xs.concat([sep, x]); }, [arr[0]]); } /** * A preview of the object on root lev...
src/decorators/withViewport.js
DimitarChristoff/react-playground
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
js/components/Message.js
zanjs/react-iTunes-search
import React from 'react'; import classNames from 'classnames'; class Message extends React.Component { render () { let {msgInfo} = this.props; return ( <div className={classNames('ui', 'icon', 'message', msgInfo.iconColor, { 'hidden': !msgInfo })}> <i className={classNames('ic...
client/admin/users/UsersRoute.js
Sing-Li/Rocket.Chat
import React from 'react'; import { usePermission } from '../../contexts/AuthorizationContext'; import NotAuthorizedPage from '../../components/NotAuthorizedPage'; import UsersPage from './UsersPage'; function UsersRoute() { const canViewUserAdministration = usePermission('view-user-administration'); if (!canViewU...
blueocean-material-icons/src/js/components/svg-icons/image/filter-5.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter5 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-....
lib-es/layout/hero-head.js
bokuweb/re-bulma
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React, { Component } from 'react'; import PropTypes fr...
packages/material-ui-icons/src/Panorama.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z" /></g> , 'Panorama');
src/svg-icons/action/search.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSearch = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
src/media/js/site/components/header.js
mozilla/marketplace-submission
import classNames from 'classnames'; import React from 'react'; import {ReverseLink} from 'react-router-reverse'; import {LoginButton} from './login'; export default class Header extends React.Component { static propTypes = { authUrl: React.PropTypes.string, email: React.PropTypes.string, loginBeginHan...
src/Parser/Hunter/Marksmanship/Modules/Items/TarnishedSentinelMedallion.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import CoreTarnishedSentinelMedallion from 'Parser/Core/Modules/Items/Legion/TombOfSargeras/TarnishedSentinelMedallion'; import Combatants from 'Parser/Core/Modules/Combatants'...
time-on-task/app/components/VirtualGroup.js
ajaymore/time-on-task
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, StyleSheet, TouchableHighlight, Button, Dimensions } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, flexDirection: 'column' }, group: { flexDirection: 'row', width: Di...
packages/icons/src/sp/Weibo.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function SpWeibo(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M35.07 23.329c2.524.783 5.334 2.676 5.334 6.011 0 5.52-7.962 12.475-19.93 12.475-9.13 0-18.463-4.424-18.463-11.702 0-3.805 2.41-8.205 6.562-12.356 5.54...
src/svg-icons/action/track-changes.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrackChanges = (props) => ( <SvgIcon {...props}> <path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s...
nodes/stampzilla-server/web/src/components/formComponents.js
stampzilla/stampzilla-go
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { connect } from 'react-redux'; export const ObjectFieldTemplate = (props) => { if (props.title !== undefined) { return ( <div className="card mb-4 bg-dark text-white"> <div className="card-he...
app/addons/fauxton/navigation/components/LogoutButton.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
01-basic-example/components/Topics.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import { Route, Link } from 'react-router-dom'; import Topic from './Topic'; class Topics extends React.Component { render() { return ( <div> <h2>Topics</h2> <ol> <li> <Link to={`${this.props....
src/app/components/SliderExampleSimple.js
leoliew/react-webpack-example
/** * Created by leoliew on 2016/11/28. */ import React from 'react'; import Slider from 'material-ui/Slider'; import ShowCaseCard from './ShowCaseCard'; /** * The `defaultValue` property sets the initial position of the slider. * The slider appearance changes when not at the starting position. */ export default ...
fields/types/select/SelectField.js
geminiyellow/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (ne...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallItem/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
admin/client/App/screens/Item/components/FooterBar.js
frontyard/keystone
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
src/layouts/PageLayout/PageLayout.js
roychoo/upload-invoices
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'> <div className='page-layout__viewport'> {children} </div> </div> ) PageLayout...
fields/types/geopoint/GeoPointFilter.js
michaelerobertsjr/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, lon: undefined, distance: {...
packages/components/src/JSONSchemaRenderer/JSONSchemaRenderer.stories.js
Talend/ui
import React from 'react'; import JSONSchemaRenderer from './JSONSchemaRenderer.component'; const schema = { jsonSchema: { title: 'A registration form', type: 'object', required: ['firstName', 'lastName'], properties: { password: { type: 'string', title: 'Password', }, lastName: { type: ...
packages/bonde-admin/src/utils/enzyme.js
ourcities/rebu-client
import React from 'react' import { mount, shallow } from 'enzyme' import { MemoryRouter } from 'react-router-dom' export const mountWithRouter = children => mount(<MemoryRouter>{children}</MemoryRouter>) export const shallowWithRouter = children => shallow(<MemoryRouter>{children}</MemoryRouter>)
src/routes/codes/index.js
yunqiangwu/kmadmin
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import { Row, Col, Button, Popconfirm } from 'antd' import List from './List' import Filter from './Filter' import Modal from './Modal' const User = ({ location, dispatch, codes, loading ...
web/static/js/components/Profile.js
josephyi/anivia
import React from 'react' import { Panel, ListGroup, ListGroupItem } from 'react-bootstrap' import ProfileRankedStats from './ProfileRankedStats' const Profile = ({summoner, aggregateRankedStats, rankedLeagues}) => { if (aggregateRankedStats && summoner.summonerLevel == 30 && rankedLeagues[summoner.id]) { ...
src/js/pages/AnswerNextOtherQuestionPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import TopNavBar from '../components/ui/TopNavBar'; import AnswerQuestion from '../components/questions/AnswerQuestion'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import translate from '../i18n/Translate'; imp...
templates/re-base/src/index.js
amoghbanta/react-native-everywhere
/** * Web platform entry point */ import React from 'react'; import {render} from 'react-native'; import App from './App' render(<App/>, document.getElementById('root'));
apps/home/home/index.js
craigspaeth/newstack
import React from 'react' import Layout from 'components/layout' import TweetBox from '../tweetbox' import Feed from '../feed' class Home extends React.Component { render() { return ( Layout({ content: [ TweetBox(), Feed({ tweets: this.props.tweets }) ], assetPk...
src/svg-icons/content/add.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
information/blendle-frontend-react-source/app/components/tiles/NoResultsTile.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Tile from 'components/Tile'; import { translateElement } from 'instances/i18n'; export default class NoResultsTile extends React.Component { static propTypes = { query: PropTypes.string.isRequired, }; render() { return ( <Tile t...
docs/src/GettingStartedPage.js
albertojacini/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
src/Parser/DemonologyWarlock/Modules/Talents/SoulHarvestTalent.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/...
src/components/FormItems/RadioGroup.js
amberleyromo/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { RadioGroup as MUIRadioGroup } from 'material-ui/Radio'; import { FormControl, FormLabel } from 'material-ui/Form'; const propTypes = { children: PropTypes.arrayOf(PropTypes.element).isRequired, className: PropTypes.string, error: PropTypes.o...
src/svg-icons/av/av-timer.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
src/InputGroupAddon.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; class InputGroupAddon extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elementProps] = splitBsProps(props); const ...
src/icons/StrokePresentation.js
ipfs/webui
import React from 'react' const StrokePresentation = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M78.53 21.33h-16.9A4.62 4.62 0 0 0 57.21 18h-10.1a4.62 4.62 0 0 0-4.43 3.35H26.55a4.41 4.41 0 0 0-4.4 4.4v39.71a4.65 4.65 0 0 0 4.64 4.64h24v6h-9.52A4.27 4.27 0 0 0 37 80.36a4.91 4.91 0 0 0 .08.86 1 1 ...
web_frontend/react_projectmanager/src/index.js
axnion/playground
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
reactt/todo/src/todoInput.js
devonhackley/reacttt
import React, { Component } from 'react'; class TodoInput extends Component { constructor(props) { super(props); this.state = { todoTitle: '', todoResponsible: '', todoDesc: '', todoPriority: 'low' } this.handleInputChange = this.handleInputChange.bind(this); this.handl...
fields/types/datearray/DateArrayField.js
concoursbyappointment/keystoneRedux
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
src/svg-icons/content/reply.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReply = (props) => ( <SvgIcon {...props}> <path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReply = pure(ContentReply); ContentReply.displayName = 'ContentReply'...
static/node_modules/react-router/es6/Router.js
unmeshpro/easyPost
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
modules/dreamview/frontend/src/components/DefaultRouting/POI.js
ApolloAuto/apollo
import React from 'react'; import { observer } from 'mobx-react'; import RadioItem from 'components/common/RadioItem'; @observer export default class POI extends React.Component { render() { const { routeEditingManager, options, inNavigationMode } = this.props; const entries = Object.keys(routeEditingManage...
components/Deck/ContentModulesPanel/ContentQuestionsPanel/Download/QuestionDownloadModal.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import {Button, Icon, Modal, Container, Segment, TextArea, Popup} from 'semantic-ui-react'; //import UserProfileStore from '../../../../../stores/UserProfileStore'; import ContentQuestionsStore from '.....
site/src/components/DemoBox.js
khacluan/elemental
import React from 'react'; import classnames from 'classnames'; import E from '../../../src/constants'; const ALIGN_TRANSFORM = { 'center': 'center', 'left': 'flex-start', 'right': 'flex-end', }; var DemoBox = React.createClass({ propTypes: { align: React.PropTypes.oneOf(['center', 'left', 'right']), children...
fields/types/email/EmailColumn.js
helloworld3q3q/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
src/components/views/settings/ingame/index.js
CalviinG/project-rego
import React from 'react'; // Components import SettingsComponent from '../settings_component.js'; // Common Components import AnimationHolder from '../../../common/animation_holder.js'; import SettingsHolder from '../../../common/settings_holder.js'; const InGameView = React.createClass({ getInitialState() { ...
docs/src/examples/HighlightRange.js
mberneti/react-datepicker2
import React from 'react' import momentJalaali from 'moment-jalaali' import Calendar from '../../../src/components/Calendar'; class component extends React.Component { constructor(props) { super(props); this.state = { value: momentJalaali(), isGregorian: true }; this.highlightRanges = [...
test/integration/prerender-invalid-paths/pages/[foo]/[post].js
flybayer/next.js
import React from 'react' export async function getStaticPaths() { return { paths: [{ foo: 'bad', baz: 'herro' }], fallback: true } } export async function getStaticProps({ params }) { return { props: { post: params.post, time: (await import('perf_hooks')).performance.now(), }, } } export d...
src/app/components/panels/About.js
jimmed/spankhbot
import React from 'react'; import cx from 'suitcx'; import ExternalLink from '../ExternalLink'; import pkg from '../../../../package.json'; const appName = pkg.displayName || pkg.name; const versionString = `v${pkg.version}`; const hash = pkg.gitHead ? pkg.gitHead.slice(0, 8) : 'dev'; const commitUrl = pkg.repository....
js/components/Paste.js
code-n-beer/past.ebin
import styles from '../../css/app.css'; import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as PasteActions from '../actions/paste'; import { Card } from 'belle'; @ connect( state => { return { content: state.Paste.content }; } ) export default c...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_01/finish/src/index.js
yevheniyc/Autodidact
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { App } from './components/App' import { Whoops404 } from './components/Whoops404' import { Router, Route, hashHistory } from 'react-router' window.React = React render( <Router history={hashHistory}> <Route path="/"...
envkey-react/src/components/sidebar/sidebar_menu.js
envkey/envkey-app
import React from 'react' import ReactDOM from 'react-dom' import {Link} from 'react-router' import { imagePath } from 'lib/ui' import pluralize from 'pluralize' import R from 'ramda' import {orgRoleIsAdmin} from 'lib/roles' export default class SidebarMenu extends React.Component { constructor(props){ super(pr...
src/components/tables/Table.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseView from '../../utils/rnw-compat/BaseView'; import TableBody from './TableBody'; import TableData from './TableData'; import TableFooter from './TableFooter'; import TableHeader from './TableHeader'; import TableHead...
app/javascript/mastodon/features/favourites/index.js
codl/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
src/App.js
rndstr/wilks
import './styles.scss'; import React from 'react'; import Form from './Form'; import ScoreBox from './ScoreBox'; import strengthlevel from './categories/strengthlevel'; const categories = []; strengthlevel(categories); import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); export default...
src/components/navbar/SignedOutNav.js
Team-Banana-Guava/JobOrNot-React
import React from 'react'; import { Link } from 'react-router-dom'; import logo from '../../assets/JobOrNot_Blue_50.png'; const SignedOutNav = (props) => { return ( <nav className='navbar'> <div className='container'> <div className='row'> <div className='thr...
src/js/components/Articles/New.js
appdev-academy/appdev.academy-react
import React from 'react' import { browserHistory } from 'react-router' import { inject, observer } from 'mobx-react' import Form from './Form' @inject('articlesStore') @inject('tagsStore') @observer export default class New extends React.Component { constructor(props) { super(props) this.state = { ...
app/react-icons/fa/backward.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaBackward extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m36.1 3.1q0.5-0.4 0.8-0.2t0.2 0.7v32.8q0 0.6-0.2 0.7t-0.8-0.2l-15.8-15.9q-0...
src/components/SelectCountry.js
dixitc/cherry-web-portal
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import countryCodes from '../constants/country-codes'; const items = []; for (let i = 0; i < countryCodes.length; i++ ) { items.push(<MenuItem value={i} key={i} primaryText={countryCodes[i...
src/parser/warlock/demonology/modules/azerite/ShadowsBite.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import calculateBonusAzeriteDamage from 'parser/core/calculateBonusAzeriteDamage'; import StatTracker from 'parser/shared/modules/StatTracker'; import SPELLS from 'common/SPELLS'; impo...
src/components/PrintCourses.js
kdjohnson/courses-ada
import React from 'react' import Button from '@material-ui/core/Button' import PrintIcon from '@material-ui/icons/Print' import { generate_pdf } from '../api/api' import { makeStyles } from '@material-ui/core/styles' const useStyles = makeStyles(() => ({ icon: { paddingLeft: 5, marginTop: -6, }, button:...
src/scripts/components/options/Option.js
arkon/ColourNTP
import React from 'react'; import Browser from '../../modules/browser'; export default class Option extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value }; this.handleChange = this.handleChange.bind(this); this.handleChangeEvent = this.handl...
lib/components/ErrorView/index.js
gmtDevs/atom-ethereum-interface
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
stories/ClearRefinements.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { ClearRefinements, RefinementList, Panel, } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('ClearRefinements', module); stories .add('with refinements to clear', () => ( <Wrap...
src/components/help.js
rscarson/Lavendeux
import React from 'react'; import { Container } from 'react-bootstrap'; import { helpText } from '../include/help_strings'; /** * Render the help tab * @param {Object} props Component properties * @returns Component contents */ function Help(props) { return ( <Container dangerouslySetInnerHTML={ ...
src/icons/QueueIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class QueueIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M8 12H4v28c0 2.21 1.79 4 4 4h28v-4H8V12zm32-8H16c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-...
src/index.js
petorious/dmprov-app
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import {FirebaseProvider} from 'firekit'; import configureStore from './store'; import { Root } from './containers/Root'; import { addLocalizationData } from './locales'; import registerServiceWorker from './regi...
src/components/Tree/Tree.js
sk-iv/iva-app
import React from 'react'; import PropTypes from 'prop-types'; import queryString from 'query-string'; import List, { ListItem, ListItemIcon, ListItemText } from '../List'; import TreeItem from './TreeItem'; import TreeItemDnd from './TreeItemDnd'; import { DropTarget } from 'react-dnd'; import {locationParamObject, de...
demo/src/app.js
dhunninghake/vudu
import React, { Component } from 'react'; import { render } from 'react-dom'; import { ttf, woff, woff2 } from './fonts'; import { Logo, TwoColumn } from './components'; import { sharedStyles as shared } from './styles/shared'; import { sharedObj } from './styles/shared'; import v from '../../dist/vudu'; import { Pseud...
client-web/client-web/src/components/Notification.js
ppsari/final
import React from 'react' import './Notification.css' export default class Notification extends React.Component { constructor (props) { super(props) } render () { return ( <div className="Notification shadow"> <h5 className="text-center"> <span className="lnr lnr-checkmark-circle...
src/components/PaymentMethodChooser.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Popover, OverlayTrigger } from 'react-bootstrap'; import { defineMessages } from 'react-intl'; import withIntl from '../lib/withIntl'; import InputField from './InputField'; import { getStripeToken } from '../lib/stripe'; import { paymentMethodLabe...
src/framework/client/browser-language-provider.js
reworkjs/reworkjs
// @flow import React from 'react'; import { LanguageContext } from '../common/accept-language-context'; type Props = { children: any, }; type State = { languages: string[], }; const LANGUAGE_CHANGE_EVENT = 'languagechange'; /** * Provides the user language preferences as defined in their browser. * Will re-...
src/App.js
lukastillmann/oeffimonitor
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Monitor from './Monitor/Monitor'; import Search from './Search/Search'; class App extends Component { render() { return ( <div className="App"> <Monitor /> <div className="App-header"> ...
Realization/frontend/czechidm-acc/src/content/uniformpassword/UniformPasswordDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; // import { Basic, Utils, Managers } from 'czechidm-core'; import { UniformPasswordManager } from '../../redux'; /** * Unifrom password definition detail. * * @author Ondrej Kopr * @since 10.5.0 */ export default cla...
src/svg-icons/content/gesture.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentGesture = (props) => ( <SvgIcon {...props}> <path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3....
web/static/js/layouts/main.js
bigardone/phoenix-react-redux-template
import React from 'react'; import { Link } from 'react-router'; export default class MainLayout extends React.Component { constructor() { super(); } render() { return ( <div> {this.props.children} </div> ); } }
docs/app/examples/index.js
Sandreu/react-mf-modal
import React from 'react'; import ModalService from 'react-mf-modal'; import ModalContainer from 'react-mf-modal/container'; import APIComponent from './api'; import SimpleModalExample from '!babel!../webpack/demo-loader.js!./modals/simple-modal'; import SimpleModalAPI from '!../webpack/docgen-loader!../../../src/the...
examples/huge-apps/routes/Profile/components/Profile.js
yongxu/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
examples/huge-apps/routes/Course/components/Course.js
KamilSzot/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { static loadProps (params, cb) { console.log('C...
src/searchoptions.js
rebelok/search-options
import React from 'react'; import MultiSelectComponent from './MultiSelectComponent'; import './multiselect.js'; const log = console.log.bind(console,'SO:'); window.App = window.App || {}; window.App.view = window.App.view || {}; ((view) => { view.searchoptions = (el)=> { log(el); const sels = JSON.parse(...
src/routes/privacy/index.js
stanxii/laiico
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
examples.js
AgencyPMG/higherform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import higherform, { fields, validators, FormShape, FieldsShape } from './src'; let nextId = 1; function genId() { return `field-${nextId++}`; } function ErrorMessages({messages}) { if (!messages) {...
src/app/ui/ModalLoader/ModalLoader.native.js
arikanmstf/mylibrary
/** * Native Component Template By => create-module script * @version 1.0.0 * */ // @flow import React from 'react'; import { connect } from 'react-redux'; import Spinner from 'react-native-loading-spinner-overlay'; import type { Node } from 'react'; import type { LoaderProps } from './types'; import { mapStateTo...
src/components/Carousel/Carousel.js
propertybase/react-lds
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import isEqual from 'lodash-es/isEqual'; import { IconButton } from '../Button'; class Carousel extends Component { state = { activeIndex: 0, panels: [], } autoPlayId = null // eslint-disable-line...
src/components/erlang/original/ErlangOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ErlangOriginal.svg' /** ErlangOriginal */ function ErlangOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'ErlangOriginal' + ' ' + c...
examples/basic/src/components/NavBar.js
supasate/connected-react-router
import React from 'react' import { Link } from 'react-router-dom' const NavBar = () => ( <div> <div><Link to="/">Home</Link> <Link to="/hello">Hello</Link> <Link to="/counter">Counter</Link></div> </div> ) export default NavBar
src/esm/components/graphics/icons/speech-bubble-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var SpeechBubbleIcon = function SpeechBubbleIcon(_ref) { var...