path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/shared/components/sport/football/scoreCard.js
namroodinc/contentful-react-mobx-post
import React from 'react'; import { Link } from "react-router"; import { Grid, GridItem } from '../../../components/grid'; export default class ScoreCard extends React.Component { constructor(props) { super(props); } handleScorers(d) { const times = d.time.map((t) => { const isInjuryTime = t.inju...
app/blink.js
vijanny/react-native-DemoPrj
import React, { Component } from 'react'; import {View, AppRegistry, StyleSheet, Text,Image,Dimensions,TouchableHighlight,Alert,Animated,Easing,} from 'react-native'; import PercentageCircle from 'react-native-percentage-circle'; import Header from './header'; import WaveViewComponent from 'react-native-waveview-androi...
src/BootstrapMixin.js
pandoraui/react-bootstrap
import React from 'react'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const BootstrapMixin = { propTypes: { /** * bootstrap className * @private */ bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES), /** * Style variants * @type {("...
docs/src/sections/FormSection.js
Lucifier129/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function FormSection() { return ( <div className="bs-docs-section"> <h1 className="page-header"> <Anch...
ui/src/components/denali/NavBar.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
components/calendar.js
pepsinic/moody_react
//show month with emotions and dates... import React from 'react' import {connect} from 'react-redux' import { render } from 'react-dom'; import {user, addEmotion} from '../store/actions' import InfiniteCalendar from 'react-infinite-calendar'; import 'react-infinite-calendar/styles.css'; import VirtualList from 'react...
packages/@vega/components/src/providers/StageDot.js
VegaPublish/vega-studio
import React from 'react' import Dot from '../views/Dot' import styles from './styles/StageDot.css' import {map, distinctUntilChanged, switchMap} from 'rxjs/operators' import withPropsStream from '@vega/utils/withPropsStream' import {materializePaths} from 'part:@vega/datastores/document-preview' const loadProps = pro...
src/routes/simple/Simple.js
jackinf/skynda.me
/** * Created by jevgenir on 17/09/2016. */ import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Simple.scss'; import s1 from './Test.css'; class Simple extends React.Component { render() { return (<div id={s.sidebar}>Simple</div>); } } export default...
packages/simple-cache-provider/src/SimpleCacheProvider.js
dilidili/react
/** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import warning from 'shared/warning'; function noop() {} const Empty = 0; const Pending = 1; co...
packages/react-ui-components/src/_lib/storyUtils.js
dimaip/neos-ui
import React from 'react'; import PropTypes from 'prop-types'; /** * The StoryWrapper is a simple component which can be used to wrap stories * of the react-storybook lib. */ export const StoryWrapper = ({children, ...rest}) => ( <div style={{background: '#000', padding: '1rem', position: 'relative'}} ...
app/javascript/mastodon/components/inline_account.js
Ryanaka/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/components/avatar'; const makeMapStateToProps = () => { const getAccount = makeGetAccount(); const mapStat...
components/Comment.js
shioju/testing-react-with-jest
import React from 'react'; export default class Comment extends React.Component { render() { var rawMarkup = marked(this.props.children.toString(), {sanitize: true}); return ( <div className="comment"> <h2 className="commentAuthor"> {this.props.author} </h2> <span dang...
dashboard-ui/app/components/files-ui/filesPage.js
CloudBoost/cloudboost
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import SideBar from './sidebar'; import { initApp } from '../../actions/files-ui'; import '../../styles/css/files-ui.css'; class FilesPage extends React.Component { stat...
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldControlHTML.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Form } from 'semantic-ui-react' const FormExampleFieldControlHTML = () => ( <Form> <Form.Group widths='equal'> <Form.Field label='An HTML <input>' control='input' /> <Form.Field label='An HTML <select>' control='select'> <option value='male'>Male</option> ...
src/views/banner/index.js
vynogradskyi/resume
import React from 'react'; import {NavLink} from 'react-router-dom'; import styles from 'css-modules/banner/banner.scss'; import cv from 'data/resume'; import classnames from 'classnames'; export default () => { return ( <div className={classnames(styles.banner, 'content-container')}> <header...
examples/dynamic-segments/app.js
clloyd/react-router
import React from 'react' import { Router, Route, Link, Redirect } from 'react-router' import { createHistory, useBasename } from 'history' const history = useBasename(createHistory)({ basename: '/dynamic-segments' }) class App extends React.Component { render() { return ( <div> <ul> <...
docs/client.js
yyssc/ssc-grid
import CodeMirror from 'codemirror'; import 'codemirror/addon/runmode/runmode'; import 'codemirror/mode/jsx/jsx'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, browserHistory} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import 'bootstrap/less/...
public/controllers/management/components/management/configuration/util-components/configuration-cluster-selector.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for cluster node selector. * Copyright (C) 2015-2022 Wazuh, Inc. * * This program 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 2 of the License, or * (...
widgets/src/links/phone-link.js
joshferrell/hapi-maily
import React from 'react'; import PropTypes from 'prop-types'; const PhoneLink = ({ number, children }) => { const prettyNumber = `${number.slice(0, 3)}.${number.slice(3, 6)}.${number.slice(6)}`; return ( <a href={`tel:${number}`}> { children || prettyNumber } </a> ); }; Phone...
src/user/TransferHistory.js
Sekhmet/busy
import React, { Component } from 'react'; import ReduxInfiniteScroll from 'redux-infinite-scroll'; import { Link } from 'react-router'; import { FormattedRelative } from 'react-intl'; import Avatar from '../widgets/Avatar'; const defaultPageItems = 10; // Functions Borrowed from Steemit.com sourcecode for integrity ...
lib/ui/src/containers/notifications.js
storybooks/react-storybook
import React from 'react'; import { Consumer } from '@storybook/api'; import Notifications from '../components/notifications/notifications'; export const mapper = ({ state }) => { const { notifications } = state; return { notifications, }; }; const NotificationConnect = props => ( <Consumer filter={map...
src/app/components/list/About.js
cherishstand/OA-react
import React from 'react'; import Header from '../public/Header'; import FontIcon from 'material-ui/FontIcon'; import {grey500} from 'material-ui/styles/colors'; const styles = { description:{ marginTop: '15%', padding: '0 15%', textAlign: 'center' }, version: { fontSize: 14,...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
src/views/discover/FeedbackDetail.js
anysome/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/13. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, ListView, LayoutAnimation} from 'react-native'; import Button from 'react-native-button'; import moment from 'moment'; import {styles, colors, airloy, api, L, toast} from '../../ap...
src/components/NavBar.js
sievins/sarahs-footsteps
import React from 'react' import PropTypes from 'prop-types' import NavItem from './NavItem' import NavDivider from './NavDivider' import styles from './NavBar.scss' NavBar.propTypes = { navItems: PropTypes.arrayOf(PropTypes.shape({ text: PropTypes.string.isRequired, route: PropTypes.string.isRequired, }...
src/components/Home.js
fahmifachreza/fahmifachreza-portofolio
import React, { Component } from 'react'; // import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Hero from './Hero'; import ListWork from './ListWork'; class Home extends Component { componentWillMount() { const hero = { heroTitle: 'A Product Designer and Front-end Developer wh...
src/containers/DevTools.js
julianvmodesto/tweetstat
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
src/components/resources.js
ric9176/hoc
import React from 'react'; import withAuth from './require_auth'; const Resources = () => ( <div> <h1>Secret whatevs</h1> </div> ); export default withAuth(Resources);
src/components/Navigation/Navigation.js
langpavel/react-starter-kit
/** * 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 { defineMessages, For...
templates/frontOffice/modern/components/React/Error/index.js
thelia/thelia
import React from 'react'; export default function Error({ error }) { if (!error) return null; return ( <span className="text-red-500 text-xs font-normal italic mb-4 block"> {error} </span> ); }
src/templates/post-template.js
akilbekov/blog
import React from 'react'; import { Helmet } from 'react-helmet'; import { graphql } from 'gatsby'; import avatar from '../pages/avatar.jpg'; import PostTemplateDetails from '../components/PostTemplateDetails'; import Layout from '../components/layout'; class PostTemplate extends React.Component { render() { con...
src/svg-icons/action/history.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
packages/website/storybook/storybook-utils.js
uber-common/react-vis
import React from 'react'; import {AutoSizer} from 'react-virtualized'; import { XYPlot, RadialChart, XAxis, YAxis, VerticalGridLines, HorizontalGridLines } from 'react-vis'; import {boolean, select} from '@storybook/addon-knobs/react'; export const CATEGORY_PALETTE = [ '#19CDD7', '#DDB27C', '#88572C...
src/magic/TransmuteDialog.js
KageEnterprises/weed-wizard
import PropTypes from 'prop-types'; import React from 'react'; import { Button, Dialog, DialogActions, DialogContent, DialogTitle, List, ListItem, ListItemText } from '@material-ui/core'; import AppContext from '../AppContext'; import { getStrainById } from '../Weed/WeedUtils'; class TransmuteDialog...
src/parser/mage/frost/modules/talents/LonelyWinter.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Analyzer from 'parser/core/Analyzer'; imp...
client/src/client-only-routes/ShowProfileOrFourOhFour.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { isEmpty } from 'lodash'; import Loader from '../components/helpers/Loader'; import { userByNameSelector, userProfileFetchStateSelector, fetchProfileForUser, usernameSelector, hardGoTo...
lib/components/Editor.js
towry/composer-core
import React, { Component } from 'react'; import EditorState from '../EditorState'; import ass from '../util/ass'; import textEditorHandler from '../textEditorHandler'; import EditorContent from './EditorContent'; export default class Editor extends Component { constructor (props) { super(props); // keyboar...
packages/components/src/Progress/ProgressBar.stories.js
Talend/ui
import React from 'react'; import Progress from './Progress.component'; const containerStyle = { border: '1px solid black', width: '450px', height: '200px', }; export default { title: 'Messaging & Communication/ProgressBar', }; export const Percent = () => ( <div> <h1>Action</h1> <h2>Definition</h2> <p> ...
views/components/Container/index.js
Chibaheit/eventer
/* * 960px/1200px/1600px 自适应居中容器 */ import React from 'react'; import classNames from 'classnames'; import styles from './styles'; class Container extends React.Component { render() { return ( <div className={classNames(styles.container, this.props.className)}> { this.props.children } </d...
example/src/Screens/Docs/AnimatedRoute/example.js
maisano/react-router-transition
import React from 'react'; import { Link } from 'react-router-dom'; import { AnimatedRoute } from 'react-router-transition'; import Wrapper from './Wrapper'; import Sidebar from './Sidebar'; export default () => ( <Wrapper> <Link to="/sidebar">Show sidebar</Link> <AnimatedRoute path="/sidebar" c...
app/js/components/Completion.js
blockstack/blockstack-browser
import React from 'react' const Completion = () => ( <div className="tooltip tooltip-bottom" role="tooltip"> <div className="tooltip-inner"> Tooltip on the bottom </div> </div> ) export default Completion
src/components/DefaultListGroup/index.js
DataSF/open-data-explorer
import React from 'react' import PropTypes from 'prop-types' import { ListGroup } from 'react-bootstrap' import './@DefaultListGroup.css' const DefaultListGroup = ({itemComponent, className, items, onSelectListItem, popOverPlacement}) => { let content let hoverSide = popOverPlacement ? popOverPlacement : 'left' ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/index.js
samwgoldman/flow
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ const path = require('path'); const Styled = require('../../../Styled'); exports.kind = 'codemod'; export...
src/svg-icons/maps/place.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
docs/client.js
xsistens/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
assets/jqwidgets/demos/react/app/datatable/filteringapi/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; import JqxButton from '../../.....
views/status_line.js
jassyboy/black-screen
import React from 'react'; export default React.createClass({ render() { return ( <div className="status-line"> <CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/> <VcsData data={this.props.vcsData}/> </div> ) ...
docs/src/sections/DropdownPropsSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; export default function DropdownSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="dropdown-props">属性</Anchor></h3> <PropTable component="Dropdown"/> </div> ); }
fields/types/datearray/DateArrayFilter.js
Adam14Four/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value:...
client/components/routing/Routes.js
axax/lunuc
import React from 'react' import {connect} from 'react-redux' import PropTypes from 'prop-types' import Hook from 'util/hook' import config from 'gen/config-client' const {ADMIN_BASE_URL} = config import LogoutContainer from 'client/containers/LogoutContainer' import Async from 'client/components/Async' import { C...
src/svg-icons/action/store.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStore = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); ActionStore = pure(ActionStore); ActionStore.displayName = ...
react/redux-start/react-redux-todos-review/src/containers/LinkFilter.js
kobeCan/practices
import React from 'react'; import Link from '../components/Link'; import { connect } from 'react-redux'; import { setFilter } from '../actions'; const mapStateToProps = (state, ownProps) => ({ active: state.visibilityFilter === ownProps.filter }); const mapDispatchToProps = (dispatch, ownProps) => ({ onClick: () =>...
new-lamassu-admin/src/components/editableTable/NamespacedTable.js
naconner/lamassu-server
import * as R from 'ramda' import React from 'react' import { fromNamespace, toNamespace } from 'src/utils/config' import EditableTable from './Table' const NamespacedTable = ({ name, save, data = {}, namespaces = [], ...props }) => { const innerSave = (...[, it]) => { return save(toNamespace(it.id)(...
static/node_modules/react-router/es6/IndexRoute.js
unmeshpro/easyPost
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
react-lottie-network-aware-loading/src/components/AdaptiveLoadableLottie/HeavyWithAnimation/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
docs/app/Examples/elements/Image/Variations/ImageExampleFluid.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleFluid = () => ( <Image src='/assets/images/wireframe/image.png' fluid /> ) export default ImageExampleFluid
src/Parser/AfflictionWarlock/Modules/Talents/Haunt.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/Stati...
src/scripts/base/Hr.js
ButuzGOL/constructor
import React from 'react'; import variables from '../styles/variables'; export default class Hr extends React.Component { getStyles() { return { boxSizing: 'content-box', height: 0, margin: `${variables.baseHrMarginVertical}px 0`, border: 0, borderTop: `${variables.baseHrBorderWid...
front_end/src/pages/Campaigns/CampaignCreatePage.js
ncloudioj/splice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import reactMixin from 'react-mixin'; import { Link, Lifecycle } from 'react-router'; import { updateDocTitle } from 'actions/App/AppActions'; import { fetchHierarchy } from 'actions/App/BreadCrumbActions'; import { fetchAccounts } from '...
app/containers/ProfilePicture/then.js
ledminh/ledminh-home
import React from 'react'; import styled from 'styled-components'; import { HIDE, BOLD, NOW } from './constants'; const Frame = styled.div` position: absolute; right: 0px; width: 155px; height: 250px; background-color: ${(props) => (props.state === BOLD)? `rgba(20,43,91, .7)` : `rgba(20,43,91, .4)`};...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
x303597316/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
docs/app/Examples/elements/Label/Content/LabelExampleLink.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Label } from 'shengnian-ui-react' const LabelExampleLink = () => ( <Label as='a'> <Icon name='mail' /> 23 </Label> ) export default LabelExampleLink
src/messageScroller.js
Rakshay/InfiniteScroller
import React from 'react'; import PropTypes from 'prop-types'; import Infinite from 'react-infinite'; /** * This react component renders the infinitely long list of messages for the user * @class */ class MessageScroller extends React.Component { /** @constructs * @param {Object} props The set of props being ...
client/components/NoImg/NoImg.js
joshjg/explore
import React from 'react'; import styles from './NoImg.css'; const NoImg = () => ( <div className={styles.root}> no photo </div> ); NoImg.propTypes = { }; export default NoImg;
src/svg-icons/av/repeat.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeat = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/> </SvgIcon> ); AvRepeat = pure(AvRepeat); AvRepeat.displayName = 'AvRepeat'; AvRepeat.mu...
src/components/Props.js
Hacker0x01/react-storybook-addon-info
import React from 'react'; import PropVal from './PropVal'; const stylesheet = { propStyle: { }, propNameStyle: { }, propValueStyle: { } } export default class Props extends React.Component { render() { const props = this.props.node.props; const defaultProps = this.props.node.type.defaultProps; ...
src/components/FactContainer.js
jasonslyvia/bi-demo
import React from 'react'; import './FactContainer.css'; import FactItem from './FactItem'; const facts = [{ text: '销售额', value: 'sales' }, { text: '客户数', value: 'customer' }, { text: '库存', value: 'stock', }]; class FactContainer extends React.Component { render() { return ( <div className="...
fixtures/packaging/systemjs-builder/prod/input.js
wmydz1/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container'), );
src/client/app/content_items/ContentItemList.js
raghuveerkancherla/yata
import React from 'react'; import ContentItem from './sub_components/ContentItem'; import _ from 'lodash'; import styles from './styles.less'; var ContentItemList = React.createClass({ propTypes: { contentItems: React.PropTypes.array, currentPage: React.PropTypes.string, onContentItemToggle: React.PropT...
packages/native/src/components/App.js
hwaterke/inab
import React from 'react' import {Provider} from 'react-redux' import {persistStore} from 'redux-persist' import {AsyncStorage, StatusBar, View} from 'react-native' import {store} from '../store/index' import {globalStyles} from '../constants/styles' import {LoginDispatcher} from './LoginDispatcher' export class App e...
src/parser/warlock/demonology/modules/talents/SoulConduit.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import { binomialPMF, findMax } from 'pars...
src/app/components/team/SmoochBot/index.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import SmoochBotComponent from './SmoochBotComponent'; const SmoochBot = ({ currentUser }) => { const teamSlug = window.location.pathname.match(/^\/([^/...
demo/src/rectangle.js
seanofw/region2d
import React from 'react'; import PropTypes from 'prop-types'; export default class Rectangle extends React.Component { static propTypes = { kind: PropTypes.oneOf(["union", "intersect", "subtract", "xor", "region", "exterior"]).isRequired, x: PropTypes.number.isRequired, y: PropTypes.number.isRequir...
src/components/EyeIcon/EyeIcon.js
vonZ/rc-vvz
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
src/components/BookEditor.js
prodigalyijun/demo-by-antd
import React from 'react'; import FormItem from './FormItem'; import AutoComplete from './AutoComplete'; import formProvider from '../utils/formProvider'; import request, { get } from '../utils/request'; class BookEditor extends React.Component { constructor(props) { super(props); this.state = { ...
src/BulletGraphComponent.js
kgrubic/Bullet-graph-React
import React, { Component } from 'react'; import './App.css'; import DrawBuletGraph from './DrawBuletGraph.js'; export class BulletGraph extends Component { componentDidMount() { this.updateCanvas(); } componentDidUpdate() { this.updateCanvas(); } updateCanvas() { const ctx = this.refs.can...
server/sonar-web/src/main/js/apps/system/item-value.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
packages/reactor-kitchensink/src/examples/Layouts/center/center.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; import colors from '../../colors'; export default class CenterLayoutExample extends Component { render() { return ( <Container layout="vbox" padding={10}> <Panel shadow ui="instructio...
geonode/monitoring/frontend/monitoring/src/components/cels/throughput/index.js
tomkralidis/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program 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 # ...
stories/InfoPanelDecorator.js
airbnb/react-dates
import React from 'react'; import PropTypes from 'prop-types'; export function monospace(text) { return `<span style="font-family:monospace;background:#f7f7f7">${text}</span>`; } function InfoPanel({ text }) { return ( <div style={{ backgroundColor: '#fff', fontColor: '#3c3f40', ...
app/components/presentation/DateFilterForm.js
PHPiotr/phpiotr4
import React from 'react'; import {Button} from 'material-ui'; import {FormControl} from 'material-ui/Form'; import Input, {InputLabel} from 'material-ui/Input'; import {withStyles} from 'material-ui/styles'; import {formStyles as styles} from '../../utils/styles'; const DateFilterForm = (props) => { if (!props.d...
source/common/components/TodoList/TodoList.js
shery15/react
import React from 'react'; const TodoList = ({ todos, onDeleteTodo, }) => ( <div> <ul> { todos.map((todo, index) => ( <li key={index}> {todo.get('text')} <button onClick={onDeleteTodo(index)}>X</button> </li> )).toJS() } </ul> </di...
src/svg-icons/action/youtube-searched-for.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionYoutubeSearchedFor = (props) => ( <SvgIcon {...props}> <path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2....
fields/types/name/NameColumn.js
matthewstyers/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; import displayName from 'display-name'; var NameColumn = React.createClass({ displayName: 'NameColumn', propTypes: { col: React.PropTypes.object, data: React.Pr...
src/components/ShareExperience/TimeSalaryForm/TimeInfo.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { Clock } from 'common/icons'; import { P } from 'common/base'; import TextInput from 'common/form/TextInput'; import RadioButton from 'common/form/RadioButton'; import Radio from 'common/form/Radio'; import InputTitle from '../common/InputTitle'; ...
ui/js/pages/newsletter/NewsletterFormContents.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormField from '../../components/FormField'; import SectionsFormContents from '../../components/SectionsFormContents'; import DateInput from '../../components/DateInput'; import DomainIdField from '../../components/DomainIdField'; co...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleMessage.js
aabustamante/Semantic-UI-React
import React from 'react' import { Dropdown, Message } from 'semantic-ui-react' const DropdownExampleMessage = () => ( <Dropdown text='Login' icon='filter' floating labeled button className='icon'> <Dropdown.Menu> <Message error header='Error' content='You must log-in to see all categories' /> </Dropdo...
examples/flux-utils-todomvc/js/app.js
chikamichi/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
client/src/components/kegs/keg-edit.js
commoncode/ontap
/** * KegEdit component. * Form for editing a Keg (pass Keg model as props). * Instantiate with no props to create new Kegs. */ import React from 'react'; import reactPropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { updateKeg, createKeg } from '../../actions/kegs'; import Loader fr...
src/filters/Select.js
prajapati-parth/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classSet from 'classnames'; import Const from '../Const'; function optionsEquals(options1, options2) { const keys = Object.keys(options1); for (const k in keys) { if (options1[k] !== options2[k]) { return false; } ...
pages/alumni.js
alexxpan/calwtcrew
import React from 'react'; import donate from '../assets/images/donate-now.png'; const AlumniComponent = () => ( <div> <div className="page__header"> CAL LIGHTWEIGHT CREW ALUMNI </div> <div className="section__content"> <p> Dear alumni: </p> <p> Thank you for your ...
packages/material-ui-icons/src/Filter3.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Filter3 = 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-1.5c0-.83-.67-1.5-1.5-...
src/Result.js
wallat/little-test
import React from 'react' import PropTypes from 'prop-types' import moment from 'moment' import classnames from 'classnames' import { Loader, Container, Divider } from 'semantic-ui-react' import './Result.css' const TO_ANSWER_GROUPS = require('.//GROUP_DEFINITION.json') const END_POINT = 'https://gwvxd5rut2.execute-a...
src/blocks/Chat/Chat.js
ducthuan-2712/To-Do
/* * @flow */ import React, { Component } from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; // Blocks import Search from '../Search'; import './Chat.css'; class Chat extends Component { constructor(props) { super(props) this.state = { } this.onCreateComment = this.onCreateC...
src/audio.js
cutofmyjib/podcast-house
import React, { Component } from 'react'; export default class AudioTag extends Component { constructor(props) { super(props); this.state = { audio: new Audio(props.src), isPlaying: false }; } componentDidMount() { this.state.audio.addEventListener('...
src/library/tabs/components/Tab.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; export default class Tab extends React.Component { constructor() { super(); this.state = {} } componentDidMount() { // let elem = ReactDOM.findDOMNode(this); // let childForm = elem.getElementsByTagName('form'); // console.log(childForm[0]); } render() { re...
chat/index.ios.js
wph1129/react-native-chat
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import AppChat from './example/AppChat'; AppRegistry.registerComponent('chat', () => AppChat);
packages/ringcentral-widgets-docs/src/app/pages/Components/FromField/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import FromField from 'ringcentral-widgets/components/FromField'; const props = {}; props.fromNumber = '123456'; props.formatPhone = value => value; props.fromNumbers = [{ phoneNumber: '123456', usageType: 'DirectNumber' }]; props.onChange = () => null; props.curr...
components/display/ShowMePage/AvbTreemap.js
DemocracyApps/cbe-client
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; require('../../../styles/avb/global.css'); var avbStuff = require('./aux/avb.js'); //import md5 from 'blueimp-md5'; var md5 = require('blueimp-md5'); var AvbTreemap = React.createClass({ propTypes: { data: React.PropTypes.o...
web/app/source/chapters.js
bitemyapp/serials
// @flow import React from 'react' import {cloneDeep, findIndex, assign} from 'lodash' import {toDateString} from '../helpers' import {makeUpdate, number} from '../data/update' import {isLink, emptyChapter, Chapter, setContentText, contentText, chapterContentURL} from '../model/chapter' import {displayIf, Colors} from...