path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react/src/components/UIShell/HeaderName.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import Link, { LinkPropTypes } from './Link'; impo...
templates/rubix/relay/relay-seed/src/common/header.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { Link, withRouter } from 'react-router'; import l20n, { Entity } from '@sketchpixy/rubix/lib/L20n'; import { Label, SidebarBtn, Dispatcher, NavDropdown, NavDropdownHover, Navbar, Nav, NavItem, ...
client/admin/settings/inputs/PasswordSettingInput.stories.js
subesokun/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import { PasswordSettingInput } from './PasswordSettingInput'; export default { title: 'admin/settings/inputs/PasswordSettingInput', component: PasswordSettingInput, decorators: [ (storyFn...
src/components/Root/Root.js
wearepush/redux-starter
import React from 'react'; import { object, oneOfType, array } from 'prop-types'; import { Provider } from 'react-redux'; import { HelmetProvider } from 'react-helmet-async'; import { ScrollToTop } from '../../elements'; import RootRoutes from './RootRoutes'; import HistoryRouter from './HistoryRouter'; import '../../s...
react-flux/psadmin/src/components/authors/authorList.js
mauriciojunior/react-playground
'use strict'; import React from 'react'; import { Link } from 'react-router'; import AuthorActions from '../../actions/authorActions'; import toastr from 'toastr'; const AuthorList = React.createClass({ render() { return ( <div> <table className='table'> <thead> <tr></tr> <tr>ID</tr> ...
src/components/media-dropzone/dropzone-file-view/uploaded-image-item.js
datea/datea-webapp-react
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import GridListTile from '@material-ui/core/GridListTile'; import GridListTileBar from '@material-ui/core/GridList'; import IconButton from '@material-ui/core/IconButton'; import DeleteIcon from '@material-ui/icons/Delete'; impo...
ui/src/components/shared/buttons/index.js
TransSponsor/trans-sponsor
import PropTypes from 'prop-types'; import React from 'react'; import './buttons.scss'; const PrimaryButton = ({ disabled, text, type }) => <button className='primary button' disabled={disabled} type={type} > {text} </button>; PrimaryButton.displayName = 'Primary Button'; PrimaryButton.propTypes...
docs/src/app/components/pages/components/Tabs/ExampleSimple.js
ichiohta/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import Slider from 'material-ui/Slider'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; function handleActive(tab) { alert(`A tab with this route property ${tab.props['data...
src/components/Editor/Editor.js
liangchunlang/Exhitec-center
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
examples/todo/src/components/Todo/Footer/index.js
pspaulding/create-redux-module
import React from 'react'; import Link from '../Link/container'; const Footer = () => ( <p> Show: &nbsp;<Link filter="SHOW_ALL">All</Link> &nbsp;<Link filter="SHOW_ACTIVE">Active</Link> &nbsp;<Link filter="SHOW_COMPLETED">Completed</Link> </p> ); export default Footer;
ballot-maker/src/index.js
OnVelocity/ov-ballot
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, combineReducers, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import logger from 'redux-logger' import { ui, ballots, fetch_ballots, upsert_ballots, delete_ballots } from './Reducers' import { difference, differenceWith...
app/javascript/mastodon/features/ui/components/video_modal.js
mosaxiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
src/svg-icons/hardware/speaker.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeaker = (props) => ( <SvgIcon {...props}> <path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c...
actor-apps/app-web/src/app/components/SidebarSection.react.js
lstNull/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
containers/app.js
MonkingStand/MS-blog-site-v3.0
import React from 'react'; class App extends React.Component { render() { return ( <div> { this.props.children } </div> ); }; }; export default App;
app/javascript/mastodon/features/keyboard_shortcuts/index.js
yi0713/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
admin/client/App/index.js
frontyard/keystone
/** * This is the main entry file, which we compile the main JS bundle from. It * only contains the client side routing setup. */ // Needed for ES6 generators (redux-saga) to work import '@babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, IndexRout...
src/Parser/Hunter/BeastMastery/Modules/Talents/Stomp.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemDamageDone from 'Main/ItemDamageDone'; class Stomp extends...
Tutorial/js/project/1.NewsDemo/NewsDemo.js
onezens/react-native-repo
/** * Created by wangzhen on 17/5/2. */ import React, { Component } from 'react'; const Main = require('./Component/YCMain'); class NewsDemo extends Component { render() { return ( <Main /> ); } } module.exports = NewsDemo;
rojak-ui-web/src/app/home/HomePage.js
reinarduswindy/rojak
import React, { Component } from 'react'; import Link from 'react-router/lib/Link'; import withRouter from 'react-router/lib/withRouter'; import SearchBox from './SearchBox'; import { ResultWrapper, DefaultResult, MediaResult, KandidatResult, PasanganResult } from '../result' class HomePage extends Component { ren...
packages/react/src/components/Image.js
wq/wq.app
import React from 'react'; export default function Image(props) { return <img {...props} />; }
docs/src/app/components/pages/components/IconMenu/ExampleControlled.js
ngbrown/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import RaisedButton from 'material-ui/RaisedButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import ContentFilter from 'mat...
src/svg-icons/action/settings-cell.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/core/display/App/util/View/SidebarMenu/index.js
JulienPradet/pigment-store
import React from 'react' import classnames from 'classnames' import styles from './sidebar.css' export const SidebarMenu = ({children}) => <div>{children}</div> SidebarMenu.displayName = 'SidebarMenu.SidebarMenu' export const MenuTitle = ({children}) => <h2 className={styles.title}>{children}</h2> MenuTitle.displayN...
src/pages/Games/Games.js
iGameLab/teleport-client
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { setGames, setFetchState } from '../../reducer/teleport' import Pagination from './components/Pagination' import GameList from '../../components/GameList' import SearchPanel from './components/SearchPanel' impo...
app/containers/FeaturePage/index.js
MaleSharker/Qingyan
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
src/parser/priest/shared/modules/spells/azeritetraits/Sanctum.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import { calculateAzeriteEffects } from 'common/stats'; import { formatThousands } from 'common/format'; import ItemHealin...
src/itemPage.js
henyouqian/sale
import React, { Component } from 'react'; import { render } from 'react-dom'; require("./itemPage.css"); var _rootEl = document.getElementById("root"); FastClick.attach(_rootEl); export class PageItem extends Component { render() { return ( <div className="uk-container uk-container-center"> <div className="...
client/portal.js
ben-pr-p/assemble
import React from 'react' import { render } from 'react-dom' import { LocaleProvider } from 'antd' import enUS from 'antd/lib/locale-provider/en_US' import Portal from './portal/main' window.onload = () => { render( <LocaleProvider locale={enUS}> <Portal /> </LocaleProvider>, document.querySelector...
src/components/DirectInput.js
ericyd/surfplot-ui
/** * DirectInput provides a controlled input element that immediately * passes changes in value up the state chain. * * This pattern is used for inputs which have a pre-determined set of values * (primarily select elements, checkboxes, or radio buttons) * and whose value is deemed safe to use immediately in sibl...
accounts-ui/app/layout.js
CloudBoost/cloudboost
import React from 'react'; import axios from 'axios' import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import injectTapEventPlugin from 'react-tap-event-plugin'; import Circ...
developers.diem.com/src/components/docs/Excerpt/index.js
libra/libra
import React from 'react'; import PropTypes from 'prop-types'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const Excerpt = ({children, image}) => { return ( <div className={styles.root}> <div className={styles.content}> <div className={styles.imageCo...
pootle/static/js/admin/components/ItemTable.js
phlax/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'; import ItemTableRow from './It...
src/components/ZonesSearchPropositions.js
alexravs/midgar
import React from 'react'; import ZonesSearch from '../containers/ZonesSearch'; import ZonesPropositions from '../containers/ZonesPropositions'; const ZonesSearchPropositions = () => { return ( <div> <ZonesSearch /> <ZonesPropositions /> </div> )}; export default ZonesSearchPropositions;
node_modules/recharts/demo/component/Pie.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import { Surface, Pie } from 'recharts'; const data = [ { name: 'iphone4', value: 120, fill: '#ff7300' }, { name: 'iphone4s', value: 500, fill: '#e5671a' }, { name: 'iphone5', value: 600, fill: '#907213' } ]; export default React.createClass({ displayName: 'PieDemo', render () { ...
docs/app/Examples/views/Card/Types/CardExampleIndividualCardProps.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Card, Icon } from 'semantic-ui-react' const extra = ( <a> <Icon name='user' /> 16 Friends </a> ) const CardExampleIndividualCardProps = () => ( <Card image='http://semantic-ui.com/images/avatar/large/elliot.jpg' header='Elliot Baker' meta='Friend' descr...
src/common/containers/Login.js
strekmann/node-boilerplate
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Grid, Row, Col, Input, Button } from 'react-bootstrap'; import { loginUser } from '../actions/viewer'; class Login extends React.Component { constructor(props) { super(props); this.onLog...
client/main.js
marvinmarnold/whatsapp-zopim
import { Meteor } from 'meteor/meteor'; import React from 'react'; import { render } from 'react-dom'; import App from '../imports/ui/App.jsx'; Meteor.startup(() => { render(<App />, document.getElementById('app')); });
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
clloyd/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> ...
src/routes/index.js
WCCrazyCoder/react-redux-web-application
import React from 'react'; import { Switch } from 'react-router-dom'; import { injectReducer } from '../redux/reducers'; import HomeRoute from '../containers/Home'; import AbouteRoute from '../containers/About'; import NotFoundRoute from '../containers/NotFound'; const routes = (store) => { return ( <Switch> <H...
React Native/Demos/address_book/Views/manager.js
AngryLi/note
/** * Created by Liyazhou on 16/8/28. */ import React from 'react'; import { View, Text, ScrollView, TouchableOpacity, AsyncStorage, StyleSheet } from 'react-native'; import Util from './util'; import Service from './service'; import AddUser from './manager/addUser'; import DeleteUser from '...
src/components/shared/Link.js
chrisrzhou/interviews
import React from 'react'; import './Link.css'; const Link = ({ href, value, target, onClick, }) => ( <a className="Link" href={href} target={target} onClick={onClick}> {value} </a> ); export default Link;
tests/react/useRef_hook.js
samwgoldman/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} class Bar extends React.Component<{}, void> {} { const stringValue: {current: string} = React.useRef("abc"); // Ok const numberValue: {current: number} = React.useRef(123); // Ok const booleanValue: {current: boolean} = React.us...
src/svg-icons/editor/attach-money.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachMoney = (props) => ( <SvgIcon {...props}> <path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3....
node_modules/_rc-tree@1.7.7@rc-tree/es/TreeNode.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _typeof from 'babel-runtime/helpers/typeof'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possible...
app/javascript/mastodon/features/domain_blocks/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/main/js/codex/views/PlayersListView.js
Bernardo-MG/dreadball-toolkit-webpage
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import { fetch } from 'players/actions/players'; import SimpleView from 'views/containers/SimpleView'; import Pla...
src/components/toolbar.js
isehrob/synapses-text
// main-toolbar import React from 'react'; import { RichUtils, Entity, AtomicBlockUtils } from 'draft-js'; import { InlineStyleControls, BlockStyleControls } from './controls'; import { SpecialButton } from './buttons'; export default class Toolbar extends React.Component { constructor(prop...
src/svg-icons/action/accessibility.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
node_modules/react-select/examples/src/components/GithubUsers.js
premcool/getmydeal
import React from 'react'; import Select from 'react-select'; import fetch from 'isomorphic-fetch'; const GithubUsers = React.createClass({ displayName: 'GithubUsers', propTypes: { label: React.PropTypes.string, }, getInitialState () { return { backspaceRemoves: true, multi: true }; }, onChange (val...
examples/redux/index.js
zalmoxisus/remotedev
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); render( <Provider store={store}...
frontend/src/screens/history/widgets/comment-modal/comment-modal.js
desihub/qlf
import React from 'react'; import Modal from '@material-ui/core/Modal'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import { FadeLoader } from 'halogenium'; import TextField from '@material-ui/core/TextField'; import Icon from '@material-ui/core/Icon'; import QlfApi from '...
src/components/blocks/BlockButton.js
m0sk1t/react_email_editor
import React from 'react'; const BlockButton = ({ blockOptions, onPropChange }) => { return ( <table width="550" cellPadding="0" cellSpacing="0" role="presentation" > <tbody> <tr> <td width="550" style={blockOptions.elements[0]} height={blockOptions.container.height} > ...
src/utils/defaultMenuRenderer.js
bj75326/react-pagination
//defaultMenuRenderer.js import React from 'react'; import classnames from 'classnames'; import styles from '../component/style.css'; import FontAwesome from 'react-fontawesome'; const menuRenderer = ({ focusedOption, ident, prefixCls, multi, labelKey, onFocus, onSelect, optionClassNam...
app/assets/js/client.js
nesfe/electron-LAN-chat
import React from 'react'; import { message } from 'antd'; let net = require('net'); let port = 19964; const clients = { send: (host, val) => { let client = new net.Socket(); client.setEncoding('binary'); client.connect(port, host, () => { client.write(JSON.stringify(val)); client.end(); }...
templates/rubix/laravel/laravel-seed/src/main.js
jeffthemaximum/jeffline
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './routes'; import render, { setRoutes } from '@sketchpixy/rubix/lib/others/router'; import { isBrowser } from '@sketchpixy/rubix'; if (isBrowser()) { render(routes, () => { console.log('Completed rendering!'); }); if (module.h...
src/svg-icons/editor/format-align-left.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignLeft = (props) => ( <SvgIcon {...props}> <path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignLeft = pure(EditorFormatAlignL...
packages/material-ui-icons/src/FilterVintage.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.95 0-2.22-1.21-4.15-3-5.19C10.21 1.85 9 3.78 9 6c0 ....
src/main/react-front-end/src/views/Queue/QueueView.js
didclab/onedatashare
import React from 'react'; import Table from "@material-ui/core/Table"; import TableFooter from "@material-ui/core/TableFooter"; import TablePaginationActions from "../TablePaginationActions"; import QueueTableHeaderView from "./QueueTableHeader/QueueTableHeaderView"; import QueueTableBodyView from "./QueueTableRow/Que...
src/svg-icons/maps/local-offer.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalOffer = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86...
geonode/contrib/monitoring/frontend/src/pages/hardware-performance/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Header from '../../components/organisms/header'; import GeonodeStatus from '../../components/organisms/geonode-status'; import GeoserverStatus from '../../components/organisms/geoserver-status'; import styles fr...
src/containers/paginate.js
orouvinen/mytype-frontend
import React, { Component } from 'react'; // Paginate: creates a component that adds pagination to a list component of some sort. // // Args: // WrappedComponent: the component that will be paginated // initialPage: page (0..n-1) to display when first rendering the wrapped component // totalItems: number of item...
index.vr.js
wonskarol/react-vr-demo
import React from 'react'; import { AppRegistry, asset, StyleSheet, Pano, Text, View, } from 'react-vr'; class demo extends React.Component { render() { return ( <View> <Pano source={asset('chess-world.jpg')}/> <Text style={{ backgroundColor: '#777879', ...
src/utils/ValidComponentChildren.js
zanjs/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
example/src/PieChartDemo.js
rsamec/react-pathjs-chart
import React from 'react'; import {Pie} from 'react-pathjs-chart'; import genie from 'genie' import ChartDemo from './ChartDemo.js'; export class PieDemo { get dataTemplate() { return { data: { min: 2, max: 10, template: { name...
react-native/Auth/src/components/common/Input.js
vanyaland/react-demos
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => { const { inputStyle, labelStyle, containerStyle} = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{labe...
src/routes/login/index.js
arkeros/react-native-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Login from './Login'; c...
ajax/libs/recompose/0.20.1/Recompose.js
BenjaminVanRyseghem/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
example/src/test_restart.js
flywingdevelopers/rn-naive
/** * Test react-native-restart * Kevin Lee 25 Oct 2017 **/ import React from 'react' import RNRestart from 'react-native-restart' import { Device, Screen, Block, Button } from 'rn-naive' export default class App extends React.Component { render() { return( <Screen title='RESTART TEST'> ...
src/routes/post/List.js
102010cncger/antd-admin
import React from 'react' import { Table } from 'antd' import styles from './List.less' const List = ({ ...tableProps }) => { const columns = [ { title: 'Image', dataIndex: 'image', className: styles.image, width: 64, render: text => <img alt="Feture" width={26} src={text} />, }...
packages/playground/stories/IconInput.story.js
appearhere/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, select } from '@storybook/addon-knobs'; import { IconInput } from '@appearhere/bloom'; const stories = storiesOf('FormComponents', module); stories.addDecorator(withK...
app/javascript/mastodon/features/ui/components/tabs_bar.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar...
node_modules/react-foundation/src/components/slider.js
Technaesthetic/ua-tools
import React, { Component } from 'react'; import classNames from 'classnames'; // TODO: Add support for changing the values. /** * Slider component. * http://foundation.zurb.com/sites/docs/slider.html */ export class Slider extends Component { constructor() { super(); this.state = { value: 0 }; } c...
app/javascript/mastodon/components/column_back_button_slim.js
kirakiratter/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; import Icon from 'mastodon/components/icon'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> ...
packages/react-ui-components/src/Grid/grid.js
dimaip/neos-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; const Grid = props => { const { className, children, theme, gutter, ...rest } = props; const finalClassName = mergeClassNames({ [theme.grid]: true, ...
app/routes/MatchDate/MatchDate.js
arnef/ligatool-hamburg
import React from 'react'; import { View } from 'react-native'; import moment from 'moment'; import { connect } from 'react-redux'; import DateTimePicker from 'react-native-modal-datetime-picker'; import { Text, Button, Container, ListItem, Touchable, Icon, } from '../../components'; import { DATETIME_FORMA...
src/core/display/App/AppPage.js
JulienPradet/pigment-store
import React from 'react' import {Match, Redirect, Link} from 'react-router' import BasicLayout from './util/View/Layout/Basic' import VerticalNavigation from './Navigation/Vertical' import MinimalLayout from './util/View/Layout/Minimal' import HorizontalNavigation from './Navigation/Horizontal' import DisplayOptions f...
src/pages/Levels.js
cuebrick/TypeWriter
import React from 'react'; import PlayManager from '../components/PlayManager'; import LevelList from "../components/LevelList"; import UserManager from "../components/UserManager"; class Levels extends React.Component{ constructor(props){ super(props); this.reloadLevels = this.reloadLevels.bind(this); this._pm...
src/client.js
noahehall/udacity-corporate-dashboard
require('./.globals'); import { browserHistory, Router } from 'react-router'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import configure from './store/configure'; import Immutable from 'seamless-immutable'; import React from 'react'; import routes from './routes'; const preloadedState...
app/components/CheckBox/index.js
SakuB/Individual_website
import React, { Component } from 'react'; import { Chcek, CheckItem, CheckIcon, CheckLabel, } from './components'; import './iconfont.js'; class CheckBox extends Component { state = { checked: true, } render() { return ( <Chcek onClick={() => this.setState({ checked: !this.state.checked })...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/button/button.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
resources/js/components/artifacts/SearchIcon/SearchIcon.js
DoSomething/northstar
import React from 'react'; import PropType from 'prop-types'; const SearchIcon = ({ className, size }) => ( <svg className={className} fill="currentColor" style={{ display: 'block', height: `${size}`, pointerEvents: 'none', width: `${size}`, }} viewBox="0 0 20 20" xmln...
modules/withRouter.js
shunitoh/react-router
import invariant from 'invariant' import React from 'react' import hoistStatics from 'hoist-non-react-statics' import { routerShape } from './PropTypes' function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component' } export default function withRouter(Wrappe...
src/js/app.js
RSpace/aframe-meetup-example
import React from 'react' import { render } from 'react-dom' import Root from './containers/Root' import configureStore from './redux/store' import { getMembers } from './utils/meetupApi' import {INITIAL_STATE} from './core' getMembers().then(members => { const initialState = INITIAL_STATE.set('members', members) ...
src/svg-icons/action/settings-cell.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/components/ControlPanel/ControlPanel.js
mulesoft-labs/mule-match
import React from 'react'; import propTypes from './PropTypes'; import styles from './ControlPanel.css'; const onIgnoreFeature = (e, currentFeature, ignoreFeature) => { e.preventDefault(); ignoreFeature(currentFeature); }; const onSelectFeature = (e, currentFeature, selectFeature) => { e.preventDefault(); sel...
src/components/LoginForm.js
jenca-cloud/jenca-gui
import React from 'react' import { Grid, Cell } from 'react-mdl' import CredentialsForm from './CredentialsForm' function reverseMode(mode){ return mode == 'login' ? 'register' : 'login' } export default function LoginForm(props) { var form = props.mode == 'register' ? <CredentialsForm title="Registe...
src/svg-icons/editor/linear-scale.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorLinearScale = (props) => ( <SvgIcon {...props}> <path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ...
client/src/js/jsx/pages/Home.js
johnsbarrie/web-dev-env
import React from 'react'; import dispatcher from '../../Dispatcher' export default class SpinnerControlPage extends React.Component { render () { return ( <div class="bd-example"> <div class="card "> <div class=" card-header card-info">ReactJS - Flux Development environment</div> <div class="card-b...
src/svg-icons/navigation/fullscreen.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
src/svg-icons/content/flag.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
app/src/js/components/comments/comment_post.js
tahnik/devRantron
/** * Used for posting a comment. * It uses a reusable Smart area */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import rantscript from '../../consts/rantscript'; import SmartArea from '../utilities/smart_area'; import { getTextFromEmoji } from '../../consts/utils'; class CommentP...
src/components/Search.js
TimothyBom/react-redux-instagram
import React from 'react' import { isEmpty } from 'lodash' class Search extends React.Component { onChange(e) { this.props.getSearchUser(e.target.value) } render() { const { search } = this.props const noAvatar = ( <img className="_a4egj" src="https://res.cloudinary.co...
src/inactive/Recipe.js
MichaelLSmith/recipeBox
import React, { Component } from 'react'; import _ from 'lodash'; import { Button, ButtonToolbar, ButtonGroup, Panel } from 'react-bootstrap'; import ModalWrapper from './Modal-Wrapper'; import Ingredients from './Ingredients'; function Recipe(props) { const { recipe } = props; // console.log('recipe in recipe Co...
showcase/misc/gradient-example.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
fields/types/geopoint/GeoPointFilter.js
ratecity/keystone
import React from 'react'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, l...
src/svg-icons/maps/local-cafe.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...
frontend/src/components/PersonTable/PersonTable.js
blalasaadri/TechTalent
import React from 'react'; import { Table } from 'react-bootstrap'; import SkillOverview from 'components/SkillOverview'; import { Link } from 'react-router'; export const PersonTable = function (props) { var trs = props.persons.map((person) => ( <tr key={person.id}> <td> <Link to={`/persons/${pe...
frontend/src/components/shared/pagination/index.js
Kilte/cindy
import React from 'react'; import './index.css'; const NEIGHBOURS = 4; export const FIRST_PAGE = 1; export const INITIAL_OFFSET = 0; export const LIMIT = 40; export class Pagination extends React.Component { shouldComponentUpdate(nextProps) { return this.props.currentPage != nextProps.currentPage; }...
tp-3/juan-pablo-gonzalez/src/shared/components/headerModifier/components/tinFixedWidth/TinFixedWidth.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import './TinFixedWidth.scss'; const TinFixedWidth = props => <th className="tin-fixed-width" >{ props.label }</th>; TinFixedWidth.propTypes = { label: PropTypes.string.isRequired }; export default TinFixedWidth;