path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
Examples/UIExplorer/UIExplorerListBase.js
yzarubin/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, ...
components/LocationButton.js
brown-jones-industries/client
import React from 'react' import { connect } from 'react-redux' import { locationFetchLocation } from '../actions/location' import AnimatedLocationLoader from './AnimatedLocationLoader' class LocationButton extends React.Component { render () { let locationlabel = '' if (this.props.location.locationIsLoadi...
www/src/components/survey/questionTypes/MultipleQuestion.js
cygwin255/SimpleSurvey
import 'styles/styles.css' import React from 'react' import { Field, FieldArray } from 'redux-form' import RenderValidationField from 'components/survey/RenderValidationField' import { required } from 'redux-form-validators' import RenderMultipleQuestionOptions from 'components/survey/RenderMultipleQuestionOptions' co...
app/app.js
nypl-spacetime/logs-viewer
import React from 'react' import { findDOMNode } from 'react-dom' import LogsMap from './components/logs-map' import LogsList from './components/logs-list' import './app.scss'; const App = React.createClass({ getInitialState: function() { return { availableLogs: [], dataset: null, step: null...
ajax/libs/backbone-react-component/0.7.3/backbone-react-component-min.js
ericelliott/cdnjs
!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){"use strict";function ...
docs/src/_bilprospekt_table_component.js
Bilprospekt/bilprospekt-ui
import React from 'react'; import _ from 'underscore'; import {Table, TableDataWrapper} from 'bilprospekt-ui'; const alpha = "abcdefghijklmnopqrstuvxy".split("").slice(0, 8); const rowsCycle = 1000; const getRows = (columns, start = 0) => { const rows = _.range(rowsCycle).map((val, index) => { const newRo...
app/components/Footer.js
vanHeemstraDesigns/CreationsEcosystemStatic
import React from 'react'; import {Link} from 'react-router'; import FooterStore from '../stores/FooterStore' import FooterActions from '../actions/FooterActions'; class Footer extends React.Component { constructor(props) { super(props); this.state = FooterStore.getState(); this.onChange = this.onChange....
app/components/ProgressBar/index.js
fission/fission-ui
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
client/src/core-components/input.js
opensupports/opensupports
import React from 'react'; import classNames from 'classnames'; import _ from 'lodash'; import Icon from 'core-components/icon'; class Input extends React.Component { static contextTypes = { loading: React.PropTypes.bool }; static propTypes = { value: React.PropTypes.string, vali...
vendor/assets/plugins/jquery-ui-1.10.4/jquery-1.10.2.js
ourcity/minneapolis
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
packages/material-ui-icons/lib/Nightlife.js
mbrookes/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")...
packages/create-react-app/createReactApp.js
g3r4n/create-esri-react-app
/** * Copyright (c) 2015-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. */ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // /!\ DO NOT MODIFY THIS FILE /!\ // ~~~~~~~~~~~~~~~~...
ajax/libs/analytics.js/1.5.1/analytics.min.js
paleozogt/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
docs/app/Examples/elements/Image/Types/ImageExampleWrapped.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleWrapped = () => ( <Image src='/assets/images/wireframe/image.png' size='small' wrapped /> ) export default ImageExampleWrapped
geonode/monitoring/frontend/monitoring/src/components/molecules/average-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 # ...
frontend/jqwidgets/jqwidgets-react/react_jqxribbon.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxRibbon extends React.Component { componentDidMount() { let options = this.manageA...
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxedVery.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRelaxedVery = () => ( <Grid relaxed='very' columns={4}> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> ...
src/containers/Options.js
Duderis/pipes-game
import React from 'react'; import { connect } from 'react-redux'; import Options from '../components/Options'; import Actions from '../actions/actions'; function mapStateToProps(state) { return { size: state.game.size, startPipe: state.game.startPipe, endPipe: state.game.endPipe, na...
src/components/form-inputs/datetime.js
aichbauer/redux-valid-form
import React from 'react'; import PropTypes from 'prop-types'; import Input from '../../containers/input'; const Datetime = (props) => ( <Input type={props.type} data-form-id={props['data-form-id']} className={props.className} id={props.id} placeholder={props.placeholder} required={props.r...
src/routes.js
loqi/givingbranch
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
ajax/libs/jquery/1.8.3/jquery.js
aheinze/cdnjs
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
app/containers/Root.js
alanbo/devy-issue-tracker
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js
Showfom/cdnjs
/*! X-editable - v1.4.4 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
modules/userguide/media/guide/js/jquery.min.js
Moult/wipup-old
/*! * jQuery JavaScript Library v1.4.4 * 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. ...
react-router-demo/lessons/11-productionish-server/modules/Repos.js
zhangjunhd/react-examples
import React from 'react' import NavLink from './NavLink' export default React.createClass({ render() { return ( <div> <h2>Repos</h2> <ul> <li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li> <li><NavLink to="/repos/facebook/react">React</NavLink></l...
src/components/navigation.js
chrisclarke1977/tech-stack
'use strict'; /*import React from 'react'; import ReactDOM from 'react-dom'; import { renderIntoDocument } from 'react-addons-test-utils'; import { expect} from 'chai'; import { Navigation } from 'components'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router'; */ export default { ...
src/javascript/react/hoc/HOCDemo.js
cuzofu/sell-orange
import React from 'react'; import { compose } from 'recompose'; import Todo from "./Todo"; import Counter from "./Counter"; const withTodosNull = (Component) => (props) => !props.todos ? <div><p>Error</p></div> : <Component {...props} />; const withTodosEmpty = (Component) => (props) => !props.todos.length ? <div><p>...
ajax/libs/clappr/0.0.97/clappr.js
vdurmont/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);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)...
src/frame/rePCUI/select/base-select/util.js
gejialun8888/shop-react
import React from 'react'; export function getValuePropValue(child) { const props = child.props; if ('value' in props) { return props.value; } if (child.key) { return child.key; } if (child.type && child.type.isSelectOptGroup && props.label) { return props.label; } throw new Error( `Nee...
build/js/main.min.js
kjbrum/giftr
!function(t,e,i,s){"use strict";function n(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),t}var a=function(e){for(var i=e.length;i--;)0===t("head").has("."+e[i]).length&&t("head").append('<meta class="'+e[i]+'">')};a(["foundation-mq-small","foundation-mq-medium","f...
src/widgets/components/PetitionWidgetByline/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './petition-widget-byline.scss'; const PetitionWidgetImage = ({ text }) => ( <p className={styles.root}> {text} </p> ); export default PetitionWidgetImage;
examples/huge-apps/routes/Grades/components/Grades.js
iest/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
code/web/node_modules/react-bootstrap/es/Label.js
zyxcambridge/RecordExistence
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
core/misc/tabbingmanager.js
natem/tahoe-treetop
/** * @file * Manages page tabbing modifications made by modules. */ /** * Allow modules to respond to the constrain event. * * @event drupalTabbingConstrained */ /** * Allow modules to respond to the tabbingContext release event. * * @event drupalTabbingContextReleased */ /** * Allow modules to respond ...
src/components/SuggestBox.js
todvora/extrade
import React from 'react' import '../styles/autosuggest.less' import Autosuggest from 'react-autosuggest' import update from 'react-addons-update' export default class SuggestBox extends React.Component { constructor () { super() this.onSuggestionSelected = this.onSuggestionSelected.bind(this) this.getS...
src/layouts/CoreLayout/CoreLayout.js
dannyrdalton/example_signup_flow
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' import 'react-widgets/lib/less/react-widgets.less' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__vi...
src/index.js
mbarton/sonic-quiche
/* global Opal */ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; // https://stackoverflow.com/questions/31707725/embedding-a-ruby-interpreter-in-browser Opal.load('opal-parser'); ReactDOM.render(<App />, document.getElementById('root'));
client/admin/settings/inputs/SelectSettingInput.js
iiet/iiet-chat
import { Box, Field, Flex, Select, } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../contexts/TranslationContext'; import { ResetSettingButton } from '../ResetSettingButton'; export function SelectSettingInput({ _id, label, value, placeholder, readonly, auto...
ajax/libs/js-data/1.7.0/js-data-debug.min.js
tonytlwu/cdnjs
/*! * js-data * @version 1.7.0 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
packages/material-ui-icons/src/MessageRounded.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="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3 12H7c-.55 0-1-.45-1-1s.45-1 1-1h10c.55 0 1 .45 1 1s-.45 1-1 1zm0...
frontend/src/components/SkillsDetails/SkillsDetails.js
blalasaadri/TechTalent
import React from 'react'; import { Panel } from 'react-bootstrap'; import { Chart } from 'react-google-charts'; import ReactBootstrapSlider from 'react-bootstrap-slider'; import 'bootstrap-slider/dist/css/bootstrap-slider.min.css'; class SkillsDetails extends React.Component { constructor (props) { super(prop...
ajax/libs/rxjs/2.4.6/rx.lite.js
shallaa/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; ...
src/components/Frontend/Area.js
Angular-Toast/habitat
import React from 'react'; import { StyleSheet, Text, View, ART, } from 'react-native'; const { Surface, Group, Rectangle, ClippingRectangle, LinearGradient, Shape, } = ART; import Art from './Art'; import * as scale from 'd3-scale'; import * as shape from 'd3-shape'; import * as format from 'd3-...
test/components/label-spec.js
nordsoftware/react-foundation
import React from 'react'; import { render } from 'enzyme'; import { expect } from 'chai'; import { Label } from '../../src/components/label'; import { Colors } from '../../src/enums'; // TODO: Add test cases for invalid enum values describe('Label component', () => { it('sets tag name', () => { const componen...
src/components/SearchTracks.js
Carlado/Indieling
import React from 'react'; import { Link } from 'react-router'; import FontAwesome from 'react-fontawesome'; const SearchTracks = (props) => { if (!props.tracks) { return <div/>; } const tracksList = props.tracks.results.map((track) => { return ( <li key={track.id} className="track"> <img ...
packages/react-scripts/template/src/index.js
0xaio/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/containers/App/index.js
tzibur/site
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
ajax/libs/mobx/2.0.5/mobx.min.js
ahocevar/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ function U(e,i){o(e,"autorun methods cannot have modifiers"),n("function"==typeof e,"autorun expects a function"),n(0===e.length,"autorun expects a function without arguments"),i&&(e=e.bind(i));var r=new S(e.name||"Autorun",function(){this.track(e)});return ...
src/svg-icons/communication/call-end.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
public/app/src/components/Pagination.js
wjwu/blog
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const genFirstItem = () => { return { text: 1, value: 1, active: false }; }; const genLastItem = (index) => { return { text: index, value: index, active: false }; }; cons...
src/Mailman.Server/ClientApp/src/components/ProtectedRoute.js
coe-google-apps-support/Mailman
import React from 'react' import { Route, Redirect } from 'react-router-dom' import configureStore from '../store/ConfigureStore' let store = configureStore() const ProtectedRoute = ({ component: Component, ...rest }) => { let state = store.getState() return ( <Route {...rest} render={props => { ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
DreamInMexico/DIM-web
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
modules/__tests__/_bc-History-test.js
rdjpalmer/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' // skipping to remove warnings, and we don't intent t...
examples/simple/components/ShadowScrollbars/App.js
malte-wessel/react-custom-scrollbars
import React, { Component } from 'react'; import ShadowScrollbars from './ShadowScrollbars'; export default class App extends Component { render() { return ( <ShadowScrollbars style={{ height: 300 }}> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, se...
ajax/libs/react-localstorage/0.1.0/react-localstorage.js
cdnjs/cdnjs
'use strict'; var React = require('react'); var invariant = require('react/lib/invariant'); var ls = global.localStorage; var Mixin = module.exports = { componentDidUpdate: function(prevProps, prevState) { if (!ls) return; var key = getLocalStorageKey(this); var prevStoredState = ls.getItem(key); if ...
desktop/apps/auction2/test/components.js
dblock/force
require('babel-core/register') require('coffee-script/register') import * as actions from '../actions' import auctions from '../reducers' import ArtistFilter from '../components/artist_filter' import AuctionGridArtwork from '../components/auction_grid_artwork' import AuctionListArtwork from '../components/auction_list_...
src/components/edit/MainForm.js
chjourdain/react-redux-ref
import React from 'react'; import {addPerson} from '../../actions'; import Form from '../Form/Form'; import Input from '../Form/Input'; /** * Created by chjourdain on 12/07/16. */ export default class MainForm extends React.Component { render() { return ( <div> <Form ...
node_modules/react-native/local-cli/link/android/patches/makeImportPatch.js
tausifmuzaffar/bisApp
module.exports = function makeImportPatch(packageImportPath) { return { pattern: 'import com.facebook.react.ReactApplication;', patch: '\n' + packageImportPath, }; };
src/components/ErrorContainer.js
kooinam/awry-utilities
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Spin } from 'antd'; /* <ErrorContainer key={this.state.tableParams.uuid} onRetry={this.loadItems} spinning={this.state.tableParams.isLoading} /> */ class ErrorContainer extends Component { constructor(props) { ...
src/components/introduction/introduction.js
cwparsons/cwparsons.ca
import { graphql, useStaticQuery } from 'gatsby'; import Img from 'gatsby-image'; import React from 'react'; import styles from '../../styles/main.module.scss'; export const Introduction = () => { const { image } = useStaticQuery( graphql` query { image: file(relativePath: { eq: "portrait/portrait.jpg" }) {...
es/components/sidebar/panel-element-editor/panel-element-editor.js
cvdlab/react-planner
import React from 'react'; import PropTypes from 'prop-types'; import Panel from '../panel'; import { Seq } from 'immutable'; import { MODE_IDLE, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, MODE_2D_PAN, MODE_3D_VIEW, MODE_3D_FIRST_PERSON, MODE_WAITING_DRAWING_LINE, MODE_DRAWING_LINE, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_D...
packages/core/src/icons/components/Folder.js
iCHEF/gypcrete
import React from 'react'; export default function SvgFolder(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path data-name="\u89D2\u4E38\u9577\u65B9\u5F62 6 \u306E\u30B3\u30D4\u30FC 5" d=...
app/containers/Menu.js
kivo360/ECC-GUI
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import style from './Menu.css'; import * as CounterActions from '../actions/counter'; class Menu extends Component { constructor(props) { super(p...
versions/3-redux/2-thunk/client/src/index.js
hamczu/techsummit-web2016
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './App' import store from './store' render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') )
src/component/landing-container/index.js
Spwahle/Narcan-Now-Frontend
import './_landing-container.scss'; import React from 'react'; import AuthForm from '../auth-form'; import {connect} from 'react-redux'; import * as utils from '../../lib/utils'; import {signupRequest, loginRequest} from '../../action/auth-actions'; class LandingContainer extends React.Component { render() { let...
ajax/libs/react-instantsearch/5.5.0/Dom.js
sufuf3/cdnjs
/*! React InstantSearch 5.5.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
src/js/table/index.js
HBM/md-components
import React from 'react' import classnames from 'classnames' import {Button, Edit, ArrowUpward, ChevronLeft, ChevronRight} from '../icon/' import Select from '../select/' import keycode from 'keycode' // internal helper component class EditDialog extends React.Component { onSubmit = (event) => { event.preventD...
docs/src/sections/PopoverSection.js
jesenko/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function PopoverSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
client-src/index.js
minimus/final-task
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { BrowserRouter as Router } from 'react-router-dom' import Application from './Application' import createStore from './redux' import './index.css' const store = createStore() ReactDOM.render( <Provider store={st...
ui/src/components/Material/Switch/index.js
LearningLocker/learninglocker
import React from 'react'; import Switch from 'react-toolbox/lib/switch'; import styled from 'styled-components'; const rippleClassName = 'ms-ripple'; const offClassName = 'ms-off'; const onClassName = 'ms-on'; const thumbClassName = 'ms-thumb'; const StyledSwitch = styled(Switch)` .${rippleClassName} { backgro...
public/components/tehtPage/tabsComponents/templates/KuvatVideotTemplate.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import MainContent from './MainContent'; const KuvatVideotTemplate = (props) => ( <div className="kuvatvideot-grid"> <MainContent component={props.component} className="kuvatvideotcontent" {...props} /> </div> ); export default KuvatVideotTemplate;
src/routes/error/index.js
yvanwangl/UniversalBlog
/** * 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 ErrorPage from './Err...
test/specs/lib/getUnhandledProps-test.js
koenvg/Semantic-UI-React
import React from 'react' import { getUnhandledProps } from 'src/lib' // We spread the unhandled props onto the rendered result. // Then, we can test the props of the rendered result. // This is the intended usage of the util. function TestComponent(props) { return <div {...getUnhandledProps(TestComponent, props)} /...
client/src/MyJobsButton.js
roxroy/codeploy
import React, { Component } from 'react'; class MyJobsButton extends Component { constructor(props) { super(props); this.viewJobs = this.viewJobs.bind(this); } viewJobs() { this.props.closeResourceModal(); this.props.viewJobs(); } render(){ return( <div> <button className="m...
packages/es-components/src/components/containers/tooltip/Tooltip.specs.js
TWExchangeSolutions/es-components
/* eslint-env jest */ import React from 'react'; import { fireEvent, waitFor } from '@testing-library/react'; import Tooltip from './Tooltip'; import { renderWithTheme } from '../../util/test-utils'; it('displays when the mouse enters the target and hides when the mouse leaves the target', async () => { const inst...
src/app-main.js
adventure-yunfei/react-2048
import React from 'react'; import {render} from 'react-dom'; import {createStore} from 'redux'; import {connect, Provider} from 'react-redux'; import reducer from './reducer'; import Game2048 from './Game2048'; const store = createStore(reducer); const ConnectedGame2048 = connect((state) => ({ pieces: state.get(...
src/js/components/common/Radio/index.js
zacyu/bilibili-helper
/** * Author: Ruo * Create: 2018-07-29 * Description: 单选按钮组(圆形) */ import React from 'react'; import PropTypes from 'prop-types'; import styled, {ThemeProvider} from 'styled-components'; import {theme} from 'Styles/theme'; import {Ripple} from 'Components'; import Color from 'color'; const {color} = theme; const...
examples/src/components/DisabledUpsellOptions.js
alanrsoares/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 DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
src/view/components/DabChanger.js
Danny-Robinson/bt-bingo
import React, { Component } from 'react'; class DabChanger extends Component { constructor(props) { super(props); this.red = this.red.bind(this); this.blue = this.blue.bind(this); this.green = this.green.bind(this); this.pink = this.pink.bind(this); this.orange = thi...
pootle/static/js/auth/components/PasswordResetForm.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import assign from 'object-assign'; import React from 'rea...
ajax/libs/places.js/1.4.8/placesInstantsearchWidget.js
seogi1004/cdnjs
/*! 1.4.8 | © Algolia | github.com/algolia/places */ (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')...
src/modules/pages/App.js
lenxeon/react
import React from 'react'; import {Router, Route, Redirect, Link, History} from 'react-router'; import PubSub from 'pubsub-js' import Loading from './Loading'; import Header from './Header'; import Skydrive from './skydrive'; import Task from './tasks'; import Ask from './ask'; import Feeds from './feeds/js'; const BO...
src/server/main.js
messa/itsrazy.cz-web
import api from './api'; import config from './config'; import errorHandler from './lib/errorhandler'; import express from 'express'; import frontend from './frontend'; import {Server} from 'http'; const app = express(); const server = Server(app); // Load API. app.use('/api/v1', api); // Load react-js frontend. app...
server/server.js
Trulsabe/reactLinuxMern
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/Level/Level.js
boldr/boldr-ui
/* @flow */ import React from 'react'; import classNames from 'classnames'; import { StyleClasses } from '../theme/styleClasses'; import { createWrappedComponent } from '../util/boldrui'; export type Props = { tag?: string, isMobile?: boolean, className?: string, href?: string, }; const BASE_ELEMENT = StyleCl...
packages/material-ui-icons/src/SettingsInputAntennaOutlined.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="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 ...
ajax/libs/core-js/0.4.4/core.js
stefanneculai/cdnjs
/** * Core.js 0.4.4 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
f2e/src/js/compoents/app/app.js
NyaaFinder/nyaacat
// 一个组件是一个模块,自己带有自己的样式 import React from 'react'; import AppActions from'../../actions/AppActions'; import AppStore from'../../stores/AppStore'; import Socket from 'socket.io-client'; import Dialog from '../dialog/dialog.jsx'; import Login from '../dialog/login.jsx'; import Foot from '../foot/foot.jsx'; import Head fro...
src/components/loader.js
carlosfh87/KN_REACT_API
import React, { Component } from 'react'; export default class Loader extends Component { render(){ return( <div className="loader col-md-12"> <div className="loader-container col-md-offser-3 col-md-6"> <i className="fa fa-refresh fa-spin"></i> ...
website/src/index.js
half-shell/react-navigation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import BrowserAppContainer from './BrowserAppContainer'; import './prism.css'; import './App.css'; import '@blueprintjs/core/dist/blueprint.css'; const ClientApp = BrowserAppContainer(App); ReactDOM.render( <ClientApp />, docum...
src/svg-icons/editor/bubble-chart.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
node_modules/react-icons/fa/american-sign-language-interpreting.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaAmericanSignLanguageInterpreting = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m18.1 21.1q-1.1 0-1.5-0.9-0.3-0.6-0.8-1t-1.2-0.3q-1 0-1.6 0.6t-0.7 1.6q0 1 0.7 1.6l0.1 0.1q0.6 0.6 1.5 0.6 0.6 0 1.2-0.4t0.8-0.9q0.4-0.9 1.5-...
ajax/libs/forerunnerdb/1.3.711/fdb-all.js
dada0423/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/server/routes/index.js
Insanehero/Serverside-Rendering-Example
import express from 'express'; import React from 'react'; import ReactServer from 'react-dom/server'; import App from '../../client/components/App'; import fs from 'fs'; let router = express.Router(); router.get('*', (req, res) => { let initialState = {}; //Set the initial state of the app initialState.peopleLis...
src/utils/domUtils.js
rapilabs/react-bootstrap
import React from 'react'; let canUseDom = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); /** * Get elements owner document * * @param {ReactComponent|HTMLElement} componentOrElement * @returns {HTMLElement} */ function ownerDocument(componentOrElement) { let e...
packages/material-ui-icons/src/LocalBarOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14.77 9L12 12.11 9.23 9h5.54M21 3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9V3zM7.43 7L5.66 5h12.69l-1.78 2H7.43z" /></React.Fragment> , 'LocalBarOutlined')...
src/icons/EjectIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class EjectIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/></svg>;} };
src/svg-icons/image/timelapse.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
src/svg-icons/action/settings-power.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
app/app.js
jaadam/golfer-web
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import 'static/styles/bundle.css'; import App from 'containers/App'; import Dashboard from 'containers/Dashboard'; import Tournament from 'containers/Tourna...