path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
packages/material-ui-icons/src/LocalActivityOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-2-1.46c-1.19.69-2 1.99-2 3.46s.81 2.77 2 3.46V18H4v-2.54...
src/components/form/group/index.js
rangle/react-redux-starter
import React from 'react'; function FormGroup({ children, testid, ...props}) { return ( <div data-testid={testid} className="py2" {...props}> {children} </div> ); } FormGroup.propTypes = { children: React.PropTypes.node, testid: React.PropTypes.string, }; export default FormGroup;
src/App.js
theJian/react-boilerplate
import React from 'react'; export default class App extends React.Component { render() { return ( <div>React Boilerplate</div> ); } }
public/assets/plugins/DataTables/media/js/jquery.js
sarankh80/restaurant_new
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
src/components/DeveloperMenu.js
ming-cho/react-native-demo
import React from 'react'; import {View} from 'react-native'; // For tests const DeveloperMenu = () => <View/>; export default DeveloperMenu;
ajax/libs/vis/3.0.0/vis.js
AMoo-Miki/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 3.0.0 * @date 2014-07-07 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
ajax/libs/forerunnerdb/1.3.643/fdb-legacy.js
dlueth/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/pages/match/NBA/MatchNBA.js
HeliumLau/Hoop-react
import React from 'react'; import MatchTotalList from 'components/MatchTotalList.js' export default class MatchNBA extends React.Component { render() { const list = [ { date: '7月11日 周二', match: [ { category: '拉斯维加斯夏季联赛...
app/pages/project/home/home-workflow-button.spec.js
amyrebecca/Panoptes-Front-End
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import apiClient from 'panoptes-client/lib/api-client'; import { ProjectHomeWorkflowButton } from './home-workflow-button'; import mockPanoptesResource from '../../../../test/mock-panoptes-resource'; ...
examples/query-params/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/query-params' }) class User extends React.Component { render() { let { userID } = this.p...
LogFileReader/log-viewer-fe/app/app.js
luungoc2005/LogFileReader
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
apps/wmb/priv/www/static/js/src/view/filters/random-button.js
black13ua/wmb
import React, { PropTypes } from 'react'; import { ListSubHeader, Button, Switch, Slider } from 'react-toolbox'; const RandomButtonView = ({ checked, onRandomButtonClick, onRandomCheckToggle, disabled, randomNumber, onSliderChange, }) => { function onButtonClick(event) { event.prev...
client/containers/MapEditor/index.js
DarkHorseJP/RPGScenarist
import React from 'react' import { connect, dispatch } from 'react-redux' import { createStructuredSelector } from 'reselect' import { FormattedNumber } from 'react-intl' import { ListGroup, ListGroupItem } from 'react-bootstrap' import styled from 'styled-components' import EditableList from 'components/EditableList'...
client/Home/HomePage.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; import { PageTitle } from './../_App/PageTitle' import { HomePageBody } from './HomePageBody'; export const HomePage = () => ( <div className="container"> <PageTitle pageTitle='Home' /> <HomePageBody /> </div> );
21_Geolocation/node_modules/rx/dist/rx.lite.js
dmilojkovic76/JavaScript30kurs
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
src/mui/field/NumberField.js
azureReact/AzureReact
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; const hasNumberFormat = !!( typeof Intl === 'object' && Intl && typeof Intl.NumberFormat === 'function' ); /** * Display a numeric value as a locale string. * * Uses Intl.Numb...
web/static/js/components/target_field.js
bittersweet/notifilter
import React from 'react'; var TargetField = React.createClass({ updateTarget: function(event) { event.preventDefault(); const target = this.refs.target.value; const { actions } = this.props; actions.updateTarget(target); }, render: function() { const { target } = this.props; return ( ...
client/src/components/Notices/NoticeList.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {compose} from 'redux' import {withHandlers} from 'recompose' import {connect} from 'react-redux' import {withRouter} from 'react-router-dom' import {withDataProviders} from 'data-provider' import {noticesProvider} from '../../dataProviders/noticesDataProviders' import { acti...
ajax/libs/forerunnerdb/1.4.37/fdb-core+persist.js
joeyparrish/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/containers/weather_list.js
kristingreenslit/react-redux-weather-browser
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; // removed b/c no longer exporting just WeatherList as the default // export default class WeatherList extends Component { class WeatherList extend...
app/javascript/mastodon/features/lists/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
packages/material-ui-icons/src/Rotate90DegreesCcw.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05 2.73...
ajax/libs/forerunnerdb/1.3.905/fdb-all.min.js
extend1994/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
client/components/Header.js
caiquecaleiro/react-graphql-auth
import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import { Link } from 'react-router'; import currentUserQuery from '../queries/currentUser'; import logoutMutation from '../mutations/logout'; class Header extends Component { onLogoutClick() { this.props.mutate({ refetchQuer...
ajax/libs/react-router/0.11.1/react-router.js
zhengyongbo/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.ReactRouter=e()}}(function(){var define,module,export...
extension/examples/router/test/components/MainSection.spec.js
gaearon/redux-devtools
import expect from 'expect'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import MainSection from '../../components/MainSection'; import TodoItem from '../../components/TodoItem'; import Footer from '../../components/Footer'; import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoF...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
barakmitz/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; const FloatingActionButtonExampleSimple = () => ( <div> <FloatingActionButton style={style}> <ContentAdd /> ...
client/react/src/components/orderItem/OrderItemForm.js
peasy/peasy-js-samples
import React from 'react'; import TextInput from '../common/TextInput'; import SelectInput from '../common/SelectInput'; const OrderItemForm = ({viewModel, onSave, onChange, saving, errors, onCancel }) => { return ( <form> <SelectInput name="categoryId" label="Category" value={view...
ajax/libs/rxjs/2.3.0/rx.all.js
ProfNandaa/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...
chrome/extension/todoapp.js
meth-makers/dolphin
import React from 'react'; import ReactDOM from 'react-dom'; import Root from '../../app/containers/Root'; import './todoapp.css'; chrome.storage.local.get('state', obj => { const { state } = obj; const initialState = JSON.parse(state || '{}'); const createStore = require('../../app/store/configureStore'); Re...
src/svg-icons/communication/no-sim.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
src/admin/client/modules/settings/smtp/components/form.js
cezerin/cezerin
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { TextField, SelectField } from 'redux-form-material-ui'; import messages from 'lib/text'; import style from './style.css'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import Divider from '...
src/generated_ipsum.js
kylefdoherty/ipsum-generator
import React, { Component } from 'react'; import Clipboard from 'clipboard'; class GeneratedIpsum extends Component { constructor(props) { super(props); this.state = { buttonText: 'Click to Copy' } } render() { const { speech, paragraphs} = this.props; const ipsumChunks = []; const ...
app/components/GameOver.js
peterfication/space-jumper
import PT from 'prop-types' import React from 'react' import styles from './game-over.scss' const GameOver = props => ( <div className={styles['game-over-container']}> <h1>Game Over</h1> <p>You lost. Try again!</p> <button onClick={props.showMenu}>Back to menu</button> </div> ) if (process.env.NODE_E...
src/svg-icons/action/settings-input-composite.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
stories/Preloader.stories.js
react-materialize/react-materialize
import React from 'react'; import { storiesOf } from '@storybook/react'; import Row from '../src/Row'; import Col from '../src/Col'; import ProgressBar from '../src/ProgressBar'; import Preloader from '../src/Preloader'; import { number, withKnobs } from '@storybook/addon-knobs'; const stories = storiesOf('Components/...
js/jqwidgets/demos/react/app/chart/waterfallwithmultipleseries/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let data = [ { year: 2002, male: 75.4, female: 58.1 }, { year: 2003, male: 75.4, female: 58.7 }, ...
Samples/UserProfile.Manipulation.CSOM/UserProfile.Manipulation.CSOMWeb/Scripts/jquery-1.9.1.js
Claire-Hindhaugh/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
src/containers/Posts/AddingPost.js
Nuriddinkhuja/photoshare
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { asyncConnect } from 'redux-connect'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { reset } from 'redux-form'; import * as postActions from 'redux/modules/posts'; import { PostForm } from '...
client/modules/Post/__tests__/components/PostList.spec.js
sethkaufee/TherapyApp
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
src/App.js
sblesson/resume
import React, { Component } from 'react'; import ReactGA from 'react-ga'; import $ from 'jquery'; import './App.css'; import Header from './Components/Header'; import Footer from './Components/Footer'; import About from './Components/About'; import Resume from './Components/Resume'; import Testimonials from './Componen...
blueocean-material-icons/src/js/components/svg-icons/maps/tram.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 20h-.08c1.69 0 2.58-1....
src/routes/user/component/page/__tests__/WrapperUserPage-test.js
retaxJS/retax-seed
import chai, { expect } from 'chai'; import mockery from 'mockery'; import dirtyChai from 'dirty-chai'; chai.use(dirtyChai); import { shallow } from 'enzyme'; import React from 'react'; describe('WrapperUserPage', () => { beforeEach(() => { mockery.enable({ warnOnReplace: false, warnOnUnregistered:...
packages/material-ui-icons/src/TurnedInNotSharp.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="M19 3H5.01L5 21l7-3 7 3V3zm-2 15l-5-2.18L7 18V5h10v13z" /></g></React.Fragment> , 'TurnedInNotSharp');
examples/fiber/debugger/src/Editor.js
aaron-goshine/react
import React, { Component } from 'react'; class Editor extends Component { constructor(props) { super(props); this.state = { code: props.code }; } render() { return ( <div style={{ height: '100%', width: '100%' }}> <textarea value={this.state.c...
ajax/libs/angular.js/1.0.7/angular-scenario.js
ruiaraujo/cdnjs
/*! * jQuery JavaScript Library v1.7.2 * 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. ...
analysis/druidferal/src/modules/features/EnergyDetails.js
anom0ly/WoWAnalyzer
import { Panel } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown'; import React from 'react'; import EnergyTracker from './EnergyTracker'; class EnergyDetails extends Analyzer { static dependencies = { ...
app/containers/PrototypeSearch/header.js
mhoffman/CatAppBrowser
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import ReactGA from 'react-ga'; import Grid from 'material-ui/Grid'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import { styles } from './styles'; class Header extends R...
chapter-06/hoc/src/proxy/removeUserPropHOC.js
mocheng/react-and-redux
import React from 'react'; function removeUserProp(WrappedComponent) { return function newRender(props) { const {user, ...otherProps} = props; return <WrappedComponent {...otherProps} /> } } export default removeUserProp;
ajax/libs/vue-smart-table/2.6.0-beta4/vue-smart-table.min.js
ahocevar/cdnjs
!function(u,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("Vue")):"function"==typeof define&&define.amd?define(["Vue"],n):"object"==typeof exports?exports.SmartTable=n(require("Vue")):u.SmartTable=n(u.Vue)}(this,function(u){return function(u){function n(e){if(t[e])return t[e].exports;var...
lib/components/ResultsHeroes/ResultsHeroes.js
christielynam/do-you
import React from 'react'; import './ResultsHeroes.css'; const ResultsHeroes = ({ personality_blend, personality_types }) => { const personalityMatches = personality_types.map( type => { const { name, description, badge, keywords } = type.personality_type return ( <div className='personality-card'> ...
modules/dreamview/frontend/src/components/Header/index.js
xiaoxq/apollo
import React from 'react'; import Image from 'components/common/Image'; import logoApollo from 'assets/images/logo_apollo.png'; import HMIControls from 'components/Header/HMIControls'; export default class Header extends React.Component { render() { return ( <header className="header"> ...
docs/src/pages/demos/progress/CircularIntegration.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import CircularProgress from '@material-ui/core/CircularProgress'; import green from '@material-ui/core/colors/green'; import Button from '@material-ui/core/Button';...
src/interface/report/Results/ScrollToTop/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { ReactComponent as Logo } from 'interface/images/logo.svg'; // This has an elevator music easter egg that occurs randomly once every 5 times. // Lazy load it to minimize bundle impact. This whole joke has a tiny amount of overhead. let elevator; async function loadElevator() { ele...
wp-content/plugins/contact-form-7-to-database-extension/DataTables/media/js/jquery.js
phphille/wpwp
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
src/__tests__/provider-test.js
MicheleBertoli/react-data-provider
jest.dontMock('../provider') import React from 'react' import TestUtils from 'react-addons-test-utils' const Provider = require('../provider').default describe('Provider', () => { const Child = React.createClass({ contextTypes: { __data: React.PropTypes.object, }, render() { return null ...
ajax/libs/yui/3.12.0/datatable-core/datatable-core-debug.js
narikei/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/containers/ForgotPassword.js
bartonhammond/snowflake
/** * # ForgotPassword.js * */ 'use strict' /** * ## Imports * * Redux */ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' /** * The actions we need */ import * as authActions from '../reducers/auth/authActions' /** * LoginRender */ import LoginRender from '../components/L...
app/components/HelpView/RelationshipsHelp.js
trevornelson/wld-frontend
/** * * RelationshipsHelp * */ import React from 'react'; class RelationshipsHelp extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <h2>Key Relationships Help</h2> <h3>“Success is what you know, raised to the who you know.”</h3> ...
ajax/libs/knockout/3.3.0/knockout-debug.js
icco/cdnjs
/*! * Knockout JavaScript library v3.3.0 * (c) Steven Sanderson - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ (function(){ var DEBUG=true; (function(undefined){ // (0, eval)('this') is a robust way of getting a reference to the global object // For details,...
react-flux-mui/js/material-ui/src/svg-icons/image/looks-5.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
modules/PropTypes.js
kevinsimper/react-router
import React from 'react'; import Location from './Location'; import History from './History'; var { func, object, arrayOf, instanceOf, oneOfType, element } = React.PropTypes; function falsy(props, propName, componentName) { if (props[propName]) return new Error(`<${componentName}> should not have a "${propName...
app/components/Login.js
SynapseNetwork/Synapse-Desktop
/* ************************************************************** * Synapse - Desktop Client * @author Marco Fernandez Pranno <mfernandezpranno@gmail.com> * @licence MIT * @link https://github.com/SynapseNetwork/Synapse-Desktop * @version 1.0 * ****************************************************...
src/main/app/scripts/views/Dashboard.js
ondrejhudek/pinboard
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { Card, CardTitle, CardText, GridList, GridTile } from 'material-ui' import { getWelcomeDate } from '../components/Util' import { fetchStats } from '../actions/stats' let fetched = false const style = { tile...
src/components/Feedback/Feedback.js
TodoWishlist/VizResume
/** * 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 withStyles from 'isomorp...
frontend/app/components/DialectTile/DialectTilePresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // Material UI import Card from '@material-ui/core/Card' import CardContent from '@material-ui/core/CardContent' import CardMedia from '@material-ui/core/CardMedia' import LockIcon from '@material-ui/icons/Lock' import Dialog from '@material-ui/core/Dialog' ...
test/integration/scss-fixtures/url-global/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.scss' import '../styles/global2.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
Origami/src/components/inputcomponents/ImageInput/ImageInputPreview.js
batra-mlp-lab/CloudCVfy-Frontend
import React from "react"; import { PropTypes } from "prop-types"; import Dialog from "material-ui/Dialog"; import FlatButton from "material-ui/FlatButton"; import ImageInput from "./ImageInput"; import InputPreview from "../BaseInputComponent/InputPreview.js"; class ImageInputPreview extends InputPreview { render()...
src/client/assets/javascripts/features/canvas/components/svg/Text.js
tlodge/uibuilder
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import {camelise} from 'utils'; import { actionCreators as canvasActions, selector } from '../..'; import { connect } from 'react-redux'; @connect(selector, (dispatch) => { return{ actions: bindActionCreators(canvasActions, di...
ajax/libs/react-router/0.11.2/react-router.min.js
codevinsky/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.ReactRouter=e()}}(function(){var define;return functi...
dependencies/glfw/docs/html/jquery.js
intrepid249/Bootstrap-MathDemo
/* * jQuery JavaScript Library v1.7.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/reactor-kitchensink/src/examples/DragAndDrop/Constraints/Constraints.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import './styles.css'; Ext.require(['Ext.drag.*']); export default class Constraints extends Component { render() { return ( <Panel padding={5} shadow ref="mainP...
src/parser/shared/modules/features/Checklist2/PreparationRule.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Rule from './Rule'; import Requirement from './Requirement'; class PreparationRule extends React.PureComponent { static propTypes = { children: PropTypes.node, thresholds: PropTypes.object.isRequired, }; renderPotionRequirements() { ...
RNDemo/RNComment/ArticleScreen.js
995996812/Web
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Article from './Article' export default class ArticleScreen extends Component { constructor(props){ super(props); } static navigationOptions = ({navigation}) => ({ title: naviga...
client/src/components/NewVersionAvailable/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from '../Dialog'; import css from './NewVersionAvailable.css'; const NewVersionAvailable = ({ newVersionAvailable }) => ( <Dialog onClose={() => { window.location.href = '.'; }} hideCloseSymbol title="En ny versjon av applikasjo...
src/pages/about.js
jameslutley/jameslutley.com
import React from 'react' import Link from 'gatsby-link' const AboutPage = () => ( <div> <h1>About</h1> <p>Welcome to about page</p> <Link to="/">Go back to the homepage</Link> </div> ) export default AboutPage
examples/js/others/printable-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];...
src/svg-icons/av/fiber-pin.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberPin = (props) => ( <SvgIcon {...props}> <path d="M5.5 10.5h2v1h-2zM20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85...
modules/__tests__/History-test.js
andreftavares/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node beforeEach(function () { node = ...
src/containers/main/main.js
noahehall/udacity-trainschedule
import React from 'react'; import Markdown from 'react-markdown'; import md from 'readme'; import styles from './main.css'; class Main extends React.Component { render () { return ( <div className='main'> <style scoped type='text/css'>{styles}</style> <Markdown source={md} /> </div> ...
src/components/common/ActionSheet.js
jaggerwang/zqc-app-demo
/** * 在球场 * zaiqiuchang.com */ import React, {Component, PropTypes} from 'react' import {TouchableOpacity} from 'react-native' export default class ActionSheet extends Component { static contextTypes = { showActionSheetWithOptions: PropTypes.func }; showActionSheetWithOptions (options, onPress) { re...
src/svg-icons/communication/phonelink-erase.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
blueocean-dashboard/src/test/js/pipeline-not-found-spec.js
alvarolobato/blueocean-plugin
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import { PipelinePage } from '../../main/js/components/PipelinePage.jsx'; import { mockExtensionsForI18n } from './mock-extensions-i18n'; mockExtensionsForI18n(); const params = { organization: 'jenkins', pipelin...
docs/src/pages/demos/tables/CustomPaginationActionsTable.hooks.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles, useTheme } from '@material-ui/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableFooter from '@material-ui/core/Tab...
wp-content/themes/Foundation-1/javascripts/jquery.min.js
toqz/pfetec
/*! 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/javascript/mastodon/features/video/index.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen'; import { displaySensi...
tools/runServer.js
quyetvv/react-starter-kit
/** * 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 path from 'path'; import cp from 'child_process'...
docs/app/Examples/collections/Table/Variations/TableExampleSelectableCell.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleSelectableCell = () => { return ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
app/components/MainContainer.js
StuartPearlman/github-battle
import React from 'react'; import { transparentBg } from '../styles'; function MainContainer({ children }) { return ( <div className="jumbotron col-sm-12 text-center" style={ transparentBg }> { children } </div> ); } export default MainContainer;
javascript/src/containers/SelectionButtonContainer.js
unclecheese/silverstripe-kickassets
import React from 'react'; import Reflux from 'reflux'; import {Button} from 'react-bootstrap'; import SelectedItemsStore from '../stores/SelectedItemsStore'; import Actions from '../actions/Actions'; import Config from '../stores/Config'; import {Glyphicon, Popover} from 'react-bootstrap'; import cx from 'classnames';...
src/svg-icons/editor/insert-photo.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
src/js/App.js
notfier/touristique-client
import React, { Component } from 'react'; export class App extends Component { constructor( props ) { super( props ); this.state = { isAuthenticated: false }; } componentWillMount() { // TODO: refactor localStorage check if ( localStorage.getItem( 'token' ) ) { this.setState({i...
sivut/js/jquery.js
TommiKurjensalo/php
/*! jQuery v1.11.1 | (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...
app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js
kirakiratter/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import AutosuggestEmoji from '../autosuggest_emoji'; describe('<AutosuggestEmoji />', () => { it('renders native emoji', () => { const emoji = { native: '💙', colons: ':foobar:', }; const component = renderer.create(<Autos...
js/components/auth/signUp/index.js
amandamfielding/Coffee-Shop-Mobile
import React, { Component } from 'react'; import { Image, Alert } from 'react-native'; import { Font } from 'exponent'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import { Container, Header, Tit...
src/components/safety/mobile-header.js
mozilla/advocacy.mozilla.org
import React from 'react'; var Router = require(`react-router`); var Link = Router.Link; var MobileHeader = React.createClass({ render: function() { var linkTo = this.props.linkTo; var image = ( <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAy...
bunbunbakeshop/src/Menu.js
jzheng13/SSUI-Homework-4
import React, { Component } from 'react'; import './styles/index.css'; import './styles/font-awesome.min.css'; import products from './rolls.json'; import productPic1 from './resources/images/default1.jpg'; import productPic2 from './resources/images/default2.jpg'; import productPic3 from './resources/images/default3....
resources/assets/javascript/components/editableText.js
colinjeanne/garden
import React from 'react'; const editableText = props => ( <div className="editableText"> <fieldset disabled={!props.editing}> {props.children} </fieldset> <button type="button" className="editableTextEdit" onClick={() => props.onChange(!props...
local-cli/templates/HelloWorld/index.ios.js
adamjmcgrath/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/MenuItem.react.js
Neophy7e/react-bootstrap-typeahead
'use strict'; import cx from 'classnames'; import {noop} from 'lodash'; import React from 'react'; import menuItemContainer from './containers/menuItemContainer'; const BaseMenuItem = React.createClass({ displayName: 'BaseMenuItem', getDefaultProps() { return { onClick: noop, }; }, render() {...