path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/react-icons/fa/odnoklassniki.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaOdnoklassniki = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 20.2q-4.2 0-7.2-2.9t-2.9-7.2q0-4.2 2.9-7.1t7.2-3 7.1 3 3 7.1q0 4.2-3 7.2t-7.1 2.9z m0-15.1q-2.1 0-3.5 1.5t-1.5 3.5q0 2.1 1.5 3.5t3.5 1.5 3.5-1.5 1.5-3.5q0... |
client/index.js | vaibhavmule/lead_crud | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger'
import rootRe... |
src/routes/UIElement/search/index.js | terryli1643/thinkmore | import React from 'react'
import { Search } from '../../../components'
import { Table, Row, Col, Card } from 'antd'
const SearchPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<Search />
</Card>
</Col>
<Col lg={8} md={12}>
<C... |
ajax/libs/react/0.4.1/react.min.js | thisispiers/cdnjs | /**
* React v0.4.1
*
* Copyright 2013 Facebook, 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 applicabl... |
node_modules/babel-preset-react/lib/index.js | ddigioia/react_router_practice_1 | "use strict";
exports.__esModule = true;
var _babelPresetFlow = require("babel-preset-flow");
var _babelPresetFlow2 = _interopRequireDefault(_babelPresetFlow);
var _babelPluginTransformReactJsx = require("babel-plugin-transform-react-jsx");
var _babelPluginTransformReactJsx2 = _interopRequireDefault(_babelPluginTr... |
vue.js/3_vue_templates/js/vue.js | xmementoit/practiseSamples | /*!
* Vue.js v2.6.10
* (c) 2014-2019 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 = global || self, global.Vue = fac... |
src/SettingsItemNotifications/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import SettingsItem from '../SettingsItem';
import Spacer from '../Spacer';
import ToggleButtonWithLabel from '../ToggleButtonWithLabel';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
class Se... |
src/components/pages/Articles/ArticlesListingPage.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import async from 'async';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
import config from '../../../config';
import {slugify} from '../../../utils/strings';
// Flux
im... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js | mangomint/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, { Component } from 'react';
import PropTypes from 'prop-types';
const styled = ([style]) =>
style
.trim()
.spli... |
src/AffixMixin.js | azmenak/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
src/pages/collabs.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { graphql } from 'gatsby';
import { RootContainer, SEOContainer } from '~containers';
import { Main, Section, H... |
app/components/elements/ChatElement.js | truca/fancy | import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import {Socket} from 'phoenix-socket';
import R from 'ramda';
import fU from '../../Utils.js';
import * as actions from '../../actions';
// import languages from '../../translate.js';
class ChatElement extends Component {
cons... |
ajax/libs/react-autosuggest/6.0.2/autosuggest.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.Autosuggest=t(require("React")):e.Autosuggest=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].e... |
app/entry.js | sysrex/sysrex | import React from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter as Router,
Route,
Switch,
} from 'react-router-dom';
import PrivateRoute from './components/Routes/PrivateRoute';
import AdminRoute from './components/Routes/AdminRoute';
// Featured
import Index from './views/Index';
import Abo... |
tests/lib/jquery/dist/jquery.js | MiguelCastillo/MortarJS | /*!
* jQuery JavaScript Library v1.11.0
* 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-01-23T21:02Z
*/
(function( global, factory ) {
if ... |
packages/material-ui-icons/src/SettingsRemoteTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M10 21h4V11h-4v10zm2-9c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z" opacity=".3" /><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55... |
websrc/cacti-user/src/components/GroupTabs.js | howardjones/network-weathermap | import React from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
const GroupTabs = (props) => {
if (props.groups.length < 2) {
return <span/>
} else {
let my_groups = props.groups.slice();
if (props.settings.show_all_tab) {
my_groups.... |
node_modules/prettier/index.js | ryotsuchiya/react_card_app | 'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var require$$0 = _interopDefault(require('assert'));
var require$$0$1 = _interopDefault(require('path'));
var os = _interopDefault(require('os'));
var fs = _interopDefault(require('fs'));
v... |
examples/counter/containers/CounterApp.js | mattybow/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
co... |
src/app/AppContainer.js | dsp-uber/sfmovies | import { connect } from 'react-redux';
import { fetchGenres, fetchAllMovies } from '../ducks/movies';
import App from './App';
const mapStateToProps = (state) => ({
isLoading: state.ui.isLoading
});
const mapDispatchToProps = (dispatch) => ({
onLoad: () => {
dispatch(fetchGenres());
return dispatch(fetchAllMovi... |
src/containers/Forms/Rating/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Rate from '../../../components/uielements/rate';
export default class AntdRater extends Component {
state = {
value: 3,
count: null,
};
handleChange = value => {
this.setState({ value });
};
render() {
const { value } = this.state;
return (... |
files/jquery/1.9.1/jquery-1.9.1.min.js | jtblin/jsdelivr | /*! 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... |
blueocean-material-icons/src/js/components/svg-icons/action/accessible.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V1... |
src/app/components/About/Leadership.js | kresimircoko/empathy | import React, { Component } from 'react';
import InfoCard from '../InfoCard/InfoCard';
import BodyLayout from '../BodyLayout';
class Leadership extends Component {
render () {
return (
<div id="site-leadership">
<section className="top-info">
<div className="container">
<InfoCard link="/about" id=... |
src/App.js | huangyang1122/react-admin | import React, { Component } from 'react';
import Home from './views/home/Home';
import Login from './views/login/Login';
import NotMatch from './views/404/NotMatch';
import { Route, Switch, Redirect } from 'react-router-dom';
import './App.css';
class App extends Component {
render() {
return (
<div classN... |
tests/Rules-minLength-spec.js | gullitmiranda/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
src/restaurant.js | themitvp/ReactCMS | import React, { Component } from 'react';
export class Restaurant extends Component {
render() {
const restaurant = this.props.restaurant;
return (
<div>
<h3 dangerouslySetInnerHTML={{ __html: restaurant.title.rendered }}></h3>
<strong>Description: </stro... |
ajax/libs/primereact/6.5.1/chip/chip.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames, ObjectUtils } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var ... |
src/icons/WifiIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class WifiIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M2 18l4 4c9.94-9.94 26.06-9.94 36 0l4-4C33.85 5.85 14.15 5.85 2 18zm16 16l6 6 6-6c-3.31-3.31-8.69-3.31-12 0zm... |
__tests__/components/Grommet-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Grommet from '../../src/js/components/Grommet';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Grommet', () =>... |
imports/plugins/core/core/server/Reaction/loadSettings.js | anthonybrown/reaction | import _ from "lodash";
import Logger from "@reactioncommerce/logger";
import { check } from "meteor/check";
import { ServiceConfiguration } from "meteor/service-configuration";
import { Packages } from "/lib/collections";
import { EJSON } from "meteor/ejson";
/**
* @method loadSettings
* @summary
* This basically ... |
admin/client/components/PopoutPane.js | Ftonso/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
onLayout: React.PropTypes.func
},
getDefaultProps () {
... |
website/src/BrowserAppContainer.js | kkamperschroer/react-navigation |
import React from 'react';
import { NavigationActions, addNavigationHelpers } from 'react-navigation';
function getAction(router, path, params) {
const action = router.getActionForPathAndParams(path, params);
if (action) {
return action;
}
return NavigationActions.navigate({
params: { path },
rou... |
web/grab_to_pan.js | existentialism/pdf.js | /* Copyright 2013 Rob Wu <gwnRob@gmail.com>
* https://github.com/Rob--W/grab-to-pan.js
*
* 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.... |
lib/components/Controls.js | letakeane/db-lk-weathrly | import $ from 'jQuery';
import React, { Component } from 'react';
import Weather from './Weather';
export default class Controls extends Component {
constructor() {
super();
this.state = {
location: '',
queryLocation: '',
};
}
handleClick() {
const weatherLocation = $.get(`http://aut... |
packages/material-ui-icons/src/StarBorder.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" /><... |
app/javascript/mastodon/components/admin/Counter.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import classNames from 'classnames';
import Skeleton from 'mastodon/components/skeleton';
const percIncrease = (a,... |
src/shared/views/topMenu/TopMenuHeader/TopMenuHeader.js | in-depth/indepth-core | import React from 'react'
import styles from './topMenuHeader.css'
const TopMenuHeader = (props) => {
return (
<div className={styles.header}>
<h1>{props.title}</h1>
</div>
)
}
TopMenuHeader.propTypes = {
title: React.PropTypes.string.isRequired,
}
export default TopMenuHeader
|
client/modules/App/__tests__/Components/Header.spec.js | CODEINAE/todoy | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
ajax/libs/js-data/2.0.0-beta.2/js-data-debug.min.js | victorjonsson/cdnjs | /*!
* js-data
* @version 2.0.0-beta.2 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
app/Options.js | jastkand/vk-notifications | import './global'
import React from 'react'
import ReactDOM from 'react-dom'
import GroupsContainer from './components/GroupsContainer'
import AuthPanel from './components/AuthPanel'
import { OptionsHeader } from './components/OptionsHeader'
import { getGroups, removeGroup, fetchGroupByUrl } from './storages/GroupStor... |
app/javascript/mastodon/features/lists/components/new_list_form.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
ajax/libs/6to5/3.0.8/browser-polyfill.js | pc035860/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/ProgressControl.js | Andreyco/react-video | import React, { createClass, PropTypes } from 'react';
const wrapperStyle = {
border: '1px solid #ccc',
height: 10,
boxSizing: 'border-box',
position: 'relative',
};
const barStyle = {
background: '#ccc',
height: '100%',
position: 'absolute',
};
const ProgressControl = createClass({
contextTypes: {
... |
tests/components/Smart.spec.js | deevatech/frontend | import React from 'react'
import Smart from 'components/Smart/Smart'
describe('(Component) Smart', () => {
it('should exist', () => {
})
})
|
src/auth/hoc/hoc.js | InseeFr/Pogues | import React from 'react';
import Container from './container';
const secure = Component => props =>
<Container Component={Component} {...props} />;
export default secure;
|
src/js/components/Tip/stories/Caret.js | HewlettPackard/grommet | import React from 'react';
import { grommet, Box, Button, Grommet, Heading, Text, Tip } from 'grommet';
import { Trash } from 'grommet-icons';
const TipContent = ({ message }) => (
<Box direction="row" align="center">
<svg viewBox="0 0 22 22" version="1.1" width="22px" height="22px">
<polygon
fill... |
scripts/main.js | bayoh/Gumbe | import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
require('../styles/main.scss');
const store = configureStore();
ReactDOM.render(
<Provider stor... |
ajax/libs/inferno-test-utils/7.1.7/inferno-test-utils.min.js | joeyparrish/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("inferno")):"function"==typeof define&&define.amd?define(["exports","inferno"],n):n(((e=e||self).Inferno=e.Inferno||{},e.Inferno.TestUtils=e.Inferno.TestUtils||{}),e.Inferno)}(this,function(e,o){"use strict";var n="a runtime error occ... |
node_modules/react-icons/fa/sort.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaSort = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.4 24.3q0 0.6-0.5 1l-10 10q-0.4 0.4-1 0.4t-1-0.4l-10-10q-0.4-0.4-0.4-1t0.4-1 1-0.4h20q0.6 0 1 0.4t0.5 1z m0-8.6q0 0.6-0.5 1t-1 0.4h-20q-0.6 0-1-0.4t-0.4-1 0.4-1l10-10... |
src/subheader-leader.js | danielmoll/component-win-articlepage | import ArticleSubheaderContainer from '@economist/component-articletemplate/lib/subheader';
import React from 'react';
import { defaultGenerateClassNameList } from '@economist/component-variantify';
const extendedSubheaderItemClasses = [
'margin-l-1',
'gutter-l',
];
export default function WinLeaderSubheader({
g... |
test/index.js | IceEnd/ice-video | import 'babel-polyfill';
import path from 'path';
import React from 'react';
import ReactDOM from 'react-dom';
import {AppContainer} from 'react-hot-loader';
import IceVideo from '../src/index';
import '../src/assets/sass/video.scss';
import './example.scss';
const render = (Component) => {
const settings = {
/... |
react-flux-mui/js/material-ui/src/svg-icons/image/navigate-next.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateNext = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
ImageNavigateNext = pure(ImageNavigateNext);
ImageNavigateNext.displayName = 'Ima... |
node_modules/grunt-contrib-watch/node_modules/tiny-lr/node_modules/qs/test/browser/jquery.js | asacalow/york-open-heritage | /*!
* 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/src/components/landing/components/BigCallToAction.js | raisedadead/FreeCodeCamp | import PropTypes from 'prop-types';
import React from 'react';
import { useTranslation } from 'react-i18next';
import Login from '../../Header/components/Login';
const propTypes = {
page: PropTypes.string
};
const BigCallToAction = ({ page }) => {
const { t } = useTranslation();
return (
<Login block={true... |
components/shared/utils/icons.js | ecmadao/light-ui | import React from 'react'
const DOWN = (
<svg width="12px" height="9px" viewBox="174 217 12 9" version="1.1">
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" transform="translate(174.000000, 217.500000)">
<polygon fill="" points="10.6 0.6 6 5.2 1.4 0.6 0 2 6 8 12 2"></polygon>
</g>
</... |
webapp-src/src/Profile/SchemeMock.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import apiManager from '../lib/APIManager';
import messageDispatcher from '../lib/MessageDispatcher';
import Notification from '../lib/Notification';
class SchemeMock extends Component {
constructor(props) {
super(props);
this.state =... |
files/react.slick/0.5.0/react-slick.js | jtblin/jsdelivr | (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["Slider"] = factory(... |
react/features/large-video/components/LargeVideo.native.js | KalinduDN/kalindudn.github.io | /* @flow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { ParticipantView } from '../../base/participants';
import styles from './styles';
/**
* Implements a React {@link Component} which represents the large video (a.k.a.
* the conference participant who is on the loca... |
src/containers/NotFound/NotFound.js | jiangzhichao/dog | import React from 'react';
export default () => (
<div className="container">
<h1> 404 </h1>
</div>
);
|
Example/components/TabView.js | dmazin/react-native-router-flux | import React from 'react';
import {PropTypes} from "react";
import {StyleSheet, Text, View, ViewPropTypes} from "react-native";
import Button from 'react-native-button';
import { Actions } from 'react-native-router-flux';
const contextTypes = {
drawer: React.PropTypes.object,
};
const propTypes = {
name: PropType... |
app/javascript/mastodon/components/setting_text.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/svg-icons/device/signal-wifi-1-bar-lock.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/layouts/CoreLayout/CoreLayout.js | easingthemes/notamagic | import React from 'react';
import Navbar from 'components/Navbar/Navbar';
import GoToTop from 'components/GoToTop';
import Footer from '../../components/Footer';
import '../../styles/vendor.scss';
import '../../styles/core.scss';
import helperScroll from '../../utils/animateScroll';
export class CoreLayout extends Rea... |
src/components/aml/AmlPage.spec.js | TulevaEE/onboarding-client | import React from 'react';
import { shallow } from 'enzyme';
import UpdateUserForm from '../contact-details/updateUserForm';
import { AmlPage } from './AmlPage';
describe('AML Page', () => {
let component;
let props;
beforeEach(() => {
props = {};
component = shallow(<AmlPage {...props} />);
});
it('... |
src/icons/LaunchIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LaunchIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.... |
src/pages/resume/education/index.fr.js | angeloocana/angeloocana | import React from 'react';
import EducationsPage from '../../../components/Resume/EducationsPage';
import graphql from 'graphql';
export default (props) =>
<EducationsPage
{...props}
/>;
export const pageQuery = graphql`
query ResumeEducationsFr {
site {
siteMetadata {
resume {
m... |
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js | spiermar/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
export default class TimePickerExampleComplex extends React.Component {
constructor(props) {
super(props);
this.state = {value24: null, value12: null};
}
handleChangeTimePicker24 = (event, date) => {
this.setState({value24:... |
client/test/apps/github-api-sample/containers/App.js | armw4/redux-samples | // NOTE: we've used symlinks to node_modules in the past to get around the '../../../path-to-system-under-test' stuff but doesn't bother me much
import React from 'react'
import { Provider } from 'react-redux'
import nock from 'nock'
import { mount } from 'enzyme'
import App from '../../../../apps/github-api-sample/con... |
packages/ringcentral-widgets-docs/src/app/pages/Components/RecentActivityNavigationButton/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import RecentActivityNavigationButton from 'ringcentral-widgets/components/RecentActivityNavigationButton';
const props = {};
props.icon = <span>Node</span>;
props.width = undefined;
/**
* A example of `RecentActivityNavigationButton`
*/
const RecentActivityNav... |
ajax/libs/es6-shim/0.26.1/es6-shim.js | LeaYeh/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.26.1
* see https://github.com/paulmillr/es6-shim/blob/0.26.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/Slider/Slider.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import keycode from 'keycode';
import Slider from './Slider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Slider />', () => {
const muiTheme = getMuiTheme();
con... |
draft-js-toolbar-plugin/src/components/Toolbar/index.js | vacenz/last-draft-js-plugins | import React from 'react'
import { getVisibleSelectionRect } from 'draft-js'
export default class Toolbar extends React.Component {
state = {
isVisible: false,
modalVisible: false,
modal: null
}
componentWillMount () {
this.props.store.subscribeToItem('isVisible', this.onVisibilityChanged)
}
... |
src/components/child1.js | thbgh/antdPro | /**
* @Author: THB
* @Date: 2017-07-26 10:47:51 AM Wednesday
* @Email: thbwork2016@gmail.com
* @Project: antdPro
* @Filename: child1.js
* @Last modified by: THB
* @Last modified time: 2017-07-28 17:03:35 PM Friday
*/
import React from 'react';
// 子组件
var ToggleButton = React.createClass({
getInitial... |
src/components/Modal.js | pixel-glyph/better-reads | import React from 'react';
import PropTypes from 'prop-types';
import Overlay from './Overlay';
class Modal extends React.Component {
componentDidMount() {
this.newListName.focus();
}
newListSubmit = (e) => {
e.preventDefault();
if(!this.newListName.value) return;
if(this.props.doesLi... |
client/src/App.js | Tapiiri/ChatBest | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
node_modules/react-fetch/example/src/example.js | angustas/company | import React from 'react'
import ReactDOM from 'react-dom'
import Fetch from 'react-fetch'
export default class App extends React.Component{
onError(error){
console.log(error)
}
render(){
return (
<Fetch url="http://httpbin.org/headers" onError={this.onError}>
<TestComponent/>
</Fet... |
packages/material-ui-icons/src/CodeTwoTone.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
, 'CodeTwoTone');
|
src/layouts/CoreLayout/CoreLayout.js | robertcasanova/personal-website | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
<div>
{children}
</div>
</div>
)
CoreLayout.propTypes = {
children : React.PropTypes.element.isRequir... |
node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js | hpdmitriy/Bjj4All | /**
* Copyright (c) 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.
*
* Facebook,... |
app/javascript/mastodon/components/icon_button.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import AnimatedNumber from 'mastodon/components/animated_number';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTyp... |
ajax/libs/material-ui/5.0.0-alpha.26/modern/FilledInput/FilledInput.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import{deepmerge,refType}from"@material-ui/utils";import PropTypes from"prop-types";import{unstable_composeClasses as composeClasses}fro... |
docs/src/app/components/pages/components/IconButton/ExampleSize.js | lawrence-yu/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const styles = {
smallIcon: {
width: 36,
height: 36,
},
mediumIcon: {
width: 48,
height: 48,
},
largeIcon: {
width: 60,
height: 60,
},
small: {
... |
Examples/UIExplorer/js/ScrollViewExample.js | jadbox/react-native | /**
* Copyright (c) 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.
*
* The examp... |
packages/material-ui-icons/src/NatureRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13 16.12c3.37-.4 6.01-3.19 6.16-6.64.17-3.87-3.02-7.25-6.89-7.31-3.92-.05-7.1 3.1-7.1 7 0 3.47 2.52 6.34 5.83 6.89V20H6c-.55 0-1 .45-1 1s.45... |
src/parser/deathknight/shared/RuneTracker.js | FaideWW/WoWAnalyzer | import React from 'react';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import SPELLS from 'common/SPELLS';
import { formatDuration, formatNumber, formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
imp... |
node_modules/react-bootstrap/es/Media.js | soniacq/LearningReact | 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 ... |
ajax/libs/raven.js/3.7.0/raven.js | dlueth/cdnjs | /*! Raven.js 3.7.0 (cf2ddee) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2016 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof export... |
tp-react/src/UserList.js | detienne11/imie | import React, { Component } from 'react';
import User from './User';
class UserList extends Component {
renderDatas(datas) {
console.log("UserList :",datas);
if (datas.length > 0) {
return (
<div>
{datas.map((data) => (
<User key={data.id} user... |
test/regressions/TestViewer.js | AndriusBil/material-ui | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
const styles = (theme: Object) => ({
'@global': {
html: {
WebkitFontSmoothing: 'antialiased', // Antialiasing.
MozOsxFontSmoothing: 'grayscale', // Antialiasing.
... |
src/components/CommentsListPage/CommentsListPage.js | undancer/ohmyladygaga | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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, { PropTypes } from 'react'; // eslint-disable-line no-unused-vars
import w... |
src/router/bundle.js | vshao/webapp | /**
* Created by feichongzheng on 17/9/12.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {injectAsyncStore} from '../../Store';
class Bundle extends Component {
static propTypes = {
load: PropTypes.any,
children: PropTypes.any,
};
static context... |
packages/material-ui-icons/src/PermCameraMic.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5... |
src/svg-icons/hardware/laptop-mac.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopMac = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0... |
webpack/components/SelectOrg/SetOrganization.js | pmoravec/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { Form, Button } from 'patternfly-react';
import { withRouter } from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
imp... |
app/view/article_detail.js | togayther/react-stock | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import * as ArticleAction from '../action/article';
import Container from '../component/container';
import {
Article
} from 'react-weui';
class ArticleDetailApp exten... |
mxcube3/ui/containers/LoginContainer.js | marcus-oscarsson/mxcube3 | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {
signIn,
doSignOut,
selectProposal,
sendSelectProposal,
hideProposalsForm
} from '../actions/login';
import { setLoading } from '../actions/general';
import Login from '../compo... |
files/videojs/5.0.0-rc.60/video.js | fchasen/jsdelivr | /**
* @license
* Video.js 5.0.0-rc.60 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
src/helpers/__tests__/connectData-test.js | phonne/Chatroom | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import connectData from '../connectData';
describe('connectData', () => {
let fetchData;
let fetchDataDeferred;
let WrappedComponent;
let DataComponent;
beforeEach(() => {
fetchData = 'fetchDataFunction';
fetc... |
node_modules/rc-pagination/es/Pager.js | yhx0634/foodshopfront | import React from 'react';
import PropTypes from 'prop-types';
var Pager = function Pager(props) {
var prefixCls = props.rootPrefixCls + '-item';
var cls = prefixCls + ' ' + prefixCls + '-' + props.page;
if (props.active) {
cls = cls + ' ' + prefixCls + '-active';
}
if (props.className) {
cls = cls... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.