path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/PageItem.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.Pr...
examples/full-example/src/isomorphic/base/components/header.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; class Header extends React.Component { render() { return <header>AWESOME APP TITLE</header>; } } export default Header;
src/index.js
bottledsmoke/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/client.js
vidaaudrey/avanta
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
molgenis-core-ui/src/main/javascript/modules/react-components/jobs/RunningJobs.js
marieke-bijlsma/molgenis
/** * Renders a ProgressBar component for each job passed down from its parent * component * * @module RunningJobs * * @param jobs * An array of job objects with status RUNNING * * @exports RunningJobs class */ import React from 'react'; import { Job } from './Job'; import DeepPureRenderMixin f...
admin/client/App/shared/Popout/PopoutList.js
sendyhalim/keystone
/** * Render a popout list. Can also use PopoutListItem and PopoutListHeading */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; const PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, classNam...
packages/wix-style-react/src/ModalSelectorLayout/docs/examples.js
wix/wix-style-react
import React from 'react'; export const single = ` () => { const DATA_SOURCE = (searchQuery, offset, limit) => new Promise(resolve => setTimeout(() => { const items = Array(50) .fill(0) .map((_, i) => ({ id: i, title: \`Title \${i}\`, subtitle...
js/components/inputgroup/regular.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base'; import { Actions } from 'react-native-router-flux'; imp...
src/TVShowInstance.js
AndrewCMartin/idb
import React from 'react' import { Link } from 'react-router-dom' import {Row, Col} from 'react-bootstrap' var axios = require('axios'); {/* Responsible for styling the content in the body */} class TVShowInstance extends React.Component { constructor(props) { super(props); {/* Store tv show info ...
src/containers/app.js
ebn646/redux-google-maps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Map from './map'; import List from './list'; import Header from '../components/header'; import Footer from '../components/footer'; import DropDown from './dropdown-list'; import { bindActionCreators } from 'redux'; import { connect } f...
src/SplitButton.js
cgvarela/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/svg-icons/action/settings-phone.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
src/components/inbox/InboxItem.js
metasfresh/metasfresh-webui-frontend
import counterpart from 'counterpart'; import Moment from 'moment'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; /** * @file Class based component. * @module InboxItem * @extends Component */ class InboxItem extends Component { constructor(props) { super(props); } /** ...
docs/src/app/pages/components/Checkbox/ExampleCheckboxDefault.js
GetAmbassador/react-ions
import React from 'react' import Checkbox from 'react-ions/lib/components/Checkbox' const ExampleCheckboxDefault = () => ( <Checkbox label='Default checkbox' value={false} /> ) export default ExampleCheckboxDefault
src/index.js
Greynight/rebelle
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
example/posts.js
marmelab/admin-on-rest
import React from 'react'; import { BooleanField, BooleanInput, CheckboxGroupInput, ChipField, Create, CreateButton, Datagrid, DateField, DateInput, DisabledInput, Edit, EditButton, Filter, FormTab, ImageField, ImageInput, List, LongTextInput, ...
js/routes/historyView/historyView.js
GoldenOwlAsia/cooking-app
import React, { Component } from 'react'; import { TouchableOpacity, Image } from 'react-native'; import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base'; import { Grid, Row, Col } from 'react-native-easy-grid'; import myTheme from '../../themes/base-theme'; import styles from './styles'; c...
src/app/elements/grids/PrimaryGrid.js
cchamberlain/redux-webpack-boilerplate
import React from 'react' //import Griddle from 'griddle-overhaul-react-redux' //import { context } from 'app/redux/components/griddle' export default props => <div id="grid-goes-here" />// <Griddle context={context('primary')} />
app/routes.js
shibe97/worc
import React, { Component } from 'react'; import { HashRouter as Router, Route } from 'react-router-dom'; import App from './containers/Modules/App'; export default class Routes extends Component { render() { return ( <Router> <Route component={App} path="/" /> </Router> ); } }
src/routes/contact/index.js
siddhant3s/crunchgraph
/** * 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 Layout from '../../compo...
example4/index.ios.js
hbarve1/react-native-examples
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import Js from "./js"; const example4 = () => <Js/>; export default example4; AppRegistry.registerComponent('example4', () => example4);
sundin/index.android.js
tkfeng/mppCalc
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class sundin extends Component { render() { return ( <View style={styles.container}> ...
client/modules/Todo/__tests__/components/TodoListItem.spec.js
saltykovdg/mern-react-redux-nodejs-express-todo-list
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import TodoListItem from '../../components/TodoListItem/TodoListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; import { FormattedMessage } from 'react-intl'; const todo = { text: 'test1', com...
src/icons/AndroidShare.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidShare extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_17_"> <g> <path d="M448,248L288,96v85.334C138.666,202.667,85.333,309.334,64,416c53.333-74.666,117.333-108.802,...
frontend/app_v2/src/components/Topics/TopicsPresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import TopicsPresentationTopic from 'components/Topics/TopicsPresentationTopic' import SectionTitle from 'components/SectionTitle' import Slider from 'components/Slider' function TopicsPresentation({ title, topics }) { return ( <section className="py-1...
client/src/app/routes/settings/containers/FeeStructures/FeeStructuresPage.js
zraees/sms-project
/** * Created by griga on 11/30/15. */ import React from 'react' import axios from 'axios' import {SubmissionError} from 'redux-form' import {connect} from 'react-redux' import moment from 'moment' import Loader, {Visibility as LoaderVisibility} from '../../../../components/Loader/Loader' import WidgetGrid from '...
src/svg-icons/image/leak-remove.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLeakRemove = (props) => ( <SvgIcon {...props}> <path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24...
src/svg-icons/image/crop-rotate.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropRotate = (props) => ( <SvgIcon {...props}> <path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81...
app/components/categories/CategoryForm.js
jpsierens/budget
// @flow import React from 'react'; type Props = { onAddCategory: () => void } class CategoryForm extends React.Component { state = { category: '' }; props: Props; handleChange() { this.setState({ category: this.input.value }); } submit(e) { e.preventDefault(); this.props.onAddCategory({ name: this...
pkg/interface/publish/src/js/components/lib/note.js
ngzax/urbit
import React, { Component } from 'react'; import { Route, Link } from 'react-router-dom'; import { SidebarSwitcher } from './icons/icon-sidebar-switch'; import { Spinner } from './icons/icon-spinner'; import { Comments } from './comments'; import { NoteNavigation } from './note-navigation'; import moment from 'moment';...
src/components/CircleImage/CircleImage.js
RMCoder198/chat.susi.ai
import React, { Component } from 'react'; import PropTypes from 'prop-types'; /* Utils */ import initials from 'initials'; import addPx from 'add-px'; import contrast from 'contrast'; import './CircleImage.css'; const defaultColors = [ '#2ecc71', // emerald '#3498db', // peter river '#8e44ad', // wisteria '#e...
lib/content/new-component.js
Archipelcorp/archrn-cli
"use strict"; module.exports = { comment: "\n/**\n * Generated With Arch CLI\n * https://github.com/Archipelcorp/archrn-cli\n * @flow\n */\n", head: "\n\nimport React, { Component } from 'react';\nimport {\nPlatform,\nStyleSheet,\nText,\nView\n} from 'react-native';\n\n\n", body: "\n render() {\n ...
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js
clemensw/stardust
import React from 'react' import { Grid, Image, Rail, Segment } from 'semantic-ui-react' const RailExampleCloseVery = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail close='very' position='left'> ...
app/javascript/mastodon/features/compose/components/action_bar.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
client/routes.js
Captain-Million/Captain-Million
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; import Home from './components/Home'; export default ( <Route path="/" component={App}> <IndexRoute component={Home} /> </Route> );
src/frontend/containers/user/admin/detail.js
PiTeam/garage-pi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import TextField from 'material-ui/lib/text-field'; import Paper from 'material-ui/lib/paper'; import Dialog from 'material-ui/lib/dialog'; import { browserHistory, Link } from 'react-router'; im...
src/components/bar/listProducts.js
jollopre/beverage_planning
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ListItemProduct from './listItemProduct'; export default class ListProducts extends Component { render() { const { list } = this.props; return ( <div> {list.map(item => (<ListItemProduct key={item.product.id} pro...
src/components/App.js
nicolascine/site
/** * 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/scripts/components/Users/UserModal.js
Joywok/Joywok-Mobility-Framework
import React, { Component } from 'react'; import { Modal, Form, Input } from 'antd'; import styles from './UserModal.css'; const FormItem = Form.Item; class UserEditModal extends Component { constructor(props) { super(props); this.state = { visible: false, }; } showModelHandler = (e) => { ...
src/svg-icons/av/add-to-queue.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
src/svg-icons/action/theaters.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTheaters = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </SvgI...
frontend/src/components/SearchInput.js
daGrevis/msks
import fp from 'lodash/fp' import React from 'react' import '../styles/SearchInput.css' class SearchInput extends React.Component { inputNode = null componentDidMount() { if (fp.isEmpty(this.props.query)) { this.inputNode.focus() } } render() { return ( <div className="SearchInput"> ...
src/components/GKM/Category.js
oded-soffrin/gkm_viewer
import React from 'react'; import _ from 'lodash' const Category = ({ category }) => { const items = _.map(category.items, (i) => (<div style={{ display: 'inline-block', padding: '10px' }}>{i.type == 'product' ? i.name : i.text}</div>)) console.log(category.items); return ( <div> <div> {category.type}...
components/Layout/Header.js
leo60228/HouseRuler
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/routes/Counter/components/Counter.js
robertcasanova/personal-website
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
dashboard/src/components/dashboard/ServiceRow.js
leapfrogtechnology/chill
import React from 'react'; import moment from 'moment'; import PropTypes from 'prop-types'; import ToolTip from 'react-tooltip'; import { getServiceStatus, getServiceParams } from '../../services/status'; /** * Render each service row. * * @param {Object} data */ const ServiceRow = ({ data }) => { const service...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
amido/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({ id, ...rest } = { id: 0, user: { id: 42, ...
client/src/post/PostList.js
atkien/demo-react
/** * PostList.js * * @description :: Post List: renders HTML elements of `Post List`. * @docs :: http:// */ import React, { Component } from 'react'; import { Link } from 'react-router'; import _ from 'lodash'; import moment from 'moment'; import { Glyphicon, ListGroup, ListGroupItem, Panel } from 'react...
app/components/SignIn/index.js
theClubhouse-Augusta/JobWeasel-FrontEnd
/** * * SignIn * */ import React from 'react'; import './style.css'; import './styleM.css'; import LeftIcon from 'react-icons/lib/fa/chevron-left'; import RightIcon from 'react-icons/lib/fa/chevron-right'; export default class SignIn extends React.PureComponent { constructor(props) { super(props); this.st...
app/screens/StartupScreen.js
MPDL/LabCam
import React, { Component } from 'react'; import { View, Image, StyleSheet } from 'react-native'; import CamColors from '../common/CamColors'; import LaunchIcon from '../images/launchScreen.png'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', ...
public/js/components/comments/CommentBox.react.js
MadushikaPerera/Coupley
import React from 'react'; import CommentAction from '../../actions/ActivityFeed/CommentAction'; import CommentList from './CommentList.react'; import CommentForm from './CommentForm.react'; var CommentBox = React.createClass({ render: function() { return ( <div> <CommentList /> </div> )...
src/server.js
w10036w/ReactTest
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
client-src/components/home/Home.js
minimus/final-task
import React from 'react' import SearchBar from '../../containers/searchbar/SearchBarContainer' import logo from './logo.png' import './home.css' export default function Home() { return ( <section className="home-container"> <div className="home-elements-container"> <div className="logo-container">...
app/containers/ProcessViewPage/components/CoilImmersion/index.js
BrewPi/brewpi-ui
import React from 'react'; import styles from './styles.css'; import { Liquids } from '../Liquids'; import { pickLiquid } from '../Flows'; const SvgCoil = require('./svg/coil.svg?tag=g'); const SvgLiquidCoil = require('./svg/liquid_coil.svg?tag=g'); import { SvgParent } from '../SvgParent'; export class CoilImmersio...
stories/examples/ClipboardExample.js
TeamWertarbyte/material-ui-chip-input
import React from 'react' import ChipInput from '../../src/ChipInput' class ClipboardExample extends React.Component { constructor (props) { super(props) this.state = { chips: [] } } handleAdd (...chips) { this.setState({ chips: [...this.state.chips, ...chips] }) } handleDel...
src/svg-icons/content/content-paste.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
examples/todos/src/components/App.js
bvasko/redux
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
src/components/PaginationItem.js
nullgr4vity/react-redux-table
import React from 'react'; class PaginationItem extends React.Component { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { if (this.props.status !== PaginationItem.PLACEBO) { return; } this.props.onClick(this.props.pid); } render() { ...
app/components/Spinner/index.js
theterra/newsb
import React from 'react'; import SpinnerStyle from './SpinnerStyle'; class Spinner extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { const { color, statusText} = this.props; return ( <SpinnerStyle color={color}><i></i><i></i></SpinnerStyle> ); } } expo...
src/routes/appbar/index.js
ChrisWC/MaterL
import React from 'react'; import AppbarRoute from './Appbar'; import fetch from '../../core/fetch'; export default { path: '/appbar', async action() { return <AppbarRoute />; }, };
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Jumbotron.js
OpenKGB/webcode
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 ...
src/components/containers/insurance/taipingyang-insurance-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Button, AutoComplete ,DatePicker } from 'antd'; import TaiPingYangInsuranceView from '../../views/insurance/taipingyang-insurance-view'; import { connect } from 'react-redux'; import SearchInput from '../../views/SearchInput'; import store from '../../../store'; import { updataTaiPin...
client/app-entry.js
nebulae-io/coteries
import React from 'react'; import ReactDom from 'react-dom'; import { createStore, applyMiddleware, combineReducers, bindActionCreators, compose } from 'redux'; import { Provider } from 'react-redux'; import { Router, history } from 'react-router'; import reduxThunk from 'redux-thunk'; import reduxPromise from 'redux-p...
src/tk/tkrouter.js
JohnCrash/react-tiku
import React from 'react'; import {Route,Redirect,IndexRoute} from 'react-router'; import Master from 'Master' const AppRoutes = ( <Route path='/' component={Master}> </Route> ); export default AppRoutes;
app/components/shared/CollapsableArea.js
fotinakis/buildkite-frontend
import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { v4 as uuid } from 'uuid'; import RevealableDownChevron from './Icon/RevealableDownChevron'; const TransitionMaxHeight = styled.div` transition: max-height 400ms; `; /...
fields/types/name/NameColumn.js
kwangkim/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var NameColumn = React.createClass({ displayName: 'NameColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object...
lib/Containers/App.js
Ezeebube5/Nairasense
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import createStore from '../Redux'; import '../Config'; import DebugConfig from '../Config/DebugConfig'; import RootContainer from './RootContainer'; // create our store const store = createStore(); /** * Provides an entry point into ...
packages/docs/components/Examples/anchor/gettingStarted.js
draft-js-plugins/draft-js-plugins
// It is important to import the Editor which accepts plugins. import Editor from '@draft-js-plugins/editor'; import createLinkPlugin from '@draft-js-plugins/anchor'; import createInlineToolbarPlugin from '@draft-js-plugins/inline-toolbar'; import { ItalicButton, BoldButton, UnderlineButton, } from '@draft-js-plu...
frontend/app/components/ItemIcon/IconLetter.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import './IconLetter.css' /** * @summary IconLetter * @version 1.0.1 * @component * * @param {object} props * * @returns {node} jsx markup */ function IconLetter() { return ( <svg className="IconLetter" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 36"> <g transform="t...
src/flat-button/test.js
twilson63/t63
import React from 'react' import test from 'tape' import { shallow } from 'enzyme' import FlatButton from './' test('<FlatButton />', t => { const wrapper = shallow(<FlatButton>Foo</FlatButton>) t.equal(wrapper.text(), 'Foo') t.end() }) test('<FlatButton onClick />', t => { let beep = 'beep' const wrapper =...
src/containers/Widgets/Widgets.js
hirzanalhakim/testKumparan
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import * as widgetActions from 'redux/modules/widgets'; import WidgetForm from 'components/WidgetForm/WidgetForm'; import { asyncConnect } from 'redux-connect'; const ...
src/List/ListItem.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import TouchRipple from '../ripples/TouchRipple'; import classnames from 'classnames'; import ThemeService from '../styles/ChamelThemeService'; import Checkbox from '../Toggle/Checkbox'; /** * Functional component for any button * * @param props * @par...
src/routes/TestRoute/TestRoute.js
taforyou/testtesttest-yo
import React from 'react' export const TestRoute = () => ( <div className='container'> <h1>Test Route</h1> <p>Test Route</p> <p>Test Route 111</p> </div> ) export default TestRoute
src/svg-icons/maps/local-airport.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalA...
src/Grid.js
gianpaj/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
site/src/components/Learn.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import { ThemeProvider } from 'emotion-theming'; import { Link } from 'react-router-dom'; import { css } from 'emotion'; import PropTypes from 'prop-types'; import { Navbar, Logo, Button, H1, Title, Grid } from '@appbaseio/designkit'; import { Base, Layout, SecondaryLink, ...
app/javascript/mastodon/features/account_timeline/components/header.js
TheInventrix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/CoordinateField.js
openforis/collect
import React from 'react' import { connect } from 'react-redux' import { MenuItem, Select, TextField as MuiTextField } from '@mui/material' import { CoordinateAttributeDefinition } from 'model/Survey' import InputNumber from 'common/components/InputNumber' import L from 'utils/Labels' import Objects from 'utils/Object...
src/svg-icons/maps/add-location.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
js/components/App/Footer.js
scaphold-io/react-relay-starter-kit
import React from 'react'; import Relay from 'react-relay'; import {Row, Col} from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; class Footer extends React.Component { render() { return ( <Row> <Col> <p style={styles.footer}>Made with <FontAwesome name='heart'/> from the...
src/app/components/Store/StoreHome.js
akzuki/BoardgameAPI
import React from 'react'; import { StoreHeader } from './StoreHeader'; import { Footer } from '../Footer'; export class StoreHome extends React.Component { render() { return ( <div> <StoreHeader/> <div className="content"> {this.props.children} ...
src/components/UserRegistrationForm.js
dkadrios/zendrum-stompblock-client
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Field, reduxForm } from 'redux-form' import { withStyles } from '@material-ui/core' import FormInput from './FormInput' import * as userActions from '../action-creators/...
frontend/src/Movie/Details/Titles/MovieTitlesTableContent.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import translate from 'Utilities/String/translate'; import MovieTitlesRow from...
demo/component/Treemap.js
sdoomz/recharts
import React, { Component } from 'react'; import { Treemap, Tooltip } from 'recharts'; import DemoTreemapItem from './DemoTreemapItem'; import _ from 'lodash'; import { changeNumberOfData as changeData } from './utils'; const data = [{ name: 'analytics', children: [ { name: 'cluster', children: [ ...
rojak-ui-web/src/app/home/SearchForm.js
pyk/rojak
import React from 'react' class SearchForm extends React.Component { static propTypes = { keyword: React.PropTypes.string, onKeywordChange: React.PropTypes.func.isRequired } constructor (props) { super(props) this.state = { keyword: '' } this.throttleKeyChange = null } componentDidMount...
src/Homepage.js
mrinalkrishnanm/kyogre
import React from 'react'; class Homepage extends React.Component{ constructor(){ super(); } render(){ return( <h1> Diary App</h1> ); } } module.exports = Homepage;
src/parser/deathknight/frost/modules/features/checklist/Module.js
sMteX/WoWAnalyzer
import React from 'react'; import BaseModule from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationRul...
websocket/client/Client/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
prayuditb/tryout-01
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
app/src/components/MusicBot/Container.js
RekkyRek/tic
import '../../assets/css/MusicBot/Container.sass'; import React, { Component } from 'react'; class MusicBot extends React.Component { constructor(props) { super(props); this.state = { } } componentWillMount() { } componentDidMount() { } render() { return ( <div className="mu...
src/components/layout/content/NewSnippet.js
Gisto/Gisto
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { filter, findIndex, get, head, isEmpty, keys, map, set, replace, startsWith, debounce, truncate } from 'lodash/fp'; import uuid from 'uuid'; impor...
examples/src/components/SelectedValuesField.js
PetrGlad/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
src/routes/Home/components/HomeView.js
foglerek/yn-mafia
import React from 'react' import MafiaImage from '../assets/werewolf.jpg' import classes from './HomeView.scss' import { IndexLink, Link } from 'react-router' // import classes from './Start.scss' import { FormGroup, FormControl, ControlLabel, ButtonToolbar, Button } from 'react-bootstrap'; import { connect } from 'rea...
src/components/section.js
openregister/specification
import React from 'react'; import PropTypes from 'prop-types'; const Section = ({id, content, children}) => { return ( <section id={`sec-${id}`}> <div dangerouslySetInnerHTML={{__html: content}} /> {children} </section> ); }; Section.propTypes = { id: PropTypes.string.isRequired, content:...
client/src/app/routes/settings/containers/Students/SpecialServicesForm.js
zraees/sms-project
import React from 'react' import { reset } from 'redux-form' import axios from 'axios' import classNames from 'classnames' import { Field, reduxForm } from 'redux-form' import WidgetGrid from '../../../../components/widgets/WidgetGrid' import Datatable from '../../../../components/tables/Datatable' import {RFField,...
src/components/HeaderLoggedOut.js
vitorbarbosa19/ziro-online
import React from 'react' import Headroom from 'react-headroom' import Link from 'gatsby-link' import { Image } from 'cloudinary-react' import { buttonStyleBright } from '../styles/styles' import normalizeTitle from '../utils/normalizeTitle' export default (props) => ( <Headroom style={{ background: '#303E...
hologram/app/index.js
dollars0427/hologram-widget
import 'core-js/fn/array/find-index'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {applyMiddleware, createStore} from 'redux'; import logger from 'redux-logger'; import previewsReducers from './reducers/'; import PreviewCom from './components/Preview'; impor...
src/js/components/icons/base/Splits.js
odedre/grommet-final
/** * @description Splits SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
components/Layout/Header.js
raffidil/garnanain
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
examples/create-react-app/src/App.js
jzhang300/carbon-components-react
import 'carbon-components/scss/globals/scss/styles.scss'; import React, { Component } from 'react'; import { Accordion, AccordionItem } from 'carbon-components-react'; import logo from './logo.svg'; import './App.scss'; class App extends Component { render() { return ( <div> <div className="App"> ...
examples/js/cell-edit/blur-to-save-table.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...