path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/Input.js
victorzhang17/react-bootstrap
import React from 'react'; import InputBase from './InputBase'; import * as FormControls from './FormControls'; import deprecationWarning from './utils/deprecationWarning'; class Input extends InputBase { render() { if (this.props.type === 'static') { deprecationWarning('Input type=static', 'StaticText'); ...
src/Table/TableCell.spec.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import TableCell from './TableCell'; describe('<TableCell />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = getClasses(<Ta...
src/components/Feedback/Feedback.js
Creatrixino/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/component/Blog/List/List.js
myflwq/big-demo
import React, { Component } from 'react'; import map from 'lodash/fp/map'; import axios from 'axios'; import CircularProgress from 'material-ui/CircularProgress'; import BlogCard from './BlogCard.js'; class List extends Component { constructor(){ super(); this.state={ posts: '', wait:true } ...
client/src/components/ring-charts.js
triforkse/mesos-ui
import React from 'react'; import RingChart from './ring-chart'; require('./detail.scss'); export default class RingCharts extends React.Component { render() { return (<div className="details-container"> {this.props.charts.map(c => { return ( <div key={c.id}> <h4 className="d...
src/core/display/App/Component/Main.js
JulienPradet/pigment-store
import React from 'react' import {Match} from 'react-router' import CurrentComponent from './Current' import Feature from '../Feature/Main' const Component = ({component, pathname}) => { return <div> <Match exactly pattern={`${pathname}`} render={({pathname}) => <CurrentComponent component={com...
public/client/routes/setPassword/containers/setPassword.js
Concorda/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import {loadPasswordResetUser, setNewPassword} from '../../../modules/user/actions/index' import {validateSetNewPassword} from '../../../lib/validations' export let SetPassword = React.createClass({ pro...
src/js/components/character-list/character-dashboard.js
trwalker/marvel-react
import React from 'react'; import LoadingProgress from './../shared/loading-progress'; import CharacterListItem from './character-list-item'; import ReloadError from './../shared/reload-error'; class CharacterDashboard extends React.Component { constructor(props) { super(props); this.characterList...
packages/material-ui-icons/src/Brightness3.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z" /> , 'Brightness3');
packages/mui-icons-material/lib/LoginTwoTone.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
src/routes/contact/Contact.js
DaveyEdwards/myiworlds
/** * 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 PropTypes from 'prop-...
src/components/Timestamp/Timestamp-test.js
Climb-social/react-climb-wall
import test from 'tape'; import React from 'react'; import { shallow } from 'enzyme'; import Timestamp from './Timestamp'; test('Timestamp output classes', assert => { const props = { value: 1455702231 }; const output = shallow(<Timestamp {...props} />); assert.plan(2); const expected = true; let a...
src/components/home/index.js
jperocho/webpack-react-boilerplate
import React, { Component } from 'react'; class Home extends Component { render() { return ( <div> <h1>Home</h1> </div> ); } } export default Home;
packages/material-ui-icons/src/FilterFramesSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 4h-6l-4-4-4 4H2v18h20V4zm-2 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12" /></React.Fragment> , 'FilterFramesSharp');
example/index.js
abraztsov/ReactSimpleFlexGrid
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('react-root') );
src/state/export.js
HVF/franchise
import _ from 'lodash' import React from 'react' import * as State from '../state' import * as U from '../state/update' import swal from 'sweetalert2' import { Tooltip, Position, Popover, Menu, MenuItem } from '@blueprintjs/core' import { getDB } from '../db/configure' export default function ExportButton() { ret...
ajax/libs/onsen/1.3.17/js/onsenui.min.js
rlugojr/cdnjs
/*! onsenui - v1.3.17 - 2016-06-29 */ !function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,att...
components/date_picker/DatePicker.js
KerenChandran/react-toolbox
import React from 'react'; import classnames from 'classnames'; import DatePickerDialog from './DatePickerDialog'; import events from '../utils/events'; import Input from '../input'; import style from './style'; import time from '../utils/time'; class DatePicker extends React.Component { static propTypes = { aut...
examples/planout-example/isomorphic/base/components/footer.js
stephanwlee/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. Contributed by Shalom Volchok <shalom@digitaloptgroup.com> See the accompanying LICENSE file for terms. */ import React from 'react'; const style = { margin: "20px 0", padding: "20px", backgroundColor: "#5DADE2" } export de...
test/autowhatever/render-items-container/AutowhateverApp.js
moroshko/react-autosuggest
import React, { Component } from 'react'; import sinon from 'sinon'; import Autowhatever from '../../../src/Autowhatever'; import items from './items'; export const renderItem = (item) => item.text; export const renderItemsContainer = sinon.spy( ({ containerProps, children }) => ( <div {...containerProps}> ...
src/containers/auth/AuthenticateView.js
arayi/SLions
/** * Authenticate Screen * - Entry screen for all authentication * - User can tap to login, forget password, signup... * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import { View, Image, StyleSheet, } from 'react-native'; ...
pkg/users/local.js
garrett/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2013 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
src/App.js
crazyskateface/Gallery
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Best react app </p> <a className="App-link...
src/components/ImageResults/ImageResults.js
nicolas-adamini/littleblue
import React, { Component } from 'react'; import { imageSearch } from '../../redux/actions/index'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import './styles/image-results.css'; class ImagesResults extends Component { componentDidMount() { const { results, search, imageS...
packages/material-ui-icons/src/DeleteForever.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="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1...
benchmarks/dom-comparison/src/implementations/styled-jsx/Dot.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; import View from './View'; const Dot = props => { const { className, children: styles } = ( <scope className="Dot"> <style jsx>{` .Dot { position: absolute; cursor: pointer; width: 0; height: 0;...
src/components/topic/TopicStoryTable.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown'; import messages from '../../resources/messages'; import LinkWithFilters from './LinkWithFilters'; import { googleFavIconUrl, storyDo...
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/order/order-list/table.js
JMwill/wiki
import React from 'react' import { compose, map, reduce, prop, concat, } from 'lodash/fp' import TableItemWrap from './table-item-wrap' import TableColgroup from '../../components/table-colgroup' const total_width = 896 const cell_width_list = [260, 96, 60, 116, 160, 108, 96] const colgroup = ( <TableColg...
src/svg-icons/editor/format-line-spacing.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
ajax/libs/react-datepicker/0.23.2/react-datepicker.js
kiwi89/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("react-dom"), require("react"), require("react-onclickoutside")); else if(typeof define === 'function' && define.amd) define(["moment", "rea...
src/containers/Root.js
szymonmichalak/react-forms-path
import React from 'react' import App from './App' function Root() { return <App /> } export default Root
app/javascript/mastodon/features/account_gallery/components/media_item.js
Toootim/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
src/containers/organizations/components/OrganizationEntitySetsSectionComponent.js
kryptnostic/gallery
import React from 'react'; import { Link } from 'react-router'; import { List, Map, Set } from 'immutable'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerSt...
app/components/Toggle/index.js
JonathanMerklin/react-boilerplate
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
grunt/tasks/release.js
leeleo26/react
'use strict'; var grunt = require('grunt'); var BOWER_PATH = '../react-bower/'; var BOWER_GLOB = [BOWER_PATH + '*.{js}']; var BOWER_FILES = [ 'react.js', 'react.min.js', 'JSXTransformer.js', 'react-with-addons.js', 'react-with-addons.min.js', ]; var GH_PAGES_PATH = '../react-gh-pages/'; var GH_PAGES_GLOB = [GH_PA...
examples/async/containers/Root.js
taylorhakes/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
sources/components/container.js
markuswustenberg/template
import React from 'react' import {BrowserRouter as Router, Route, Link, Switch} from 'react-router-dom' import About from './about' import Home from './home' import NotFound from './not-found' export default class Container extends React.Component { render() { return ( <Router> <div> <Sw...
src/browser/users/OnlineUsers.js
robinpokorny/este
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import getUserPhotoUrl from '../../common/users/getUserPhotoUrl'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { firebase } from '../../common/lib/redux-firebase'; import { onUsersPresence } from...
docs/static/js/main.262270e3.js
fckt/react-layer-stack
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"ob...
docs/app/Examples/views/Statistic/Content/StatisticExampleValues.js
clemensw/stardust
import React from 'react' import { Icon, Image, Statistic } from 'semantic-ui-react' const StatisticExampleValues = () => ( <Statistic.Group> <Statistic> <Statistic.Value>22</Statistic.Value> <Statistic.Label>Saves</Statistic.Label> </Statistic> <Statistic> <Statistic.Value text> ...
servers/app/client/src/RegistrationForm.js
staxmanade/sample-pouch-couch-databaseperuser
import React from 'react'; export default class RegistrationForm extends React.Component { register(e) { e.preventDefault(); // Get values via this.refs var data = { username: this.refs.username.value, password: this.refs.password.value, email: this.refs...
ajax/libs/react-widgets/2.6.1/react-widgets.js
nolsherry/cdnjs
/*! v"2.6.0" | (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */ this.ReactWidgets=function(e){function t(n){if(s[n])return s[n].exports;var r=s[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var s={};return t.m=e,t.c=s,t.p="",t(0...
src/utils/CustomPropTypes.js
westonplatter/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
src/Spline.js
falcon-client/hawk
import React from 'react'; import onClickOutside from 'react-onclickoutside'; import TrashIcon from './TrashIcon'; class Spline extends React.Component { constructor(props) { super(props); this.state = { selected: false, position: { x: 0, y: 0 } }; } handleClick(e) { this.setState({ ...
src/browser/contact/ContactFormSent.js
redcom/doctori-romani-in-berlin
// @flow import React from 'react'; import messages from '../../common/contact/Messages'; import { FormattedMessage } from 'react-intl'; import { Message } from '../../common/components'; const ContactFormSent = () => { return ( <Message backgroundColor="success"> <FormattedMessage {...messages.contactMes...
src/components/navbar/logo.js
KoushikKumar/pin-it-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchAllImages, tab } from '../../actions'; import { VIEW_ALL_TAB } from '../../constants/pin-it-constants'; class Logo extends Component { componentWillMount() { this.props.tab(VIEW_ALL_TAB); } handleOnCli...
packages/material-ui-icons/src/ViewCompactRounded.js
Kagami/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 19h4v-7H3v5c0 1.1.9 2 2 2zm5 0h10c1.1 0 2-.9 2-2v-5H10v7zM3 7v4h19V7c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2z" /></g></React.Fragment> , 'ViewCom...
ajax/libs/rxjs/2.1.11/rx.modern.js
zhengyongbo/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
src/components/buttons/flat-button.js
tuantle/hypertoxin
/** * Copyright 2016-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
ajax/libs/tinymce/3.5.8/plugins/legacyoutput/editor_plugin_src.js
aaqibrasheed/cdnjs
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u...
ajax/libs/yui/3.10.3/event-focus/event-focus-min.js
kitcambridge/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
examples/HelloHybrid/index.ios.js
kkamperschroer/react-navigation
/** * @flow */ import React from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; import HybridContainer from './HybridContainer'; const NotFoundComponent = () => ( <View style={styles.container}> <Text style={styles.welcome}> Screen not found! </Text> </View>...
lib/svg-icons/image/filter-4.js
marnusw/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var ImageFilter4 = React.createClass({ displayName: 'ImageFilter4', mixins: [PureRenderMixin], render: function render() { return React.createElement( SvgIc...
src/client.js
loujiayu/rss-reader
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
node_modules/react-icons/io/ios-moon.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosMoon = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.7 24.6c0.6 0 1.1-0.1 1.7-0.2-0.3 0.5-0.6 0.9-1 1.4-1.6 1.9-4.1 3.2-6.8 3.2-5 0-9.1-4-9.1-9 0-4.1 2.7-7.5 6.3-8.7 0.6-0.1 1.1-0.2 1.7-0.3-0.3 0.5-0.6 1-0.8 1.4-0.6...
src/screens/MyPage/MuteSettings/MuteTagsSettings.js
alphasp/pxview
import React from 'react'; import { connect } from 'react-redux'; import { connectLocalization } from '../../../components/Localization'; import TagSettings from '../../../containers/TagsSettings'; import * as muteTagsActionCreators from '../../../common/actions/muteTags'; const MuteTagSettings = ({ muteTags, i18n, ad...
stories/Input/ExampleRoundInput.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Input from 'wix-style-react/Input'; const style = { display: 'inline-block', padding: '0 5px', width: '200px', lineHeight: '22px', verticalAlign: 'top' }; const defaultProps = { size: 'normal', magnifyingGlass: true, placeholder: 'T...
src/components/markdown-render/table.js
sparkdesignsystem/spark-design-system
import React from 'react'; const Table = props => ( <div className="sprk-b-TableContainer sprk-u-mvl docs-b-Table--left-align-last docs-b-Table--no-wrap-first"> <table className="sprk-b-Table sprk-b-Table--spacing-medium" {...props} /> </div> ); export default Table;
app/jsx/new_user_tutorial/trays/FilesTray.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
examples/auth-with-shared-root/components/PageTwo.js
malte-wessel/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page Two! Wooo!</h2> } }) export default PageOne
app/components/Toggle/index.js
hieubq90/react-boilerplate-3.4.0
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = <option>--</option>; // If we have items, render them if (props.values) { content = props.values.map(val...
packages/soui-react/src/dialogs/modals/ghostify/container.js
sodalife/soui-react
import React from 'react' import ReactDOM from 'react-dom' export class Container { constructor (doc = document) { this.element = doc.createElement('div') doc.body.appendChild(this.element) } destroy () { if (ReactDOM.unmountComponentAtNode(this.element)) { this.element.parentNode.removeChild(...
frontend/test/app/containers/SharePage-test.js
mathjazz/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import SharePage from '../../../src/app/containers/SharePage'; describe('app/containers/SharePage', () => { const linknames = ['facebook', 'twitter', 'email', 'copy']; let props, subject; bef...
ReactJS/app/main.js
aitch0083/extjs-and-more
import 'fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import _ from 'underscore'; import {CommentList} from 'app/components/CommentList'; import {CommentForm} from 'app/components/CommentForm'; class MainApp extends React.Component { constructor(props){ super(props);...
examples/huge-apps/app.js
AnSavvides/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
src/Icons/Cross.js
hasseboulen/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/cross/1147331/ // Created by Andrey from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="15 15 70 70" {...other}> <g style={{ strokeLinecap: 'round', strokeMiterlimit: 10, strokeWidth: 10 }}> <l...
src/components/Tumbler/Tumbler.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import { Field } from 'redux-form' import block from '../../helpers/bem-cn' import './Tumbler.css' const b = block('j-tumbler') const propTypes = { name: PropTypes.string.isRequired } const Tumbler = ({ name }) => { return ( <div className={b()}...
app/components/Home.js
Ivanwangcy/github-battle-tutorial
import React, { Component } from 'react'; import ReactRouter, { Link } from 'react-router'; import styles from '../styles/index'; import MainContainer from './MainContainer'; class Home extends Component { render() { return ( <MainContainer> <h1>Github Battle</h1> <p className='lead'>Some f...
ajax/libs/ag-grid/5.0.4/ag-grid.noStyle.js
ahocevar/cdnjs
// ag-grid v5.0.4 (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["agGrid"] = factory(); e...
packages/ringcentral-widgets/components/RecentActivityCalls/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import formatDuration from '../../lib/formatDuration'; import Spinner from '../Spinner'; import styles from './styles.scss'; import i...
test/integration/lists/selectableList.js
xmityaz/material-ui
import React from 'react'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import List from 'src/List/List'; import ListItem from 'src/List/ListItem'; import MakeSelectable from 'src/List/MakeSelectable'; import injectTheme from '../fixtures/inject-theme'; import getMuiTheme from 'src/styles/getMuiTheme'; ...
files/yasr/2.4.0/yasr.bundled.min.js
stevelacy/jsdelivr
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
tests/node-test.js
txm/ajax-input-validator
//import React from 'react'; import { expect } from 'chai'; //import { mount, shallow } from 'enzyme'; //const AjaxInputValidator = require('../source/index.js').default; import AjaxInputValidator from '../distribution/index.js'; function validate_func(){ return 'OK'; } console.log('ok'); const aiv = new AjaxInpu...
ajax/libs/yui/3.7.0/event-custom-base/event-custom-base-coverage.js
jdanyow/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
ajax/libs/cyclejs-core/0.3.4/cycle.js
jasonpang/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...
app/pages/NotFound.js
ADI-Labs/calendar-web
import React from 'react' export default class NotFound extends React.Component { render() { return ( <div> <h1>{ 'notfound' }</h1> </div> ) } }
src/main.js
cityofsurrey/polltal-app
require('babel-polyfill') import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import FastClick from 'fastclick' import injectTapEventPlugin from 'react-tap-event-plugin' import App from './App' import { configureStore } from './store' // Eliminates the 300ms d...
src/routes/Admin/components/Login.js
Stas-Buzunko/cyber-school
import React from 'react' import AdminLogin from '../../../forms/AdminLogin' const Login = ({ onLoginSubmit }) => ( <div> <h3>Login</h3> <AdminLogin onSubmit={credentials => onLoginSubmit(credentials)} /> </div> ) export default Login
src/components/jquery/plain/JqueryPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './JqueryPlain.svg' /** JqueryPlain */ function JqueryPlain({ width, height, className }) { return ( <SVGDeviconInline className={'JqueryPlain' + ' ' + className} ...
src/components/LayoutMain/LayoutMain.spec.js
Drathal/redux-playground
import React from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import { I18nextProvider } from 'react-i18next' import i18n from '../../../test/i18n' import LayoutMain from '../LayoutMain' import messages from './i18n/en.json' describe('component layout <LayoutMain />', () => { it('can ...
src/App/NotFound.js
aspyrx/audiovisual
/** * 404 page React component. * * @module src/App/NotFound */ import React from 'react'; import { shape, string } from 'prop-types'; /** * The 404 page. Used with `react-router` to display the appropriate pathname. * * @param {Object} props - The props from `react-router`. * @param {string} props.location.p...
fluxArchitecture/src/js/mixins/StoreWatchMixin.js
3mundi/React-Bible
import React from 'react'; import AppStore from '../stores/app-store'; export default ( InnerComponent, stateCallback ) => class extends React.Component { constructor(props){ super(props); this.state = stateCallback( props ); this._onChange = this._onChange.bind(this); } componentWillMount(){ App...
src/components/dashboard/dashboard.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import DefaultLayout from '../layouts/default'; import PlayersDashboardBlock from './blocks/players'; class Dashboard extends Component { render() { return ( <DefaultLayout subtitle="Dashboard" isLoading={false}> <PlayersDashboardBlock ...
geonode/monitoring/frontend/monitoring/src/components/cels/cpu/index.js
tomkralidis/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 # ...
src/Parser/Warlock/Demonology/Modules/Talents/Implosion.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from ...
test/Input.spec.js
itsolutions-dev/react-styled-ui
import React from 'react'; import ReactTestRenderer from 'react-test-renderer'; import 'styled-components-test-utils/lib/jest'; import theme from '../src/theme'; import Input from '../src/Input'; import * as utils from '../src/utils/'; describe('Input', () => { test('should render a Input', () => { const compone...
src/svg-icons/action/settings-cell.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
packages/material-ui-icons/legacy/NetworkWifiSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.94L12 21.5l8.47-10.56c-.43-.33-3.66-2.95-8.47-2.95s-8.04 2.62-8.47 2.95z" /...
src/components/molecules/Post/index.js
DimensionLab/narc
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { Heading, Paragraph } from 'components' const Article = styled.article`` const Post = ({ title, body, ...props }) => { return ( <Article {...props}> <Heading level={2}>{title}</Heading> <Para...
src/client/components/SensorDetails/SensorDetails.js
cyrillegin/Aquaponics
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/c...
index.ios.js
MattFoley/react-native-fancy-label
/* * @providesModule FancyLabel * @flow */ var React = require('react'); var ReactNative = require('react-native'); var ReactPropTypes = require('react/lib/ReactPropTypes'); var StyleSheetPropType = require('react-native/Libraries/StyleSheet/StyleSheetPropType'); var ColorPropType = require('react-native/Libraries/...
src/client/components/frontpage/FrontPage.container.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import scrollToComponent from 'react-scroll-to-component'; import Head from '../base/Head'; import T from '../base/T'; import Hero from '../hero/Hero.component'; import KioskHero from '../kiosk/Hero/KioskHero.component'; import ListsBelt from '../base/Belt...
packages/material-ui-icons/src/SmokeFree.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SmokeFree = props => <SvgIcon {...props}> <path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 4 1....
src/DropDownMenu/DropDownMenu.spec.js
kasra-co/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import DropDownMenu from './DropDownMenu'; import getMuiTheme from '../styles/getMuiTheme'; describe('<DropDownMenu />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallo...
grails-app/assets/javascripts/dependencies/node_modules/react/lib/ChangeEventPlugin.js
puaykai/noodles
/** * 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. * * @providesModu...
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.min.js
psegarel/image-drupal7
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
src/__tests__/Foo-test.js
lelandrichardson/enzyme-example-jest
import React from 'react'; import { shallow, mount, render } from 'enzyme'; jest.dontMock('../Foo'); const Foo = require('../Foo'); describe("A suite", function() { it("contains spec with an expectation", function() { expect(true).toBe(true); //expect(shallow(<Foo />).contains(<div className="foo" />)).toB...
ajax/libs/rxjs/2.2.28/rx.all.js
pazguille/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 }; v...
assets/jqwidgets/demos/react/app/treegrid/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(2); } render () { let employees = [{ 'EmployeeID': 1, 'FirstName': ...
packages/bonde-styleguide/src/content/Icon/svg/Tick.js
ourcities/rebu-client
import React from 'react' const Icon = ({ className, color, size }) => ( <svg className={className} width={size || '12'} height={size || '9'} viewBox='0 0 12 9' xmlns='http://www.w3.org/2000/svg' > <g fill='none' fillRule='evenodd'> <g transform='translate(-420 -34)' stroke={color} st...