path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
js/components/Slider.js
Harrison1/Foundation-Site
import React from 'react'; export default class extends React.Component{ render() { return ( <div class="slick"> <div><img src="./img/tran.jpg" /></div> <div><img src="./img/laura.jpg" /></div> <div><img src="./img/arrow.png" /></div> <div><img src="./img/hot.jpg" /></div> </div> ); } }
docs/src/NotFoundPage.js
nickuraltsev/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
src/components/Assets/Pins/BookWormEGW.js
Ftornik/forwardteam.space
import React, { Component } from 'react'; import svg from 'lib/svg'; @svg({ width: 600, height: 497.2 }) class BookWormEGW extends Component { render = () => { const st2Style = { opacity: .1 }; const st12Style = { opacity: .5 }; /* eslint-dis...
app/components/ConversationList.js
DrPandemic/TwiolioRN
// @flow import React, { Component } from 'react'; import { Dimensions, FlatList, View, StyleSheet } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import ActionButton from 'react-native-action-butt...
components/Layout/Header.js
edabot/supa
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
app/javascript/mastodon/components/loading_indicator.js
imas/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
app/jsx/shared/SectionsTooltip.js
djbender/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...
packages/react-dom/src/__tests__/ReactErrorBoundaries-test.js
mhhegazy/react
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; var PropTypes; var React; var ReactDOM; describe('ReactErrorBoundaries', () => { var log; ...
react/src/index.js
inversoft/passport-bluemix-example
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory, IndexRoute, Router, Route } from 'react-router'; import App from './App'; import auth from './auth'; import Login from './components/Login'; import Register from './components/Register'; import Logout from './components/Logout'; impo...
packages/components/src/DateTimePickers/views/DateView/DateView.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Action } from '../../../Actions'; import DatePicker from '../../pickers/DatePicker'; import ViewLayout from '../ViewLayout'; import HeaderTitle from '../HeaderTitle'; import theme from './DateView.scss'; import ...
docs/src/examples/elements/Segment/Types/SegmentExamplePlaceholder.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Header, Icon, Segment } from 'semantic-ui-react' const SegmentExamplePlaceholder = () => ( <Segment placeholder> <Header icon> <Icon name='pdf file outline' /> No documents are listed for this customer. </Header> <Button primary>Add Document</Button>...
config/paths.js
WangCao/react-blog
'use strict'; const path = require('path'); const fs = require('fs'); const url = require('url'); // Make sure any symlinks in the project folder are resolved: // https://github.com/facebookincubator/create-react-app/issues/637 const appDirectory = fs.realpathSync(process.cwd()); const resolveApp = relativePath => pa...
src/index.js
justin0022/student-services-forms
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack to load favicon.ico import './styles/s...
src/client/components/LoginModal.js
dgrcode/FCC-Voting-App
'use strict'; import React from 'react'; import LoginButton from './LoginButton'; export default class LoginModal extends React.Component { render () { return ( <div className="modal fade" id="modal-login" role="dialog"> <div className="modal-dialog" role="document"> <div className="moda...
tests/framework.spec.js
juanda99/react-redux-material-ui
import assert from 'assert' import React, {Component} from 'react' import {mount, render, shallow} from 'enzyme' class Fixture extends Component { render () { return ( <div> <input id='checked' defaultChecked /> <input id='not' defaultChecked={false} /> </div> ) } } describe('(...
webpack/components/AnsibleHostDetail/components/AnsibleHostInventory/AnsibleHostInventory.js
theforeman/foreman_ansible
import React from 'react'; import Immutable from 'seamless-immutable'; import PropTypes from 'prop-types'; import './AnsibleHostInventory.scss'; import ReportJsonViewer from '../../../ReportJsonViewer'; const AnsibleHostInventory = ({ inventoryData }) => { const mutableInventory = inventoryData && Immutable.asMu...
client/src/Board.js
wilsoncusack/metrics-board
import React, { Component } from 'react'; import $ from 'jquery'; // import Numeric from './Widget'; import './styles/Board.css'; import './styles/Widget.css' import NewWidgetWidget from './Widgets/New'; import NumericWidget from './Widgets/Numeric'; import WidgetBuilder from './WidgetBuilder'; class Board extends...
src/browser/app/renderError.js
reedlaw/read-it
// @flow import App from './App'; import NotFoundPage from './NotFoundPage'; import React from 'react'; import SignInPage from '../auth/SignInPage'; type ErrorProps = { error: Object, }; const renderError = ({ error }: ErrorProps) => { switch (error.status) { case 404: return <App><NotFoundPage /></App>...
docs/pages/api/select.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './select.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
lib/jquery/jquery-1.9.1.min.js
agroknow/agrimoodle
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
todo-list/src/index.js
kristijan-pajtasev/react-todo-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
public/filereader/demo/jquery-1.7.1.js
liushaohua/tuer.me
/*! * 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. ...
frontend/app/js/root.js
carpeliam/pingpongreg
import React from 'react'; import { connect } from 'react-redux'; import Container from './container'; import Login from './login'; import subscribeToSocketEvents from './subscribeToSocketEvents'; export class Root extends React.Component { componentDidMount() { if (this.props.currentUser) { this.props.sub...
examples/react/src/App.js
nls-oskari/rpc-client
import React, { Component } from 'react'; import './App.css'; import Map from './Map'; import LocationList from './LocationList'; import idGenerator from './util/idGenerator'; import handleBinder from './util/handleBinder'; import pointInPolygon from './util/pointInPolygon'; class App extends Component { constructo...
packages/material-ui-icons/legacy/StarRateTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path transform="scale(1.33, 1.33)" fill="none" d="M0 0h18v18H0V0z" /><path transform="scale(1.33, 1.33)" d="M9 11.3l3.71 2.7-1.42-4.36L15 7h-4.55L9 2.5 7.55 7H3l3.71 2.64L5.29 14 9 11.3z" /></...
test/test.js
sottar/react-image-resizer
import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import Image from '../src/index.js'; describe('<Image />', () => { it('should render div and image tag', () => { const wrapper = shallow( <Image src="path/to/image.jpg" width={120} hei...
node_modules/body-parser/node_modules/debug/src/browser.js
Ramkishorevit/GitInfo-Git-for-Google-Assistant
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
tools/viz/levels/level3/javascript/jquery.min.js
yonggang985/Sniper
/*! * jQuery JavaScript Library v1.6.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. ...
docs/src/examples/modules/Dropdown/Variations/DropdownExampleFluid.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Dropdown, Menu } from 'semantic-ui-react' const getOptions = (number, prefix = 'Choice ') => _.times(number, (index) => ({ key: index, text: `${prefix}${index}`, value: index, })) const DropdownExampleFluid = () => ( <Menu vertical> <Menu...
scripts/release-manager/commands/init.js
claudiopro/react
/** * Command to init a project. This will create the .config.json file if it * doesn't already exist. */ 'use strict'; const chalk = require('chalk'); const fs = require('fs'); const path = require('path'); const untildify = require('untildify'); module.exports = function(vorpal, app) { vorpal .command('in...
packages/core/src/icons/components/InventoryItem.js
iCHEF/gypcrete
import React from 'react'; export default function SvgInventoryItem(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M546.9 798.4l2...
src/components/__tests__/Tabs-errors-test.js
reactjs/react-tabs
import React from 'react'; import { render } from '@testing-library/react'; import '@testing-library/jest-dom'; import Tab from '../Tab'; import TabList from '../TabList'; import TabPanel from '../TabPanel'; import Tabs from '../Tabs'; jest.mock('react', () => { const originalModule = jest.requireActual('react'); ...
examples/js/advance/edit-type-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; // editable, select type also accept a string array // it's most simple case for using select, but the text and value will all be the value in array...
frontend/src/Movie/Details/MovieTags.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Label from 'Components/Label'; import { kinds, sizes } from 'Helpers/Props'; function MovieTags({ tags }) { return ( <div> { tags.map((tag) => { return ( <Label key={tag} kind={ki...
docs/app/Examples/elements/Header/Types/HeaderExampleSettingsIcon.js
koenvg/Semantic-UI-React
import React from 'react' import { Header, Icon } from 'semantic-ui-react' const HeaderExampleSettingsIcon = () => ( <Header as='h2' icon> <Icon name='settings' /> Account Settings <Header.Subheader> Manage your account settings and set e-mail preferences. </Header.Subheader> </Header> ) exp...
src/parser/shaman/restoration/modules/features/MasteryEffectiveness.js
sMteX/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { TooltipElement } from 'common/Tooltip'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Panel from 'interface/statist...
test/integration/css-fixtures/bad-custom-configuration-arr-1/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
boilerplate/Tests/Components/RoundedButtonTest.js
nonameolsson/ignite-ir-boilerplate
import 'react-native' import React from 'react' import RoundedButton from '../../App/Components/RoundedButton' import { shallow } from 'enzyme' import renderer from 'react-test-renderer' test('RoundedButton component renders correctly', () => { const tree = renderer.create(<RoundedButton onPress={() => {}} text='how...
ui/src/components/enquiries/listItem.js
jollopre/mps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { quotation_enquiry_path } from '../../routes'; import { addEnquiry, deleteEnquiry } from '../../actions/ui'; export const QuantityBadge = ({ quantity }) ...
app/javascript/mastodon/features/video/index.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { fromJS, is } from 'immutable'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui...
client_apps/canvas_quizzes/apps/statistics/test/unit/views/questions/multiple_choice/answers.js
leftplusrightllc/canvas-lms
define(function(require) { var Subject = require('jsx!views/questions/multiple_choice/answers'); var answerSetFixture = [ { id: 'a1', text: 'red', responses: 4, correct: true, ratio: 100, user_names: ['One', 'Two', 'Three', 'Four']}, { id: 'a2', text: 'green', responses: 0, ratio: 0 }, { id: 'a3',...
example/with-static-markup/template.js
iansinnott/react-static-webpack-plugin
import React from 'react'; const Html = (props) => ( <html lang='en'> <head> <meta charSet='utf-8' /> <meta httpEquiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, minimum-scale=1.0' /> <title>Super awesome package</title> <script dangerou...
ajax/libs/react-cookie/0.1.2/react-cookie.min.js
ljharb/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...
examples/src/components/CustomRenderField.js
benchrise/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
Examples/UIExplorer/WebViewExample.js
manhvvhtth/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/components/Article.js
braidn/Nesta-Cloudbacon-Blog
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { Link } from 'gatsby' import kebabCase from 'lodash/kebabCase' import Subline from './Subline' const Post = styled.article` display: flex; flex-direction: column; margin-top: 3.5rem; margin-bottom: 3.5r...
node_modules/react-native-svg/elements/Ellipse.js
MisterZhouZhou/ReactNativeLearing
import React from 'react'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; import {EllipseAttributes} from '../lib/attributes'; import extractProps from '../lib/extrac...
ajax/libs/rxjs/2.2.21/rx.all.compat.js
Kaakati/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
src/App.js
omerak/webpack-react-less-mocha-css-modules
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import router from './router'; import 'ui/less/main.less'; export default class App extends Component { constructor() { super(); this.state = { currentRoute: { component: 'div' } }...
ajax/libs/react-virtualized/6.0.4/react-virtualized.js
x112358/cdnjs
!function(root, factory) { "object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react"), require("react-dom")) : "function" == typeof define && define.amd ? define([ "react", "react-dom" ], factory) : "object" == typeof exports ? exports.ReactVirtualized = factory(require("rea...
src/svg-icons/maps/satellite.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
client/components/Auth/SignupForm.js
rkazakov/guardbook
import React from 'react'; import PropTypes from 'prop-types'; import {Link} from 'react-router'; const SignupForm = ({onSubmit, onChange, errors, user,}) => ( <div className="container"> <form className="form-signin" action="/" onSubmit={onSubmit}> <h2 className="form-signin-heading">Sign up</...
app/components/MarketingBadge.js
Byte-Code/lm-digitalstore
/* eslint-disable */ import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import glamorous from 'glamorous'; import Novita from './Novita'; import PrezzoGiuBadge from '../assets/product_badge/abbiamo_abbassato_prezzi.png'; import PromoWebBadge from '../assets/product_badge/PROMO_WEB-...
src/Dialog/__tests__/Dialog-test.js
tleunen/react-mdl
/* eslint-env mocha */ import expect from 'expect'; import React from 'react'; import ReactDOM from 'react-dom'; import { render, renderDOM } from '../../__tests__/render'; import { Dialog } from '../'; describe('Dialog', () => { it('should render a dialog with the mdl-dialog css class', () => { const outp...
packages/react-native-web/src/exports/AppRegistry/__tests__/index-test.js
necolas/react-native-web
/* eslint-env jasmine, jest */ import AppRegistry from '..'; import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { render } from '@testing-library/react'; import StyleSheet from '../../StyleSheet'; import Text from '../../Te...
src/views/routes.js
justin808/react-redux-universal-hot-example
import React from 'react'; import {Route} from 'react-router'; import App from 'views/App'; import Home from 'views/Home'; import Widgets from 'views/Widgets'; import About from 'views/About'; import Login from 'views/Login'; import Survey from 'views/Survey'; import NotFound from 'views/NotFound'; import Redirect from...
test/jasmine/tests/waterfall_test.js
aburato/plotly.js
var Plotly = require('@lib/index'); var Waterfall = require('@src/traces/waterfall'); var Lib = require('@src/lib'); var Plots = require('@src/plots/plots'); var Drawing = require('@src/components/drawing'); var Axes = require('@src/plots/cartesian/axes'); var createGraphDiv = require('../assets/create_graph_div'); ...
src/PopoverMenu/PopoverMenu.spec.js
skyiea/wix-style-react
import React from 'react'; import waitForCond from 'wait-for-cond'; import popoverMenuDriverFactory from './PopoverMenu.driver'; import PopoverMenu from './PopoverMenu'; import PopoverMenuItem from '../PopoverMenuItem/PopoverMenuItem'; import {createDriverFactory} from '../test-common'; import { isTestkitExists, i...
examples/client/react/src/app.js
ibrahim12/javascript-social
import React from 'react'; import { render } from 'react-dom'; var Auth = new JSSocial({ providers: { google: { clientId : '1007323276310-nn65ca3jlqtjn5higocuhkcq7lp2lpas.apps.googleusercontent.com' } } }) class App extends React.Component { constructor(props) { super(props...
node_modules/react-mdl/src/Badge.js
yomolify/cs-webserver
import React, { PropTypes } from 'react'; class Badge extends React.Component { static propTypes = { children: PropTypes.oneOfType([ PropTypes.element, PropTypes.string ]).isRequired, text: PropTypes.string.isRequired } render() { var { children } = ...
js/AsyncRoute.js
mcqnyc/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...
examples/backbone_marionette/node_modules/jquery/dist/jquery.js
ksteigerwald/todomvc
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if ...
ajax/libs/angular.js/0.9.3/angular-scenario.min.js
hagabaka/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
pages/page_500.js
GallenHu/Hinote
import React from 'react'; export default () => (<div>500</div>);
packages/blaze/template.js
deanius/meteor
// [new] Blaze.Template([viewName], renderFunction) // // `Blaze.Template` is the class of templates, like `Template.foo` in // Meteor, which is `instanceof Template`. // // `viewKind` is a string that looks like "Template.foo" for templates // defined by the compiler. /** * @class * @summary Constructor for a Templ...
src/svg-icons/image/filter-frames.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterFrames = (props) => ( <SvgIcon {...props}> <path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/> </...
src/app/components/Footer.js
Boluwatifes/andela24
import React from 'react'; const Footer = () => ( <div className="col s12 home-inner footer" > <div className="inner-content center m-auto"> <p> Copyright &copy; 2017 Andela24 News - All rights reserved </p> </div> </div> ); export default Footer;
docs/src/app/components/pages/components/Divider/ExampleForm.js
ruifortes/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; const style = { marginLeft: 20, }; const DividerExampleForm = () => ( <Paper zDepth={2}> <TextField hintText="First name" style={style} underlineShow={fal...
js/controls/RadioGroup.js
wingspan/wingspan-forms
import React from 'react' import Radio from './Radio' var PropTypes = React.PropTypes; var RadioGroup = React.createClass({ displayName: "RadioGroup", propTypes: { name: PropTypes.string, value: PropTypes.any, onChange: PropTypes.func, dataSource: PropTypes.arrayOf(PropTypes.s...
app/app.js
oliv37/vocab-front
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
frontend/src/screens/history/history.js
linea-it/qlf
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import TableHistory from './widgets/table-history/table-history'; import SelectDate from '../../components/select-date/select-date'; import SelectNight from './widgets/select-night/select...
karma.conf.js
edwinmp/ProgressCircle
var webpackConfig = require("./webpack.config"); Object.assign(webpackConfig, { debug: true, devtool: "inline-source-map" }); webpackConfig.externals.push("react/lib/ExecutionEnvironment"); webpackConfig.externals.push("react/lib/ReactContext"); webpackConfig.externals.push("react/addons"); webpackConfig.exter...
examples/typescript-backbone/node_modules/backbone/backbone.js
wishpishh/todomvc
// Backbone.js 1.2.1 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(factory) { // Establish the root object, `window` (`se...
client/src/containers/Join/Join.js
Angelmmiguel/discuzzion
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // Actions import { actions } from 'redux-router5'; import { joinRoom, generateKeys } from '../../actions/user'; // Custom fetch import fetch from '../../shared/fetch'; // Keys // import kbpgp from 'k...
react/features/toolbox/defaultToolbarButtons.js
parisjulien/arkadin-jitsimeet
/* @flow */ import React from 'react'; import UIEvents from '../../../service/UI/UIEvents'; import { openInviteDialog } from '../invite'; import { openDialOutDialog } from '../dial-out'; declare var APP: Object; declare var JitsiMeetJS: Object; /** * All toolbar buttons' descriptors. */ export default { /** ...
ajax/libs/onsen/1.3.13/js/onsenui.min.js
keicheng/cdnjs
/*! onsenui - v1.3.13 - 2015-11-10 */ !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...
app/javascript/mastodon/features/notifications/components/column_settings.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
client/containers/test/MatchContainer-spec.js
aNerdInTheHand/caretaker-manager
import test from 'ava' // import { shallow } from 'enzyme' // import jsdom from 'jsdom' // import React from 'react' // // import Domain from '../../components/Domain' // import { DomainPage } from '../DomainContainer' // // test.before(t => { // const doc = jsdom.jsdom('<!doctype html><html><body></body></html>') //...
Dnn.AdminExperience/Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/SiteSettings.Web/src/containers/Root.prod.js
RichardHowells/Dnn.Platform
import React, {Component} from "react"; import App from "../components/App"; class Root extends Component { constructor() { super(); } render() { let culture = window.parent["personaBarSettings"]["culture"]; let portalId = window.parent["personaBarSettings"]["portalId"]; ret...
docs/src/app/components/pages/components/Paper/ExampleSimple.js
igorbt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleSimple = () => ( <div> <Paper style={style} zDepth={1} /> <Paper style={style} zDepth={2} /> <Paper style={s...
app/common/components/VocabSynonym/VocabSynonymList.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import VocabSynonym from 'common/components/VocabSynonym/VocabSynonym'; import Element from 'common/components/Element'; VocabSynonymList.propTypes = { ids: PropTypes.arrayOf(PropTypes.number).isRequired, reviewId: PropTypes.number.isRequired, }; exp...
src/components/layouts/card.js
philholden/omysoul
import React from 'react' import { Row, Col } from './flex' import * as COLOR from '../../app/color-consts' import * as NUMBER from '../../app/number-consts' export const Card = ({ children, style, ...rest }) => { const _styles = [ { flex: 1, fontFamily: 'sans-serif', color: COLOR.TEXT_...
src/components/TabTitle.js
cheminfo/visualizer-on-tabs
import React from 'react'; import { Glyphicon } from 'react-bootstrap'; class TabTitle extends React.Component { constructor(props) { super(props); this.onClosedClicked = this.onClosedClicked.bind(this); } onClosedClicked(event) { event.stopPropagation(); event.preventDefault(); if (this.prop...
docs/app/Examples/modules/Sidebar/ScaleDown/SidebarExampleLeftScaleDown.js
mohammed88/Semantic-UI-React
import React, { Component } from 'react' import { Sidebar, Segment, Button, Menu, Image, Icon, Header } from 'semantic-ui-react' class SidebarLeftScaleDown extends Component { state = { visible: false } toggleVisibility = () => this.setState({ visible: !this.state.visible }) render() { const { visible } = ...
src/svg-icons/alert/warning.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertWarning = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); AlertWarning = pure(AlertWarning); AlertWarning.displayName = 'AlertWarning'; Aler...
ajax/libs/mediaelement/2.10.3/jquery.js
gaearon/cdnjs
/*! * jQuery JavaScript Library v1.7 * 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. *...
client/src/index.js
gtalent/soma
import axios from 'axios'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { HOST_ADDR } from './consts'; import './index.css'; axios.defaults.xsrfCookieName = 'csrftoken'; axios.defaults.xsrfHeaderName = 'X-CSRFT...
src/svg-icons/notification/sync-problem.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
docs/app/Examples/views/Feed/Content/Date.js
jcarbo/stardust
import React from 'react' import { Feed } from 'stardust' const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg' const Date = () => { return ( <Feed> <Feed.Event> <Feed.Label image={imageSrc} /> <Feed.Content> <Feed.Date>3 days ago</Feed.Date> <Feed.Sum...
fields/types/localfile/LocalFileField.js
developer-prosenjit/keystone
import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; module.exports = Field.create({ shouldCollapse () { return this.props.collapse && !this.hasExisting(); }, fileFieldNode () { return this.refs.fileField.getDOMNode(); }, changeFile ()...
src/web/solutions/Search/SolutionListItem.js
whybug/whybug-server
import React from 'react'; export var SearchResult = React.createClass({ propTypes: { uuid: React.PropTypes.string, level: React.PropTypes.string, message: React.PropTypes.string, programminglangauge: React.PropTypes.string }, render() { const params = { ...
docs/src/pages/system/flexbox/AlignContent.js
lgollut/material-ui
import React from 'react'; import Box from '@material-ui/core/Box'; export default function AlignContent() { return ( <div style={{ width: '100%' }}> <Box display="flex" flexWrap="wrap" alignContent="flex-start" p={1} m={1} bgcolor="background.paper" ...
src/components/InlineLoading/InlineLoading-test.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import InlineLoading from '../InlineLoading'; import Loading from '../Loading'; import { mount } from 'enzyme'; d...
ajax/libs/jQRangeSlider/4.2.1/jQRangeSliderBar.js
samthor/cdnjs
/** * jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2012 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function($, undefined){ "use strict"; $.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, { options: { leftHandle: null, ...
src/test/Example.js
Lucifier129/fe-starter
import React from 'react'; import {Link} from 'react-router'; export default class Example extends React.Component{ constructor(props){ super() } componentWillReceiveProps(){ console.debug('example receive new prop') } render(){ console.debug('Example rendering'); return ( <div> ...
OnlineShop-FrontEnd/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
dekapp/OnlineShop-FrontEnd
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
node_modules/react-icons/md/phonelink-off.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPhonelinkOff = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m38.4 13.4c0.9 0 1.6 0.7 1.6 1.6v16.6c0 1-0.7 1.8-1.6 1.8h-0.4l-5-5h3.6v-11.8h-6.6v8.7l-3.4-3.3v-7c0-0.9 0.8-1.6 1.8-1.6h10z m-31.8-2.9v17.9h17.9z m-3.4-7.8c10.8...
packages/react-widgets/src/Multiselect.js
haneev/react-widgets
// @flow import cn from 'classnames'; import closest from 'dom-helpers/query/closest'; import PropTypes from 'prop-types'; import React from 'react'; import uncontrollable from 'uncontrollable'; import Widget from './Widget'; import WidgetPicker from './WidgetPicker'; import Select from './Select'; import Popup from ...
ajax/libs/react-native-web/0.0.0-bd62af4f4/modules/UnimplementedView/index.js
cdnjs/cdnjs
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENS...