path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ReactJS/04.React-Form-Exercise/demoToday/src/index.js | Martotko/JS-Web | 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();
|
docs/src/PageFooter.js | asiniy/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
packages/showcase/examples/candlestick/candlestick.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
test/BadgeSpec.js | jesenko/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Badge from '../src/Badge';
describe('Badge', () => {
it('Should output a badge with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Badge>
<strong>Content... |
docs/app/Examples/elements/Button/Groups/ButtonExampleGroupIcon.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIcon = () => (
<div>
<Button.Group>
<Button icon='align left' />
<Button icon='align center' />
<Button icon='align right' />
<Button icon='align justify' />
</Button.Group>
{' '}
<But... |
ajax/libs/hyperform/0.8.7/hyperform.amd.js | AMoo-Miki/cdnjs | /*! hyperform.js.org */
define(function () { 'use strict';
var registry = Object.create(null);
/**
* run all actions registered for a hook
*
* Every action gets called with a state object as `this` argument and with the
* hook's call arguments as call arguments.
... |
web/js/compiled/main_part_1_jquery_1.js | 6web/SfTest | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
public/docs/api/latest/@stdlib/stats/base/dists/negative-binomial/variance/benchmark_bundle.js | stdlib-js/www | // modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
src/templates/index-template.js | bodguy/bodguy.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
src/components/AboutPage.spec.js | lisavogtsf/canned-react-slingshot-app | import React from 'react';
import {shallow} from 'enzyme';
import AboutPage from './AboutPage';
describe('<AboutPage />', () => {
it('should have a header called \'About\'', () => {
const wrapper = shallow(<AboutPage />);
const actual = wrapper.find('h2').text();
const expected = 'About';
expect(act... |
src/components/streams/ThumbButtons.js | streamr-app/streamr-web | import React from 'react'
export const ThumbButtons = ({
className = '',
likes,
dislikes,
onLike,
onDislike,
...rest
}) => (
<div className={`thumb-buttons-container ${className}`} {...rest}>
<button className='thumb-container' onClick={onLike}>
<i className='fa fa-thumbs-up' />
<div clas... |
src/routes/index.js | steelx/ReduxWeatherApp | import React from 'react';
import {Route, IndexRoute} from 'react-router';
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
src/js/components/ui/IconCollapsible/IconCollapsible.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './IconCollapsible.scss';
export default class IconCollapsible extends Component {
static propTypes = {
open: PropTypes.bool
};
render() {
const {open} = this.props;
return <div class... |
node_modules/github/doc/apidoc.js | dmoore2/permanent-majority | /**
* @api {get} /notifications/threads/:id/subscription checkNotificationThreadSubscription
* @apiVersion 5.0.0
* @apiName checkNotificationThreadSubscription
* @apiDescription Check to see if the current user is subscribed to a thread.
* @apiGroup activity
*
* @apiParam {String} id
* @apiExample {js} ex:
gi... |
webpack.deploy.config.js | codelegant/Game-of-Life | var path = require('path');
var webpack = require("webpack");
module.exports = {
entry: [
'./public/js/entry'
],
output: {
path: path.join(__dirname + '/public/'),
filename: 'bundle.min.js'//[name].js
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',// short for... |
pages/work/air.js | k97/node-slasher-app | import React from 'react';
import axios from 'axios';
import ReactMarkdown from 'react-markdown';
import mediumZoom from 'medium-zoom';
import Layout from '../../components/Layout/index';
import ProjectTitle from '../../components/Work/ProjectTitle';
import EditProject from '../../components/Work/EditProject';
import ... |
node_modules/laravel-elixir/node_modules/watchify/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/bench/jquery.js | Jerrrrry/gxw | /*! 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... |
src/index.js | bedoherty/NameGame | import React from 'react';
import ReactDOM from 'react-dom';
// Import our components
import Window from './components/Window';
import './index.css';
ReactDOM.render(
<Window />,
document.getElementById('root')
);
|
Demo4/Container/WebViewContainer.js | Quxiaolei/Study_RN | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Image,
ListView,
Dimensions,
Navigator,
NavigatorIOS,
ScrollView,
ActivityIndicator,
Platform,
WebView,
TouchableOpacity,
View
} from 'react-native';
let HostApi = 'http://172.16.101.202';
let {height,width} ... |
frontend/src/app/containers/NotFoundPage.js | dannycoates/testpilot | import React from 'react';
import Copter from '../components/Copter';
import LayoutWrapper from '../components/LayoutWrapper';
import View from '../components/View';
export default class NotFoundPage extends React.Component {
render() {
return (
<View centered={true} showNewsletterFooter={false} showFoot... |
packages/material-ui-icons/src/SignalWifi1BarSharp.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 fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49... |
app/containers/App/index.js | adityaanupindi/reactapp | /**
*
* 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... |
test/test1.js | EleanorMao/React-TreeTable | /**
* Created by elly on 16/6/1.
*/
import React from 'react';
import {expect} from 'chai';
import {shallow, mount} from 'enzyme';
import {TreeTable, TreeHeadCol} from '../lib/Index';
const defNoDataTable = shallow(
<TreeTable data={[]} iskey="id">
<TreeHeadCol dataField="id">test</TreeHeadCol>
</Tre... |
examples/todos-flow/src/containers/AddTodo.js | jhwgnu/redux | // @flow
import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
import type { Dispatch } from '../types'
import type { Connector } from 'react-redux'
type Props = {
dispatch: Dispatch
};
const AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form o... |
ajax/libs/yui/3.6.0/event-custom-base/event-custom-base-debug.js | BenjaminVanRyseghem/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... |
ajax/libs/angular.js/1.2.0rc3/angular-scenario.js | luhad/cdnjs | /*!
* 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 ) {'use ... |
fields/types/localfile/LocalFileField.js | jacargentina/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
return ReactDOM.findDOMNod... |
packages/material-ui-icons/src/StoreMallDirectory.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z" />
, 'StoreMallDirectory');
|
plotlyjs-api/src/main/resources/net/java/html/plotlyjs/jquery-1.12.0.min.js | frib-high-level-controls/dukescript-plotlyjs | /*
* #%L
* This software is Copyright by the Board of Trustees of Michigan State University.
* Contact Information:
* Facility for Rare Isotope Beams
* Michigan State University
* East Lansing, MI 48824-1321
* http://frib.msu.edu
* %%
* Copyright (C) 2016 Board of Trustees of Michigan State University
* ... |
src/instructions/steps/Step4.react.js | codeforamerica/citybook | import React, { Component } from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Button from 'react-bootstrap/lib/Button';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import FormControl from 'react-bootstrap/lib/FormControl';
import ControlLabel from 're... |
src/components/Comments/Comment.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { take, find } from 'lodash';
import { Link } from 'react-router-dom';
import { injectIntl, FormattedRelative, FormattedDate, FormattedTime, FormattedNumber, FormattedMessage } from 'react-intl';
import { Icon, Ta... |
src/components/ContainerProgress.react.js | abstractitptyltd/kitematic | import React from 'react';
/*
Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} />
*/
var ContainerProgress = React.createClass({
render: function () {
var pBar1Style = {
height: this.props.pBar1 + '%'
};
var pBar2Style = {
height: this.props.pBar2 + '%'
};
va... |
grails-app/assets/javascripts/dependencies/node_modules/react-router/es6/IndexLink.js | puaykai/noodles | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
app/components/controls/Image.js | weerakkodylr/react-native-login | import React from 'react'
import { Image } from 'react-native'
const ImageComponent = (props) => {
return <Image source={props.source} resizeMode={"contain"}/>
}
export default ImageComponent; |
components/footer.js | hillcitymnag/www.hillcitymnag.church | import React from 'react'
import css from 'next/css'
import {color, mediaQuery, pseudo} from '../shared/constants'
import {link as regLink} from '../shared/styles'
export default () => (
<footer {...footer}>
<div className="container">
<nav {...floatLeft}>
<ul {...footerLinks}>
{/* <li ... |
components/OrderedList.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
nested: PropTypes.bool,
};
const defaultProps = {
nested: false,
};
const OrderedList = ({ children, className, nested, ...other }) =>... |
ajax/libs/react-router/0.9.4/react-router.min.js | WebReflection/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
src/components/CommentUI.js | cherishstand/dva-quickstart | import React from 'react';
import { InputItem, DatePicker, TextareaItem } from 'antd-mobile';
import moment from 'moment';
const zhNow = moment().locale('zh-cn').utcOffset(8);
const DateGroup = React.createClass({
getInitialState() {
const { defaultValue } = this.props;
let defaultDate = defaultValu... |
ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js | aferlazzo/cdnjs | /*! X-editable - v1.5.1
* 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 form tag!... |
ajax/libs/video.js/4.12.2/video.dev.js | sashberd/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
ajax/libs/forerunnerdb/2.0.3/fdb-legacy.min.js | maruilian11/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... |
app/components/H3/index.js | qiubit/lamp-experiment | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
packages/material-ui-icons/src/ShortText.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0V0z" /></defs><path d="M4 9h16v2H4zm0 4h10v2H4z" /></React.Fragment>
, 'ShortText');
|
packages/react/src/components/organisms/UtilityPanel/index.js | massgov/mayflower | /**
* UtilityPanel module.
* @module @massds/mayflower-react/UtilityPanel
* @requires module:@massds/mayflower-assets/scss/03-organisms/utility-panel
* @requires module:@massds/mayflower-assets/scss/01-atoms/decorative-link
*/
import React from 'react';
import PropTypes from 'prop-types';
import Paragraph from 'M... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | hwo411/material-ui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
src/render/Audio/Recorder.js | hugo-cardenas/lickit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LibRecorder from 'react-recorder';
const STATE_IDLE = 'idle',
STATE_RECORDING = 'recording';
class Recorder extends Component {
constructor(props) {
super(props);
this.state = {
recordState: 'idle'... |
react-ui-select/master/build/react-select.js | WJsjtu/WJsjtu.github.io | /**
* react-ui-select v0.1.0 A flexible select component using Facebook React.
* Repository git@github.com:WJsjtu/react-ui-select.git
* Homepage http://wjsjtu.github.io/react-ui-select/
* Copyright 2015 王健(Jason Wang)
* Licensed under the MIT License
*/
/******/ (function(modules) { // webpackBootstrap
/******/ ... |
packages/rmw-shell/cra-template-rmw/template/src/components/Menu/MenuContent.js | TarikHuber/react-most-wanted | import React from 'react'
import Scrollbar from 'material-ui-shell/lib/components/Scrollbar/Scrollbar'
import SelectableMenuList from 'material-ui-shell/lib/containers/SelectableMenuList'
import { useAddToHomeScreen } from 'base-shell/lib/providers/AddToHomeScreen'
import { useAuth } from 'base-shell/lib/providers/Auth... |
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js | mymail748/drupal734 | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/shared/utils/__tests__/PooledClass-test.js | blainekasten/react | /**
* Copyright 2014-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/routes/WPSWranglerDemoRoute/IndexRoute/index.js | maartenplieger/datascienceplatform-frontend | import { connect } from 'react-redux';
import WPSWranglerDemo from '../../../components/WPSWranglerDemo';
import TitleComponent from '../../../components/TitleComponent';
import userActions from '../../../actions/userActions';
import wpsActions from '../../../actions/WPSActions';
const mapStateToWranglerProps = (state... |
ajax/libs/yui/3.18.0/scrollview-base/scrollview-base.js | codevinsky/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
__tests__/index.android.js | keske/react-native-easy-gestures | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />,
);
});
|
ajax/libs/yui/3.1.2/loader/loader.js | Rbeuque74/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
src/components/footer/footer.js | darcyclarke/react-insta-feed | import React from 'react'
import styles from './footer.styles'
import r from 'r-dom'
class Footer extends React.Component {
constructor (props) {
super(props)
}
render () {
return (
r.footer({ className: 'footer' }, [])
)
}
}
export default Footer
|
ajax/libs/preact/10.4.8/compat.js | cdnjs/cdnjs | var n=require("preact/hooks"),t=require("preact");function e(n,t){for(var e in t)n[e]=t[e];return n}function r(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function o(n){this.props=n}function u(n,e){function o(n){var t=this.props.ref,o=t==n.re... |
src/components/shared/ComponentDecorators.js | garfieldduck/twreporter-react | 'use strict'
import React from 'react'
function getWrappedComponetDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component'
}
/**
* Add classNames object to props
*
* @export
* @param {object} WrappedComponent - The React component to be wrapped
* @param {obj... |
src/components/Main.android.js | gongmingqm10/Dribbble-ReactNative | import React from 'react';
import {
StyleSheet,
View,
Text,
Image,
DrawerLayoutAndroid
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import {Colors, Strings, Dimens} from '../utils/Theme';
import DesignersComponent from './designers/DesignersComponent';
import ShotsComponent... |
scripts/utils/connectToStores.js | tiengtinh/flux-react-router-example | import React, { Component } from 'react';
import shallowEqual from 'react-pure-render/shallowEqual';
/**
* Exports a higher-order component that connects the component to stores.
* This higher-order component is most easily used as an ES7 decorator.
* Decorators are just a syntax sugar over wrapping class in a func... |
ajax/libs/analytics.js/2.2.4/analytics.js | Download/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
src/SelectPicker/test/SelectPickerStylesSpec.js | suitejs/suite | import React from 'react';
import ReactDOM, { findDOMNode } from 'react-dom';
import SelectPicker from '../index';
import {
createTestContainer,
getDOMNode,
getStyle,
toRGB,
inChrome,
itChrome
} from '@test/testUtils';
import '../styles/index';
const data = [
{
label: 'Eugenia',
value: 'Eugenia'... |
js/vendor/jquery-1.8.3.min.js | liyinSakura/drink2.0 | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
app/components/H3/index.js | Ratholien/JobReact | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
fields/types/date/DateField.js | pr1ntr/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
/*
TODO: Implement yearRange Prop, or deprecate for max / min values (better)
*/
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD... |
node_modules/react-icons/io/ios-email.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosEmail = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 30h-30v-18.9l10.2 7.8-5.3 6 0.2 0.2 6.2-5.5 3.7 2.9 3.8-2.9 6.1 5.5 0.2-0.2-5.3-6 10.2-7.8v18.9z m-0.6-20l-14.4 10.9-14.4-10.9h28.8z"/></g>
</Icon>
)
export... |
public/client/routes/register/containers/register.js | nearform/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {reduxForm} from 'redux-form'
import {registerUser} from '../../../modules/user/actions/index'
import {validateAddUser} from '../../../lib/validations'
export let Register = React.createClass({
propTypes: {
handleSubmit: React.P... |
jawr/jawr-integration-test/src/main/webapp/js/closure/jquery-1.9.1.min.js | j-a-w-r/jawr-main-repo | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
client/src/components/EmployeeModal.js | fraktio/teamdaily | import React from 'react';
class EmployeeModal extends React.Component {
state = {
isShowingModal: false,
};
handleClick = () => this.setState({ isShowingModal: true });
handleClose = () => this.setState({ isShowingModal: false });
render() {
return (
<div onClick={this.handleClick}>
{t... |
ajax/libs/grommet/0.2.4/grommet.min.js | x112358/cdnjs | var Grommet=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var r={App:n(3),Button:n(44),CheckBox:n(45),Document:n(46),Donut:n(47),Footer:n(49),Form:n(51... |
clients/packages/admin-client/src/components/color-picker/index.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { ColorPicker } from './index';
describe('client/components/color-picker/index', () => {
let wrapper;
const props = {
dispatch: () => {},
};
beforeEach(() => {
... |
packages/material-ui-icons/src/Timeline.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Timeline = props =>
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.3... |
app/components/SocialLogin/icons/svg/google.js | juanda99/arasaac-frontend | import React from 'react'
import PropTypes from 'prop-types'
import pure from 'recompose/pure'
import SvgIcon from 'material-ui/SvgIcon'
/* eslint-disable import/no-mutable-exports */
let Google = (props) => (
<SvgIcon {...props} viewBox='0 0 90 90'>
<path
fill={props.color} d='M74.499,0H50.144c-6.382,0-14.... |
src/index.js | balaclark/jayaprabhupada-web | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory, Redirect } from 'react-router'
import NotFound from './components/not-found'
import AudioContainer from './components/audio-container'
render((
<Router history={browserHistory}>
<Redirect path='/' to='/radio/kirt... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | Bogala/create-react-app-awesome-ts | /**
* 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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
packages/material-ui-icons/src/RefreshSharp.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="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6... |
ajax/libs/mediaelement/2.16.3/jquery.js | jonobr1/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
app/containers/Chat/message-list.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import {
baseColor,
white,
} from 'variables';
import { nickNameByAddress } from '../../services/nicknames';
class MessageList extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
componentDidMount() {
this.scroll... |
packages/material-ui-icons/src/RadioButtonChecked.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RadioButtonChecked = props =>
<SvgIcon {...props}>
<path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-... |
local-cli/templates/HelloNavigation/components/ListItem.js | ankitsinghania94/react-native | 'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... |
packages/material-ui-icons/src/UsbSharp.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2S4.8 7.79 4.8 9c0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.22.99 2.2 2.2 2... |
src/rsg-components/StyleGuide/StyleGuide.spec.js | bluetidepro/react-styleguidist | import React from 'react';
import TableOfContents from '../TableOfContents';
import StyleGuide from './StyleGuide';
import { StyleGuideRenderer } from './StyleGuideRenderer';
import { DisplayModes } from '../../consts';
const sections = [
{
components: [
{
name: 'Foo',
pathLine: 'components/foo.js',
... |
website/core/WebPlayer.js | naoufal/react-native | /**
* 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.
*
* @provides... |
src/svg-icons/image/timer-off.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimerOff = (props) => (
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.... |
widgets/src/footer/pre-footer.js | joshferrell/hapi-maily | import React from 'react';
import PropTypes from 'prop-types';
const PreFooter = ({ children }) => (
<mj-section full-width="full-width" background-color="#ECECEC">
<mj-column>
{children}
</mj-column>
</mj-section>
);
PreFooter.propTypes = {
children: PropTypes.element.isRequir... |
src/svg-icons/communication/vpn-key.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVpnKey = (props) => (
<SvgIcon {...props}>
<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 .9 2 ... |
src/components/Conversation.js | stefan-moraru/please | import React, { Component } from 'react';
import RenderWithTimeout from './RenderWithTimeout';
import request from 'superagent';
import _get from 'lodash.get';
import ReactTooltip from 'react-tooltip';
import ReactMarkdown from 'react-markdown';
import _ from '../services/_';
import { OptionButton, OptionIcon, OptionIn... |
src/app.js | mpazevic/CrowdBoard | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import '../style/main.scss';
import Navbar from './components/Navbar/navbar';
import SearchBar from './components/SearchBar/searchbar';
import LocationList from './components/LocationList/locationlist';
import MapCard from './components/MapCard... |
src/modules/editor/components/popovers/addTooltip/AddTooltipMenu/AddVimeoButton/AddVimeoButton.js | CtrHellenicStudies/Commentary | import React from 'react';
import autoBind from 'react-autobind';
import { connect } from 'react-redux';
// redux
import editorActions from '../../../../../actions';
// components
import AddTooltipMenuItemButton from '../../AddTooltipMenuItemButton';
// icons
import { FaVimeo } from "react-icons/fa";
class AddVimeo... |
src/resources/assets/react-app/components/PostFooter.js | z5internet/ruf | import React, { Component } from 'react';
class PostFooter extends Component {
render() {
return null;
}
}
export default PostFooter;
|
src/routes/home/index.js | MarynaHapon/Data-root-react | /**
* 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 Layout from '../../co... |
src/svg-icons/image/filter-frames.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
node_modules/semantic-ui-react/dist/es/elements/Button/Button.js | mowbell/clickdelivery-fed-test | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/... |
ajax/libs/react/0.9.0/react-with-addons.js | Assalaam/cdnjs | /**
* React (with addons) v0.9.0
*/
!function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,expor... |
ReactPython/frontend/src/components/about/AboutPage.js | MPeloquin/BreakableToys | import React from 'react';
class AboutPage extends React.Component {
render() {
return (
<div>
<h1>About</h1>
<p>This application uses React, Redux, React Router and a variety of other helpful</p>
</div>
);
}
}
export default AboutPage; |
src/components/Management/SigmetManagementPanel.spec.js | maartenlterpstra/GeoWeb-FrontEnd | import React from 'react';
import { default as SigmetManagementPanel } from './SigmetManagementPanel';
import { mount } from 'enzyme';
describe('(Component) SigmetManagementPanel', () => {
let _component;
beforeEach(() => {
_component = mount(<SigmetManagementPanel />);
});
it('Renders a SigmetManagementPa... |
test/index.js | rilkevb/react-simple-format | import React from 'react'
import { renderToStaticMarkup } from 'react-dom/server'
import { findDOMNode } from 'react-dom'
import SimpleFormat from '../src'
import { expect } from 'chai'
import { renderIntoDocument } from 'react-addons-test-utils'
describe('SimpleFormat', () => {
const str1 = 'You cannot connect the... |
ajax/libs/yui/3.15.0/event-focus/event-focus-coverage.js | ComputerWolf/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = ... |
ajax/libs/boardgame-io/0.46.2/boardgameio.es.js | cdnjs/cdnjs | import { nanoid } from 'nanoid';
import { applyMiddleware, compose, createStore } from 'redux';
import produce from 'immer';
import isPlainObject from 'lodash.isplainobject';
import { applyPatch, createPatch } from 'rfc6902';
import { stringify, parse } from 'flatted';
import React from 'react';
import PropTypes from '... |
app/js/components/type/damageClass.component.js | milk-shake/electron-pokemon | import React from 'react';
import ReactDOM from 'react-dom';
export default class DamageClassComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return <span className={"damage-class damage-class--" + this.props.type.name.toLowerCase()}>{this.props.type.name}</span>
}... |
client/src/common/variables.box.component.js | Thiht/docktor | // React
import React from 'react';
import HeadingBox from './heading.box.component.js';
import './variables.box.component.scss';
// VariablesBox is a list of docker variables
class VariablesBox extends React.Component {
constructor(props) {
super(props);
// Set state of component from the props.
thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.