path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/Notification.js
opensourcegeek/react-bootstrap-table
import React from 'react'; import Const from './Const'; import { ToastContainer, ToastMessage, } from "react-toastr"; var ToastrMessageFactory=React.createFactory(ToastMessage.animation); class Notification extends React.Component{ // allow type is success,info,warning,error notice(type,msg,title){ this...
src/index.js
sugerPocket/react-redux-2048
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import App from './containers/App'; import bootstrap from 'bootstrap-loader'; import game from './reducers/game'; let store = createStore( game, window.__REDUX_DEVTOOLS_EXTENS...
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/frontend/src/containers/DevTools.js
vioquedu/django-redux-boilerplate
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
ajax/libs/forerunnerdb/1.3.725/fdb-core.min.js
BenjaminVanRyseghem/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...
alloy-editor-all-min.js
Aydin-/AlloyEditor
/** * AlloyEditor v1.4.1 * * Copyright 2014-present, Liferay, Inc. * All rights reserved. * * This source code is licensed under the GNU LGPL-style license found in the * LICENSE file in the root directory of this source tree. */ (function() { function deployCKEditor() { /* Copyright (c) 2003-2016,...
docs/app/Examples/modules/Accordion/Variations/AccordionExampleInverted.js
vageeshb/Semantic-UI-React
import _ from 'lodash' import faker from 'faker' import React from 'react' import { Accordion, Segment } from 'semantic-ui-react' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExampleInverted = () => ( <Segment inverted> <Accordion pa...
libs/canjs/2.1.4/can.jquery.js
Clouda-team/baiducdnstatic
/*! * CanJS - 2.1.4 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Fri, 21 Nov 2014 22:25:58 GMT * Licensed MIT * Includes: can/component,can/construct,can/map,can/list,can/observe,can/compute,can/model,can/view,can/control,can/route,can/control/route,can/view/mustache,can/view/bindings,can/view/live,can/view/s...
app/components/NavBar.js
GongDexing/work-board
/*jshint esversion:6*/ import '../less/NavBar.less'; import React, { Component } from 'react'; import { Row, Col, Button, Icon, Menu, Dropdown } from 'antd'; import ModalGroup from './ModalGroup'; import { logout, authCookie } from '../actions/auth'; import { displayModal } from '../actions/common'; import { fetchProje...
index.android.js
geobde/todo-android
/** * Todo App. **/ 'use strict'; import React, { AppRegistry, Component, StyleSheet, StatusBar, Text, View, TextInput, ScrollView, TouchableHighlight } from 'react-native'; var Todo = React.createClass({ getInitialState: function() { return {items: [], text: ''}; }, newItem: ...
definitions/npm/react-redux_v4.x.x/flow_v0.53.x-/test_Provider.js
orlandoc01/flow-typed
// @flow import React from "react"; import { Provider } from "react-redux"; // $ExpectError <Provider />; // missing store
docs/app/Examples/elements/List/Variations/ListExampleSizes.js
clemensw/stardust
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleSizes = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <div key={size}> <List divided horizontal size={size}> <...
wrappers/md.js
byronnewmedia/deanpower
import React from 'react' import 'css/markdown-styles.css' import Helmet from "react-helmet" import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <...
ajax/libs/material-ui/4.11.3-deprecations.1/withWidth/withWidth.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.isWidthDown = exports.isWidthUp = void...
src/icons/TonalityIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class TonalityIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-2 35.86C14.11 38.88 8 32.16 8 24S14...
src/svg-icons/editor/border-horizontal.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderHorizontal = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
appier/create-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. */ import React from 'react'; export default () => ( <span> <span id="feature-file-env-original-1"> {process.env.REACT_APP_ORI...
admin/client/components/Lightbox.js
suryagh/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTy...
site/components/Cover.js
jgable/react-dnd
import React, { Component } from 'react'; import './Cover.less'; export default class Cover extends Component { render() { return ( <div className="Cover"> <div className="Cover-header"> <p className="Cover-description"> Drag and Drop for React </p> </div> ...
app/components/Footer/index.js
wenpengfei/react-boilerplate
import React from 'react' import { FormattedMessage } from 'react-intl' import A from 'components/A' import LocaleToggle from 'containers/LocaleToggle' import Wrapper from './Wrapper' import messages from './messages' function Footer() { return ( <Wrapper> <section> <FormattedMessage {...messages....
introToBackbone/examples/code/snapshot04/backbone.js
coco90417/screencasts
// Backbone.js 1.1.2 // (c) 2010-2014 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(root, factory) { // Set up Backbone appropriately for ...
src/App.js
andrewbhy/react-camera
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Camera from './Cam...
src/views/components/app-header/app-header.spec.js
r-park/soundcloud-redux
import React from 'react'; import { shallow } from 'enzyme'; import AppHeader from './app-header'; describe('views', () => { describe('AppHeader', () => { let handleSearch; let search; let toggleSearch; beforeEach(() => { handleSearch = () => {}; search = {open: false}; toggleSear...
ui/src/components/enquiries/quantity.js
jollopre/mps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { debounce } from '../../utils/debounce'; import { putEnquiry } from '../../actions/enquiries'; class Quantity extends Component { constructor(props) { super(props); this.onChangeHandler = t...
techCurriculum/ui/solutions/5.2/src/components/Title.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
packages/material-ui-icons/src/SignalCellular3BarSharp.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 fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></g></React.Fragment> , 'SignalCellular3BarSharp');
ajax/libs/yui/3.4.0pr1/event/event-focus.js
peteygao/cdnjs
YUI.add('event-focus', function(Y) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, useActivate = YLang.isFunction( Y.DOM.create('<p onbeforeactivate="...
src/svg-icons/maps/local-activity.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalActivity = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z...
docs/src/app/components/FullWidthSection.js
verdan/material-ui
import React, {Component, PropTypes} from 'react'; import ClearFix from 'material-ui/internal/ClearFix'; import spacing from 'material-ui/styles/spacing'; import withWidth, {SMALL, LARGE} from 'material-ui/utils/withWidth'; const desktopGutter = spacing.desktopGutter; class FullWidthSection extends Component { sta...
src/icons/BatteryCharging50Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BatteryCharging50Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28.93 27L22 40V29h-4l1.07-2H14v14.33C14 42.8 15.19 44 16.67 44h14.67c1.47 0 2.67-1.19 2.67-2.67...
src/components/heroWidget/heroWidget.js
govau/datavizkit
import React from 'react'; import PropTypes from 'prop-types'; import HeroChart from './heroChart'; import Tooltip from './../tooltip/tooltip'; import {dateFormats} from './../../utils/displayFormats'; import './heroWidget.css'; const HeroWidget = ({ chartTitle, chartDescription, chartUpdatedDate, series, ...
js/components/Icon/index.js
c-h-/universal-native-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import RNVIcon from 'react-native-vector-icons/MaterialIcons'; import styles from './styles'; const Icon = ({ name, size, color, style }) => { return ( <RNVIcon name={name} size={size || 24} color={color || '#000'} style={[st...
docs/js/jquery-1.11.0.min.js
jhorlima/wp-mocabonita
/*! jQuery v1.11.0 | (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...
src/svg-icons/action/euro-symbol.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEuroSymbol = (props) => ( <SvgIcon {...props}> <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ...
test/test_helper.js
Alex-Windle/rijksmuseum_api
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ajax/libs/yui/3.10.2/event-focus/event-focus-coverage.js
justinelam/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"...
admin/public/js/lib/jquery/jquery-1.10.2.min.js
omnibrain/keystone
/*! 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...
ajax/libs/vue/2.1.10/vue.common.min.js
redmunds/cdnjs
"use strict";function _toString(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function toNumber(e){var t=parseFloat(e);return isNaN(t)?e:t}function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:functio...
ajax/libs/react-router/0.10.1/react-router.js
anshulverma/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export...
public/request-delivery/scripts/app.js
MilanLund/milanlundwebsite
/*! * Vue.js v2.4.2 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
docs/app/Examples/collections/Message/Variations/MessageExampleAttached.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Checkbox, Form, Icon, Message } from 'semantic-ui-react' const MessageExampleAttached = () => ( <div> <Message attached header='Welcome to our site!' content='Fill out the form below to sign-up for a new account' /> <Form className='attached fl...
ajax/libs/angular.js/0.9.0/angular-scenario.min.js
js-data/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. ...
packages/material-ui-icons/src/GolfCourse.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let GolfCourse = props => <SvgIcon {...props}> <circle cx="19.5" cy="19.5" r="1.5" /><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z" /> ...
docs/src/examples/elements/Input/Usage/InputExampleDatalist.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleDatalist = () => ( <div> <Input list='languages' placeholder='Choose language...' /> <datalist id='languages'> <option value='English'>English</option> <option value='Chinese'>Chinese</option> <option valu...
src/components/CompanyAndJobTitle/TimeAndSalary/WorkingHourTable.js
goodjoblife/GoodJobShare
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import R from 'ramda'; import { InfoButton } from 'common/Modal'; import Table from 'common/table/Table'; import { pageType as pageTypeMapping } from '../../../constants/companyJobTitle'; import InfoSalaryModal from '../../TimeAndSalary/commo...
ajax/libs/analytics.js/1.3.29/analytics.js
voronianski/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
ajax/libs/react-virtualized/4.10.0/react-virtualized.min.js
sufuf3/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react"),require("react-dom")):e["react-virtualized"]=t(e.React,e...
apps/test-suite/tests/Font.js
exponent/exponent
import * as Font from 'expo-font'; import { Platform } from 'react-native'; export const name = 'Font'; export async function test({ beforeEach, afterAll, describe, it, expect }) { describe(name, () => { async function unloadFontAsync() { if (Platform.OS === 'web') { await Font.unloadAsync('cool-f...
ceephax/components/featured/index.js
mrceephax/ceephax.com.frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { API_HOSTNAME } from 'ceephax/config'; const Featured = ({ post }) => { const { custom_excerpt, feature_image, meta_title, published_at, slug, title, ...
src/packages/@ncigdc/components/Links/ImageViewerLink.js
NCI-GDC/portal-ui
/* @flow */ import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import withRouter from '@ncigdc/utils/withRouter'; import namespace from '@ncigdc/utils/namespace'; import Link from './Link'; import { iconLink } from '@ncigdc/theme/mixins'; import { updateBackLocation ...
src/js/components/ui/reduxForm/HorizontalDirectoryInput.js
knowncitizen/tripleo-ui
/** * Copyright 2018 Red Hat Inc. * * 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...
src/pages/Chat.js
mtomcal/reactjs-hooligans-tv
import React from 'react'; import { Card } from '../cards'; import { Containers, Chat } from '../data'; var ChatList = React.createClass({ propTypes: { actions: React.PropTypes.object, queryData: React.PropTypes.object }, onClick() { var chat = this.refs.chatBox.getDOMNode().value; this.props.act...
src/components/button_bar.js
amybingzhao/savings-planner-web
import React from 'react'; const ButtonBar = ({buttons}) => { const buttonBarItems = buttons.map((button) => { return ( <button type="button" className="btn btn-secondary">{button.text}</button> ) }); return ( <div className="btn-group pull-right"> {buttonBarItems} </div> ) }; exp...
client/extensions/woocommerce/woocommerce-services/components/radio-buttons/index.js
Automattic/woocommerce-connect-client
/** @format */ /* eslint-disable react/no-danger */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import FormFieldset from 'components/forms/form-fieldset'; import FormLabel from 'components/forms/form-label'; import FormLegend from 'c...
ajax/libs/6to5/2.13.6/browser-polyfill.js
LaurensRietveld/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...
TODOAPP/TODo/node_modules/debug/src/browser.js
selectplaya/PDI
/** * 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...
react-ui/src/App.js
simmco/trading-book-store
import React from 'react' import { BrowserRouter as Router, Route, Link, Redirect, withRouter } from 'react-router-dom' import styled from 'styled-components' import Home from './components/Home' import AllBooks from './containers/AllBooksContainer' import MyBooks from './containers/MyBooksContainer' import ...
example/example.js
111StudioKK/react-simpleform
import React from 'react'; import { render } from 'react-dom'; import Form, { Boolean, Buttons, Calendar, Checkboxes, Input, Select, Tags, Yup } from '../src/index.js'; //var App = React.createClass({ class App extends React.Component { constructor(props) { super(props); this.state = { schema: Yup...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
tsdl2013/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import pureRender from 'pure-render-decorator'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions/AddContactActionCreators'...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Snapkey/snapkey.github.io
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'));
js/components/list/list-divider.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Left, Right, Body } from 'native-base'; import { Actions } from 'react-native-router-flux'; ...
examples/js/column-filter/select-filter-with-select-text.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'Bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
app/client/elements/Fields/Switch.js
jmdesiderio/swan-cms
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { lighten } from 'polished' const InputElement = styled.input` border: 1px solid ${p => (p.hasError ? p.theme.colors.red : p.theme.colors.gainsboro)}; border-radius: .25rem; margin: .25rem 0; padding: .75...
geonode/contrib/monitoring/frontend/src/components/cels/errors/index.js
simod/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import actions from '../../organisms/error-list/actions'; import styles from './styles'; const mapStateToProps = (state) => ({ errorList: state.errorList.response, ...
src/components/App.js
fvalencia/react-vimeo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
public/scripts/models/PlantModel.js
beaulm/intercrop
let Backbone = require('backbone'); let React = require('react'); module.exports = Backbone.Model.extend({ defaults: { id: null, name: '', url: '', affinities: {}, quantity: 0, }, urlRoot: '/api/v1/plant', generateImage: function() { if(this.get('url')) { return <img src={this.get('url')} /> } e...
examples/jspm/client/config.js
glenjamin/babel-plugin-react-error-catcher
System.config({ "baseURL": "/", "defaultJSExtensions": true, "transpiler": "babel", "babelOptions": { "optional": [ "runtime" ] }, "paths": { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, "packages": { ".": { "defaultExtension": "js", "main...
app/js/containers/CircleDetailContainer.js
sgt39007/waji_redux
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import * as DetailActions from '../redux/actions/DetailActions'; import { bindActionCreators } from 'redux'; import * as AppActions from '../redux/actions/AppActions'; import { FriendDetail } from '../components' import { View, } from...
app/src/client/components/assets/ProjectLinks.js
dvdschwrtz/DockDev
import React from 'react'; import { Link } from 'react-router'; import { utils } from './server/main'; import NavLink from './NavLink'; const ProjectLinks = ({ projects }) => { const projArray = utils.projectsObjToArray(projects); const projLinks = projArray.map((proj, idx) => ( <li key={idx} className="nav-...
ajax/libs/angular.js/0.10.6/angular-scenario.js
pm5/cdnjs
/** @license * 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 Lic...
src/Parser/MistweaverMonk/Modules/Features/EssenceFontMastery.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; const debug = f...
components/Navbar/Navbar.js
YongYuH/Ludo
// @flow import React from 'react'; import styled from 'styled-components'; import HeaderLeft from '../Header/HeaderLeft'; import GroupTitle from './GroupTitle'; import Menu from './Menu'; const Modal = styled.div` background-color: rgba(0, 0, 0, 0.5); display: ${props => props.isNavbarVisible ? 'block' : 'none'};...
test/ThumbnailSpec.js
dozoisch/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Thumbnail from '../src/Thumbnail'; describe('<Thumbnail>', () => { it('Should have a thumbnail class and be an anchor', () => { let instance = ReactTestUtils.renderIntoDocument( <Thum...
src/components/EditForm/index.js
Apozhidaev/ergonode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { back } from 'store/services/history/actions'; import { security } from 'config'; import { encrypt, getPBKDF2 } from 'helpers/crypto'; import Content from './Content'; import Resources from './Resources'; import Attachments from '....
app/components/Home.js
jeflores7/character-voting-app
import React from 'react'; import { Link } from 'react-router'; import HomeStore from '../stores/HomeStore'; import HomeActions from '../actions/HomeActions'; import { first, without, findWhere } from 'underscore'; class Home extends React.Component { constructor(props) { super(props); this.state = HomeStore...
App/db/entities/content/Events/Theatre.js
nathb2b/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. 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, either version 3 of the * License, or (at your option) any later version. ...
app/components/widget-list.js
svtizg/svtizg.github.io
import React from 'react'; const WidgetList = React.createClass({ render: function() { return ( <ul className="widget-list"> <li>Сообщение от пользователя 1</li> <li>Сообщение от пользователя 2</li> <li>Сообщение от пользователя 3</li> </ul> ); } }); export default Widg...
src/views/item.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Unit from '../commons/unit'; const defaultClassName = 'item'; const componentName = 'Item'; const Basic = React.createClass({ render: function () { const { props: { children, value, ...other } } = this; return ( <Unit {...other}...
ajax/libs/algoliasearch/3.24.10/algoliasearch.jquery.js
cdnjs/cdnjs
/*! algoliasearch 3.24.10 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */ (function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[...
packages/material-ui/src/FormControlLabel/FormControlLabel.js
kybarg/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@material-ui/utils'; import { useFormControl } from '../FormControl'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; import { capitalize } from '../utils/helpers'; ex...
app/javascript/mastodon/components/status_list.js
MastodonCloud/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
theBru/llc-prototypes
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'));
app/javascript/mastodon/features/status/components/action_bar.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMess...
ajax/libs/rxjs/2.2.7/rx.js
perfect-pixell/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
ajax/libs/react/0.13.1/JSXTransformer.js
Nadeermalangadan/cdnjs
/** * JSXTransformer v0.13.1 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g...
ajax/libs/cleave.js/0.6.5/cleave-react.js
hare1039/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Cleave"] = factory(...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
sThig/jabbascrypt
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/javascript/mastodon/features/ui/components/embed_modal.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from '../../../api'; export default @injectIntl class EmbedModal extends ImmutablePureComponent { static propTypes...
ajax/libs/jquery/1.7.1/jquery.min.js
chinakids/cdnjs
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
node_modules/grunt-contrib-watch/node_modules/tiny-lr-fork/node_modules/qs/test/browser/jquery.js
MFloresr/proyecto_daw
/*! * 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. ...
client/containers/NavigationContainer.js
horiaradu/twitter-challenge
import React from 'react'; import {connect} from 'react-redux'; import Navigation from '../components/Navigation'; import * as actionCreators from '../actions'; export default connect( mapStateToProps, actionCreators )(Navigation); function mapStateToProps(state) { return { isAuthenticated: state.getIn(['au...
src/components/ui/FormInput.js
eventures-io/ldn-retail-demo
/** * Text Input * <FormInput></FormInput> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormInput } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFonts } ...
packages/wramp-react/examples/counter/src/index.js
ryym/wramp
import React from 'react'; import ReactDOM from 'react-dom'; import { watch } from 'wramp'; import Counter from './components/Counter'; import store from './store'; function render() { ReactDOM.render( <Counter value={store.getCount()} onIncrement={() => store.$increment()} onDecrement={() => s...
app/node_modules/reactify/node_modules/react-tools/src/browser/ui/dom/DOMProperty.js
pdx-code/wbtp-reactjs
/** * 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. * * @providesModule ...
src/components/onboarding/steps/Step1.js
golemfactory/golem-electron
import React from 'react'; import Lottie from 'react-lottie'; import animData from './../../../assets/anims/onboarding/setup-ports.json'; const defaultOptions = { loop: false, autoplay: true, animationData: animData, rendererSettings: { preserveAspectRatio: 'xMidYMid slice' } }; export de...
app/containers/LocaleToggle/index.js
ninjaref/ninjaref
/* * * LanguageToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../...
ajax/libs/ngreact/0.4.0/ngReact.js
ahocevar/cdnjs
// # ngReact // ### Use React Components inside of your Angular applications // // Composed of // - reactComponent (generic directive for delegating off to React Components) // - reactDirective (factory for creating specific directives that correspond to reactComponent directives) (function (root, factory) { if (ty...
test/buttons/BtnSpec.js
wmira/reactor-ui
import React from 'react'; import { shallow } from 'enzyme'; import should from 'should'; import sinon from 'sinon'; import { Btn, IconText } from 'reactor-ui/buttons'; describe('Btn tests', () => { it('Renders Icon and Text and classes', () => { const wrapper = shallow( <Btn text='Test' icon...
src/components/FormValidation/FormValidation.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import { createValidator } from '../../core/validation'; const createMinLengthValidation = length => value => { if (value.length >= length) { return { touched: false }; } return { tou...
ror/blueprints/js/jquery/jquery-1.6.1.min.js
teleiakaipavla/diafthoratelos.gr
/*! * jQuery JavaScript Library v1.6.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. ...
src/js/view/input.js
chemdemo/react-webpack-todos
/* * @Author: dmyang * @Date: 2015-07-31 14:10:02 * @Last Modified by: dmyang * @Last Modified time: 2015-08-07 14:45:03 */ 'use strict'; import React from 'react'; /*export default class Input extends React.Component { constructor(props) { super(props); this.state = {}; } render() {...