path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/js/views/forms.js
maxmechanic/resumaker
import React from 'react'; import resumeStructures from './resume-structures'; import { capitalize } from 'lodash'; const buildForm = ([section, attributes]) => props => { const handleSubmit = (e) => { e.preventDefault(); props.handleSubmit(section, e.target); }; return ( <form onSubmit={handleSubm...
ajax/libs/react-router-bootstrap/0.17.0/ReactRouterBootstrap.min.js
Amomo/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-bootstrap")):"function"==typeof define&&define.amd?define(["react","react-bootstrap"],t):"object"==typeof exports?exports.ReactRouterBootstrap=t(require("react"),require("react-bootstrap")):e.ReactRouterBoo...
test/app-tests/loading.js
martindale/vector
/* Copyright 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
fields/types/textarea/TextareaField.js
dryna/keystone-twoje-urodziny
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'TextareaField', statics: { type: 'Textarea', }, renderValue () { const { height } = this.props; const styles = { height: height, white...
web/src/SuggestTweets.js
remeh/smartwitter
import React, { Component } from 'react'; import { Button, Container, Divider, Tab, } from 'semantic-ui-react' import XHR from './xhr.js'; import TweetCard from './TweetCard.js'; import './App.css'; class SuggestTweets extends Component { constructor(props) { super(props); this.refreshTimeout = null...
StudyNotes/ReactNative_/js/listview.js
coderZsq/coderZsq.target.swift
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ListView } from 'react-native'; var _ListView = React.createClass({ getInitialState(){ var ds = new ListView.DataSource({ rowHasChanged:(r1, r2) => r1 !== r2 }); return { da...
app/jsx/bundles/calendar_appointment_group_edit.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
src/Tabs/Tabs.spec.js
frnk94/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Tabs from './Tabs'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Tabs />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {context: {muiTh...
ajax/libs/yui/3.4.0/loader/loader-debug.js
masimakopoulos/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
src/app/films/NewFilm/Uploader/Uploader.js
JoeKarlsson1/bechdel-test
import '@uppy/core/dist/style.css'; import '@uppy/dashboard/dist/style.css'; import React, { Component } from 'react'; import { Uppy } from '@uppy/core'; import { Dashboard, DragDrop, ProgressBar } from '@uppy/react'; import XHRUpload from '@uppy/xhr-upload'; import ErrorBoundary from '../../../shared/ErrorBoundary/Err...
src/components/Weui/mediabox/mediabox_info.js
ynu/res-track-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; import MediaBoxInfoMeta from './mediabox_info_meta'; export default class MediaBoxInfo extends React.Component { static propTypes = { data: React.PropTypes.array, }; static defaultProps = { data...
react-fundamentals/children-components/utilities/src/index.js
FMCalisto/react-get-started
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App cat={5} />, document.getElementById('root') );
definitions/npm/react-native-maps_v0.16.x/flow_v0.53.x-/test_react-native-maps.js
mwalkerwells/flow-typed
import MapView from 'react-native-maps'; import React, { Component } from 'react'; // $ExpectError const A = <MapView initialRegion="mexico" />; const B = <MapView />; // $ExpectError const C = <MapView.Marker />; const D = <MapView.Marker coordinate={{ latitude: 50, longitude: 50 }} />;
scripts/rollup/shims/rollup/assign-umd.js
maxschmeling/react
var ReactInternals = require('react') .__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; module.exports = ReactInternals.assign;
ajax/libs/material-ui/5.0.0-alpha.16/modern/internal/svg-icons/NavigateBefore.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");
src/svg-icons/image/looks-5.js
pomerantsev/material-ui
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...
packages/browser-article-navigation/src/App.js
maurizzzio/blog
import React from 'react' import { connect } from 'react-redux' import { Flex } from 'rebass' import styled from 'styled-components' import cs from 'classnames' import titleCase from 'title-case' import { interpolateMagma } from 'd3-scale' import Directory from './components/Directory/' const Root = styled.div` mar...
client/node_modules/rx-lite/rx.lite.js
ShaunMaher/SeamlessSession2
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exp...
ajax/libs/rxjs/2.2.14/rx.js
jdh8/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, 'u...
ajax/libs/yui/3.6.0pr4/simpleyui/simpleyui.js
liubo404/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @main yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI gl...
src/js/posts/components/comment-item.js
akornatskyy/sample-blog-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Media from '../../shared/components/media'; import {formatDateOrTime} from '../../shared/utils'; import './comment-item.scss'; const CommentItem = ({item}) => { const gravatarUrl = 'http://www.gravatar.com/avatar/' + ite...
web/src/js/components/Search/CodeFuelPixel.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' // Impression tracking for search result items. const CodeFuelPixel = ({ url }) => { // eslint-disable-next-line jsx-a11y/alt-text return <img src={url} style={{ display: 'none', width: 1, height: 1 }} /> } CodeFuelPixel.propTypes = { url: PropTypes.st...
ajax/libs/zxcvbn/1.0.5/zxcvbn.min.js
seogi1004/cdnjs
(function(){var aC,aM,aK,aB,ah,ag,af,ae,ad,ac,ab,t,ap,aL,ao,r,o,m,l,k,i;ab=function(n){var p,q;q=[];for(p in n){q.push(p)}return 0===q.length};ap=function(n,p){return n.push.apply(n,p)};k=function(n,p){var w,u,s,v,q;v=n.split("");q=[];u=0;for(s=v.length;u<s;u++){w=v[u],q.push(p[w]||w)}return q.join("")};r=function(n,p)...
gifbox-ui/stories/Welcome.js
timmygee/gifbox
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
dnaclub/web/sb_admin_2/bower_components/datatables/media/js/jquery.js
ivan-uskov/dnaclub
/*! 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...
packages/specular-dmx/src/create-fixture.js
madjam002/specular
import React from 'react' export function createFixture(Definition, universe, startChannel) { return class FixtureWrapper extends React.Component { render() { return ( <Definition universe={universe} start={startChannel} {... this.props} /> ) } } }
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Tysher/CrowdStorm
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'));
src/jsx/components/__tests__/searchField-test.js
CBIConsulting/ProperSearchField
import SearchField from '../searchField'; import TestUtils from "react-addons-test-utils"; import React from 'react'; import ReactDOM from 'react-dom'; import {Deferred} from 'jquery'; describe('SearchField', () => { it('is available', () => { expect(SearchField).not.toBe(null); }); it('throttles', (done) => { ...
scripts/start.js
zhaohuanwener/company-search-react
'use strict'; // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'development'; process.env.NODE_ENV = 'development'; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will ...
app/components/slider.js
jzhang729/zoey.news
import React from 'react' import ReactSlider from 'react-slider' import SliderLegend from './sliderlegend' import Fluxxor from 'fluxxor' var FluxMixin = Fluxxor.FluxMixin(React) export default React.createClass({ mixins: [FluxMixin], getInitialState: function() { return { value: [this.props.startDate, t...
src/mui/list/DeleteMultipleAction.js
matteolc/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import inflection from 'inflection'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import FlatButton from 'material-ui/FlatButton'; import DeleteIcon from 'material-ui/svg-icons/action/delete'; impor...
src/components/show/handouts.js
abbr/ShowPreper
import React from 'react' import DeckStore from 'stores/deck' import 'bootstrap' import 'components/app.less' import './handouts.less' import Global from './global' var DisplayableComponent = require('components/widgets/displayableComponent') export default class extends React.Component { constructor(props) { su...
modules/__tests__/isActive-test.js
rubengrill/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' import qs from 'qs' describe('isActive', functi...
server/sonar-web/src/main/js/components/select-list/footer.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
com.bigtester.ate.tcg.webclient/WebContent/build/firebug-lite-debug.js
peidong-hu/ate-tcg-client
(function(){ /******************************************************************************* * ! * * Firebug Lite 1.4.0a1 * * Copyright (c) 2007, Parakey Inc. Released under BSD license. More * information: http://getfirebug.com/firebuglite * ******************************************************...
src/components/SearchMovies.js
hadynz/pact-testing-example
import React, { Component } from 'react'; import * as axios from 'axios'; import Movie from './Movie'; class SearchMovies extends Component { constructor(props) { super(props); this.state = { lastMovie: {}, name: 'point break' }; } searchMovie = (name) => { axios.get('http://www.omdbapi.com', { ...
sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
djredhand/jd_test
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements...
files/clappr/0.0.84/clappr.js
leebyron/jsdelivr
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)...
app/jsx/pages/NotFound/index.js
sfu/canvas-spaces
import React from 'react'; export default () => { const divstyle = { textAlign: 'center', paddingTop: '35px', }; const imgstyle = { width: '25%', }; return ( <div style={divstyle}> <img style={imgstyle} src="/images/sadpanda.svg" alt="The panda is sad because i...
client/src/inventory/vendor-list.js
brandiqa/open-lims
/** DEPRECATED: Vendor-list is deprectaed in favor of templates/domain-list.ls **/ import React from 'react'; import { observer } from 'mobx-react'; import { Message, Icon, Table } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import { INVENTORY_ROUTE } from '../config/routes'; @observer class ...
client/pages/create-user.js
pradel/octon
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Router from 'next/router'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import compose from 'recompose/compose'; import styled from 'styled-components'; import { CircularProgress } from 'material-ui/Progress';...
xixi/static/vendor/jquery/jquery.js
defbobo/xixi
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
ajax/libs/mobx/2.4.1/mobx.js
nolsherry/cdnjs
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; registerGlobals(); exports.extras = { allowS...
ajax/libs/yui/3.9.0/event-focus/event-focus-coverage.js
bryantrobbins/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
__tests__/components/signUp-test.js
loyalchen/ProjectManagement
jest.unmock('../../dev/components/RegisterForm'); jest.unmock('immutable'); jest.unmock('bluebird'); jest.unmock('underscore.string'); jest.unmock('../../dev/globalFunc') import SignUp from '../../dev/components/RegisterForm'; import { shallow, mount } from 'enzyme'; import Immutable from 'immutable'; import React f...
app/slack/personality.js
Studnicky/SlackBot
var personality = { name: 'personality', events: function(controller, bot){ var pug_time = true; controller.on('reaction_added', function(bot, message){ if(message.reaction == "pug" && pug_time == true){ bot.reply(message, {"type": "typing"}); var post = { channel: message.item.channel, u...
public/js/zeto1.0rc.js
xsscode/homsing
/*! * jQuery JavaScript Library v1.12.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-04-05T19:16Z */ (function( global, factory ) { if ( typeof module =...
test/PageHeaderSpec.js
natlownes/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
src/components/round/deleteAllOrderedBeverage.js
jollopre/beverage_planning
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { destroyAllOrderedBeverage } from '../../actions/orderedBeverages'; class DeleteAllOrderedBeverage extends Component { constructor() { super(); this.onSubmit = this.onSubmit.bind(this); } ...
ajax/libs/yui/3.3.0/event-custom/event-custom.js
wormful/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
frontend/components/review/Review.js
razoorka/projects
import React, { Component } from 'react'; import styles from './review.sass'; class Review extends Component { constructor(props) { super(props); } render() { return ( <div className={styles.alert}>Request project review</div> ) } }; export default Review;
monkey/monkey_island/cc/ui/src/components/report-components/RansomwareReport.js
guardicore/monkey
import React from 'react'; import ReportHeader, {ReportTypes} from './common/ReportHeader'; import ReportLoader from './common/ReportLoader'; import AttackSection from './ransomware/AttackSection'; import LateralMovement from './ransomware/LateralMovement'; import '../../styles/pages/report/RansomwareReport.scss'; im...
ajax/libs/yui/3.8.0/simpleyui/simpleyui-debug.js
gabel/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespace obj...
ajax/libs/redux-form-material-ui/4.2.0/redux-form-material-ui.min.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReduxFormMaterialUi=t():e.ReduxFormMaterialUi=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exp...
src/club.js
BudIT/vclub
import 'webrtc-adapter'; import React from 'react'; import io from 'socket.io-client'; import { render } from 'react-dom'; import { createStore, compose, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import ClubLayout from 'vclub/views/clubLayout/ClubLayout'; import sideEffectProcessor fro...
ajax/libs/reactive-coffee/1.1.0/reactive-coffee.min.js
paleozogt/cdnjs
(function(){var a,b=[].slice,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};a=function(a,c,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V...
client/src/containers/Gallery/GalleryDND.js
silverstripe/silverstripe-asset-admin
/* global window */ import React, { Component } from 'react'; import classnames from 'classnames'; import GalleryItemDragLayer from 'components/GalleryItem/GalleryItemDragLayer'; import PropTypes from 'prop-types'; import context from 'lib/withDragDropContext'; /** * Wrapper stateless component, this is primarily to ...
src/svg-icons/places/room-service.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRoomService = (props) => ( <SvgIcon {...props}> <path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"...
ajax/libs/material-ui/5.0.0-alpha.13/legacy/utils/useEventCallback.js
cdnjs/cdnjs
import * as React from 'react'; import useEnhancedEffect from './useEnhancedEffect'; /** * https://github.com/facebook/react/issues/14099#issuecomment-440013892 * @param {function} fn */ export default function useEventCallback(fn) { var ref = React.useRef(fn); useEnhancedEffect(function () { ref.current = ...
ajax/libs/vue/2.1.0/vue.common.js
cdnjs/cdnjs
/*! * Vue.js v2.1.0 * (c) 2014-2016 Evan You * Released under the MIT License. */ 'use strict'; /* */ /** * Convert a value to a string that is actually rendered. */ function _toString (val) { return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val) }...
test/integration/image-component/default/pages/invalid-src-proto-relative.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Invalid Protocol Relative Source</p> <Image src="//assets.example.com/img.jpg" width="10" height="10" /> </div> ) } export default Page
ajax/libs/forerunnerdb/1.3.869/fdb-core.min.js
tholu/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...
src/routes/user/List.js
mapengze/Antd-Backstage
import React from 'react' import PropTypes from 'prop-types' import { Table, Modal } from 'antd' import styles from './List.less' import classnames from 'classnames' import AnimTableBody from '../../components/DataTable/AnimTableBody' import { DropOption } from '../../components' import { Link } from 'dva/router' cons...
docs/src/pages/premium-themes/onepirate/modules/views/ProductCategories.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import ButtonBase from '@material-ui/core/ButtonBase'; import LayoutBody from '../components/LayoutBody'; import Typography from '../components/Typography'; const styles = theme => ({ root: { mar...
src/containers/Admin/Users/Users.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Table from '../../../components/uielements/table'; import Pagination from '../../../components/uielements/pagination'; import Button from '../../../components/uielements/button'; import { Row, Col } from 'antd'; import Moment from 'react-moment'; import userActions from ...
example/src/screens/types/Push.js
okarakose/react-native-navigation
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; class Push extends React.Component { render() { return ( <View style={styles.container}> <Text>Push Screen</Text> </View> ); } } const styles = StyleSheet.create({ con...
react/features/base/react/components/native/Link.js
bgrozev/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { Linking } from 'react-native'; import Text from './Text'; /** * The type of the React {@code Component} props of {@link Link}. */ type Props = { /** * The children to be displayed within this Link. */ children: React$Node, /** ...
src/components/DateInput/DateInput.js
denimar/denibudget
import React from 'react' import ReactPikaday from 'react-pikaday'; import 'pikaday/css/pikaday.css' import './DateInput.scss' import { I18n } from 'react-redux-i18n'; import 'moment'; if (I18n.t('lang') != 'en') { require('moment/locale/' + I18n.t('lang')); } class DateInput extends React.Component { constructo...
packages/material-ui-icons/src/VpnKeySharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 ....
src/svg-icons/device/graphic-eq.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGraphicEq = (props) => ( <SvgIcon {...props}> <path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/> </SvgIcon> ); DeviceGraphicEq = pure(DeviceGraphicEq); DeviceGraphi...
src/containers/App.js
m9dfukc/redux-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as Actions from '../actions'; import InputItem from '../components/InputItem'; import ItemList from '../components/ItemList'; import Counter from '../components/Counter'; class App extends Component { render() { const { c...
spec/components/checkbox.js
soyjavi/react-toolbox
import React from 'react'; import Checkbox from '../../components/checkbox'; class CheckboxTest extends React.Component { state = { checkbox_1: true, checkbox_2: false, checkbox_3: true }; handleChange = (field, value) => { this.setState({...this.state, [field]: value}); }; handleFocus = ()...
src/svg-icons/image/assistant-photo.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
src/routes/orbit/index.js
codyromano/destiny
import React from 'react'; import Orbit from './Orbit'; export default { path: '/orbit', action() { return <Orbit />; } };
util/ReadJSON.js
xeejp/ultimatum-game
import React from 'react' export function ReadJSON() { if(typeof ReadJSON.text === 'undefined') ReadJSON.text = require('./language.json') return ReadJSON.text } export function LineBreak(text) { var regex = /(\n)/g return text.split(regex).map(function (line) { if (line.match(regex)) { return React...
packages/ringcentral-widgets-docs/src/app/components/SideBarView/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import classnames from 'classnames'; import Collapse from '../Collapse'; import styles from './styles.scss'; const STYLES_ITEMS = [ { name: 'Colors', path: '/styles/colors', }, { name: 'Buttons', ...
packages/material-ui-icons/src/CompareArrows.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CompareArrows = props => <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z" /> </SvgIcon>; CompareArrows = pure(CompareArrows); CompareArrows.muiNam...
frontend/js/components/pages/profile.js
skeswa/equitize
import React from 'react'; import {Navigation, Link} from 'react-router'; import PrivatePageMixin from '../../mixins/privatepage'; const Profile = React.createClass({ mixins: [ PrivatePageMixin ], render: () => { return ( <div> <h1>profile</h1> </div>...
client/Accounts/AccountsUIWrapper.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; import ReactDOM from 'react-dom'; export default class AccountsUIWrapper extends React.Component { componentDidMount() { // Use Meteor Blaze to render login buttons this.view = Blaze.render(Template.loginButtons, ReactDOM.findDOMNode(this.refs.container)); } component...
internals/templates/containers/NotFoundPage/index.js
blockfs/frontend-react
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/components/posts_index.js
telos/Blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions/index'; class PostsIndex extends Component { // Automatically called by React as soon as component has shown on the screen compon...
ajax/libs/material-ui/5.0.0-alpha.33/node/ListItem/ListItem.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.ListItemRoot = exports.overridesResolv...
src/addons/transitions/__tests__/ReactTransitionGroup-test.js
silppuri/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
src/svg-icons/action/settings-voice.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
bootstrap-3.0.0/js/tests/vendor/jquery.js
pkafei/Flask-Visualization
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
lib/components/tabs.js
KunalKene1797/hyper
import React from 'react'; import {PureComponent} from '../base-components'; import {decorate, getTabProps} from '../utils/plugins'; import Tab_ from './tab'; const Tab = decorate(Tab_, 'Tab'); const isMac = /Mac/.test(navigator.userAgent); export default class Tabs extends PureComponent { template(css) { con...
src/redux/create.js
lapanoid/redux-cropper
import React, { Component } from 'react'; import { createStore, compose, applyMiddleware } from 'redux'; import { batchedUpdatesMiddleware } from 'redux-batched-updates'; import reducer from './modules/reducer'; import ignoreIfSame from './middleware/ignoreIfSame'; import init from './init'; import createLogger from 'r...
client/front/configs/webpack.dev.config.js
Vladimir37/Perekoter
var path = require('path'); var webpack = require('webpack'); module.exports = { context: __dirname + '/..', entry: './src/scripts/index.jsx', output: { path: path.join(__dirname, 'files/builds'), filename: "scripts.js" }, module: { loaders: [{ test: /\.jsx$/, ex...
index/components/Protein.js
JDRomano2/VenomKB
import React from 'react'; import PropTypes from 'prop-types'; const Protein = (props) => { const { venomkb_id, name } = props; return ( <div> <input type="checkbox" />{ venomkb_id } { name } </div> ); }; Protein.propTypes = { _id: PropTypes.string, venomkb_id: PropTypes.string, n...
client/components/ToolbarSide/LayersToolbar/LayersToolbar.js
Moises404/artpost
import React, { PropTypes } from 'react' // import mapValues from 'lodash/object/mapValues' import { isEmpty } from 'lodash' import Post from '../../../components/Post/Post' class LayersToolbar extends React.Component { static displayName = 'PostList' static propTypes = { 'selectPost': PropTypes.func, 'selectTe...
examples/js/manipulation/delete-row-table.js
opensourcegeek/react-bootstrap-table
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item n...
lib/components/map/connected-transit-vehicle-overlay.js
opentripplanner/otp-react-redux
// TODO: Typescript /* eslint-disable react/prop-types */ /** * This overlay is similar to gtfs-rt-vehicle-overlay in that it shows * realtime positions of vehicles on a route using the otp-ui/transit-vehicle-overlay. * * However, this overlay differs in a few ways: * 1) This overlay retrieves vehicle locations fr...
docs/src/editors/BlankEditor/BlankEditor.js
gocreating/redux-draft
import React, { Component } from 'react'; import { Editor } from 'draft-js'; import { reduxDraft } from '../../../../lib'; import draftConfig from './config'; import 'draft-js/dist/Draft.css'; import './BlankEditor.css'; class BlankEditor extends Component { render() { let { setRef, editorState, ...
node_modules/react-router-dom/es/HashRouter.js
webtutorial/builder
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
ajax/libs/highmaps/1.0.1/highcharts.src.js
kood1/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.1-modified () * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,...
ajax/libs/react-router/0.12.4/ReactRouter.min.js
emmansun/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e...
src/components/Header/Header.js
FamilyPlanerTeam/family-planner
/** * 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 withStyles from 'isom...
packages/material-ui-icons/src/BeenhereRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66l7.57 5.04c.34.22.77.22 1.11 0l7.56-5.04c.53-.36.88-.97.88-1.66V3c0-1.1-.9-2-2-2zm-.7 6.7l-7.59 7.59c-.39.39-1.02.39-1.41 0L5.71 11.7c-.39-.39-...
ui/src/main/js/pages/Updates.js
crashlytics/aurora
import React from 'react'; import Breadcrumb from 'components/Breadcrumb'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import UpdateList from 'components/UpdateList'; import { getInProgressStates, getTerminalStates } from 'utils/Update'; export const MAX_QUERY_SIZE = 100; export c...
ajax/libs/core-js/0.4.7/core.js
RoryStolzenberg/cdnjs
/** * Core.js 0.4.7 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...