path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/wix-style-react/src/ListItemSection/ListItemSection.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './ListItemSection.st.css';
import Divider from '../Divider';
import Text from '../Text';
import TextButton from '../TextButton';
import { dataHooks } from './constants';
import { isString } from '../utils/StringUtils';
export ... |
src/svg-icons/image/crop-portrait.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
client/routes.js | gzoreslav/panda-iso | import React from 'react'; // eslint-disable-line no-unused-vars
import {Route, DefaultRoute, NotFoundRoute} from 'react-router';
import AppHandler from '../shared/views/AppHandler.jsx';
import NotFoundHandler from '../shared/views/NotFoundHandler.jsx';
import ArticlesHandler from '../shared/views/ArticlesHandler.jsx';... |
examples/map-controls/app.js | jjmulenex/sdk | /** Map Controls example.
*
*/
import {createStore, combineReducers, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom-contro... |
newclient/scripts/components/user/entities/entity-form-relationship-step/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/parser/rogue/assassination/modules/features/Checklist/Component.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist2';
import Rule from 'parser/shared/modules/features/Checklist2/Rule';
import Requirement from 'parser/shared/modul... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/get-started/Examples.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import examplesText from './examples.md';
const Examples = () => (
<div>
<Title render={(previousTitle) => `Examples - ${previousTitle}`} />
<MarkdownElement text={examplesText} />
</... |
packages/@vega/layout/src/components/LoginStatus.js | VegaPublish/vega-studio | /* eslint-disable react/no-deprecated */
import React from 'react'
import {
currentUser$,
logout,
getProfileImageUrl
} from 'part:@vega/datastores/user'
import {Manager, Target, Popper} from 'react-popper'
import Menu from 'part:@lyra/components/menus/default'
import IconSignOut from 'part:@lyra/base/sign-out-ico... |
src/assets/components/Main.js | carpeliam/timebox-light | import React from 'react';
import Box from './Box';
export default class Main extends React.Component {
constructor() {
super();
this.toggleActive = this.toggleActive.bind(this);
this.state = { name: 'I am a box', duration: 0, lastCheckedTime: undefined, paused: true };
}
componentDidMount() {
t... |
src/browser/createRoutes.js | puzzfuzz/othello-redux | import React from 'react';
import App from './app/App.react';
import Home from './home/Page.react';
import NotFound from './notfound/Page.react';
import Othello from './othello/Page.react';
import {IndexRoute, Route} from 'react-router';
export default function createRoutes(getState) {
return (
<Route componen... |
docs/pages/api-docs/image-list-item.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/image-list-item';
const requireRaw = require.context('!raw-loader!./', false, /\/image-list-item\.md$/);
export default func... |
src/main/resources/react/src/ssl-report/app.js | marthie/SSLReport | /*
The MIT License (MIT)
Copyright (c) 2018 Marius Thiemann <marius dot thiemann at ploin dot de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limi... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | yangchenghu/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
6.1.0/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(275),e.exports=n(274)},function(e,t,n){var r=n(5),o=n(36),i=n(20),a=n(21),u=n(37),s="prototype",... |
src/boilerplate/containers/DevTools.js | joropeza/react-fullscreen-app-boilerplate | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
>
<LogM... |
app/components/Forms.js | ENG100D/AnonEvalProj | import React, { Component } from 'react';
class Forms extends Component {
renderToForm(url) {
var form = window.open(url, "_blank");
form.focus();
}
render() {
return (
<div className="container">
<h1 id = "welcome-msg">Select a Form</h1>
<hr className = "style1"/>
... |
ajax/libs/react-instantsearch/4.4.1/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch UNRELEASED | © 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... |
app/app.js | samanshahmohamadi/react-boilerplate-ballyhoo | /**
* 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';
import ... |
frontend/app/components/SearchDictionary/SearchDictionaryPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// Material-UI
import Paper from '@material-ui/core/Paper'
// FPCC
import FVButton from 'components/FVButton'
import PromiseWrapper from 'components/PromiseWrapper'
import SearchDictionaryListLargeScreen from 'components/SearchDictionary/SearchDictionaryLis... |
src/parser/priest/holy/modules/spells/SpiritOfRedemption.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import EventEmitter from 'parser/core/modules/EventEmitter';
import DeathDowntime from 'parser/shared/modules/downtime/DeathDowntime';
import SpellLink from 'common/SpellLink';
import { isItAprilFoolDay } from '... |
docs/build.js | wjb12/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
src/components/App/App.js | WebSeed/react-static-starter | import React from 'react';
function App(props) {
return (
<div>
<h1>Hello {props.name}!</h1>
</div>
);
}
export default App; |
src/Router.js | axs221/look-fit | /*! 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/js/drinks/drinks.js | globin/drinkup | import React from 'react';
import AddDrink from './addDrink';
import DrinkList from './drinkList';
class Drinks extends React.Component {
render() {
return (
<div>
<DrinkList />
<AddDrink />
</div>
);
}
}
export default Drinks;
|
hw5/src/components/main/addFriendForm.js | yusong-shen/comp531-web-development | /**
* Created by yusong on 10/27/16.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { Field, reduxForm } from 'redux-form';
import * as FollowingActions from '../../actions/followingActions'
class AddFriendForm extends Component {
handleFormSubmit = (values) => {
... |
admin/client/components/UpdateForm.js | mikaoelitiana/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Fields from '../fields';
import { plural } from '../utils';
import { BlankState, Button, Form, Modal } from 'elemental';
var UpdateForm = React.createClass({
displayName: 'UpdateForm',
propTypes: {
isOpen: React.... |
src/components/Footer/Footer.js | stanxii/laiico | /**
* 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 withStyles from 'isom... |
src/clincoded/static/components/gdm.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import moment from 'moment';
import * as curator from './curator';
import { content_views, truncateString } from './globals';
import { getAffiliationName } from '../libs/get_affiliation_name';
// Map GDM statuses... |
src/admin/client/routes/orders/statuses/index.js | cezerin/cezerin | import React from 'react';
import Edit from 'modules/orderStatuses/edit';
import List from 'modules/orderStatuses/list';
export default () => (
<div className="row row--no-gutter col-full-height">
<div className="col-xs-12 col-sm-4 col-md-3 col--no-gutter scroll col-full-height">
<List showAll={false} showAdd={t... |
src/IconButton/IconButtonLayout.js | boldr/boldr-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const IconButtonLayout = props => {
const { theme, hover, active, disabled, height, children } = props;
const className = classNames(
{
['boldrui-iconbtn']: true,
[`boldrui-iconbtn--${[theme]}`]: tr... |
node_modules/react-router/es6/RouteContext.js | Shwrndasink/btholt-react-tutorial | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
app/javascript/mastodon/features/status/components/action_bar.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
src/components/atoms/Button/index.stories.js | SIB-Colombia/dataportal_v2_frontend | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Button from '.'
storiesOf('Button', module)
.add('default', () => (
<Button>Hello</Button>
))
.add('reverse', () => (
<Button reverse>Hello</Button>
))
.add('another palette', () => (
<Button palette="secondary">Hello<... |
components/Content.js | jepz20/coffee_tracker | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
import { hashHistory } from 'react-router';
import { Tabs, Tab } from 'material-ui/Tabs';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
const mapStateToProps = (state... |
docs/app/components/preview/index.js | showings/react-toolbox | /* eslint-disable no-eval*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { transform } from 'babel-standalone';
import * as ReactToolbox from 'react-toolbox';
import style from './style.css';
const ERROR_TIMEOUT = 500;
const Preview = React.createClass({
pr... |
frontend-admin/src/common/containers/editFile/index.js | OptimusCrime/youkok2 | import React from 'react';
import {Modal} from "../../components/modal";
import {ModalTitle} from "../../components/modal/modal-title";
import {ModalBody} from "../../components/modal/modal-body";
import EditFileData from './edit-file-data';
import {connect} from "react-redux";
import {hideEditFileModal} from "../../re... |
sub-packs/apps/zealder-wp/src/components/WpPost.js | Zealder/zealder-cms | /**
* default component for rendering post in posts list
*/
import React from 'react';
import { IndexLink } from 'react-router';
var moment = require('moment');
export default class WpPosts extends React.Component {
render() {
const {img, post, categ, url} = this.props;
return (
<div className="blo... |
imports/ui/pages/PaperDetails/PaperDetails.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import { Table, Alert, Button , Col , Label , FormControl ,
Row , FormGroup , InputGroup , } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import { Bert } from 'meteor/themeteorchef:bert';
import { Link } from... |
RNRxBluetoothExample/index.android.js | eove/RNRxBluetooth | import React from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('RNRxBluetoothExample', () => App);
|
tp-3/euge/src/components/pages/alumnos/components/listado/AlumnoListado.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import Alumno from './Alumno';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
import { NavLink } from 'react-router-dom';
const AlumnoListado = (p... |
src/containers/App/index.js | da07ng/danqing | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as AccountActions from '../../actions/account';
import Header from '../../components/Header';
import Footer from '../../components/Footer';
class App extends Component {
constructor... |
stories/PointInfo.js | City-Bus-Stops/get-route-components | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import PointInfo from '../src/components/PointInfo/PointInfo';
import mockData from '../src/json-server/db.json';
storiesOf('PointInfo', module)
.add('bus stop point info', () => (
<PointInfo
pointInfo={mockData['points-info... |
src/Components/Inputs/Email.js | bryandesigning/ShippingInfo | import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
import { connect } from 'react-redux';
import { updateField, validateField } from 'src/Redux/shippingInfo';
class Email extends React.Component {
constructor(props) {
... |
cheesecakes/plugins/settings-manager/admin/src/containers/HomePage/index.js | strapi/strapi-examples | /*
*
* HomePage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { createStructuredSelector } from 'reselect';
import {
endsWith,
find,
findIndex,
findKey,
forEach,
get,
isEmpty,
i... |
src/index.js | rxtATX/Lyrical | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
docs/src/app/components/pages/components/Dialog/ExampleDialogDatePicker.js | kasra-co/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import DatePicker from 'material-ui/DatePicker';
/**
* Dialogs can be nested. This example opens a Date Picker from within a Dialog.
*/
export defa... |
client/components/Logo/Logo.js | Art404/platform404 | import React from 'react'
export default () => (<div key="Logo" className="Logo" />)
|
src/app/components/Payment/Paypal/Paypal.js | jhagai/react-redux-demo | import React from 'react'
import {reduxForm} from 'redux-form';
let Paypal = () => {
return (
<div className="col-xs-12">
<div className="panel panel-primary">
<div className="panel-heading">
<h3 className="panel-title">Paypal</h3>
</div>
... |
src/web/components/Board.js | faalsh/Lama | import React, { Component } from 'react';
import List from './List'
import CreateList from './CreateList'
import _ from 'lodash'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
// import {sort} from '../../common/utils'
export default class Board extends Component {
render() {
const {boar... |
docs/app/Examples/elements/Button/Variations/ButtonExampleFloated.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleFloated = () => (
<div>
<Button floated='right'>Right Floated</Button>
<Button floated='left'>Left Floated</Button>
</div>
)
export default ButtonExampleFloated
|
website/app/components/Footer/index.js | mattroid/WildWest | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
src/static/containers/Home/index.js | spiskommg/mm-v2 | import React from 'react';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import './style.scss';
import reactLogo from './images/react-logo.png';
import reduxLogo from './images/redux-logo.png';
import headerBG from './images/home.jpg';
import Tit... |
renderer/components/preferences/item/color-picker.js | wulkano/kap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const ColorPicker = ({hasErrors, value, onChange}) => {
const className = classNames('container', {'has-errors': hasErrors});
const handleChange = event => {
const value = event.currentTarget.value.toUpperCase()... |
src/components/run.js | elkorn/big-decisions | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/components/notfoundpage.js | ateixeira/andreteixeira.info | import React from 'react';
import { Link } from 'react-router';
module.exports = React.createClass({
// RENDER
render: function() {
return (
<div className="not-found">
<h1>404</h1>
<h2>Page not found!</h2>
<p>
<Link to="/">Go back to the ma... |
src/Popover.js | mcraiganthony/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import FadeMixin from './FadeMixin';
const Popover = React.createClass({
mixins: [BootstrapMixin, FadeMixin],
propTypes: {
placement: React.PropTypes.oneOf(['top', 'right', 'bottom', 'left']),
po... |
examples/js/remote/remote-store-search.js | rolandsusans/react-bootstrap-table | import React from 'react';
import RemoteSearch from './remote-search';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math.random() ... |
app/addons/fauxton/navigation/components/LoginButton.js | popojargo/couchdb-fauxton | // 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 writing, software
// distributed un... |
src/components/GroupInput.js | wookiecookie87/lunch_group_creator_with_reactjs | import React from 'react'
class GroupInput extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
group_num : '', min_num : ''
}
}
handleClick () {
if(!this.state.group_num || parseInt(this.state.group_num) == 0) {
alert("Please enter group number.");
return... |
react-app/src/pages/p-blog.js | var-bin/reactjs-training | "use strict";
// src/pages/blog.js
import React from 'react';
import { CommentBox } from '../components/comment-box';
class PBlogPage extends React.Component {
render() {
return (
<div>
<div className="cell">
<article className="article">
<h1 className="article-title">Robots... |
docs/app/Examples/elements/Label/Content/LabelExampleDetail.js | shengnian/shengnian-ui-react | import React from 'react'
import { Label } from 'shengnian-ui-react'
const LabelExampleDetail = () => (
<Label>
Dogs
<Label.Detail>214</Label.Detail>
</Label>
)
export default LabelExampleDetail
|
src/docs/examples/RegistrationForm/ExampleRegistrationForm.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import RegistrationForm from 'ps-react/RegistrationForm';
export default class ExampleRegistrationForm extends React.Component {
onSubmit = (user) => {
console.log(user);
}
render() {
return <RegistrationForm onSubmit={this.onSubmit} />
}
} |
web/node_modules/react-dimensions/index.js | Jorginho211/TFG | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defi... |
src/svg-icons/places/beach-access.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBeachAccess = (props) => (
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95... |
node_modules/react-bootstrap/es/MenuItem.js | Technaesthetic/ua-tools | 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/javascript/mastodon/features/account_timeline/containers/header_container.js | KnzkDev/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/account... |
docs/app/Examples/addons/Radio/Variations/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const RadioVariationsExamples = () => (
<ExampleSection title='Variations'>
<Componen... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | stephaniejn/stephaniejn.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/browser/auth/Social.js | sikhote/davidsinclair | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { Box, Button } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { signIn } from '../../... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | vokal/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes:... |
src/packages/@ncigdc/components/Charts/TwoBarChart.js | NCI-GDC/portal-ui | // @flow
// Vender
import React from 'react';
import * as d3 from 'd3';
import ReactFauxDOM from 'react-faux-dom';
import { compose, withState, pure } from 'recompose';
// Custom
import { withTheme } from '@ncigdc/theme';
import { withTooltip } from '@ncigdc/uikit/Tooltip';
import withSize from '@ncigdc/utils/withSiz... |
app/main-old.js | national-treasures-tw/landing-page | import React from 'react';
import { render } from 'react-dom';
import styles from './styles.css';
import taiwan from './assets/taiwan.png';
import logo from './assets/logo.png';
import name from './assets/name.png';
import loader from './assets/loading.gif';
import axios from 'axios';
class App extends React.Component... |
server/sonar-web/src/main/js/apps/quality-profiles/routes.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMapping.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import { icons, kinds } from 'Helpers/Props';
import translate from 'U... |
src/InputBase.js | Lucifier129/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return this.refs.input;
}
getValue() {
if (this.props.type === 'static') {
return this.props.valu... |
src/parser/monk/brewmaster/modules/spells/HighTolerance.js | sMteX/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatPercentage, formatThousands } from 'common/format';
import Analyzer from 'parser/core/... |
src/Parser/DeathKnight/Frost/Modules/Features/WastedRimeProcs.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Mo... |
client/src/containers/timer.js | Bekzod13/DrawSketch | import React from 'react'
import {Alert} from 'reactstrap';
export default class TimerExample extends React.Component {
constructor(props) {
super(props)
this.state = {
elapsed: 0
}
}
componentDidMount() {
this.setState({elapsed: this.props.game.timeElapsed})
... |
app/components/HelpButton/HelpButtonContainer.native.js | ihor/ReactNativeCodeReuseExample | import React from 'react';
import { Alert } from 'react-native';
import AbstractHelpButtonContainer from './AbstractHelpButtonContainer';
export default class HelpButtonContainer extends AbstractHelpButtonContainer {
displayMessage(message) {
Alert.alert(message);
}
} |
examples/js/column-format/html-column-format-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
p... |
src/shared/components/App/bits/shapes.js | brettsnaidero/bsd | import React, { Component } from 'react';
// Utils
import * as _ from "lodash";
// App
export default class Shapes extends Component {
constructor(props) {
super(props);
this.state = {
}
}
componentDidMount() {
}
render() {
return (
<div>
{/* Square */}
... |
src/index.js | joeyfigaro/migrated | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
react/features/invite/components/dial-in-summary/web/NumbersList.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { translate } from '../../../../base/i18n';
import { Icon, IconSip } from '../../../../base/icons';
type Props = {
/**
* Whether or not numbers should include links with the telephone protocol.
*/
clickableNumbers: boolean,
/**
* ... |
examples/05 Customize/Drop Effects/Container.js | tomulin1/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
... |
src/svg-icons/navigation/last-page.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
src/components/categoryFilter.js | CatDaVinci/wiser-react-redux | import React, { Component } from 'react';
class CategoryFilter extends Component {
constructor(props) {
super(props);
this.state = {
categories: ['all', 'sport', 'music'],
category: this.props.filter,
}
}
handleSelect(event) {
const category = event.target.value;
this.setState({c... |
packages/icons/src/md/image/Palette.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPalette(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 6c9.94 0 18 7.16 18 16 0 5.52-4.48 10-10 10h-3.53c-1.66 0-3 1.34-3 3 0 .77.28 1.46.75 1.99.49.53.78 1.23.78 2.01 0 1.66-1.34 3-3 3-9.94 0-18-8.06... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | KitoHo/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
src/components/edit/ContactForm.js | chjourdain/react-redux-ref | import React from 'react';
import Form from '../Form/Form';
import Input from '../Form/Input';
/**
* Created by chjourdain on 15/07/16.
*/
export default class ContactForm extends React.Component {
render() {
return (
<div>
{()=> {
if (this.props.Edited =... |
node_modules/react-bootstrap/es/InputGroup.js | jkahrs595/website | 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/js/components/MobileIndex.js | lantuhui/NewsApp-react | /**
* Created by lantu on 2017/10/25.
*/
import React from 'react'
import MobileHeader from './MobileHeader'
import MobileFooter from './MobileFooter'
import MobileList from './mobile_list';
import '../../global_css/mobile.css';
import mobileClass from '../../css/pc.css';
import { Tabs,Carousel } from 'antd';
const... |
examples/todo-react-es6/src/app/app.js | rintoj/statex | import Footer from './footer'
import Header from './header'
import React from 'react'
import TodoList from './todo-list'
export default class App extends React.Component {
render() {
return <div id='todo-app'>
<Header />
<TodoList />
<Footer />
</div>
}
}
|
projects/frontend/src/pages/login/index.js | we3x/organizator | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import Snackbar from 'material-ui/Snackbar';
import Paper from 'material-ui/Paper';
import { errors } f... |
examples/server-side-rendering/src/App.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
InstantSearch,
RefinementList,
SearchBox,
Hits,
Configure,
CurrentRefinements,
} from 'react-instantsearch-dom';
class App extends Component {
static propTypes = {
indexName: PropTypes.string.isRequired,
search... |
step6-serviceapi/node_modules/react-router/es6/IndexRedirect.js | jintoppy/react-training | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <Ind... |
src/admin/client/modules/orders/editHead/components/buttons.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import ConfirmationDialog from 'modules/shared/confirmation';
import ProductSearchDialog from 'modules/shared/productSearch';
import DeleteConfirmation from 'modules/shared/deleteConfirmation';
import FontIcon from 'material-ui/FontIcon';
import IconMenu from ... |
src/js_src/containers/search/search.js | hitz/python-flask-es-test | import React, { Component } from 'react';
import { createMemoryHistory } from 'react-router';
import { connect } from 'react-redux';
import _ from 'underscore';
import style from './style.css';
import fetchData from '../../lib/fetchData';
import FilterSelector from './filterSelector/filterSelector';
import MultiTable ... |
src/components/summonerData.js | samrocksc/lol-app | import React, { Component } from 'react';
// displays a champions data
export default class summonerData extends Component {
render(){
const { data } = this.props;
console.log('data:',data)
return(
<div>
<h3>Name: {data.name}</h3>
<h3>Id: {data.id}</h3>
</div>
)
}
}
|
examples/js/remote/remote-store-delete-row.js | neelvadgama-hailo/react-bootstrap-table | import React from 'react';
import RemoteDeleteRow from './remote-delete-row';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math.ra... |
src/svg-icons/device/battery-charging-50.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging50 = (props) => (
<SvgIcon {...props}>
<path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.