path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
actor-apps/app-web/src/app/components/common/Fold.React.js | yangchenghu/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
src/js/completed/index.js | ocamler/expense-www | import $ from 'jquery';
import URI from 'urijs';
import React from 'react';
import { Provider } from 'react-redux';
import ReactDOM from 'react-dom';
import App from './components/app';
import reducers from './reducers';
import createStore from './store';
import { recent_entries_load } from './actions';
const args = ... |
src/svg-icons/editor/format-align-center.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignCenter = pure(EditorFormatAli... |
ajax/libs/yui/3.17.0/event-focus/event-focus-coverage.js | hagabaka/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = ... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet1BarOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet1BarOutlined');
|
react-flux-mui/js/material-ui/src/svg-icons/editor/monetization-on.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... |
UI/src/components/common/Button.js | ssvictorlin/PI | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={ onPress } style={ buttonStyle }>
<Text style={ textStyle }>
{ children }
</Text>
</TouchableOpaci... |
ajax/libs/ui-router-extras/0.0.13/modular/ct-ui-router-extras.sticky.js | terrymun/cdnjs | /**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* Module: sticky
* @version 0.0.13
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function(angular, undefined){
"use strict";
angular.mod... |
packages/material-ui-icons/src/LandscapeTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5 16h3.04l-1.52-2.03z" opacity=".3" /><path d="M9.78 11.63l1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6l-4.22 5.63zM5 16l1.52-2.03L... |
app/counter/containers/orient.js | littlethree/demo | import React, { Component } from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Orientation from '../componets/RCTOrientation';
class orient extends Component {
constructor() {
su... |
src/SignUp.js | MaxLinCode/tardy-HackIllinois-2017 | import React from 'react'
import firebase from 'firebase'
import { auth } from './Auth'
class SignUpForm extends React.Component {
constructor(props) {
super(props);
this.state = {
full_name: '',
email: '',
password: '',
phone: '',
};
this.h... |
src/components/ProductsList.js | caijinchun/hsweb-antd | /**
* Created by Caijc on 2017/5/12.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Table, Popconfirm, Button } from 'antd';
const ProductList = ({ onDelete, products }) => {
const columns = [{
title: 'Name',
dataIndex: 'name',
}, {
title: 'Actions',
render: (text, rec... |
components/KanbanNew.js | bchoe/React-Kanban | import React from 'react';
import { connect } from 'react-redux';
import { moveCards } from '../actions/kanbanActions';
import { newCard } from '../actions/kanbanActions';
import { deleteCard } from '../actions/kanbanActions';
class KanbanNew extends React.Component {
constructor(props) {
super(props);
this.s... |
src/components/google_maps.js | mattstuhring/react_redux_weather | import React from 'react';
import { GoogleMapLoader, GoogleMap } from 'react-google-maps';
export default (props) => {
return (
<GoogleMapLoader
containerElement={ <div style={{height: '100%'}} /> }
googleMapElement={
<GoogleMap defaultZoom={12} defaultCenter={{lat: props.lat, lng: props.lon}... |
src/routes.js | arqex/react-router-boilerplate | 'use strict';
import React from 'react';
import Router, {Route, NotFoundRoute, DefaultRoute} from 'react-router';
import App from './App';
import Home from './ui/Home';
var routes = (
<Route name="app" path="/" handler={ App } >
<DefaultRoute name="home" handler={ Home } />
</Route>
);
export default routes;
|
src/svg-icons/hardware/smartphone.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
src/components/PlayerCard/PlayerDragLayer.js | kyleaclark/nba-trade-machine | import React, { Component } from 'react';
import { DragLayer } from 'react-dnd';
import PlayerCardDragPreview from './PlayerCardDragPreview';
import snapToGrid from '../../utils/snapToGrid';
const layerStyles = {
position: 'fixed',
pointerEvents: 'none',
zIndex: 100000
};
function getItemStyles(props) {
cons... |
blueocean-material-icons/src/js/components/svg-icons/action/opacity.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.... |
src/components/LoginUserRoute.js | lukin-deema/FileSystem | import React from 'react';
import UsersLoginConnected from '../containers/UsersLogin';
import UsersList from '../containers/UsersList';
const LoginUserRoute = () => (
<div>
<div>LoginUserRoute</div>
<UsersLoginConnected/>
<UsersList/>
</div>
);
export default LoginUserRoute;
|
src/index.js | deepaksisodiya/webpack-react-redux | /**
* Created by deepaksisodiya on 15/12/15.
*/
import React from 'react';
import ReactDOM from 'react-dom';
function counter(state, action) {
if (typeof state === 'undefined') {
return 0;
} else if (action.type === 'INCREMENT') {
return state + 1;
} else if (action.type === 'DECREMENT') {
return... |
react16-feature/src/ErrorBoundary.js | wefine/reactjs-guide | import React, { Component } from 'react';
export default class ErrorBoundary extends Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
componentDidCatch(err, info) {
console.log(err, info);
this.setState({ hasError: true });
// send... |
node_modules/re-base/examples/firebase/chatapp/src/App.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import Container from './components/Container';
import NewChat from './components/NewChat';
console.log('Please change to your own firebase address in src/App.js');
import base from './rebase';
class Main extends React.Component {
constructor(props) {
... |
src/utils/__tests__/keyMirror-test.js | varunparkhe/react | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/containers/Dashboard/index.js | mrnav90/react-enigma-employee | import React from 'react';
import {MasterLayout} from 'components/Layout';
export default class Dashboard extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<MasterLayout>
<div className="dashboard">Dashboard</div>
</MasterLayout>
);
}
}
|
src/js/components/grid_form/grid_form.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import _ from 'lodash';
import { uuid } from '../../utils';
import { autobind, mixin } from '../../utils/decorators';
import { RestClient } from '../../services/http';
import { Grid } from '../grid';
import { Form } from '../form';
imp... |
src/js/components/PleaseWaitModal.js | vbence86/project-bea | import React from 'react';
export default class PleaseWaitModal extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
modelId: React.PropTypes.string.isRequired,
}
static defaultProps = {
title: 'Please wait',
modalId: 'please-wait-modal'
};
render() {
... |
ajax/libs/angular.js/0.9.8/angular-scenario.js | jonathantneal/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
Libraries/Lists/__tests__/VirtualizedList-test.js | shrutic123/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use str... |
classic/src/scenes/mailboxes/src/Components/Backed/ServiceAvatar.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import { accountStore } from 'stores/account'
import shallowCompare from 'react-addons-shallow-compare'
import Resolver from 'Runtime/Resolver'
import ACAvatarCircle2 from 'wbui/ACAvatarCircle2'
export default class ServiceAvatar extends React.Component {
... |
ajax/libs/js-data/2.0.0-beta.9/js-data-debug.js | shelsonjava/cdnjs | /*!
* js-data
* @version 2.0.0-beta.9 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
src/components/PageNotFound.js | jpirsch/jpirsch.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { Code } from '../styles/style';
import s from '../styles/pageNotFound.style';
const propTypes = {
location: PropTypes.object.isRequired,
};
export default function PageNotFound({ location }) {
return (
<p style={s.p}>
Page not found ... |
src/containers/stationData/ShortCountSpeedForStation.js | availabs/avail_app_bootstrap | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay';
import relay from '../../relay.js';
// https://github.com/facebook/relay/issues/1851
const q = graphql`
query ShortCountSpeedForStationQuery($condition: ShortCountSpeedCondition!) {
allShortCountSpeeds(condition: $condition) {
... |
src/svg-icons/image/filter-frames.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
server/sonar-web/src/main/js/apps/settings/licenses/LicensesAppHeader.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... |
ajax/libs/yui/3.11.0/datatable-core/datatable-core.js | OnsenUI/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/main/frontend/src/script/userApp/views/pages/sign-up/index.js | m544498510/may-swim-app | /**
* @author May
* @version 1.0.0
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import SignUpForm from '../../components/signUpForm';
import {userActions, getEmailErrorInfo,getSecondPsdErrorInfo} from 'user... |
client/views/teams/contextualBar/info/Leave/LeaveTeamModal.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import LeaveTeamModal, { StepOne, StepTwo } from '.';
export default {
title: 'teams/LeaveTeamModal',
component: LeaveTeamModal,
};
const commonProps = {
onConfirm: () => {},
onCancel: () => {},
};
const rooms = Array.from({ length: 15 }).map((_, i) => ({
rid: i,
fname: i,
name: i,... |
ajax/libs/rxjs/2.3.20/rx.lite.js | LSleutsky/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/components/app.js | FinnFrizzle/Weather_Info | import React, { Component } from 'react';
import SearchBar from '../containers/Search_Bar.js'
import WeatherList from '../containers/weather_List.js'
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
Faw.Web.Client/src/routes/Family/Index/components/Family.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import {
Grid,
Cell,
Card,
CardText,
CardActions,
Button,
IconButton,
Menu,
MenuItem,
Textfield
} from 'react-mdl'
import { Link } from 'react-router'
import FamilyFormDialog from './FamilyFormDialog'
import SearchResult from './SearchResult'
import Loading from 'component... |
src/components/common/svg-icons/file/file-download.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileDownload = (props) => (
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</SvgIcon>
);
FileFileDownload = pure(FileFileDownload);
FileFileDownload.displayName = 'FileFileDown... |
code/workspaces/web-app/src/components/stacks/StackCards.spec.js | NERC-CEH/datalab | import React from 'react';
import { shallow } from 'enzyme';
import StackCards from './StackCards';
describe('StackCards', () => {
function shallowRender(props) {
return shallow(<StackCards {...props} />);
}
const generateProps = () => ({
stacks: {
fetching: false,
value: [
{ display... |
files/reactor/1.0.3/reactor.min.js | barisaydinoglu/jsdelivr | /*! Reactor | https://github.com/Sinova/Reactor | (c) 2015 Samuel Hodge | http://www.gnu.org/copyleft/gpl.html */
!function(context){"use strict";function Reactor(fn,context){this instanceof Reactor?(this._val=fn,this._fns={}):(fn=fn.bind(context),top_function?fn():(top_function=all_functions.push(fn),fn(),top_function... |
ajax/libs/clappr/0.0.32/clappr.js | eduardo-costa/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
packages/ringcentral-widgets-docs/src/app/pages/Components/CallItem/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import CallItem from 'ringcentral-widgets/components/CallItem';
const props = {};
props.call = {
direction: 'Inbound',
startTime: 0,
activityMatches: [],
fromMatches: [],
toMatches: [],
from: {
phoneNumber: '+1234567890',
},
to: {},
};
props.ar... |
mockups/viewProject.js | speTortle/codeLaborate | import React, { Component } from 'react';
import Header from './header';
class ViewProject extends Component {
render() {
return (
<div>
<Header changeView = {this.props.changeView}/>
<section id="main">
<div className="container">
<div className="content">
... |
react/single-page/src/components/Menu.js | leovant/examples | import React from 'react';
import { Link } from 'react-router-dom';
const Menu = () => {
return(
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/works">Works</Link></li>
<li><Link to="/about">About</Link></li>
</ul>
);
}
export default Menu;
|
ajax/libs/6to5/1.14.11/browser.js | jonobr1/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/action/flight-land.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
assets/js/components/HomePageReactTitle.js | lucabezerra/DjangoTodoList | import React, { PropTypes } from 'react';
const HomePageReactTitle = ({ title }) => {
const homeURL = window.Django.url('home');
return <h2>{title} (this is page {homeURL})</h2>;
};
HomePageReactTitle.propTypes = {
title: PropTypes.string.isRequired,
};
export default HomePageReactTitle;
|
src/components/MarkupButton.js | upworthy/react-mobiledoc-editor | import PropTypes from 'prop-types';
import React from 'react';
import titleCase from '../utils/titleCase';
const MarkupButton = ({ tag = '', type = 'button', children = titleCase(tag), className, activeClassName = 'active', ...props }, { editor, activeMarkupTags = []}) => {
const onClick = () => editor.toggleMarkup(... |
src/index.js | xangxiong/xim-js | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { combineReducers, createStore, applyMiddleware } from 'redux';
import { sessionService, sessionReducer } from 'redux-re... |
react-backend/client/src/components/TaskEdit/index.js | JonasJan89/JSChallenge | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import './index.css';
export default class TaskEdit extends Component {
constructor(props) {
super(props);
this.state = {
taskId: props.match.params.id,
};
}
component... |
13/notes/src/index.js | nanohop/hop_into_react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
packages/veritone-react-common/src/components/Lozenge/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import Lozenge from './';
storiesOf('Lozenge', module)
.add('Base', () => {
return <Lozenge>Foo</Lozenge>;
})
.add('With Custom Background Colors', () => {
return (
<div>
<div style={{ marginBottom: '10px' }}>
... |
ios/versioned-react-native/ABI9_0_0/Libraries/LayoutAnimation/LayoutAnimation.js | jolicloud/exponent | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
techCurriculum/ui/starter_code/cards-app/src/App.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
docs/src/components/Github.js | sghall/resonance | // @flow weak
import React from 'react'
import SvgIcon from '@material-ui/core/SvgIcon'
function Github(props) {
return (
<SvgIcon {...props}>
<path d="M12.007 0C6.12 0 1.1 4.27.157 10.08c-.944 5.813 2.468 11.45 8.054 13.312.19.064.397.033.555-.084.16-.117.25-.304.244-.5v-2.042c-3.33.735-4.037-1.56-4.037-... |
ajax/libs/aui/5.6.10/aui/js/aui-all.js | MisatoTremor/cdnjs | !function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(.... |
src/frontend/components/manage.js | PiGarageDoor/garage-pi | import React from 'react';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-button';
import Divider from 'material-ui/lib/divider';
import Paper from 'material-ui/lib/paper';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
impor... |
es/components/catalog-view/catalog-turn-back-page-item.js | cvdlab/react-planner | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
src/browser/main.js | nikolalosic/este-app--assignment | import React from 'react';
import ReactDOM from 'react-dom';
import configureReporting from '../common/configureReporting';
import configureStore from '../common/configureStore';
import createRoutes from './createRoutes';
import createStorageEngine from 'redux-storage-engine-localstorage';
import useScroll from 'react-... |
Bellicus/node_modules/express/node_modules/debug/src/browser.js | VEymeric/FunLand | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
client/components/ClearHistory.js | gut-js/gut | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
class ClearHistory extends React.Component {
constructor(){
super();
this.handleClearHistory = this.handleClearHistory.bind(this);
}
handleClearHistory(){
const { username } = this.props;
const { clearHistory } = this.pr... |
app/src/index.js | mexskican/dapp | import React from 'react';
import ReactDOM from 'react-dom';
import Nav from './components/Navbar';
ReactDOM.render(
<Nav />,
document.getElementById('root')
) |
frontend/src/components/Home/NoResults.js | VitaC123/YouTube-Mixtape | import React from 'react';
import { Alert } from 'reactstrap';
const NoResults = props => {
const { errors } = props;
if (errors.recent && errors.recent.message.includes('No results')) {
return (
<Alert color='danger'>
<p className='text-center'>{errors.recent.message}</p>
</Alert>... |
ajax/libs/react-router/2.2.2/ReactRouter.js | iwdmb/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
wp-content/plugins/jquery-updater/js/jquery-1.6.4.min.js | juansalvatella/dosnoventa | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe... |
app/scripts/content/footer.js | SF-Housing-Visualization/mids-sf-housing-visualization | import React from 'react';export default class extends React.Component { constructor(props) { super(props); } render() { return ( <div> <h3>What Is This?</h3>
<p>This was created by <em>Ross Boberg</em>, <em>John Bocharov</em>, and <em>Angela Gunn</em> to help people explore some great data already avail... |
packages/material-ui-icons/src/AllInclusiveTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 ... |
app/client/components/map/Story.js | breakfast-mimes/cyber-mimes | import React from 'react';
export default class Story extends React.Component {
constructor(props) {
super(props);
this.state = {
}
}
render(){
const { row, col, messages} = this.props;
return(
<div className='noSelect'>
{messages[row] ? messages[row][col] : "No Messages"}
... |
src/components/Common/PublicationInfo/index.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
/**
* [IV]
* View Import
*/
import Common from './Views/Common';
/**
* [ICONF]
* Config Import
*/
import config from './config';
/**
* [IRDX]
* Redux connect (optional)
*/
@connect((state) => {... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | luwei2012/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/client/index.js | tajo/devstack | import React from 'react';
import ReactDOM from 'react-dom';
import Main from './main';
const rootEl = document.getElementById('app-root');
ReactDOM.render(<Main />, rootEl);
if (module.hot) {
module.hot.accept('./main', () => {
const NextApp = require('./main').default; // eslint-disable-line
ReactDOM.rend... |
web/app/themes/0031flyfishing/js/webpack.config.js | vincent-derks/react-0031flyfishing | const prod = process.argv.indexOf('-p') !== -1;
if(prod){
var webpack = require('webpack');
var query = {
babelrc: false,
presets: [
'es2015',
'stage-0',
'react',
'env',
],
plugins: [
'transform-decorators-legacy',
... |
ajax/libs/vee-validate/2.0.0-rc.8/vee-validate.js | him2him2/cdnjs | /**
* vee-validate v2.0.0-rc.8
* (c) 2017 Abdelrahman Awad
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.VeeValidate = factory());
}(this, (function... |
js/components/Header/8.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, Subtitle } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import... |
packages/react-router-dom/modules/__tests__/utils/renderStrict.js | rackt/react-router | import React from "react";
import ReactDOM from "react-dom";
import StrictMode from "./StrictMode.js";
function renderStrict(element, node) {
ReactDOM.render(<StrictMode>{element}</StrictMode>, node);
}
export default renderStrict;
|
ajax/libs/6to5/1.11.7/browser.js | sujonvidia/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/angular.js/0.9.7/angular-scenario.min.js | hippich/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/App.js | awayken/2016-Christmas-Card | import React, { Component } from 'react';
// Import Styles
import './App.css';
// React Components
import Chooser from './Chooser';
import Page from './Page';
import Catcher from './Catcher';
import Pokemon from './Pokemon';
// Pokédex data
import pokedex from './_pokedex';
// Create our family of Pokémon
var famil... |
app/tests/components/MainSection-test.js | Faeltchen/4f | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import MainSection from '../components/MainSection';
import TopicItem from '../components/TopicItem';
const emptyData = [];
const topicItemData = [{
text: '',
id: '',
index: 0,
onIncrement: () => {},
onDecrement: () => {}... |
src/components/Instruction.js | nebgnahz/style-guess | import React from 'react';
const title = "What's my wedding style?";
function Instruction(props) {
const handleStart = (e) => {
props.clicked()
}
var divStyle = {
'backgroundImage': "url(" + props.background + ")",
'backgroundRepeat': "no-repeat",
'backgroundSize': '100%'
};
return (
<... |
examples/counter/src/index.js | Lucifier129/refer | import React from 'react'
import App from './container/App'
React.render(
<App />,
document.getElementById('container')
)
|
ajax/libs/react-select/1.0.0-beta14/react-select.js | seogi1004/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}... |
App/navigation/AddContactScreen.js | thekelvinliu/capchat | import React, { Component } from 'react';
import { Button, Text } from 'react-native';
import { connect } from 'react-redux';
import { addContact } from '../ducks/contacts';
import FlexItem from '../components/FlexItem';
import FlexWrapper from '../components/FlexWrapper';
import TextPrompt from '../components/TextPr... |
docs/app/Examples/collections/Grid/Variations/GridExamplePaddedHorizontally.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExamplePaddedHorizontally = () => (
<div>
<p>The following grid has horizontal gutters.</p>
<Grid columns={2} padded='horizontally'>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.p... |
client/modules/user/components/.stories/email_verification.js | BitSherpa/expensius | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import EmailVerification from '../email_verification.jsx';
storiesOf('user.EmailVerification', module)
.add('default view', () => {
return (
<EmailVerification />
);
})
|
app/javascript/mastodon/components/autosuggest_hashtag.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ShortNumber from 'mastodon/components/short_number';
import { FormattedMessage } from 'react-intl';
export default class AutosuggestHashtag extends React.PureComponent {
static propTypes = {
tag: PropTypes.shape({
name: PropTypes.string... |
app/javascript/mastodon/components/relative_timestamp.js | tri-star/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
today: { id: 'relative_time.today', defaultMessage: 'today' },
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time... |
modules/dreamview/frontend/src/components/DefaultRouting/DefaultRoutingPoint.js | ApolloAuto/apollo | import React from 'react';
import { observer } from 'mobx-react';
import RadioItem from 'components/common/RadioItem';
@observer
export default class DefaultRoutingPoint extends React.Component {
render() {
//Navigation mode not considered
const { routeEditingManager, options } = this.props;
const inRou... |
examples/with-afterjs/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { ensureReady, After } from '@jaredpalmer/after';
import './client.css';
import routes from './routes';
ensureReady(routes).then(data =>
hydrate(
<BrowserRouter>
<After data={data} route... |
test/integration/react-18/app/components/promise-cache.js | azukaru/next.js | import React from 'react'
const PromiseCacheContext = React.createContext(null)
export const cache = new Map()
export const PromiseCacheProvider = PromiseCacheContext.Provider
export function useCachedPromise(key, fn, thrown = false) {
const cache = React.useContext(PromiseCacheContext)
if (!thrown) return unde... |
src/shared/js/components/StackChart.js | datalocale/dataviz-finances-gironde | import { scaleLinear } from 'd3-scale';
import { min, max, sum } from 'd3-array';
import React from 'react';
import LegendList from './LegendList';
import D3Axis from './D3Axis';
/*
This component displays a stackchart and a legend if there is a legend.
Colors are attributed by this component via the use of ... |
src/project/FileSyncManager.js | arduino-org/ArduinoStudio | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 limitation
* the ri... |
ajax/libs/es6-shim/0.20.1/es6-shim.js | dhowe/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.20.1
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
senic_hub/frontend/src/SetupNuimo.js | grunskis/senic-hub | import React, { Component } from 'react';
import { Link } from 'react-router';
import './SetupNuimo.css'
class SetupNuimo extends Component {
constructor() {
super()
this.state = {
nuimos: []
}
}
render() {
return (
<div className="SetupNuimo">
<p>We're now looking for your ... |
Realization/frontend/czechidm-core/src/components/advanced/LongRunningTask/LongRunningTask.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import EntityInfo from '../EntityInfo/EntityInfo';
import OperationResult from '../OperationResult/OperationResult';
import OperationResultDownloadButton from '../OperationResul... |
src/containers/Home/Home.js | martinrp/reduxgitresume | import React, { Component } from 'react';
import config from '../../config';
import { GitNameForm } from 'components';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
r... |
src/svg-icons/action/card-giftcard.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.