path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
webpack.config.prod.js
CityRay/React15-Todo-List
var webpack = require('webpack'), path = require("path"), // Strip console.log or console.warn WebpackStrip = require('strip-loader'); module.exports = { entry: './client/client.js', output: { path: path.resolve(__dirname, "dist"), filename: 'bundle.js', publicPath: '/' ...
karma-js.conf.js
resalisbury/angular
var sauceConf = require('./sauce.conf'); // Karma configuration // Generated on Thu Sep 25 2014 11:52:02 GMT-0700 (PDT) module.exports = function(config) { config.set({ frameworks: ['jasmine'], files: [ // Sources and specs. // Loaded through the System loader, in `test-main.js`. {pattern...
src/Toast.js
15lyfromsaturn/react-materialize
import React from 'react'; import cx from 'classnames'; import Button from './Button'; class Toast extends React.Component{ constructor(props) { super(props); this.onClick = this.onClick.bind(this); } render() { let classes = { toast: true, rounded: this.props.rounded }; let {cl...
ajax/libs/js-data/2.8.2/js-data-debug.js
viskin/cdnjs
/*! * js-data * @version 2.8.2 - 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 webpackUniversalModul...
ajax/libs/yui/3.6.0pr3/datatable-core/datatable-core-debug.js
freak3dot/cdnjs
YUI.add('datatable-core', function(Y) { /** 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.isObject, ...
src/Well.js
Lucifier129/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import bootstrapUtils, { bsSizes, bsClass } from './utils/bootstrapUtils'; import { Sizes } from './styleMaps'; @bsClass('well') @bsSizes([Sizes.LARGE, Sizes.SMALL]) class Well extends React.Component { render() { let classes = bootstrapUtils.getCla...
docs/src/app/components/pages/components/List/ExampleContacts.js
ichiohta/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'mater...
app/components/Settings.js
xiangxn/btsgo
/** * Created by necklace on 2016/12/21. */ import React from 'react'; class Settings extends React.Component { constructor(props) { super(props); } render() { return ( <div className="content vertical-flex vertical-box"> {this.props.children} </di...
blueocean-dashboard/src/test/js/ansi-spec.js
jenkinsci/blueocean-plugin
import { assert } from 'chai'; import React from 'react'; import { tokenizeANSIString, parseEscapeCode, makeReactChildren, } from '../../main/js/util/ansi'; describe('ansi', () => { describe('react element generator', () => { describe('unstyled text', () => { it('will not wrap si...
src/stories/index.js
soulhat/galaxy
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import { Button, Welcome } from '@storybook/react/demo'; storiesOf('Welcome', module).add('to Storybook', () => ( <Welcome showApp={linkTo('Bu...
client/modules/users/components/.stories/sign_up.js
StorytellerCZ/Socialize-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import SignUp from '../sign_up.jsx'; storiesOf('users.SignUp', module) .add('default view', () => { return ( <SignUp /> ); })
src/components/CommentsForm/CommentsForm/CommentsForm.js
easingthemes/notamagic
import React from 'react'; /** * React component implementation. * * @author dfilipovic * @namespace ReactApp * @class CommentsForm * @extends ReactApp */ export class CommentsForm extends React.Component { // ----------------------------------------------------------------------------------------------------...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/friends/Friends.entry.js
Brandon-J-Campbell/codemash
import React from 'react'; import getFriendsFromApi from './get-friends-from-api'; import Friends from './Friends'; export default class FriendsEntry extends React.Component { state = { friends: [] } async componentDidMount() { const friends = await getFriendsFromApi(); this.setState({ frien...
src/svg-icons/av/note.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNote = (props) => ( <SvgIcon {...props}> <path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/> </SvgIcon> ); AvNote = pure(AvNote); AvNote....
springboot/GReact/node_modules/react/lib/React.js
ezsimple/java
/** * Copyright 2013-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 strict...
.history/src/components/Row_20170804010948.js
radubrehar/evanghelic.ro
import React from 'react'; import { css } from 'glamor'; const mainCls = css({ margin: '0 auto', maxWidth: 960, padding: '0px 1.0875rem 1.45rem' }); const Row = ({ style, children }) => { return ( <div className={mainCls} style={style}> {children} </div> ); }; export default Row;
inc/lib/jquery-1.11.2.min.js
braunsg/passing-the-beat
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/components/App.js
simnau/event-scraper-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route, } from 'react-router-dom'; import { Grid, Row, Col } from 'react-flexbox-grid'; import isAuth from './security/isAuthenticated'; import Home from './Home'; import Event from './event/EventContainer'; import Events from './event/...
lib/yuilib/2in3/2.9.0/build/yui2-yuiloader/yui2-yuiloader.js
dilawar/moodle
YUI.add('yui2-yahoo', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{}); YUI.add('yui2-get', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{"requires": ["yui2-yahoo"]}); YUI.add('yui2-yuiloader', function(Y) { /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: htt...
src/svg-icons/maps/layers-clear.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-...
test/helpers/shallowRenderHelper.js
Yuicon/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/components/Page.js
Ciunkos/ciunkos.com
import React from 'react' import { Helmet } from 'react-helmet' import styled from 'styled' import Header from './Header' import Footer from './Footer' const Page = ({ children, subheader, header = <Header subheader={subheader} />, footer = <Footer />, title, description, ...rest }) => ( <styled.Page ...
src/shared/components/DemoApp/Header/Logo/Logo.js
LorbusChris/react-universally
/* @flow */ import React from 'react'; import logo from './logo.png'; function Logo() { return ( <img src={logo} alt="Logo" style={{ width: '100px' }} /> ); } export default Logo;
src/components/regions/SkillsRegion.js
WillMayger/CV
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Container from '../containers/Container'; import Skill from '../skills/Skill'; import StandardText from '../text/StandardText'; class SkillsRegion extends Component { constructor() { super(); this.state = { selected: ...
src/pages/index.js
codeformuenster/weihnachtsmarkt
import React from 'react' import Layout from '../components/layout' import ConnectedMap from '../containers/Map/Map' const IndexPage = () => { return ( <Layout layout="map"> <ConnectedMap /> </Layout> ) } export default IndexPage
packages/react-server-website/components/Markdown.js
redfin/react-server
import PropTypes from 'prop-types'; import React from 'react'; import Remarkable from 'remarkable'; import hljs from '../lib/highlight.js'; import {logging, navigateTo} from 'react-server'; import './Markdown.less'; const logger = logging.getLogger(__LOGGER__); export default class Markdown extends React.Component...
src/routes/search-help/index.js
LevelPlayingField/levelplayingfield
/* @flow */ /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import SearchHelp f...
ajax/libs/yui/3.4.0/simpleyui/simpleyui.js
gokuale/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** * The YUI global names...
tests/Frontend/mask.js
ptphp/ptphp
/** * Created by jf on 15/12/9. */ "use strict"; import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {Mask} = WeUI; describe('<Mask></Mask>', ()=> { [true, false].map((transparent) => { describe(`<Mask transparent=${transpare...
src/components/Header.spec.js
yunbumsung/react-markdown-editor
import React from 'react' import { createRenderer } from 'react-test-renderer/shallow'; import Header from './Header' import MeetingMinuteTextInput from './MeetingMinuteTextInput' const setup = () => { const props = { addMeetingMinute: jest.fn() } const renderer = createRenderer(); renderer.render(<Heade...
website/src/components/Game.js
jwngr/notreda.me
import _ from 'lodash'; import React from 'react'; import Media from 'react-media'; import format from 'date-fns/format'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Score, GameDate, Location, ScoreResult, ScoreTotals, OpponentLogo, OpponentName, AwayGamePrefix, ...
components/org.wso2.carbon.business.rules.templates.editor.core/src/main/react/index.js
mohanvive/carbon-analytics
/* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
src/ButtonToolbar.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
docs/src/app/components/pages/components/Stepper/CustomIcon.js
andrejunges/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import WarningIcon from 'material-ui/svg-icons/alert/warning'; import {red500} from 'material-ui/styles/colors'; /** * Custom icons can be used to create different visual states. */ class CustomIcon extends React.Compon...
js/faqmanage.js
iCassius/HUDBT
$(function() { "use strict"; var tabModified = false, accordionModified = false, confirmOnClose = function() { if (tabModified || accordionModified) { $(window).on('beforeunload', function() { return 'You have unsaved modifications!' }); } else { $(window).off('beforeunload'); } ...
example/src/client.js
zinserjan/r26r-supervisor
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, useRouterHistory } from 'react-router'; import { Provider } from 'react-redux'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import renderClient from 'r26r-supervisor/lib/client'; import configure from 'r26r-superviso...
billing-ui/src/App.js
CancerCollaboratory/billing
/* * Copyright 2016(c) The Ontario Institute for Cancer Research. All rights reserved. * * This program and the accompanying materials are made available under the terms of the GNU Public * License v3.0. You should have received a copy of the GNU General Public License along with this * program. If not, see <http:...
src/svg-icons/action/assignment-turned-in.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
app/components/HomeScreen.js
abiduzz420/learn-anything-mobile
import React, { Component } from 'react'; import { View, Image } from 'react-native'; import SearchBox from './SearchBox.js'; import icon from '../../android/app/src/main/res/drawable-mdpi/icon.png'; export default class HomeScreen extends Component { render() { return ( <View style={{ justifyContent: 'ce...
src/components/Footer/Social/Social.js
Tarabyte/foodlr-web
import React from 'react' import { injectIntl, intlShape } from 'react-intl' import SocialLink from './SocialLink' const Social = props => { const { intl: { formatMessage } } = props const { fb, vk, ok } = require('./Social.messages').default // eslint-disable-line global-require // eslint-disable-...
jenkins-design-language/src/js/components/material-ui/svg-icons/device/dvr.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 4H5v2h2v-2z"/> </SvgIcon> ); De...
js2/AsyncRoute.js
JRFrazier/complete-intro-to-react
import React from 'react' const { object } = React.PropTypes const AsyncRoute = React.createClass({ propTypes: { props: object, loadingPromise: object }, getInitialState () { return { loaded: false } }, componentDidMount () { this.props.loadingPromise.then((module) => { this.c...
app/components/layout/Settings/Interests.js
communicode-source/communicode
import React from 'react'; import classNames from 'classnames'; import styles from './../../../assets/css/pages/settings.scss'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; class Interests extends React.Component { constructor(props) { super(props); this.props = props; ...
docs/basic/index.js
sk1981/react-header
import React from 'react'; import {render} from 'react-dom'; import {Logo, NavigationList, NavigationItem, Header} from "react-header"; const header = ( <Header> <Logo title="React Header" link="https://github.com/sk1981/react-header" /> <NavigationList> <NavigationItem link="#home" text="Home"/> ...
src/components/SubscribeForm.js
danpersa/remindmetolive-react
import React from 'react'; const SubscribeForm = () => { return ( <section className="pt64 pb64 pt-xs-32 pb-xs-32 bg-secondary"> <div className="container"> <div className="row"> <div className="col-md-10 col-md-offset-1 col-sm-12 text-center"> <h3>Do you like our stories?</h3...
bower_components/webfontloader/lib/webfontloader/demo/public/jquery.min.js
conversation/Chartbuilder
/*! * jQuery JavaScript Library v1.4.3 * 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. ...
examples/chatrooms/web-client/src/components/layout/index.js
475Cumulus/TBone
import React from 'react' import { Container } from 'semantic-ui-react'; import SideBar from '../sidebar'; import RoomList from '../channels/list'; import UserList from '../users/list'; import TitleBar from './title_bar'; import Messages from '../messages/list'; import MessageBar from '../messages/message_bar'; imp...
frontend/src/Activity/Queue/QueueRowConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { grabQueueItem, removeQueueItem } from 'Store/Actions/queueActions'; import createMovieSelector from 'Store/Selectors/createMovieSelector'; import creat...
fields/types/url/UrlField.js
jstockwin/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'URLField', statics: { type: 'Url', }, openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) { href = '...
chapter-05/todo_with_selector/src/todos/views/todos.js
mocheng/react-and-redux
import React from 'react'; import AddTodo from './addTodo.js'; import TodoList from './todoList.js'; import './style.css'; export default () => { return ( <div className="todos"> <AddTodo /> <TodoList /> </div> ); }
app/javascript/mastodon/features/ui/components/link_footer.js
yukimochi/mastodon
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import { invitesEnabled, limitedFederationMode, version, repository, source_url } from 'mastodon/initi...
src/pages/404.js
GeniusWigga/irmua
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/components/profile/Profile.js
mBeierl/Better-Twitch-Chat
import React from 'react'; import { connect } from 'react-redux'; import firebase from 'firebase'; import RaisedButton from 'material-ui/RaisedButton'; import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card'; class Profile extends React.Component { render() { const { user } = this.props; co...
friday-ui/src/Components/PipeLine/index.js
freekbrinkhuis/friday
import React from 'react'; const PipeLine = (props) =>{ if(props.match.params.id){ //get pipeline from db return ( <div> <h1>Edit PipeLine</h1> </div>) } else { return( <div> <h1>New PipeLine</h1> </div>...
src/svg-icons/alert/error.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (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 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
Examples/UIExplorer/NavigatorIOSExample.js
jacobbubu/react-native
/** * The examples provided by Facebook are 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, ...
src/svg-icons/maps/tram.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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 2h...
ajax/libs/mediaelement/2.2.1/jquery.js
Download/cdnjs
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
packages/es-components/src/components/containers/menu/Menu.specs.js
jrios/es-components
/* eslint-env jest */ import React from 'react'; import { fireEvent } from 'react-testing-library'; import Menu from './Menu'; import { renderWithTheme } from '../../util/test-utils'; function buildMenu() { return ( <Menu headerContent="Small Menu" buttonContent="Open Menu" className="test"> <Menu.MenuSe...
tests/mocha/unit-tests/react/components/Template/template.list.spec.js
blueliquiddesigns/gravity-forms-pdf-extended
import React from 'react' import { mount } from 'enzyme' import { Provider } from 'react-redux' import configureStore from 'redux-mock-store' import { HashRouter as Router } from 'react-router-dom' import { TemplateList } from '../../../../../../src/assets/js/react/components/Template/TemplateList' const mockStore = c...
ui/src/components/CollectionList.js
roshiro/openws_one
import React, { Component } from 'react'; import { Link } from 'react-router'; import { List, Button, Table, Icon, Header } from 'semantic-ui-react'; import jQuery from 'jquery'; import './CollectionList.scss'; class CollectionList extends Component { viewCollectionHandler(coll, e) { e.preventDefault() windo...
lib/svg-icons/communication/call-split.js
JonatanGarciaClavo/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var CommunicationCallSplit = React.createClass({ displayName: 'CommunicationCallSplit', mixins: [PureRenderMixin], render: function render() { return React.create...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Revolaution/allAboard
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
test/test_helper.js
nushicoco/books_rabbit
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...
Console/app/src/index.js
RisenEsports/RisenEsports.github.io
// React Components import React from 'react'; import ReactDOM from 'react-dom'; // Application Components import App from './App.js'; // Worker import registerServiceWorker from './registerServiceWorker'; // Create Application ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
stories/components/schoolCard/index.js
tal87/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import SchoolCard from 'shared/components/schoolCard/schoolCard'; import blocJpg from '../../asset/bloc.jpg'; storiesOf('shared/components/schoolCard', module) .add('Default', () => ( <SchoolCard alt="Coder Camps Logo" schoolNa...
example/__tests__/App-test.js
gitboss2000/react-native-swipeable-flat-list
/** * @format */ import 'react-native'; import React from 'react'; import App from '../src/App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { renderer.create(<App />); });
pyxis/views/institute/new.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { Alert, Text, View, Button, StyleSheet, ScrollView } from 'react-native'; import Components from './../../components'; import TextField from './../../components/TextField'; const style = StyleSheet.create({ base: { padding: 24, flex: 1 }, header: { marginBottom: 16 ...
tutorials/react/solution/clients/src/ChannelSelectorWidget.js
StBozov/Core
import React from "react"; import chroma from "chroma-js"; import Select from "react-select"; // The value that will be displayed inside the channel selector widget to leave the current channel. import { NO_CHANNEL_VALUE } from "./constants"; // The CSS for the color dot that will appear next to each item insi...
ajax/libs/forerunnerdb/1.3.407/fdb-core+persist.js
viskin/cdnjs
(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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/addons/__tests__/renderSubtreeIntoContainer.js
bestwpw/react
/** * Copyright 2013-2015, 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...
ajax/libs/handsontable/0.15.0-beta5/handsontable.full.js
raszi/cdnjs
/*! * Handsontable 0.15.0-beta5 * Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright (c) 2012-2014 Marcin Warpechowski * Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com> * Licensed under the MIT license. * http://han...
src/components/RadioButton/RadioButton-story.js
jzhang300/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import RadioButton from '../RadioButton'; const radioProps = { className: 'some-class', }; storiesOf('RadioButton', module) .addWithInfo( 'enabled', ` Radio buttons are used wh...
examples/huge-apps/components/GlobalNav.js
Jastrzebowski/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
ajax/libs/picturefill/3.0.0-rc1/picturefill.js
tholu/cdnjs
/*! Picturefill - v3.0.0-rc1 - 2015-08-21 * http://scottjehl.github.io/picturefill * Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */ /*! Gecko-Picture - v1.0 * https://github.com/scottjehl/picturefill/tree/3.0/src/plugins/gecko-picture * Firefox's early picture ...
node_modules/node_modules/material-ui/svg-icons/notification/do-not-disturb-off.js
SerendpityZOEY/Fixr-RelevantCodeSearch
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/components/Home.js
ArtanisAce/movie-lists
import React from "react"; import styled from "styled-components"; import tmdbLogo from "../svg/powered-by-tmdb.svg"; import SearchBar from "./SearchBar"; import ReactSVG from "react-svg"; const TMDBLogo = styled(ReactSVG)` float: right; height: 48px; width: 122px; margin-right: 16px; `; const Footer = styled...
packages/reactor-tests/src/tests/ReplaceNodeWIthMarkup.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Button } from '@extjs/ext-react'; export default class ReplaceNodeWithMarkup extends Component { state = { showChild: false } toggleChild = () => { this.setState({ showChild: !this.state.showChild }) } render() { ...
examples/01 Dustbin/Single Target/Container.js
numso/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; @DragDropContext(HTML5Backend) export default class Container extends Component { render() { return ( ...
app/containers/PromptContainer.js
luongthomas/React-Portfolio
import React, { Component } from 'react'; import Prompt from '../components/Prompt'; class PromptContainer extends Component { constructor() { super(); this.state = { username: '', }; } handleUpdateUser (event) { this.setState({ username: event.target.value, }); } handleSub...
src/index.dev.js
ryanswapp/react-starter-template
import 'App/style/index'; import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import routes from 'config/routes.js'; import { createStore, compose, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'...
client/components/detail/index.js
burgessa23/tiff-cv-site
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Hero from '../hero'; import Nav from '../nav'; import myData from '../../../config/data.json'; import { Link, withRouter } from 'react-router-dom'; import ScrollToTop from 'react-scroll-up'; import { StickyContainer, Sticky } from 'react...
ajax/libs/intl-tel-input/8.0.1/js/intlTelInput.js
nolsherry/cdnjs
/* * International Telephone Input v8.0.1 * https://github.com/jackocnr/intl-tel-input.git * Licensed under the MIT license */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ],...
src/Parser/AfflictionWarlock/Modules/Features/FatalEchoes.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import { UNSTABLE_AFFLICTION_DEBUFF_IDS } from '../../Cons...
next-express/node_modules/react-proxy/modules/createPrototypeProxy.js
thoughtbit/node-web-starter
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createPrototypeProxy; var _assign = require('lodash/assign'); var _assign2 = _interopRequireDefault(_assign); var _difference = require('lodash/difference'); var _difference2 = _interopRequireDefault(_difference); fun...
examples/flux-utils-todomvc/js/app.js
JanChw/flux
/** * Copyright (c) 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. * * @flow */ 'use s...
src/admin/components/form/index.js
ccetc/platform
import React from 'react' import _ from 'lodash' import component from 'admin/components/component' import { getDefaults, collectData } from './utils' import * as actions from './actions' import Section from './section' class Form extends React.Component { static contextTypes = { flash: React.PropTypes.object ...
client/src/javascript/components/icons/Upload.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class Upload extends BaseIcon { render() { return ( <svg className={`icon icon--upload ${this.props.className}`} viewBox={this.getViewBox()}> <rect x="28.2" y="4.5" width="3.7" height="55.5" /> <polygon points="30...
src/components/Toolbar/ToolbarMenu.js
edmcouncil/specsite
import React from 'react'; import MenuButton from 'react-md/lib/Menus/MenuButton'; import ListItem from 'react-md/lib/Lists/ListItem'; const menuItems = [ <ListItem primaryText="Settings" />, <ListItem primaryText="Help" />, <ListItem primaryText="Feedback" />, ]; const ToolbarMenu = props => ( <MenuButton id...
webclient/home/introduction.js
souravDutta123/Cognitive-Assistant
import React from 'react'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router'; class Introduction extends React.Component { constructor(){ super(); this.state={ height: '', width: '', } this.updateDimensions=thi...
src/Login.js
yoasia/Akademik
import React from 'react'; import axios from 'axios'; import md5 from 'md5'; import { Card, Loader, Image, Segment, Dimmer, Menu, Button, Icon, Grid, Form, Header, Message } from 'semantic-ui-react'; class Login extends React.Component { constructor(props) { super(props); this.state = { logged: ...
docs/src/examples/elements/Step/Content/StepExampleLink.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleLink = () => ( <Step.Group> <Step link> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step.Conte...
src/routes/airrands/index.js
BankaiMikeH/HackWSU2017_AirRands
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
components/reminder-calendar-list.js
lyahdav/qreminders-rn
import React from 'react'; import RNCalendarReminders from 'react-native-calendar-reminders'; import {List, ListItem} from 'react-native-elements'; import {ScrollView} from 'react-native'; export const SCHEDULED_CALENDAR_IDENTIFIER = 'SCHEDULED_CALENDAR_IDENTIFIER'; export class ReminderCalendarList extends React.Com...
src/js/components/icons/base/CaretBack.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
packages/material-ui-icons/src/Comment.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , ...
src/containers/ui/DrawerContainer.js
BrownEPTech/brown-ep-startup-ideas-app
/** * Whole App Container * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { connect } from 'react-redux'; import SideMenu from 'react-native-side-menu'; im...
ajax/libs/video.js/5.0.0-15/video.js
LeaYeh/cdnjs
/** * @license * Video.js 5.0.0-15 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Ve...
ajax/libs/core-js/0.8.0/shim.js
voronianski/cdnjs
/** * Core.js 0.8.0 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ var __e = null, __g = null; (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...
ajax/libs/webshim/1.14.3-RC3/dev/shims/combos/26.js
extend1994/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...