path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
stories/simple.js
yiminghe/css-animation
import anim from '../src'; import React from 'react'; import ReactDOM from 'react-dom'; import { storiesOf } from '@storybook/react'; const style = ` .box { background:red; width:100px; height:100px; } .fade-enter { opacity: 0; animation-duration: 0.3s; animation-fill-mode: both; animation-timing-functio...
prototypes/cra-boilerplate/src/app.js
yldio/joyent-portal
import React, { Component } from 'react'; import createHistory from 'history/createBrowserHistory'; import { ThemeProvider } from 'styled-components'; import pathToRegexp from 'path-to-regexp'; import pascalCase from 'pascal-case'; import qs from 'qs'; import NotFound from './404'; import { theme, RootContainer } from ...
src/components/ListItem.js
hannupekka/cocheck
// @flow import styles from 'styles/components/ListItem.less'; import React, { Component } from 'react'; import { pure } from 'recompose'; import { SortableElement, SortableHandle } from 'react-sortable-hoc'; import ClickOutside from 'react-click-outside'; import DebounceInput from 'react-debounce-input'; import CSSMod...
src/components/About/index.js
badT/twitchBot
import React from 'react'; import { styles } from './styles.scss'; const emoChart = require('./assets/emotionChart.jpg'); const socChart = require('./assets/socialChart.jpg'); export function About() { return ( <section className={`${styles}`}> <div className="row"> <div className="col-xs-12"> ...
src/components/AppIcon/AppIcon.js
folio-org/stripes-core
/** * App Icon * * Used to display an app's icon * in various places across the application */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { withStripes } from '../../StripesContext'; import css from './AppIcon.css'; const AppIcon = ({ iconAlignmen...
test/CollapseSpec.js
jakubsikora/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Collapse from '../src/Collapse'; describe('Collapse', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; ...
index.ios.js
wangdicoder/JueJinClient
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import {AppRegistry} from 'react-native'; import Navigation from './js/config/entry'; export default class JueJinClient extends Component { render() { return ( <Navigation/> ...
test/compoents.js
kris1226/clymer-metal-crafts
import expect from 'expect'; import React from 'react';
techCurriculum/ui/starter_code/cards-app/src/App.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
src/components/editor/editorPane.js
Q42/CT-3000
import React from 'react'; import ReactDOM from 'react-dom'; import Reflux from 'reflux'; import Codemirror from 'react-codemirror'; import CMInstance from 'codemirror'; import CT3000 from '../../config/codemirrorCustomMode'; import 'codemirror/addon/mode/simple'; import 'codemirror/addon/selection/active-line'; imp...
src/components/Net/Net.js
teemuteemu/sp_modular
import React from 'react'; import Path from 'svg-path-generator'; import './net.scss'; class Net extends React.Component { constructor (props) { super(props); this.onMouseOver = this.onMouseOver.bind(this); this.onMouseOut = this.onMouseOut.bind(this); this.onMouseDown = this.onMouseDown.bind(this...
examples/simple/index.js
ChristopherBiscardi/library-boilerplate
import React from 'react'; import App from './components/App'; React.render( <App />, document.getElementById('root') );
src/components/UnitView/instructions/Headers.js
fkn/ndo
import _ from 'lodash'; import React from 'react'; import Base from './Base'; /** * gathering info about H1..6 tags */ export default class Headers extends Base { constructor(root, onHeadersChange) { super(root); this.onHeadersChange = onHeadersChange; } shouldProcessNode(node) { if (!this.onHeade...
src/svg-icons/av/video-label.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
app/javascript/mastodon/features/ui/components/column.js
Chronister/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
src/main/js/my-app/src/components/Dashboard.js
myapos/ClientManagerSpringBoot
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Tabs, TabLink, TabContent } from 'react-tabs-redux'; import * as actions from '../actions/'; import StudentClasses from './StudentClasses'; import PaymentRegisters from './PaymentRegisters'; imp...
src/js/components/ui/forms/InputErrorMessage.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
src/js/components/icons/base/Inspect.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/layout/Footer.js
petertrotman/critrolemoments
import React from 'react'; const Footer = () => <p>Footer</p>; export default Footer;
src/svg-icons/notification/system-update.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSystemUpdate = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/> </Sv...
example/es6/index.js
romagny13/react-form-validation
import React, { Component } from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('app'));
examples/src/app.js
Amirus/react-autosuggest
require('./app.less'); import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Badges from './Badges/Badges'; import Examples from './Examples'; import Footer from './Footer/Footer'; import ForkMeOnGitHub from './ForkMeOnGitHub/ForkMeOnGitHub'; class App extends Component { render() { ...
test/Debug-spec.js
dustinsanders/enzyme
import { expect } from 'chai'; import React from 'react'; import { spaces, indent, debugNode, } from '../src/Debug'; import { mount } from '../src/'; import { describeWithDOM, itIf } from './_helpers'; import { REACT013 } from '../src/version'; describe('debug', () => { describe('spaces(n)', () => { it('s...
frontend/jqwidgets/jqwidgets-react/react_jqxlayout.js
liamray/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxLayout extends React.Component { componentDidMount() { let options = this.manageA...
site/components/NavBar.js
numso/react-dnd
import React from 'react'; import { DOCS_DEFAULT, EXAMPLES_DEFAULT } from '../Constants'; import './NavBar.less'; const GITHUB_URL = 'https://github.com/gaearon/react-dnd'; const DOCS_LOCATION = DOCS_DEFAULT.location; const EXAMPLES_LOCATION = EXAMPLES_DEFAULT.location; export default class NavBar { render() { ...
src/Card/CardExpander.js
boldr/boldr-ui
/* eslint-disable react/prefer-stateless-function, no-unused-vars */ import React, { Component } from 'react'; import cn from 'classnames'; import Icon from '../Icons/Icon'; import contextTypes from './contextTypes'; /** * The CardExpander component is just a simple `IconButton` that * gets generated through the `Car...
bitpig/__tests__/index.android.js
kuncloud/bitcoinHelper
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
chenbk85/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
woody0907/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ displ...
src/components/rails/plain/RailsPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './RailsPlain.svg' /** RailsPlain */ function RailsPlain({ width, height, className }) { return ( <SVGDeviconInline className={'RailsPlain' + ' ' + className} ...
code/src/components/channelParameters.js
GreatDanton/Thesis
import React from 'react'; // custom imports import { InputBox } from './commonParts/inputBoxes.js'; import { ScatterChart } from './commonParts/charts.js'; import GlobalStorage from '../scripts/globalStorage'; class RectangularChannel extends React.Component { constructor(props) { super(props); ...
public/js/components/user.js
AC287/wdi_final_arrowlense2.0_FE
import React from 'react' import {Link} from 'react-router' import Firebase from 'firebase' import InstructorView from './user_instructor' import StudentView from './user_student' const userRef = new Firebase('https://arrowlense2-0.firebaseio.com/'); const getUserInfo = new Firebase('https://arrowlense2-0.firebaseio....
src/lib/ResizeGhost.js
maheshsenni/react-treelist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import '../css/resize-ghost.css'; class ResizeGhost extends Component { constructor(props) { super(props); this.displayName = 'ResizeGhost'; this.onMouseLeave = this.onMouseLeave.bind(this); this.onDragStart = this.onDragS...
src/tests/Holdable.react.spec.js
phil303/react-touch
import { expect } from 'chai'; import sinon from 'sinon'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import { documentEvent, renderComponent } from './helpers'; import Holdable from '../Holdable.react'; import defineHold from '../defineHold'; /* eslin...
client/admin/info/RocketChatSection.stories.js
iiet/iiet-chat
import React from 'react'; import { dummyDate } from '../../../.storybook/helpers'; import { RocketChatSection } from './RocketChatSection'; export default { title: 'admin/info/RocketChatSection', component: RocketChatSection, decorators: [ (fn) => <div className='rc-old'>{fn()}</div>, ], }; const info = { ma...
packages/material-ui-icons/src/AccountBox.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z" /></g> , 'AccountBo...
react/features/invite/components/PasswordContainer.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { LOCKED_LOCALLY } from '../../room-lock'; import AddPasswordForm from './AddPasswordForm'; import LockStatePanel from './LockStatePanel'; import RemovePasswordForm from './RemovePasswordForm'; /** * React {@code Component...
src/layouts/layout-5-2.js
binary-com/binary-next-gen
import React from 'react'; export default (components, className, onClick) => ( <div className={className} onClick={onClick}> <div className="vertical"> {components[0]} {components[1]} {components[2]} {components[3]} </div> <div className="ver...
app/component/app.js
caoqianjie/react-webpack-demo1
import $ from 'jquery'; import NewsList from './NewsList' import React from 'react'; import { render } from 'react-dom'; import '../src/css/app.css'; function get(url) { return Promise.resolve($.get(url)); } get('https://hacker-news.firebaseio.com/v0/topstories.json') .then(function (stories) { return P...
app/containers/PrototypeSearch/header.js
mhoffman/CatAppBrowser
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import ReactGA from 'react-ga'; import Grid from 'material-ui/Grid'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import { styles } from './styles'; class Header extends R...
app/javascript/mastodon/features/ui/components/compose_panel.js
tateisu/mastodon
import React from 'react'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container'; import NavigationContainer from 'mastodon/features/compose/containers/navigation_container'; import LinkFooter f...
imports/ui/admin/components/.stories/contact.js
dououFullstack/atomic
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import Contact from '../contact.jsx'; storiesOf('admin.Contact', module) .add('default view', () => { return ( <Contact /> ); })
src/cardPage.js
henyouqian/sale
import React, { Component } from 'react'; import { render } from 'react-dom'; import { SideMenu } from './sideMenu'; import FastClick from "fastclick"; import * as lwUtil from "./lwUtil" import $ from "jquery" import "velocity-animate" import { Dlg, DlgAlert } from"./dlg" // require("./cardPage.css"); let _rootEl = d...
docs/app/Examples/elements/Label/Types/LabelExampleFloating.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon, Label, Menu } from 'semantic-ui-react' const LabelExampleFloating = () => ( <Menu compact> <Menu.Item as='a'> <Icon name='mail' /> Messages <Label color='red' floating>22</Label> </Menu.Item> <Menu.Item as='a'> <Icon name='users' /> Friends ...
src/views/components/SettingValue.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; export const SettingValue = (props) => { let formatted; switch (props.type) { case 'percentage': formatted = Math.round(props.children * 100) + '%'; break; case 'time-of-day': formatted = moment.utc(props.childr...
js/jqwidgets/demos/react/app/dockinglayout/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDockingLayout from '../../../jqwidgets-react/react_jqxdockinglayout.js'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { render() { let layout = [{ type: 'layoutGroup', ...
src/index.js
w01fgang/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; export default class { render() { return ( <div> <h1>Home Page</h1> <p>Coming soon.</p> </div> ); }...
examples/official-storybook/components/DocgenButton.js
storybooks/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; /** * DocgenButton component description imported from comments inside the component file, * * *Important Note*: Unlike with normal `<input>` elements, setting this will * not validate the input contents. This is because in this project we use * Formi...
app/javascript/mastodon/features/ui/components/columns_area.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import HomeTimeline from '../../home_timeline'; import Notifications from '../../notifications'; import PublicTimeline from '../...
src/components/Blog/Blog/Blog.spec.js
easingthemes/notamagic
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Blog from 'components/Blog'; function shallowRender (component) { const renderer = TestUtils.createRenderer(); renderer.render(component); return renderer.getRenderOutput(); } function shallowRenderWithProps (props = {}) { return ...
tests/Rules-isUrl-spec.js
bitgaming/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/frontend/src/components/GMDataList.js
blengerich/GenAMap
import React from 'react' import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table' import fetch from './fetch' import config from '../../config' const GMDataTable = React.createClass({ render: function () { const data = this.props.dat...
client/src/components/Profile/Inbox/Inbox.js
wolnewitz/raptor-ads
import React, { Component } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import { Container, Header, Loader } from 'semantic-ui-react'; import { getAllReceivedMessages } from '../../../actions/inboxActions'; import MessagesTable from './MessagesTable'; import { changeContactField, s...
client/pages/examples/advanced/winds/index.js
fdesjardins/webgl
import React from 'react' import PT from 'prop-types' import * as THREE from 'three' import Promise from 'bluebird' import droidSans from '-/assets/fonts/helvetiker_bold.typeface.json' import Example from '-/components/example' import notes from './readme.md' import stationsData from './stations.json' import threeOrb...
src/js/Components/Common/BackgroundContent.js
mattgordils/DropSplash
import React, { Component } from 'react'; import 'sass/components/common/backgrounds'; export default class App extends Component { render () { var backgroundStyle = { backgroundImage: 'url(' + this.props.backgroundImage + ')' } var overlayStyle = { backgroundColor: this.props.overlayColor, opaci...
src/features/DocumentationModal/NavBar.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; const Container = styled('nav')` width: 100%; height: 80px; background-color: #252525; z-index: 999; display: flex; align-items: center; justify-content: flex-start; padding-left: 20px; @media (max-width: 500px) { height: 50px; } ...
test/components/App.spec.js
TheCbac/MICA-Desktop
/* ********************************************************** * File: test/components/App.spec.js * * Brief: Test for the app component * * Authors: George Whitfield, Craig Cheney * * 2017.10.12 CC - Refactored for App container * 2017.07.28 GW - Document Created * ******************************************************...
modules/gui/src/app/home/body/process/recipe/classChange/panels/legend/legend.js
openforis/sepal
import {Form} from 'widget/form/form' import {Layout} from 'widget/layout' import {LegendBuilder, defaultColor} from 'app/home/map/legendBuilder' import {Panel} from 'widget/panel/panel' import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel' import {compose} from 'compose' import {msg} f...
src/widgets/GalleryHub/SnippetGallery.js
mydearxym/mastani
/* * * SnippetGallery * */ import React from 'react' import T from 'prop-types' import { ICON } from '@/config' import { buildLog } from '@/utils/logger' import IconText from '@/widgets/IconText' import { Wrapper, Block, Header, IntroHead, LangPrefix, Title, Footer, } from './styles/snippet_galler...
src/components/icons/MenuIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const MenuIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" /> </svg> ); exp...
src/App.js
zero-coder/gamesfame
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1> GamesFame </h1> ); } }
src/title/TitlePlain.js
nashvail/zulip-mobile
import React from 'react'; import { StyleSheet, Text } from 'react-native'; import { CONTROL_SIZE } from '../styles'; const styles = StyleSheet.create({ title: { flex: 1, textAlign: 'center', fontSize: 16, paddingRight: CONTROL_SIZE, }, }); export default ({ text, color }) => <Text style={[styles....
packages/@lyra/components/src/lists/sortable/DragHandle.js
VegaPublish/vega-studio
// @flow import React from 'react' import DragBarsIcon from 'part:@lyra/base/bars-icon' import {createDragHandle} from '../sortable-factories' export default createDragHandle(props => ( <span className={props.className}> <DragBarsIcon /> </span> ))
example1/toilet/ios_views/setting/about.js
anchoretics/ztf-work-app
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ScrollView } from 'react-native'; import Util from './../util'; class About extends Component{ render(){ return( <ScrollView style={styles.container}> <Text style={styles.text}>如果问题,请联系: wlhmyit@126.com</...
app/imports/ui/containers/NewsRoomsList.js
mondrus/meteor-starter
/** * @Author: philip * @Date: 2017-05-27T20:46:16+00:00 * @Filename: NewsRoomsList.js * @Last modified by: philip * @Last modified time: 2017-05-29T13:40:09+00:00 */ import React from 'react'; import { composeWithTracker } from 'react-komposer'; import { Meteor } from 'meteor/meteor'; import NewsRooms from...
src/svg-icons/communication/contact-mail.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
src/routes/home/Home.js
joaquingatica/git-demo
/** * 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 PropTypes from 'prop-...
src/Router.js
sherlock221/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
src/svg-icons/av/music-video.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
src/hero/ReactTab.js
material-components/material-components-web-catalog
import {Component} from 'react'; import ReactTemplates from './CodeTemplates'; import equal from 'deep-equal'; import React from 'react'; import {Prism as SyntaxHighlighter} from 'react-syntax-highlighter'; import {prism} from 'react-syntax-highlighter/dist/esm/styles/prism'; import {CopyToClipboard} from 'react-copy-t...
src/js/components/input/grid_form/input_grid_form.js
rafaelfbs/realizejs
import React from 'react'; import _ from 'lodash'; import PropTypes from '../../../prop_types'; import { autobind, mixin } from '../../../utils/decorators'; import { uuid } from '../../../utils'; import GridForm from '../../grid_form/grid_form'; import InputGridFormFields from './input_grid_form_fields'; import InputH...
src/modules/banner/BannerView.js
TheOne1006/TheOne1006-theone-io-app
/** * @flow */ import React, { Component } from 'react'; import { List } from 'immutable'; import Swiper from 'react-native-swiper'; import styles from './themes/light'; import Slide from './SlideView'; const imgList = [ 'https://res.cloudinary.com/theone/image/upload/v1430750900/o0ohnh0hb1t8dlc7o0ln.jpg', 'ht...
src/svg-icons/notification/airline-seat-legroom-extra.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
src/svg-icons/editor/format-indent-increase.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentIncrease = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentIncrease...
node_modules/react-bootstrap/es/SplitButton.js
NathanBWaters/jb_club
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/components/form/textarea.js
n7best/react-weui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * weui wrapper for textarea * */ export default class TextArea extends Component { static propTypes = { /** * display word counter * */ sh...
docs/src/examples/modules/Dropdown/Types/DropdownExampleMultipleSelection.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 'angular', text: 'Angular', value: 'angular' }, { key: 'css', text: 'CSS', value: 'css' }, { key: 'design', text: 'Graphic Design', value: 'design' }, { key: 'ember', text: 'Ember', value: 'ember' }, { key: 'html'...
react-flux-mui/js/material-ui/src/svg-icons/av/replay-30.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay30 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-....
packages/components/src/SubHeaderBar/SubHeader.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import FilterBar from '../FilterBar'; import Tag from '../Tag'; import SubHeaderBar from './SubHeaderBar.component'; const viewProps = { title: 'My Long Title is Long Long Lé Long La La La Lé Long Long Long Long', onEdit: action('onEdit'),...
app/containers/Home/subPage/List.js
owen1190/ele-react
import React from 'react' import PureRenderMixin from 'react-addons-pure-render-mixin' import {get} from '../../../fetch/get'; import { homeListData } from '../../../../mock/getData' import ListCompoent from '../../../components/ListComponent' import LoadMore from '../../../components/LoadMore' import {Link} from 're...
src/components/social-link.js
MozillaIndia/mozillaindia.github.io
import React from 'react' import { FaTwitterSquare, FaFacebookSquare, FaInstagram, FaMeetup, FaTelegramPlane, FaGithub, FaGlobe, } from 'react-icons/fa' const getIconByType = ({ type }) => { switch (type) { case 'website': return <FaGlobe size="25" color="#0088cc" /> case 'telegram': ...
src/components/placeholder.js
samuelneff/react-play
import React from 'react'; class Placeholder extends React.Component { render() { return ( <div> <p>This is a starting point for a project that uses:</p> <ul> <li><a href="https://github.com/lukehoban/es6features">ES6 (aka EcmaScript 2015)</...
source/Plx.js
Stanko/react-plx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BezierEasing from 'bezier-easing'; import ScrollManager from 'window-scroll-manager'; // Check if code is running in the browser (important for universal rendering) const WINDOW_EXISTS = typeof window !== 'undefined'; // Regex that c...
node_modules/react-bootstrap/es/InputGroupButton.js
CallumRocks/ReduxSimpleStarter
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/templates/src/components/Version/Version.js
KarolAltamirano/generator-react-web
// @flow /* eslint-disable no-console */ import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import styles from './styles.scss'; import config from '../../../config.json'; export default class Version extends Component { state: Object = { ...
src/routes/Pianoroll/components/Pianoroll.js
rkram5424/BentoBeats
import React from 'react' export const HomeView = () => ( <div> <h4>Pianoroll!</h4> </div> ) export default HomeView
internals/templates/app.js
williamsnieves/reactnews
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/routes/home/index.js
tlin108/chaf
/** * 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 Home from './Home'; i...
frontend/src/common/components/text-item.js
OptimusCrime/youkok2
import React from 'react'; export const TextItem = ({ text }) => ( <li className="list-group-item"> {text} </li> );
test/ListGroupSpec.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ListGroup from '../src/ListGroup'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroup', function () { it('Should output a "div" with the class "list-group"', function () { let instance = ReactTestUtils.re...
BookSearch/index.ios.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Featured from ('./Featured.js'); import Search from ('./Search.js'); export default clas...
react/features/base/react/components/web/BaseIndicator.js
jitsi/jitsi-meet
/* @flow */ import { makeStyles } from '@material-ui/core'; import React from 'react'; import { translate } from '../../../i18n'; import { Icon } from '../../../icons'; import { Tooltip } from '../../../tooltip'; /** * The type of the React {@code Component} props of {@link BaseIndicator}. */ type Props = { /...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ...
src/Interpolate.js
Azerothian/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import assign from './utils/Object.assign'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.cre...
src/client.js
oxoooo/webpack-babel-react-startup
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; import App from './components/App'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );...
src/routes/content/index.js
mauphes/own-git-project
/** * 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 Content from './Content'...
es6/Checkbox/CheckBoxButton.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
salt-frontend/react/dashboard/src/components/PortletUpdate.js
syakuis/salt-framework
import React from 'react'; import { connect } from 'react-redux'; import { updatePortlet } from '../actions'; class PortletUpdate extends React.Component { constructor(props) { super(props); this.initDataBind = this.initDataBind.bind(this); this.onUpdatePortlet = this.onUpdatePortlet.bind(this); } state =...
pootle/static/js/user/components/UserProfileForm.js
unho/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 { link } from 'autolinker'; import React from 'reac...
components/connected/status/content/gallery/index.js
marrus-sh/mastodon-go
// <ConnectedStatusContentGallery> // =============================== // This component renders the attachments of a status in a nice // gallery. // * * * * * * * // // Imports: // -------- // Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react...