path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/styling/aphrodite/src/components/Profile/index.js | pure-ui/styleguide | import React, { Component } from 'react';
import { css } from 'aphrodite';
import Button from '../Button';
import styles from './styles';
class Profile extends Component {
static propTypes = {
avatarUrl: React.PropTypes.string.isRequired,
firstName: React.PropTypes.string.isRequired,
lastName: React.Pr... |
src/components/Overview/Overview.react.js | isuruAb/chat.susi.ai | import './Overview.css';
import $ from 'jquery';
import allDevices from '../../images/all_devices.png';
import androidMockup from '../../images/android-mockup.jpg';
import bots from '../../images/bots.jpg';
import Close from 'material-ui/svg-icons/navigation/close';
import Footer from '../Footer/Footer.react';
import g... |
docs/components/Docs/Nav/dropdown.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
import { browserHistory } from 'react-router';
import './style.css';
class Nav extends React.Component {
handleHeadingChange(event) {
const { sections } = this.props;
const selectedSectionId = event.target.value;
const section = sections.find... |
src/containers/App/index.js | wvfan/HSBC | import * as F from 'firebase';
import React from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import _ from 'lodash';
import modifyHistory from 'helpers/modifyHistory';
import Design from 'containe... |
src/Paragraph/Paragraph.stories.js | boldr/boldr-ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Paragraph from './Paragraph';
storiesOf('Paragraph', module)
.add('default', () =>
<Paragraph>
Wolf whatever craft beer, readymade blue bottle raclette squid next level af fran... |
src/routes/home/index.js | rameshrr/dicomviewer | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
assets/node_modules/react-router/es/RouterContext.js | janta-devs/nyumbani | 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 _typeof = typeof Symbol === "function" && typeof Symbol.i... |
app/static/src/diagnostic/TestTypeResultForm_modules/NewParticleTestForm.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import {findDOMNode} f... |
client/src/components/PublicLanding.js | no-stack-dub-sack/alumni-network | import React from 'react';
import styled from 'styled-components';
class About extends React.Component {
state = {
flashMessageCleared: false
}
componentDidMount = () => {
document.addEventListener('click', this.handleClick);
}
componentWillUnmount = () => {
document.removeEventListener('click', ... |
src/parser/druid/feral/modules/core/Snapshot.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
import Analyzer from 'parser/core/Analyzer';
import { encode... |
client/crud.js | yuanyusi/redux | // let's go!
import React from 'react';
import { render } from 'react-dom';
// Import css
import css from './styles/style.styl';
// Import Components
import App from './components/App';
import Single from './components/Single';
import PhotoGrid from './components/PhotoGrid';
import Goals from './components... |
app/react-icons/fa/leanpub.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLeanpub extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m36.7 10.2l3.1 24.7q-2.6 0-5-1.1-3.9-1.8-7.7-1.8-4.4 0-7.2 2.9-2.9-2.9-7.3-2... |
src/applications/disability-benefits/view-payments/utils.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { CONTACTS } from '@department-of-veterans-affairs/component-library/Telephone';
const SERVER_ERROR_REGEX = /^5\d{2}$/;
const CLIENT_ERROR_REGEX = /^4\d{2}$/;
export const isServerError = errCode => SERVER_ERROR_REGEX.test(errCode);
export const isClientError = errCode => CLIENT_ERRO... |
geonode/monitoring/frontend/monitoring/src/components/organisms/stats/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# 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 3 of the License, or
# ... |
packages/vulcan-core/lib/modules/containers/withComponents.js | VulcanJS/Vulcan | /**
* This HOC will load the global Components.
* If a "components" prop is passed, it will be merged with the global Components.
*
* This allow local replacement of global components, for example if
* you want a specific submit button but only for one specific form.
*/
import React from 'react';
import PropTyp... |
frontend/modules/index.js | RyanNoelk/OpenEats | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { IntlProvider, addLocaleData } from 'react-intl'
import { Router, Route, Switch, Redirect } from 'react-router-dom'
import history from './common/history'
import store from './common/store'
// Load default local... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | Clearcover/web-build | /**
* 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';
async function load() {
return [
{ id: 1, name: '1'... |
app/user/profile/ProfileSkillList.js | in42/internship-portal | import React from 'react';
import PropTypes from 'prop-types';
import { Divider } from 'semantic-ui-react';
import EditableProfileSkillListItem from './EditableProfileSkillListItem';
import UnselectedProfileSkillListItem from './UnselectedProfileSkillListItem';
const ProfileSkillList = (props) => {
const editableSki... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | boyley/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
node_modules/react-router/es/withRouter.js | LaurentEtienne/Kfe | 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; };
import invariant from 'invariant';
import React from 'react';... |
examples/star-wars/js/components/StarWarsShip.js | michaelchum/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
frontend/src/Artist/NoArtist.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import { kinds } from 'Helpers/Props';
import styles from './NoArtist.css';
function NoArtist(props) {
const { totalItems } = props;
if (totalItems > 0) {
return (
<div>
<div className={st... |
docs/src/components/Demo/EditorConvertToHTML/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import { EditorState, convertToRaw, ContentState } from 'draft-js';
import { Editor } from 'react-draft-wysiwyg';
import draftToHtml from 'draftjs-to-html';
import htmlToDraft from 'html-to-draftjs';
import Codemirror from 'react-codemirror';
class EditorConvertTo... |
src/components/header.js | ericaporter/trending-hashtags | import React from 'react';
class Header extends React.Component {
render(){
return (
<div className="row">
<h2>Trending Hashtags</h2>
</div>
);
}
}
export default Header; |
app/javascript/mastodon/features/ui/index.js | anon5r/mastonon | import classNames from 'classnames';
import React from 'react';
import NotificationsContainer from './containers/notifications_container';
import PropTypes from 'prop-types';
import LoadingBarContainer from './containers/loading_bar_container';
import TabsBar from './components/tabs_bar';
import ModalContainer from './... |
site/src/components/GetSupportButton.js | LastCallMedia/Mannequin | import React from 'react'
import GithubIcon from 'react-icons/lib/go/mark-github'
import './GetSupportButton.scss'
export default function GetSupportButton() {
return (
<a
className="GetSupportButton"
href="https://github.com/LastCallMedia/Mannequin/issues"
>
<GithubIcon className="icon" />... |
js/jqwidgets/demos/react/app/scheduler/appointmentstatuses/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render() {
let appointments = new Array... |
server/sonar-web/src/main/js/apps/overview/main/BugsAndVulnerabilities.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
src/svg-icons/device/signal-wifi-4-bar.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4Bar = (props) => (
<SvgIcon {...props}>
<path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi4Bar = pure(Devic... |
packages/demos/todomvc/src/components/Footer/index.js | christianalfoni/cerebral | import React from 'react'
import { connect } from '@cerebral/react'
import { state, signal } from 'cerebral/tags'
import counts from '../../computed/counts'
import classnames from 'classnames'
const filters = ['All', 'Active', 'Completed']
export default connect(
{
filter: state`filter`,
counts,
filterC... |
src/components/Button/index.js | itsravenous/escape-the-board-room | import React from 'react';
import './style.scss';
const Button = (props) => (
<button
{...props}
className={props.className ? `button ${props.className}` : `button`}
>
{props.children}
</button>
);
Button.propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string,
};
export... |
client/routes/Items/components/ItemsPanel.js | patzj/ims | import React from 'react';
import ItemsTable from '../containers/ItemsTable';
export const ItemsPanel = () => {
return (
<div className="col-xs-10 col-xs-offset-1">
<h2 className="pull-left"><span className="glyphicon glyphicon-object-align-bottom"></span> Items</h2>
<div class... |
app/src/components/Info.js | wtfil/google-music-unofficial-client | import React from 'react';
import formatTime from '../utils/formatTime';
export default class Info extends React.Component {
render() {
const {onLoad, title, tracks, subTitle, image, year, description} = this.props;
const duration = tracks.reduce((summ, item) => summ + item.duration, 0);
const attrs = [year, tr... |
common/components/FavoritePhotoButton.js | jhabdas/12roads | import React from 'react'
import IconButton from 'material-ui/IconButton'
import StarBorder from 'material-ui/svg-icons/toggle/star-border'
import Star from 'material-ui/svg-icons/toggle/star'
const FavoritePhotoButton = (props) => (
<IconButton
tooltip='Favorite Photo'
tooltipPosition='top-left'
touch
... |
docs/app/Examples/addons/Radio/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const RadioExamples = () => (
<div>
<Types />
<States />
<Variations />
</div>
)
export default RadioExamples
|
ui/src/containers/DeleteConfirm/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Portal from 'react-portal';
import { connect } from 'react-redux';
import { lowerCase } from 'lodash';
import { deleteModel } from 'ui/redux/modules/models';
class DeleteConfirm extends Component {
static propTypes = {
isOpened:... |
src/features/DocumentationModal/ShowDocsButton.js | erhathaway/cellular_automata | import React from 'react';
import styled from 'react-emotion';
const Container = styled('button')`
position: fixed;
font-family: 'Roboto', sans-serif;
font-weight: lighter;
font-size: 20px;
outline: none;
background: none;
border: 1px solid rgba(56, 56, 56, 0.4);
border-radius: 50%;
color: #ffffff36;... |
src/App.js | babizhu/redux-lesson | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
import { createStore } from 'redux'
import { Provider } from 'react-redux'
//import {run} from './base/app';
//import {run} from './mutireducer/app';
import {run} from './async/base/app';
import rootReducer from './sap/rootReducer';... |
src/components/redux.js | Mahi22/MedTantra | // Component that demonstrates using a part of the Redux store
// outside of Apollo. We can use config.addReducer(key, reducer) in `src/app.js`
// to add custom Redux reducers
// ----------------------
// IMPORTS
/* NPM */
import React from 'react';
import PropTypes from 'prop-types';
// HOC/decorator to listen to ... |
pollard/components/AddedSongsDisplay.js | spncrlkt/pollard | import React, { Component } from 'react';
import DraggableSong from './DraggableSong';
export default class AddedSongsDisplay extends Component {
getCurrentlyPlayingSongIdx(songs) {
for (var idx = 0; idx < songs.size; idx++) {
if (songs.getIn([idx, 'played'])) {
return idx;
}
}
retu... |
packages/@lyra/form-builder/src/inputs/BlockEditor/Editor.js | VegaPublish/vega-studio | // @flow
import type {
Block,
BlockContentFeatures,
Marker,
SlateChange,
SlateComponentProps,
SlateMarkProps,
SlateValue,
Type
} from './typeDefs'
import type {Node} from 'react'
import React from 'react'
import ReactDOM from 'react-dom'
import SoftBreakPlugin from 'slate-soft-break'
import {findDOMNo... |
src/svg-icons/device/signal-cellular-no-sim.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ... |
src/index.js | Tinusw/myMovieCollection | import React from 'react'
import { Provider } from 'react-redux'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import routes from './routes'
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import './styles/index.scss'
import configureStore from './store/configu... |
src/docs/examples/Label/ExampleRequired.js | alopezitrs/ps-react-analo | import React from 'react';
import Label from 'ps-react/Label';
/** Required label */
export default function ExampleRequired() {
return <Label htmlFor="test" label="test" required />
}
|
test/test_helper.js | manelgavalda/ReduxRoutes | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
test/mochitest/examples/react/src/App.js | wldcordeiro/debugger.html | import React, { Component } from 'react';
import I from "immutable"
class App extends Component {
componentDidMount() {
this.fields = new I.Map({a:2})
}
onClick = () => {
const f = this.fields
console.log(f)
}
render() {
return (
<div className="App">
<button onClick={this.onC... |
src/svg-icons/av/stop.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvStop = (props) => (
<SvgIcon {...props}>
<path d="M6 6h12v12H6z"/>
</SvgIcon>
);
AvStop = pure(AvStop);
AvStop.displayName = 'AvStop';
AvStop.muiName = 'SvgIcon';
export default AvStop;
|
examples/todomvc/index.js | edge/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
import 'todomvc-app-css/index.css'
const store = configureStore()
render(
<Provider store={store}>
<A... |
src/svg-icons/image/add-a-photo.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddAPhoto = (props) => (
<SvgIcon {...props}>
<path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-... |
vam-client/src/views/desktop/PatientDemographicsView.js | vistadataproject/nodeVISTAClients | import React from 'react';
import classNames from 'classnames';
import format from 'date-fns/format';
import differenceInYears from 'date-fns/difference_in_years';
import Control from '~/react-views/Control';
import './demographics.css';
class PatientDemographicsView extends Control {
render() {
let pat... |
tests/Rules-isInt-spec.js | aesopwolf/formsy | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
src/svg-icons/editor/pie-chart.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
src/components/store.js | AdinoyiSadiq/back-office-tool | import React from 'react';
import Inventory from './inventory';
import Cart from './cart';
class Store extends React.Component {
render() {
return (
<div className="content container">
<div className="row">
<Inventory
carpets={this.props.carpets}
juice={this.props.juice}
addToCart... |
src/index.js | LiveTyping/android-colors | import React from 'react';
import { render } from 'react-dom';
import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import createHashHistory from 'history/createHashHistory';
import { Route } from 'react-router';
impo... |
packages/ringcentral-widgets/components/AlertRenderer/CallingSettingsAlert/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import callingSettingsMessages from 'ringcentral-integration/modules/CallingSettings/callingSettingsMessages';
import FormattedMessage from '../../FormattedMessage';
import i18n from './i18n';
function CallingSettingsAlert({
message: { message },
curr... |
client/containers/DevTools.js | yvanwangl/React-Blog | 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'>
<LogMonitor /... |
app/containers/Access/index.js | MameeV/suzette | /*
*
* SignIn
*
*/
import React from 'react';
import Helmet from 'react-helmet';
export default class Access extends React.PureComponent {
constructor(props){
super(props);
this.state={
email: "",
password: "",
token: "",
}
}
handleEmail = (event) => {
this.setState({
... |
src/renderer/components/notification.js | sirbrillig/gitnews-menubar | import React from 'react';
import Gridicon from 'gridicons';
import debugFactory from 'debug';
import date from 'date-fns';
import EnsuredImage from './ensured-image';
import MuteIcon from './mute-icon';
const debug = debugFactory('gitnews-menubar');
export default function Notification({
note,
openUrl,
markRead,
... |
app/javascript/mastodon/features/ui/components/actions_modal.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
docs/src/sections/PageHeaderSection.js | Lucifier129/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PageHeaderSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/pages/Login.js | GamerZUnited/GamerZUninted-FrontEnd | import React from 'react'
import {connect} from 'react-redux'
import {pushState } from 'redux-router'
import * as Actions from '../actions/AppActions'
import TestComponent from '../components/TestComponent';
@connect(
state => ({
login: state.login
})
)
class Login extends React.Component {
componentWillRe... |
src/components/Provider/index.js | orionsoft/parts | import React from 'react'
import Message from './Message'
import Modal from './Modal'
import MeProvider from './MeProvider'
import PropTypes from 'prop-types'
import ModalContext from './Modal/Context'
export default class OrionsoftProvider extends React.Component {
static propTypes = {
children: PropTypes.node,... |
src/js/services/noti_service/notiProviders/SessionNoti.js | KyberNetwork/KyberWallet |
import React from 'react'
export default class SessionNoti extends React.Component {
setNewTx(tx) {
if (window.kyberBus){
window.kyberBus.broadcast("swap.one.created", {
tx_hash: tx.hash,
display_status: tx.status ? tx.status : "pending",
statu... |
src/components/UserInfo.js | rollo-zhou/look | import React from 'react';
import {
ActivityIndicator,
StyleSheet,
Image,
Text,
View,
ListView,
TouchableOpacity
} from 'react-native';
import Dimensions from 'Dimensions';
const {width, height} = Dimensions.get('window');
import globalVariables from '../globalVariables.js';
import Icon from 'react-nativ... |
web-app/src/pages/show/ShowQuestion.js | Charterhouse/NextBuild2017 | import React from 'react'
import { Alert, Form, FormGroup, FormControl, Col, ControlLabel } from 'react-bootstrap'
import Button from 'react-bootstrap-button-loader'
class ShowQuestion extends React.Component {
constructor (props) {
super(props)
this.state = {
question: '',
guess: '',
isLoa... |
packages/demos/forms-demo/src/components/CurrentView/index.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { state } from 'cerebral/tags'
import Simple from '../Simple'
const VIEWS = {
Simple,
}
export default connect(
{
currentView: state`app.currentView`,
},
function CurrentView({ currentView }) {
const View = VIEWS[currentView]
... |
src/svg-icons/maps/satellite.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSatellite = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.... |
src/svg-icons/image/assistant.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11... |
site/components/SideBar.js | hiddentao/react-dnd | import React from 'react';
import './SideBar.less';
export default class SideBar {
render() {
return (
<div className="SideBar">
<div className="SideBar-content">
{this.props.groups.map(this.renderGroup, this)}
</div>
</div>
);
}
renderGroup({ title, pages}, index) ... |
js/App/Components/TabViews/TabsView.ios.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
docs/src/sections/CustomStylesSection.js | mmarcant/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function CustomStylesSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anchor id="custom-styles">Custom S... |
app/components/peoplelist/peoplelist.js | hichameyessou/blip |
/**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
src/svg-icons/image/crop-original.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/tram.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsTram = (props) => (
<SvgIcon {...props}>
<path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 20h-.08c1.69 0 2.58-1.... |
src/layout/Main.js | Moovashaka/moovaShaka | import React from 'react';
import { ContactForm } from '../components/contactForm.js';
export default class Main extends React.Component {
state = {
fields: {}
};
onChange = updatedValue => {
this.setState({ fields: {
...this.state.fields,
...updatedValue }});
}
render () {
retu... |
src/components/Dimensions.js | nextensions/photoBooth | const _debounce = require('lodash.debounce')
const React = require('react')
const onElementResize = require('element-resize-event')
function defaultGetDimensions (element) {
return [element.clientWidth, element.clientHeight]
}
/**
* Wraps a react component and adds properties `containerHeight` and
* `containerWid... |
src/views/fileuploader.react.js | Cron-J/CSV-REE | import React from 'react';
import Dropzone from 'react-dropzone';
class Fileuploader extends React.Component {
constructor(props) {
super(props);
this.state = {error: ''};
}
componentWillReceiveProps(nextProps) {
this.props = nextProps;
}
onDrop = (files, e) => {
if (files.length > 0) {
... |
src/components/ActionMenu/ActionMenu.js | ConciergeAuctions/react-mui-table | // @flow
import React, { Component } from 'react';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import { lightBlack } from 'material-ui/styles/colors';
import ActionMenuItem from './ActionMenuItem';
... |
frontend/src/Settings/ImportLists/ImportLists/ImportListsConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteImportList, fetchImportLists, fetchRootFolders } from 'Store/Actions/settingsActions';
import createSortedSectionSelector from 'Store/Selectors/c... |
frontend/app/score.js | bow-fujita/jacc-halloween | /**
* Copyright (C) 2018 Hiro Fujita <bow.fujita@gmail.com>
*/
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import {
Button
, ButtonGroup
} from 'react-bootstrap';
import Header from './header';
import Table from './table';
import Ajax from './ajax';
i... |
src/svg-icons/content/content-paste.js | pancho111203/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... |
src/views/Comment/CommentText.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A comment can contain text.
*/
function CommentText(props) {
const { className, children, content } = props
... |
admin/client/components/FlashMessages.js | andreufirefly/keystone | import React from 'react';
import { Alert } from 'elemental';
var FlashMessage = React.createClass({
displayName: 'FlashMessage',
propTypes: {
message: React.PropTypes.oneOfType([
React.PropTypes.object,
React.PropTypes.string,
]),
type: React.PropTypes.string,
},
renderMessage (message) {
if (typeof... |
client/src/App.js | xmas-bunch/amigo-invisible | import React, { Component } from 'react';
import axios from 'axios';
import Message from './components/Message';
import Auth from './components/Auth';
import Gifts from './components/Gifts';
import './App.css';
class App extends Component {
constructor(){
super();
this.state = {
users:... |
src/components/Layout.js | joellanciaux/Griddle | import React from 'react';
const component = ({Table, Pagination, Filter, SettingsWrapper, Style, className, style}) => (
<div className={className} style={style}>
{Style && <Style />}
<Filter />
<SettingsWrapper />
<Table />
<Pagination />
</div>
)
export default component;
|
src/components/start-game/start-game.js | greaveselliott/rock-paper-scissors | import React from 'react';
import './start-game.scss';
import Logo from '../logo';
import Heading from '../heading';
import ButtonToggleMode from '../button-toggle-mode';
import Button from '../button';
import { connect } from 'react-redux';
import { start_game } from '../../logic/actions';
export const StartGame = ({... |
src/svg-icons/image/brightness-7.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness7 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69... |
src/app.js | chaoming56/react-blog | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/app_container'
/* --------------------
实例化 Store
-------------------- */
const initialState = window.___INITIAL_STATE__
const store = createStore(initialState)
/* --------... |
src/containers/transitionTo.js | danielriley06/react-redux-chat-example | import React from 'react'
import { connect } from 'react-redux'
import { browserHistory, Router } from 'react-router'
import log from 'middleware/logger'
export function transitionTo (Component) {
class transitionToComponent extends React.Component {
static propTypes = {
auth: React.PropTypes.object.isReq... |
client/src/components/Signup/ProSignup.js | Darkrender/raptor-ads | import React, { Component } from 'react';
import { Button, Form, Grid, Header, Icon } from 'semantic-ui-react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { changeSignupField, customerSignup, clearErrors } from '../../actions';
class ProSignup extends Component {
constructor(p... |
src/tick-trade/TickTradeMobile.js | qingweibinary/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import TickTradeContainer from './TickTradeContainer';
export default (props) => (
<MobilePage>
<TickTradeContainer compact {...props} />
</MobilePage>
);
|
src/svg-icons/hardware/phonelink.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
src/Grid/components/__tests__/fixtures.js | jmcriffey/react-ui | import React from 'react';
export default {
columns: [{
dataProp: 'id',
name: 'Id',
nameTooltip: 'This is the user id.'
}, {
dataProp: 'name',
name: 'Name',
nameTooltip: 'This is the user\'s name',
render(record, column, row) {
const message ... |
src/svg-icons/action/settings-bluetooth.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/Containers/TriggerContainer.js | sashasushko/moira-front | // @flow
import React from 'react';
import type { ContextRouter } from 'react-router-dom';
import type { IMoiraApi } from '../Api/MoiraAPI';
import type { Trigger, TriggerState } from '../Domain/Trigger';
import type { Metric } from '../Domain/Metric';
import type { Event } from '../Domain/Event';
import { withMoiraApi... |
docs/src/app/components/pages/components/IconButton/ExampleComplex.js | spiermar/material-ui | import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const IconButtonExampleComplex = () => (
<div>
<IconButton tooltip="Font Icon">
<FontIcon className="muidocs-icon-action-home"... |
src/svg-icons/image/linked-camera.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
src/js/system/index.js | tpucci/jobads-webapp | import React from 'react';
export default class NotFound extends React.Component {
render() {
return(
<h1>Not found</h1>
);
}
} |
src/components/HomePage.js | t103z/interview | import React from 'react';
import {Link} from 'react-router';
const HomePage = () => {
return (
<div>
<h1>React Slingshot</h1>
<h2>Get Started</h2>
<ol>
<li>Review the <Link to="fuel-savings">demo app</Link></li>
<li>Remove the demo and start coding: npm run remove-demo</li>
... |
js/components/ReferenceTypeIcon.js | gilesbradshaw/uaQL | 'use strict';
// @flow
import React from 'react';
import Relay from 'react-relay';
import {createContainer} from 'recompose-relay';
import {compose} from 'recompose';
import ActionGrade from 'material-ui/lib/svg-icons/action/grade';
import ActionAssignment from 'material-ui/lib/svg-icons/action/assignment';
import Fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.