path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/react.js | boneyao/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
core/router.js | tomalexing/quiz | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/components/common/AuthHeader.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
import { Icon } from 'antd';
import Auth from 'app/global/api/Auth';
import MobileNav from './MobileNav';
const AuthHeader = (props) => {
const loggedIn = Auth.loggedIn();
return (
<head... |
Libraries/Components/MapView/MapView.js | wenpkpk/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/DropdownStateMixin.js | collinwu/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
pages/getting-started/supported-platforms.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context(
'docs/src/pages/getting-started/supported-platforms',
true,
/\.md|\.js$/,
);
const reqSource = require.context(
... |
src/clincoded/static/components/curator_history.js | ClinGen/clincoded | 'use strict';
import React from 'react';
import _ from 'underscore';
import moment from 'moment';
import { history_views } from './globals';
// The curator history records operations performed by the currently logged-in curator on the database.
// It comprises an operation type, and operation-specific metadata. This ... |
modules/Redirect.js | hgezim/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
docs/src/NavMain.js | dozoisch/react-bootstrap | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';
const NAV_LINKS = {
introduction: {
link: '/introduction.html',
title: 'Introduction'
},
'getting-started': {
link: '/getting-started.html',
title: 'Getting star... |
src/CursorPopover/CursorPopover.js | alcedo-ui/alcedo-ui | /**
* @file CursorPopover component
*/
import React, {Component, createRef} from 'react';
import PropTypes from 'prop-types';
// Components
import CursorPop from '../_CursorPop';
// Statics
import Theme from '../Theme';
import Position from '../_statics/Position';
// Vendors
import classNames from 'classnames';
i... |
ajax/libs/react-router/0.10.0/react-router.js | r3x/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... |
src/view/dialog/profile.js | VisitingLandmarks/visitingLandmarks | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {injectIntl, intlShape, FormattedDate, FormattedMessage} from 'react-intl';
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import DoneIcon from 'material-ui/svg-icon... |
ReduxDemo/__tests__/index.ios.js | MisterZhouZhou/ReactNativeLearing | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/post/tools/fav.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
src/App/SiteBundle template/Resources/public/js/jquery.js | hectoritoh/listafacil | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */
(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=f.trim,x=function(e,t){return new x.fn.ini... |
example/todoReact/views/todoapp.js | coderwin/Fluder | import React from 'react';
import todoStore from '../stores/todoStore';
import todoAction from '../actions/todoAction';
import Lines from './lines';
export default class TodoApp extends React.Component{
constructor(props){
super(props);
this.state = {
items: todoStore.getAll()||[]
... |
site/index.js | uglymunky/music-player | import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import reducer from './reducers'
import { getAllProducts } from './actions'
import App from './contai... |
src/svg-icons/hardware/devices-other.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDevicesOther = (props) => (
<SvgIcon {...props}>
<path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1... |
ajax/libs/rxjs/2.4.3/rx.compat.js | Sneezry/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
packages/material-ui-icons/src/ScreenShare.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="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.6... |
native/app/components/EditorPanel.js | cedricium/notes | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, View, Dimensions, ProgressBarAndroid } from 'react-native';
import { RichTextEditor } from '../react-native-zss-rich-text-editor/index';
import { createNote, updateNote, deleteNotes,... |
ajax/libs/jquery/1.11.1/jquery.js | vanderlee/cdnjs | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
node_modules/react-router/lib/Redirect.js | dominikgar/flask-search-engine | 'use strict';
exports.__esModule = true;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writab... |
example/index.js | NYCPlanning/jane-maps |
import React from 'react';
import ReactDOM from 'react-dom';
import JaneExample from './JaneExample.jsx';
ReactDOM.render(<JaneExample />, document.getElementById('root'));
|
app/javascript/mastodon/features/account/components/header.js | narabo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import emojify from '../../../emoji';
import escapeTextContentForBrowser from 'escape-html';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../..... |
ajax/libs/yui/3.17.0/scrollview-base/scrollview-base-debug.js | sufuf3/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
assets/javascripts/kitten/components/structure/cards/backer-card/test.js | KissKissBankBank/kitten | import React from 'react'
import renderer from 'react-test-renderer'
import { BackerCard } from '../../../structure/cards/backer-card'
describe('<BackerCard />', () => {
let component
describe('by default', () => {
beforeEach(() => {
component = renderer
.create(
<BackerCard
... |
client/src/components/welcome.js | Zsugi/react-auth | import React from 'react';
export default () => <div>Welcome to our slice of paradise</div>; |
test/test.js | becs919/weatherly | import { expect } from 'chai';
import React from 'react';
import { shallow, mount, render } from 'enzyme';
import Main from '../lib/Components/Main';
import Weatherly from '../lib/Components/Weatherly';
import WeatherCards from '../lib/Components/WeatherCards';
import objectCleaner from '../lib/Components/ObjectCleaner... |
packages/ringcentral-widgets/containers/CallCtrlPage/CallCtrlContainer.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import sleep from 'ringcentral-integration/lib/sleep';
import calleeTypes from 'ringcentral-integration/enums/calleeTypes';
import callDirections from 'ringcentral-integration/enums/callDirections';
import sessionStatus from 'ringcentral-inte... |
node_modules/react-bootstrap/es/Col.js | WatkinsSoftwareDevelopment/HowardsBarberShop | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/main.js | aredmon/new-plotting-dashboard | import React from 'react';
import ReactDOM from 'react-dom';
import { useRouterHistory } from 'react-router';
import { createHistory } from 'history';
import makeRoutes from './routes';
import Root from './containers/Root';
import configureStore from './redux/configureStore';
import injectTapEventPlugin from 'react-tap... |
src/containers/search-results/SearchResults.js | SalvaCarsi/SearchView | 'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import _ from 'lodash';
import SearchResultsWrapper from '../../components/styled/SearchResultsWrapper';
import ResultsCounter from './ResultsCounter';
import ResultsList from './... |
ajax/libs/webshim/1.15.3-RC1/dev/shims/es6.js | ram-nadella/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
10-react-refs/src/App.js | iproduct/course-node-express-react | import React from 'react';
import './App.css';
// import FancyButton from './FancyButton';
import FancyForm from './FancyForm';
class App extends React.Component {
constructor(props) {
super(props);
this.ref = React.createRef();
this.state= {
color: 'green'
};
}
focus = () => {
this.s... |
ajax/libs/vue/3.2.5/vue.global.prod.js | cdnjs/cdnjs | var Vue=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Arr... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_04/finished/src/routes.js | yevheniyc/C | import React from 'react'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import { App, Whoops404 } from './components'
import SkiDayCount from './components/containers/SkiDayCount'
import AddDayForm from './components/containers/AddDayForm'
import SkiDayList from './components/containers/SkiDayLi... |
ajax/libs/highstock/2.0.1/highstock.src.js | nesk/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.0.1 (2014-04-24)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
test/frontend/components/organisms/SurveyQuestionCategoryPagerTest.js | stanzheng/okcandidate | import React from 'react'
import { expect } from 'chai'
import TestUtils from 'react-addons-test-utils'
import categories from './../fixtures/categories'
import questions from './../fixtures/questions'
import sinon from 'sinon'
import SurveyQuestionCategoryPager from '../../../../assets/js/components/organisms/SurveyQ... |
demos/forms-demo/src/components/Simple/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state, signal} from 'cerebral/tags'
import {css} from 'aphrodite'
import styles from './styles'
import Input from '../Fields/Input'
import {isValidForm} from 'cerebral-forms'
export default connect({
form: state`simple.form.**`,
settings: sta... |
ajax/libs/react-intl/1.1.0-rc-1/react-intl-with-locales.js | wout/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
framework/zii/widgets/assets/gridview/jquery.yiigridview.js | alexeygorbenko/parser | /**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
(function ($) {
var selectCheckedRows, methods,
yiiXHR={},
gridSettings = [];
/**
* 1. Sele... |
packages/components/src/AppGuidedTour/DemoContentStep.component.js | Talend/ui | import React from 'react';
import { useTranslation } from 'react-i18next';
import Stepper from '../Stepper';
import I18N_DOMAIN_COMPONENTS from '../constants';
import theme from './DemoContentStep.scss';
export default function DemoContentStep({ demoContentSteps }) {
const { t } = useTranslation(I18N_DOMAIN_COMPONEN... |
site/public/chunk.0.js | chrisdarroch/skatejs | webpackJsonp([0],Array(21).concat([function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,s){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,u,s],p=0;l=new Error(t.replace(/%s/... |
src/TabPane.js | Azerothian/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const TabPane = React.createClass({
propTypes: {
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
onAnimateOutEnd: React.PropTypes.func,
disabled: ... |
node_modules/bower/test/renderers/StandardRenderer.js | Michaelmwirigi/lynsays | // Simulate wide terminal
process.stdout.columns = 130;
var expect = require('chai').expect;
var helpers = require('../helpers');
var multiline = require('multiline').stripIndent;
var StandardRenderer = helpers.require('lib/renderers/StandardRenderer');
describe('StandardRenderer', function () {
it('logs generi... |
src/components/posts_index.js | skyrbe/amruthDistillery | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
class PostsIndex extends Component {
componentDidMount() {
this.props.fetchPosts();
}
renderPosts() {
return _.map(th... |
src/shared/routes/index.js | namroodinc/contentful-react-mobx-post | import React from 'react';
import { Router, Route, IndexRoute } from "react-router";
import AppController from "../controller/";
import Home from "../handlers/home";
import { Match, Results } from "../handlers/sport/football";
export default (
<Router>
<Route path="/"
component={AppController}
>
... |
packages/vx-demo/components/charts/VoronoiChart.js | Flaque/vx | import React from 'react';
import { extent } from 'd3-array';
import { Group } from '@vx/group';
import { GradientOrangeRed, GradientPinkRed } from '@vx/gradient';
import { RectClipPath } from '@vx/clip-path';
import { scaleLinear } from '@vx/scale';
import { getCoordsFromEvent } from '@vx/brush';
import { voronoi, Vo... |
packages/material-ui-icons/src/SettingsVoiceOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 22h2v2H7zm5-9c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .56-.44 1-1 1-.55 0-1-.45-1-1V4zm0 18h2v2h-2zm4 0h2v2h-2zm4-12h-1.7c0 3-2.54 5.... |
docs/src/examples/views/Statistic/Variations/StatisticExampleSize.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const StatisticExampleSize = () => (
<div>
<Statistic size='mini'>
<Statistic.Label>Views</Statistic.Label>
<Statistic.Value>2,204</Statistic.Value>
</Statistic>
<Statistic size='tiny'>
<Statistic.Label>Views</Stati... |
src/svg-icons/action/work.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
src/views/tags/button.js | fizal619/newscraper-pwa | import { h } from 'preact';
import { Link } from 'preact-router';
export default function (props) {
return (
<div className='btn'>
<a onClick={props.callback}>
{props.name}
</a>
</div>
)
}
|
src/svg-icons/image/timer-off.js | hwo411/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.... |
examples/huge-apps/routes/Course/components/Dashboard.js | sleexyz/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
src/Subscriptions.js | jaredlunde/react-cake | import React from 'react'
export default class Subscriptions extends React.Component {
constructor (props) {
super(props)
this.subscriptions = []
this.subscriptionContext = {
subscribe: this.subscribe,
unsubscribe: this.unsubscribe,
notify: this.notify
}
}
subscribe = cb => {
... |
test/InputSpec.js | victorzhang17/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Input from '../src/Input';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import Glyphicon from '../src/Glyphicon';
import {shouldWarn} from './helper... |
staticfiles/todolist/containers/DevTools.js | Joneyviana/todolist-django-angular | import React from 'react';
import {createDevTools} from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
import Dispatcher from... |
nailgun/static/views/cluster_page_tabs/healthcheck_tab.js | huntxu/fuel-web | /*
* Copyright 2014 Mirantis, 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 ... |
react/movie-mojo/src/index.js | leovant/examples | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
docs/src/modules/components/Link.js | allanalexandre/material-ui | /* eslint-disable jsx-a11y/anchor-has-content */
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { withRouter } from 'next/router';
import NextLink from 'next/link';
import MuiLink from '@material-ui/core/Link';
import { connect } from 'react-redux';
import compose from 'd... |
app/containers/OnboardingContent/index.js | rapicastillo/beautifulrising-client | /**
*
* OnboardingContent
*
*/
import React from 'react';
import styled from 'styled-components';
import Logo from 'components/Logo';
import Isvg from 'react-inlinesvg';
import ArrowIcon from 'assets/images/icons/arrow.svg';
import Background from 'assets/images/modal.jpg';
import CloseIcon from 'assets/images/icons/c... |
app/components/NavBar.js | cqlanus/bons | import React from 'react'
import { Link, browserHistory } from 'react-router'
import { logout } from '../reducers/auth'
import { connect } from 'react-redux'
import Search from './Search'
import { fetchProducts, setProducts, filterProducts } from '../reducers/products'
import { dropCart } from '../reducers/cart'
const... |
src/components/Form/Input.js | chjourdain/react-redux-ref | /**
* Created by chjourdain on 08/07/16.
*/
import React from 'react'
const errormsg = {
require: "Ce champ est obligatoire"
};
class Input extends React.Component {
constructor(props) {
super(props);
this.getValue = this.getValue.bind(this);
this.getChecked = this.getChecked.bind(t... |
information/blendle-frontend-react-source/app/components/tiles/AcquiredBackdrop/index.js | BramscoChill/BlendleParser | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Backdrop } from '@blendle/lego';
import classNames from 'classnames';
import CheckIcon from 'components/icons/Check';
import CSS from './AcquiredBackdrop.scss';
export default class AcquiredBackdrop extends PureComponent {
sta... |
src/QuickBooksOnlineAccessAuthExample/Scripts/jquery-1.8.2.js | rachmann/qboAccess | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft ... |
ajax/libs/babel-core/4.7.3/browser.min.js | amoyeh/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.babel=e()}}(function(){var e,n,l;return function t(e,n,... |
src/containers/PlayerVsFriend.js | halilb/react-native-chess | import React, { Component } from 'react';
import { ActivityIndicator, View, StyleSheet, Text } from 'react-native';
import { Chess } from 'chess.js';
import Share from 'react-native-share';
import Sound from 'react-native-sound';
import { Button, Board, Clock } from '../components';
const HTTP_BASE_URL = 'https://en... |
ajax/libs/primereact/5.0.0-rc.2/components/tooltip/Tooltip.js | cdnjs/cdnjs | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tip = tip;
exports.Tooltip = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _clas... |
docs/app/Examples/views/Statistic/Content/StatisticExampleProps.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ label: 'Saves', value: '22' },
{ label: 'Signups', text: true, value: 'Three Thousand' },
{ label: 'Flights', value: '5' },
{ label: 'Team Members', value: '42' },
]
const StatisticExampleProps = () => (
<div>
<Sta... |
src/utils/lazyLoad.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import Loader from '../components/Loader';
import makeCancelable from './cancelablePromise';
const withLazyLoad = load =>
class LazyLoad extends React.Component {
state = { LazyComponent: null };
async componentWillMount() {
const { promise, cancel } = makeCancelable(load())... |
ajax/libs/forerunnerdb/1.3.324/fdb-core+persist.min.js | froala/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/parser/paladin/retribution/modules/features/Checklist/Module.js | FaideWW/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/Preparati... |
src/renderers/__tests__/ReactComponentLifeCycle-test.js | joecritch/react | /**
* Copyright 2013-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.
*
* @emails react... |
app/javascript/mastodon/features/ui/index.js | TheInventrix/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
app/js/components/common/FormFrame.js | niksoc/srmconnect | import React from 'react';
const FormFrame = (props)=>{
function autoResize(e){
//to resize iframe based on content height
let newheight = e.target.contentWindow.document.body.scrollHeight + 30;
e.target.height= (newheight) + "px";
}
return (
<iframe onLoad={autoResize} src={props.src} width="100%"... |
app/components/ChargesModal/index.js | seanng/web-server | /**
*
* ChargesModal
*
*/
import React from 'react';
import { Modal, Form, FormControl } from 'react-bootstrap';
import Button from '../Button';
import ChargesList from '../ChargesList';
import styled from 'styled-components';
import { FormattedMessage, injectIntl } from 'react-intl';
import messages from './messages... |
node_modules/react-bootstrap/es/Well.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/image/crop-rotate.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
ajax/libs/react-instantsearch/4.1.3/Connectors.js | froala/cdnjs | /*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
createJestTest.js | skeie/jest-snapshot-generator | function createJestTest(filename) {
const fileWithOutExt = filename.replace(/\.[^/.]+$/, "");
const readableFilename = capitalizeFirstLetter(fileWithOutExt);
return (
`import React from 'react';
import renderer from 'react-test-renderer';
import ${readableFilename} from '../${readableFilename}';
test('Shoul... |
ajax/libs/yasr/1.1.4/yasr.min.js | wallin/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e... |
app/app.js | kylec296/scalable-react | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
app/utils/cookie.js | SecComm/redux-blog-example | /* eslint-env browser */
import { canUseDOM } from 'react/lib/ExecutionEnvironment';
let cookie = {
set({ name, value = '', path = '/', domain = '', expires = '' }) {
if (!canUseDOM) { return; }
if (expires instanceof Date) {
expires = expires.toUTCString();
}
document.cookie = [
`${nam... |
ajax/libs/react-datepicker/1.4.0/react-datepicker.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("classnames"),require("react-onclickoutside"),require("moment"),require("react-popper")):"function"==typeof define&&define.amd?define(["react","prop-types","classnames","react-onclickoutsi... |
components/Deck/ContentPanel/NoPermissionsModal.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {connectToStores} from 'fluxible-addons-react';
import PermissionsStore from '../../../stores/PermissionsStore';
import forkDeck from '../../../actions/decktree/forkDeck';
import {NavLink, navigateAction} from 'fluxible-router';
import {Button, Icon,... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base.js | ljharb/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
src/svg-icons/action/lock-outline.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c... |
examples/redux/components/App.js | dlmr/react-router-redial | import React, { Component } from 'react';
import { Link, IndexLink } from 'react-router';
export default class App extends Component {
render() {
const { loading } = this.props
const style = {
opacity: loading ? 0.5 : 1,
transition: loading ? 'opacity 250ms ease 300ms' : 'false'
}
return... |
packages/material-ui-icons/src/Gamepad.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Gamepad = props =>
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z" />
</SvgIcon>;
Gamepad = pure(Gamepad);
Gamepad.m... |
src/Spin/index.js | lenxeon/react-ui | import React from 'react'
import PropTypes from '../utils/proptypes'
import Plane from './Plane'
import DoubleBounce from './DoubleBounce'
import Wave from './Wave'
import Pulse from './Pulse'
import ChasingDots from './ChasingDots'
import ThreeBounce from './ThreeBounce'
import Circle from './Circle'
import CubeGrid f... |
src/svg-icons/places/kitchen.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesKitchen = (props) => (
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/>
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/ring-volume.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationRingVolume = (props) => (
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2... |
ajax/libs/yasqe/2.2.2/yasqe.bundled.min.js | zhangbg/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i)... |
src/main/react/components/traffic/dataviews/EmptyDataView.js | pesan/service-spy | import React from 'react';
import VisibilityOffIcon from "@material-ui/icons/VisibilityOff"
import IconLabel from "../../IconLabel";
export default function EmptyDataView() {
return <IconLabel icon={<VisibilityOffIcon/>} label="Content not rendered"/>
}
|
docs/pages/index.js | lgollut/material-ui | import React from 'react';
import * as PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import Container from '@material-ui/core/Container';... |
test/integration/image-component/default/pages/layout-responsive-inside-flex.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
import img from '../public/test.jpg'
import style from '../style.module.css'
const Page = () => {
return (
<div className={style.displayFlex}>
<Image id="img" layout="responsive" src={img} />
</div>
)
}
export default Page
|
client/components/UserStatus/Online.js | VoiSmart/Rocket.Chat | import React from 'react';
import UserStatus from './UserStatus';
const Online = (props) => <UserStatus status='online' {...props} />;
export default Online;
|
src/modules/textNodes/components/TextNodesInput/TextNodesInput.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'react-apollo';
import { connect } from 'react-redux';
import { FormGroup } from 'react-bootstrap';
import update from 'immutability-helper';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/Tex... |
ajax/libs/zxcvbn/2.0.2/zxcvbn.min.js | zhangbg/cdnjs | (function(){var f;f={empty:function(m){var n,o;o=[];for(n in m){o.push(n)}return 0===o.length},extend:function(m,n){return m.push.apply(m,n)},translate:function(m,n){var s,q,o,r,p;r=m.split("");p=[];q=0;for(o=r.length;q<o;q++){s=r[q],p.push(n[s]||s)}return p.join("")},omnimatch:function(m,n){var r,p,o,q;q=[];r=0;for(p=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.