path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
server/dashboard/js/components/Dashboard.react.js | timofey-barmin/mzbench | import React from 'react';
import DashboardStore from '../stores/DashboardStore';
import DashboardEdit from './DashboardEdit.react';
import DashboardOverview from './DashboardOverview.react';
import DashboardNav from './DashboardNav.react';
import LoadingSpinner from './LoadingSpinner.react';
class Dashboard extends ... |
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxdocking.js | dhawal9035/WebPLP | /*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxDocking = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes();
... |
apps/marketplace/components/Icons/Circle/Circle.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
const Circle = props => (
<svg className={props.className} viewBox="0 0 24 24" width="20px" height="24px" xmlns="http://www.w3.org/2000/svg">
<path
fill={props.colour}
d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm0 22C6.... |
src/client/entity-editor/alias-editor/alias-editor-merge.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is... |
src/components/search_bar.js | fahadqazi/react-redux | import React, { Component } from 'react';
class SearchBar extends Component{
constructor(props) {
super(props)
this.state = { term: '' };
}
render (){
return(
<div className="search-bar">
<input onChange={event => this.onInputChange(event.target.value) }... |
src/Components/OutputButtonGroup.js | MaxGraey/Assembleash | import React, { Component } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import tooltip from './Tooltip';
import RadioButtonGroup from './RadioButtonGroup';
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js | reedsa/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(prefix) {
return [
{ id: 1, [`${prefi... |
src/register.js | slopen/storybook-addon-mocha-runner | import React from 'react';
import addons from '@kadira/storybook-addons';
require ('mocha/mocha.css');
require ('../styles.css');
class MochaRunner extends React.Component {
constructor (props) {
super (props);
this.state = {};
}
componentDidMount () {
const {channel} = this.props;
channel.on ('addon-m... |
client/components/FlassCommon/AppBar/Badge/BadgeHistory.js | Nexters/flass | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import styled from 'styled-components';
import color from '~/css/base/colors.scss';
import BadgeItem from './BadgeItem';
const Tabs = styled.ul`
height: 40px;
padding: 1rem 1rem;
list-style: none;
border-bott... |
src/io/ui/components/MessageInput/index.js | rikukissa/chat-client | import React from 'react';
import Textarea from 'react-textarea-autosize';
import './index.styl';
const ENTER_KEY = 13;
export default React.createClass({
onKeyDown(e) {
if(e.keyCode === ENTER_KEY && !e.shiftKey) {
this.onSubmit(e);
}
},
onSubmit(e) {
e.preventDefault();
const $el = Reac... |
ui/src/components/workflow/executions/WorkflowList.js | d3sw/conductor | import React, { Component } from 'react';
import { Link, browserHistory } from 'react-router';
import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, MenuItem, Popover, OverlayTrigger, ButtonGroup, Grid, Row, Col, Table } from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from... |
source/components/textBlock.react.js | gcsousa/ThinkReact-sousa | import React from 'react';
const Row = require('react-bootstrap/lib/Row');
const Col = require('react-bootstrap/lib/Col');
const style = {
color:"blue"
}
const Tweets = (date, text, user) => (
<div>
<h2>{user}</h2>
<div style={style}>{text}</div>
{date}
</div>
);
export default Tweets;
|
src/routes.js | tykarol/redux-isomorphic-starter-kit | import React from 'react';
import { Route, Redirect, IndexRoute } from 'react-router';
import {
App,
HomePage,
TestsPage,
TestPage,
NotFoundPage
} from 'containers';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
<Route path="/index" comp... |
src/components/Feedback/Feedback.js | iamfrontender/resume | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
client/dev-env/src/ui/posts/PostList.js | fernandoxu/react-express-api-demo | import React, { Component } from 'react';
import axios from 'axios';
import Settings from '../../settings';
import map from 'lodash/fp/map';
class PostList extends Component {
constructor() {
super();
this.state = {
posts: []
}
}
componentWillMount() {
axios.get(`${Settings.host}/posts`).then... |
src/server.js | jacyzon/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import './core/Dispatcher';
import './stores/AppStore';
import db from './core/Database';
imp... |
packages/icons/src/md/communication/RingVolume.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdRingVolume(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M47.41 34.34A33.873 33.873 0 0 0 24 25C14.93 25 6.68 28.55.59 34.34c-.37.36-.59.87-.59 1.42 0 .55.22 1.05.59 1.41l4.95 4.95c.36.36.86.59 1.41.59.5... |
src/components/Markdown.js | casesandberg/react-docs | 'use strict'
import React from 'react'
import ReactCSS from 'reactcss'
import markdown from '../helpers/markdown'
import Code from './Code'
export class Markdown extends ReactCSS.Component {
classes() {
return {
'default': {
markdown: {
fontSize: '17px',
lineHeight: '24px',
... |
client/App/App.js | dfuruya/BuoyCheck | import React from 'react';
import { Link } from 'react-router';
class App extends React.Component {
constructor(props) {
super();
this.state = {
favoritesList: [],
buoysList: [],
fetchError: false,
};
}
getChildContext() {
return {
favoritesList: this.state.favoritesList,... |
src/components/form-login/form-login.story.js | dima-bu/b2b.core | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import FormLogin from './form-login';
import {Provider} from 'react-redux';
import createStore from './../../store/createStore';
const onSubmit = callback => () => callback();
const initialState = {};
const store = createStore(initialStat... |
web/dashboard/src/main.js | unicesi/pascani-library | import React from 'react';
import ReactDOM from 'react-dom';
import ReactRethinkdb from 'react-rethinkdb';
import RethinkdbConfig from '../rethinkdb.config';
import 'jquery';
import 'metro';
import App from './App';
// Open a react-rethinkdb session (a WebSocket connection to the server)
ReactRethinkdb.DefaultSession... |
src/svg-icons/action/restore.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestore = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
pootle/static/js/editor/containers/EditorContainer.js | evernote/zing | /*
* Copyright (C) Pootle contributors.
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing 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... |
react-flux-mui/js/material-ui/src/svg-icons/communication/phonelink-erase.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
master-detail-0.13.x/src/app.js | knowbody/react-router-playground | import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router'
import ContactStore from './ContactStore'
var {
Route,
DefaultRoute,
NotFoundRoute,
RouteHandler,
Link
} = Router
var App = React.createClass({
getInitialState() {
return {
contacts: ContactStore.getCont... |
src/client/routes.js | jmicmoore/merit-badge-university | import React from 'react';
import {BrowserRouter} from 'react-router-dom'
import App from './App';
const Routes = () => {
return (
<BrowserRouter basename='/merit-badge-university'>
<App/>
</BrowserRouter>
);
};
export default Routes;
|
packages/icons/src/md/editor/Publish.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPublish(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M10 8v4h28V8H10zm0 20h8v12h12V28h8L24 14 10 28z" />
</IconBase>
);
}
export default MdPublish;
|
src/components/Article/CommentContainer.js | vkarpov15/shidoshi | import CommentInput from './CommentInput';
import CommentList from './CommentList';
import { Link } from 'react-router';
import React from 'react';
const CommentContainer = props => {
if (props.currentUser) {
return (
<div className="col-xs-12 col-md-8 offset-md-2">
<div>
<list-errors err... |
app/javascript/mastodon/components/autosuggest_emoji.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
public/js/cat_source/es6/components/header/cattol/bulk_selection_bar/BulkSelectionBar.js | Ostico/MateCat | import React from 'react'
import SegmentConstants from '../../../../constants/SegmentConstants'
import SegmentStore from '../../../../stores/SegmentStore'
class BulkSelectionBar extends React.Component {
constructor(props) {
super(props)
this.state = {
count: 0,
segmentsArray: [],
changingS... |
src/components/Publish/index.js | dloa/alexandria-librarian | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import Dropzone from 'react-dropzone';
import _ from 'lodash';
import PublishActions from './actions';
import publishStore from './store';
/* Publisher Components */
import Table from './components/table';
import Register from ... |
src/svg-icons/maps/directions-run.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRun = (props) => (
<SvgIcon {...props}>
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l... |
app/routes.js | kevyu/ctp_demo | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import ChartPage from './containers/ChartPage';
export default () => (
<App>
<Switch>
<Route path="/chart" c... |
src/components/Video.js | blwoosky/DigCSS-Theme-v4-Redesign | import React, { Component } from 'react';
import { Link,browserHistory } from 'react-router';
import CommentsContainer from './../containers/CommentsContainer';
import { Element,scroller } from "react-scroll";
import Prism from "../js/prism";
import moment from 'moment';
export default class Post extends Component {
... |
opentech/static_src/src/app/src/components/MessageBar/index.js | OpenTechFund/WebApp | import React from 'react'
import PropTypes from 'prop-types'
import { MESSAGE_TYPES } from '@actions/messages'
const MessageBar = ({ message, type, onDismiss, dismissMessage='OK' }) => {
const modifierClass = type ? `messages__text--${type}` : '';
return (
<li className={`messages__text ${modifierCla... |
js/components/loaders/ProgressBar.ios.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { ProgressViewIOS } from 'react-native';
export default class ProgressBarNB extends Component {
render() {
const getColor = () => {
if (this.props.color) {
return this.props.color;
} else if (this.props.inverse) {
return this.getThem... |
app/components/Layout.js | pbillerot/reacteur | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class Layout extends React.Component {
constructor(props) {
super(props);
this.state = {
w3_sidebar_open: false
}
}
getChildContext() {
return {
w3_side... |
shared/components/CommentForm.js | AndrewGibson27/react-webpack-express-isomorphic-boilerplate | import React, { Component } from 'react';
import { connect, PromiseState } from 'react-refetch';
class CommentForm extends Component {
constructor(props) {
super(props);
this.state = { value: '' };
this._onChange = this._onChange.bind(this);
this._onSubmit = this._onSubmit.bind(this);
}
componen... |
src/components/ProductList.js | selimsevencan/catalog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row, Col } from 'antd';
import { addToCart } from '../actions';
import ProductItem from './ProductItem';
class ProductList extends Component {
render() {
let filteredProducts = this.props.products;
if (this.props.filte... |
node_modules/react-bootstrap/es/InputGroupAddon.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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/svg-icons/places/spa.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
docs/app/Examples/collections/Form/Variations/FormSizeExample.js | jcarbo/stardust | import React from 'react'
import { Button, Divider, Form } from 'stardust'
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
const FormSizeExample = () => (
<div>
{sizes.map(size => (
<Form size={size} key={size}>
<Form.Group widths='equal'>
<Form.Field label='Fi... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | foozmeat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
pilgrim3/components/sideBar.js | opendoor-labs/pilgrim3 | import React from 'react';
import state from './state';
import { keys, map, filter, includes } from 'lodash';
import NavLink from './navLink';
const FILES = 'files';
const MESSAGES = 'messages';
const ENUMS = 'enums';
const SERVICES = 'services';
const ACTIVE = 'active';
class SelectionButton extends React.Component ... |
src/svg-icons/image/panorama.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanorama = (props) => (
<SvgIcon {...props}>
<path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePanora... |
public/js/components/admin/dashboard.react.js | TRomesh/Coupley | import React from 'react';
import Header from './Header.react';
import Sidebar from './Sidebar.react';
import Settings from './Settings.react';
import Path from './path.react';
import { Router, Route, Link, hashHistory } from 'react-router';
var Admin = React.createClass({
forceUpdate: function () {
location.rel... |
src/containers/FuelSavingsPage.js | lisavogtsf/canned-react-slingshot-app | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/fuelSavingsActions';
import FuelSavingsForm from '../components/FuelSavingsForm';
export const FuelSavingsPage = (props) => {
return (
... |
packages/ecmascript-hot/plugin.js | gadicc/meteor-hmr | var crypto = Npm.require('crypto');
// This *must* match the name of your package
var hot = new Hot('gadicc:ecmascript-hot/compile-ecmascript-hot', true);
Plugin.registerCompiler({
extensions: ['js', 'jsx'],
}, function () {
var compiler = new BabelCompiler({
react: true
});
// First compile takes ages (... |
src/svg-icons/notification/phone-forwarded.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.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.59l2.2-2.21c.28-.26... |
src/js/components/Header.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import Box fr... |
client/src/App.js | adam-serene/serene-mvp | import React from 'react';
import Auth from './components/Auth';
import GoogleMap from './components/GoogleMap';
import Hangouts from './components/Hangouts.js'
import Leaderboard from './components/Leaderboard';
import { Route } from 'react-router-dom';
import './App.css';
const App = () => (
<div
className='ap... |
packages/vx-demo/components/tiles/network.js | Flaque/vx | import React from 'react';
import { Graph } from '@vx/network'
import {scaleOrdinal, schemeCategory20c} from 'd3-scale';
const nodes =
[{x: 50, y: 20}, {x: 200, y: 300}, {x: 300, y: 40}];
const dataSample = {
nodes,
links: [
{source: nodes[0], target: nodes[1]},
{source: nodes[1], target: nodes[2]},
... |
packages/lore-hook-forms-material-ui/src/config.js | lore/lore-forms | /* eslint no-param-reassign: "off" */
import React from 'react';
import CreateOptimisticBlueprint from './blueprints/create/Optimistic';
import CreateOverlayBlueprint from './blueprints/create/Overlay';
import CreateWizardBlueprint from './blueprints/create/Wizard';
import UpdateOptimisticBlueprint from './blueprints/... |
v0.2/src/App.js | sakulstra/firebase-web-todo | import React from 'react';
import { BrowserRouter, Match, Miss } from 'react-router';
import { Error404, Home, Todo } from './ui/pages';
const App = () => (
<BrowserRouter>
<div>
<Match exactly pattern="/" component={Home}/>
<Match pattern="/todo" component={Todo}/>
<Mis... |
src/svg-icons/navigation/subdirectory-arrow-right.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
docs/src/pages/components/toggle-button/ToggleButtonNotEmpty.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import FormatAlignLeftIcon from '@material-ui/icons/FormatAlignLeft';
import FormatAlignCenterIcon from '@material-ui/icons/FormatAlignCenter';
import FormatAlignRightIcon from '@material-ui/icons/FormatAlignRight';
import FormatAlignJust... |
src/containers/Home/Home.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... |
src/client.js | micooz/react-redux-universal-hot-example | /**
* 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... |
src/components/TodosListHeader.js | AscaL/NTD | import React from 'react';
export default class TodosListHeader extends React.Component {
render() {
return (
<thead>
<tr>
<th>Task</th>
<th>Action</th>
</tr>
</thead>
);
}
}
|
app/javascript/mastodon/features/ui/components/video_modal.js | imas/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/parser/priest/shadow/modules/spells/VoidformGraph.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Line } from 'react-chartjs-2';
import SPELLS from 'common/SPELLS';
import { formatDuration } from 'common/format';
import VoidformStyles from './VoidformStyles';
// changing this value will have a large impact on webbrowser performance. About 200... |
app/routes/waste/CreateRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Collection as WasteTypes } from '../../entities/WasteType';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import WasteForm from '../..... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
ajax/libs/react-instantsearch/4.5.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.5.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/collections/Form/FormInput.js | aabustamante/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Input from '../../elements/Input'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Input} />.
* @see Form
* @see Input
*/
function FormInput(props) {
const { con... |
manager/src/Router.js | victorditadi/IQApp | import React from 'react';
import { View, Text } from 'react-native';
import { Icon } from 'native-base';
import { Scene, Router } from 'react-native-router-flux';
import LoginScreen from './components/screens/LoginScreen';
import InitScreen from './components/screens/InitScreen';
import HomeScreen from './components/s... |
app/js/components/trainer-pokemon/trainer-pokemon-move-meta.component.js | milk-shake/electron-pokemon | import React from 'react';
import ReactDOM from 'react-dom';
export default class MoveMetaComponent extends React.Component {
constructor(props) {
super(props);
}
toggle() {
return ((this.props.open) ? "open " : "") + "trainer-pokemon-move-meta";
}
displayAilment() {
if(this.props.meta.ailment ... |
js/src/modals/FirstRun/Welcome/welcome.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
fields/types/name/NameColumn.js | udp/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... |
code/material/2-hierarchy/GreetingController.js | st-he/react-workshop | import React from 'react';
import GreetingMaster from './GreetingMaster';
import GreetingDetail from './GreetingDetail';
let currentId = 0;
const sampleGreetings = [{
id: currentId++,
name: 'Olli',
greeting: 'Huhu'
},
{
id: currentId++,
name: 'Oma',
greeting: 'Hallo'
}
];
... |
client/src/index.js | mtucciar/monster-chat | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import monsterChatApp from './reducers'
import MonsterChat from './components/MonsterChat'
import monsterChatClient, {chatMiddleware} from './chat'
const initialState... |
src/components/LiveMap.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import {
withGoogleMap,
GoogleMap,
HeatmapLayer
} from 'react-google-maps'
import MarkerClusterer from 'react-google-maps/lib/addons/MarkerClusterer'
import LiveMarker from 'components/LiveMarker'
import LiveStationModal from 'components/LiveStationModa... |
react-flux-mui/js/material-ui/src/svg-icons/notification/vpn-lock.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVpnLock = (props) => (
<SvgIcon {...props}>
<path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-... |
packages/material-ui-icons/src/LocalGasStation.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalGasStation = props =>
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-... |
app/components/Toggle/option.js | fission/fission-ui | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const Option = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
Option.propTypes = {
value: React.PropTypes.string.isRequired,
messag... |
src/components/ErrorMessageBanner.js | elstgav/step-up | import React from 'react'
// to be expanded when styles
const ErrorMessageBanner = ({ errorMessage }) =>
<div>
{errorMessage}
</div>
ErrorMessageBanner.propTypes = {
errorMessage: React.PropTypes.string,
}
export { ErrorMessageBanner }
|
src/svg-icons/image/exposure-plus-1.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... |
src/mention/__tests__/fixtures/initializeEditor.js | Kindling/react-tinymce-mentions | import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCE from 'react-tinymce';
import Mention from '../../Mention';
import simpleDataSource from './simple';
const plugins = [
'autolink',
'autoresize',
'code',
'image',
'link',
'media',
'mention',
'tabfocus'
];... |
src/Parser/Hunter/Marksmanship/Modules/Items/Tier21_2p.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus fr... |
src/routes.js | hahoocn/react-mobile-boilerplate | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { App, About, Home, NotFound } from './containers';
export const routes = [
{
component: App,
routes: [
{ path: '/', exact: true, component: Home },
{ path: '/about', component: About },
{ component: NotFoun... |
src/routes/about/index.js | medevelopment/updatemeadmin | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
frontend/advocate/samename/SameNameAdvocate.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {getName, getResidence} from './selectors';
const SameNameAdvocateComponent = ({name, residence}) => <span>{name}{residence && <span> ({residence})</span>}</span>;
const mapStateToProps = (state, {id}) => ({
... |
src/svg-icons/content/clear.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
fields/types/location/LocationField.js | benkroeger/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
docs/src/components/NavLinks.js | isaacs/node-tap | import React from 'react';
import {Link, NavLink} from './links';
const NavLinks = (props) => {
return(
<>
{props.desktop &&
<NavLink
to="/docs/"
activeClassName="active-navlink"
partiallyActive={true}
>
Docs
</NavLink>
}
<NavLink... |
fields/types/boolean/BooleanFilter.js | mekanics/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
var BooleanFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || TOGGLE_OPTIONS[0].value
};
... |
src/components/canvas/MenuItem.js | nchathu2014/canvas-new | import React from 'react';
export default class MenuItem extends React.Component{
constructor(props){
super(props);
this.state={
glyphiconColor:'green'
}
}
render(){
return(
<div>
<button className="btn btn-default menu-btn"
onClick={this.props.menuItemOnClick}
onMouseOver={thi... |
js/components/LoadingButton.react.js | techaware/biometric-auth | /**
* LoadingButton.react.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator.react';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
... |
src/routes/Home/components/HomeView.js | okmttdhr/aupa | import React from 'react'
import { connect } from 'react-redux'
import classes from './HomeView.scss'
import DuckImage from '../assets/Duck.jpg'
import videosModule from '../modules/videos'
import Video from 'components/Video'
const mapActionCreators = {
getVideos: videosModule.getVideos,
}
const mapStateToProps ... |
react/features/base/media/components/AbstractAudio.js | KalinduDN/kalindudn.github.io | import React, { Component } from 'react';
/**
* The React {@link Component} which is similar to Web's
* {@code HTMLAudioElement}.
*/
export default class AbstractAudio extends Component {
/**
* The (reference to the) {@link ReactElement} which actually implements
* this {@code AbstractAudio}.
*/
... |
src/svg-icons/notification/network-check.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28... |
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Group.js | me-box/platform-sdk | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {camelise,componentsFromTransform} from 'nodes/processors/uibuilder/utils';
import { actionCreators as canvasActions, selector, NAME } from '../..';
import { connect } from 'react-redux';
import {Circle, Text, Line, Rect, Ellip... |
docs/custom/toggle-switch/index.js | valzav/react-foundation-components | import React, { Component } from 'react';
import { ToggleSwitch, ToggleSwitchItem } from '../../../src/toggle-switch';
export default class ToggleSwitchPage extends Component {
state = {
activeKey: '3',
};
handleSelect = (activeKey) => this.setState({ activeKey });
render() {
const { activeKey } = t... |
docs/src/ModalsPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import modal from '../../examples/Modal';
import modalWithBottomSheet from '../... |
docs/app/Examples/elements/Input/Variations/InputExampleLeftCornerLabeled.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftCornerLabeled = () => (
<Input
label={{ icon: 'asterisk' }}
labelPosition='left corner'
placeholder='Search...'
/>
)
export default InputExampleLeftCornerLabeled
|
src/components/__tests__/TableHeadingCellTest.js | joellanciaux/Griddle | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import TableHeadingCell from '../TableHeadingCell';
test('renders with style', (t) => {
const style = { backgroundColor: '#EDEDED' };
const wrapper = shallow(<TableHeadingCell style={style} />);
t.true(wrapper.matchesElement(<... |
map/src/components/ModalAnniversary/index.js | Vizzuality/care_usa | 'use strict';
import './styles.postcss';
import React from 'react';
import Modal from '../Modal';
import CaresPackage from './CaresPackage';
import PowerBox from './PowerBox';
import CaresEvolution from './CaresEvolution';
import CatalystWomen from './CatalystWomen';
import BoxVideo from './BoxVideo';
import Slider fr... |
src/Grid.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Grid = React.createClass({
propTypes: {
fluid: React.PropTypes.bool,
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = th... |
app/javascript/components/ExpressDonation/PaymentMethodWrapper.js | SumOfUs/Champaign | import React from 'react';
export default function PaymentMethodWrapper(props) {
return (
<div className="PaymentMethodWrapper">
<i className="PaymentMethodWrapper__icon fa fa-credit-card" />
{props.children}
</div>
);
}
|
src/components/Container.js | MunGell/elemental | import React from 'react';
import blacklist from 'blacklist';
import E from '../constants';
module.exports = React.createClass({
displayName: 'Container',
propTypes: {
children: React.PropTypes.node.isRequired,
clearfix: React.PropTypes.bool,
gutter: React.PropTypes.number,
maxWidth: React.PropTypes.number,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.