path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/client.js | CarlosMela/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import queryString from 'query-string';
import cre... |
src/__tests__/Badge.spec.js | reactstrap/reactstrap | import React from 'react';
import { shallow } from 'enzyme';
import { Badge } from '../';
describe('Badge', () => {
it('should render a span by default', () => {
const wrapper = shallow(<Badge>Yo!</Badge>);
expect(wrapper.type()).toBe('span');
});
it('should render an anchor when when href is provided'... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | littlefoot32/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
ajax/libs/yui/3.7.0pr1/simpleyui/simpleyui.js | CyrusSUEN/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
ajax/libs/primeui/4.1.7/primeui-ng-all.js | nolsherry/cdnjs | /*!
* jQuery JavaScript Library v2.2.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-02-22T19:11Z
*/
(function( global, factory ) {
if ( typeof module ==... |
ajax/libs/webshim/1.14.4-RC1/dev/shims/combos/26.js | mzdani/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
src/js/contexts/RootsContext.js | grommet/grommet | import React from 'react';
// When toggling aria-hidden values, we only want to affect elements
// in the DOM that come from Grommet, so we track those elements in this
// context value. See FocusedContainer.js
export const RootsContext = React.createContext([]);
|
src/svg-icons/editor/title.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
export default EditorTitle;
|
ajax/libs/yasr/2.4.12/yasr.bundled.min.js | maruilian11/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | fiture/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
ajax/libs/react-router/0.11.6/react-router.js | fbender/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... |
app/src/index.js | RyanCCollins/restaurant-reviewer | /* eslint-disable */ // React must be in scope here
import React from 'react';
/* eslint-enable */
import { render } from 'react-dom';
import routes from './routes';
import '../styles/styles.scss';
render(routes, document.getElementById('app'));
|
server/sonar-web/src/main/js/apps/account/notifications/Projects.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
docs/src/examples/collections/Message/Types/MessageExampleList.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleList = () => (
<Message>
<Message.Header>New Site Features</Message.Header>
<Message.List>
<Message.Item>You can now have cover images on blog pages</Message.Item>
<Message.Item>Drafts will now auto-save whi... |
src/pages/Stats.js | karajrish/karajrish.github.io | import React from 'react';
import { Link } from 'react-router-dom';
import Main from '../layouts/Main';
import Personal from '../components/Stats/Personal';
import Site from '../components/Stats/Site';
const Stats = () => (
<Main
title="Stats"
description="Some statistics about Rishabh Karajgi and mldangel... |
ajax/libs/react-table/6.0.2/react-table.js | maruilian11/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.ReactTable=t(require("react")):e.ReactTable=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exp... |
superset/assets/spec/javascripts/explore/components/ChartContainer_spec.js | BRD-CD/superset | // this test must be commented out because ChartContainer is now importing files
// from visualizations/*.js which are also importing css files which breaks in the testing env
// import React from 'react';
// import { expect } from 'chai';
// import { describe, it } from 'mocha';
// import ChartContainer from '../../... |
src/components/Heading/__tests__/StyledHeading.js | thegrinder/basic-styled-uikit | import React from 'react';
import { ThemeProvider } from 'styled-components';
import { render, cleanup } from '@testing-library/react';
import theme from '../../../theme/theme';
import StyledHeading from '../StyledHeading';
const children = 'children';
const renderComponent = (props = {}) =>
render(
<ThemeProv... |
app/containers/App/index.js | qiubit/lamp-experiment | /**
*
* 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)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';... |
src/svg-icons/action/spellcheck.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpellcheck = (props) => (
<SvgIcon {...props}>
<path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-... |
ajax/libs/abcjs/3.1.1/abcjs_plugin.user.js | pvnr0082t/cdnjs | // ==UserScript==
// @name abcjs
// @namespace http://code.google.com/p/abcjs
// @description This searches any page you load for ABC-formatted music and inserts the standard notation for it.
// ==/UserScript==
// Because the js files are concatenated, these variables will be visible to the ones in abcj... |
node_modules/react-icons/md/payment.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdPayment = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.4 13.4v-3.4h-26.8v3.4h26.8z m0 16.6v-10h-26.8v10h26.8z m0-23.4c1.8 0 3.2 1.5 3.2 3.4v20c0 1.9-1.4 3.4-3.2 3.4h-26.8c-1.8 0-3.2-1.5-3.2-3.4v-20c0-1.9 1.4-3.4 3.2-3... |
src/Time.js | Chatnbook/react-native-gifted-chat | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
Text,
View,
ViewPropTypes,
} from 'react-native';
import moment from 'moment';
export default class Time extends React.Component {
render() {
return (
<View style={[styles[this.props.position].container, this.props... |
wrappers/html.js | futuregerald/NetlifyApp | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div dangerouslySetInnerHTML={{ __... |
src/components/LocationInput.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
class LocationInput extends Component {
static propTypes = {
floatingLabelText: PropTypes.string.isRequired,
onChooseLocation: PropTypes.func.isRequired,
errorText: PropTypes... |
frontend/react-stack/react/cdc-admin/src/index.js | wesleyegberto/courses-projects | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Masthead/index.js | evandromacedo/evandromacedo.com | import React from 'react'
import PropTypes from 'prop-types'
import * as S from './styled'
const Masthead = ({ addInfo }) => (
<S.MastheadWrapper>
{/* Desktop Masthead */}
<S.MastheadHeading>Evandro</S.MastheadHeading>
<S.MastheadLowerText>
<S.MastheadSubheading>Macedo</S.MastheadSubheading>
... |
docs/src/app/components/pages/components/FontIcon/ExampleIcons.js | igorbt/material-ui | import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import {red500, yellow500, blue500} from 'material-ui/styles/colors';
const iconStyles = {
marginRight: 24,
};
const FontIconExampleIcons = () => (
<div>
<FontIcon className="material-icons" style={iconStyles}>home</FontIcon>
<FontIco... |
frontend-app/article/api/article-list/article-list-app.js | easybird/easyblog | import React from 'react';
import { render } from 'react-dom';
import ArticleList from './article-list.js';
render(
React.createFactory(ArticleList)(window.articleListProps),
document.getElementById(window.articleListId)
); |
src/components/Tos/Print/MetaDataTable.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
/**
* @param {string|string[]} value
* @return {string}
*/
const outputValue = value => (Array.isArray(value) ? value.join(', ') : value);
const Table = ({ rows }) => (
<table>
<caption>Metatiedot</caption>
<tbody>
{rows.map(row => {
... |
app/assets/scripts/components/page-header.js | openaq/openaq.org | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
import c from 'classnames';
import Breakpoint from './breakpoint';
import SmartLink from './smart-link';
import NewsBanner from './news-banner';
const subMenus = [
{
id: 'open-data',
title: 'Open Data',
items: [
{
... |
src/Thumbnail.js | snadn/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
examples/js/custom/search/default-custom-search-clear-button.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, ClearSearchButton } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
... |
app/routes/company/IndexRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Collection as Companies } from '../../entities/Company';
import { PageHeader, Row, Col } from 'react-bootstrap';
import NavLink from '../../components/NavLink';
import GridContainer from '../../components/G... |
src/app/components/EventList.js | jokep5/react-calendar | import React from 'react';
import EventStore from '../stores/EventStore';
import EventActions from '../actions/EventActions';
export default class EventList extends React.Component {
constructor () {
super();
this.state = {
events: EventStore.displayDefaultEvents()
};
}... |
src/docs/components/sidebar/SidebarExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Sidebar from 'grommet/components/Sidebar';
import Header from 'grommet/components/Header';
import Title from 'grommet/components/Title';
import Footer from 'grommet/components/Footer';
import Box from ... |
src/routes/register/index.js | CronosMax/firsttryreack | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Register from './Registe... |
client/components/ReactHotLoader.js | dariobanfi/react-avocado-starter | /* eslint-disable global-require */
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
const ReactHotLoader =
process.env.NODE_ENV === 'development'
? require('react-hot-loader').AppContainer
: ({ children }) => React.Children.only(children);
export default ReactHotLoader;
|
react-dev/components/signup_form.js | 575617819/yanghang | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
const styles = {
signup: {
paddingLeft: 20,
paddingRight: 20,
},
robotDiv: {
position: 'absolute',
left: -5000
}
};
const action = '//liquidthink.us10.... |
browser/app/js/components/BrowserUpdate.js | jimjag/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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... |
the_book/testing_with_enzyme/MyComponent.js | Muzietto/react-playground | 'use strict';
import React from 'react';
import Foo from './Foo';
class MyComponent extends React.Component {
constructor(props) {
super();
this.props = props;
}
render() {
return (
<div className="my_component icon-star">
<Foo myVar="cicciput"/>
... |
app/components/CategoriesList/DeleteButton.js | vlastoun/picture-uploader-crud | import React from 'react';
import PropTypes from 'prop-types';
import FlatButton from 'material-ui/FlatButton';
class DeleteButton extends React.Component {
constructor() {
super();
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.props.delete(this.props.post);
}
render() {
... |
tests/baselines/reference/jsxEmptyExpressionNotCountedAsChild(jsx=react).js | RyanCavanaugh/TypeScript | //// [jsxEmptyExpressionNotCountedAsChild.tsx]
/// <reference path="/.lib/react16.d.ts" />
import * as React from 'react'
interface Props {
children: React.ReactElement<any>
}
function Wrapper(props: Props) {
return <div>{props.children}</div>
}
const element = (
<Wrapper>
{/* comment */}
<div>... |
src/index.js | tfrankie88/splitzi_react | import React from 'react';
import ReactDom from 'react-dom';
import { Route, Router, browserHistory } from 'react-router';
import './Style/Style.css';
// import './img';
import LandingPage from './components/LandingPage/LandingPage';
import Login from './components/Login/Login';
import MenuCreate from './components/M... |
site/src/js/index.js | qimingweng/react-modal-dialog | import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import Router from 'react-router';
import routes from './routes';
const main = (path, props, done) => {
Router.run(routes, path, Handler => {
done(
'<!doctype html>' + ReactDOMServer.renderToString(<... |
manager/src/app.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, StatusBar } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import firebase from 'firebase';
import Router from './Router';... |
ajax/libs/rxjs/2.2.2/rx.compat.js | Rich-Harris/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
ajax/libs/react-bootstrap/0.24.0-alpha.0/react-bootstrap.js | terrymun/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
ajax/libs/ember-data.js/2.2.0-beta.2/ember-data.js | kiwi89/cdnjs | (function() {
"use strict";
var ember$lib$main$$default = Ember;
var ember$data$lib$adapters$build$url$mixin$$get = Ember.get;
var ember$data$lib$adapters$build$url$mixin$$default = Ember.Mixin.create({
/**
Builds a URL for a given type and optional ID.
By default, it pluralizes ... |
src/index.js | bla3e316/React-Leaflet-Kiev-Urban-Map | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.js';
import './index.css'; // postCSS import of CSS module
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
node_modules/react-bootstrap/es/HelpBlock.js | NickingMeSpace/questionnaire | 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 ... |
packages/material-ui-icons/src/SignalWifi3BarSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Radio.js | JamieMason/npm-cache-benchmark | 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/html-handler.js | marcusdarmstrong/cloth-io | // @flow
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { createStore } from 'redux';
import layout from './layout';
import App from './components/app';
import reducer from './reducer';
import onError from './util/on-error';
import { Map as map } from 'immutable';
const namespaces = ... |
src/app/components/AppRoot.js | hoppity/kafka-sample-web | import React from 'react';
import StockList from './StockList';
/*
* @class AppRoot
* @extends React.Component
*/
class AppRoot extends React.Component {
/*
* @method render
* @returns {JSX}
*/
render () {
return <div className="appRoot">
<h1>Stock Ticker</h1>
... |
app/javascript/mastodon/components/dropdown_menu.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
modules/RouteUtils.js | fiture/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
app/scripts/ConfigTrackMenu.js | hms-dbmi/higlass | import React from 'react';
import { mix } from './mixwith';
import ContextMenuContainer from './ContextMenuContainer';
import ContextMenuItem from './ContextMenuItem';
import SeriesListSubmenuMixin from './SeriesListSubmenuMixin';
import { getSeriesItems } from './SeriesListItems';
import { THEME_DARK } from './conf... |
app/containers/LanguageProvider/index.js | Honyrik/my_msg | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/components/common/svg-icons/device/access-alarms.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9... |
src/components/users.js | robreczarek/recruitment-un | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import styles from '../../style/users.css';
class Users extends Component {
constructor(props) {
super(props);
this.handleDelete = this.handleDelete.bind(this);
}
componentWillMount() {
this.props.fet... |
src/js/components/Heading.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.HEADING;
/**
* @description An HTML heading, on... |
components/Intro/Intro.js | cobbweb/golittle.red | import React from 'react';
import './Intro.scss';
function Intro() {
return <p className="Intro">Tales from the road</p>
}
export default Intro;
|
app/containers/NotFoundPage/index.js | activedecay/musical-meme | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
export default function NotFound() {
return (
<article>
... |
docs/app/Examples/views/Card/Variations/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Variations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Fluid Card'
description='A f... |
src/examples/Step5.js | mpusinhol/react-stepzilla | 'use strict';
import React, { Component } from 'react';
import Promise from 'promise';
export default class Step5 extends Component {
constructor(props) {
super(props);
this.state = {
saving: false
};
this.isValidated = this.isValidated.bind(this);
}
componentDidMount() {}
componentW... |
examples/ssr/App.js | kybarg/material-ui | import React from 'react';
import Container from '@material-ui/core/Container';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import ProTip from './ProTip';
import Link from '@material-ui/core/Link';
function Copyright() {
return (
<Typography variant="body2" col... |
app/containers/HistoryCardActual.js | i8wu/Converrency | import React from 'react';
import { connect } from 'react-redux';
import {
REMOVE_HISTORY,
SUBMIT_CONVERSION,
SUBMIT_ENTRY,
SUBMIT_OPTION_FROM,
SUBMIT_OPTION_TO,
} from '../constants/reduxConstants';
import HistoryCard from '../components/HistoryCard';
const HistoryCardActual = ({ history, removeHistory }) => (
... |
ajax/libs/froala-editor/1.1.8/js/libs/jquery-1.10.2.min.js | dada0423/cdnjs | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/parser/paladin/holy/modules/CastBehavior.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Statistic... |
src/components/Form/Form.js | MarynaHapon/Data-root-react | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Form.css';
import BlackButton from '../BlackButton';
const plName = 'Ім’я';
const plTel = 'Телефон';
const plMail = 'E-mail';
const plTextarea = 'Ваша ідея або питання';
const typeEmail = 'email';
const typeTex... |
ajax/libs/graphiql/0.4.4/graphiql.js | CyrusSUEN/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.GraphiQL = f()... |
src/app/modules/Dialog/components/DialogManager.js | toxzilla/app | import React from 'react';
import {connect} from 'cerebral-view-react';
export default connect({
component: 'dialog.component'
}, class DialogManager extends React.Component {
static displayName = 'DialogManager'
static propTypes = {
component: React.PropTypes.func
}
render () {
if (this.props.com... |
src/routes.js | benjyblack/react-app | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
examples/montage/index.html.bundle-1-0.js | jeremyeaton89/todomvc | montageDefine("6364dae","core/range-controller",{dependencies:["montage","core/promise","collections/generic-collection"],factory:function(require,exports,module){var Montage = require("montage").Montage;
var Promise = require("core/promise").Promise;
var GenericCollection = require("collections/generic-collection");
... |
example/vds-react/static/js/68.6f386239.chunk.js | anarh/maze | (this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[68],{264:function(e,t,a){"use strict";a.r(t);var n=a(144),o=a(0),l=a.n(o),r=a(538),c=a.n(r),i=a(2),s=a.n(i),m=a(544),u=a(543),p=a(39),d=a(8),h=a(532),y=a(18),E=a(23),b=a(16),g=a(530),v=a(64),f=a(531),B=a(533),w=a(534),T=a(535),A=a(536)... |
src/index.js | votheduy154/react-init | import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import {Router, browserHistory} from 'react-router'
import {syncHistoryWithStore} from 'react-router-redux'
import registerServiceWorker from './registerServiceWorker'
import configureStore from './configs/store.config'
// ... |
node_modules/react-icons/fa/odnoklassniki-square.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaOdnoklassnikiSquare = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.7 12.9q0 1.5-1 2.6t-2.6 1-2.5-1-1-2.6 1-2.5 2.5-1 2.6 1 1 2.5z m4.8 8.1q-0.3-0.4-0.7-0.7t-1-0.2-1.4 0.6q-0.2 0.2-0.6 0.5t-1.8 0.7-2.9 0.4-2.7-0.4-1.9-... |
ajax/libs/video.js/5.0.0-rc.59/alt/video.novtt.js | maruilian11/cdnjs | /**
* @license
* Video.js 5.0.0-rc.59 <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>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
src/components/moodle/plain/MoodlePlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './MoodlePlain.svg'
/** MoodlePlain */
function MoodlePlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'MoodlePlain' + ' ' + className}
... |
src/Components/SimpleDialog/DevelopersDialogComponent.js | fcgomes92/pousadacaminhodosventos | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import SimpleDialogComponent from './SimpleDialogComponent';
import { CardActionsComponent, CardComponent, CardContentComponent, CardTitleComponent } from '../Card/CardComponent';
import { ListComponent, ListIte... |
test/client/pages/admin/accounts/details/actions.js | fahidRM/aqua-couch-test | 'use strict';
const Code = require('code');
const Constants = require('../../../../../../client/pages/admin/accounts/details/constants');
const FluxConstant = require('flux-constant');
const Lab = require('lab');
const Proxyquire = require('proxyquire');
const lab = exports.lab = Lab.script();
const stub = {
ApiA... |
ajax/libs/es6-shim/0.17.0/es6-shim.js | kennynaoh/cdnjs | // ES6-shim 0.17.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/
(function(undefined) {
'use strict';
var isCallableWithoutNew = function(func) {
try { func(); }
... |
node_modules/grunt-codo/node_modules/codo/themes/default/assets/javascript/vendor/jquery.js | fredturnerr/SRT | /*!
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
RNTest/RNWithOCDemo/node_modules/react-native/local-cli/templates/HelloNavigation/components/ListItem.js | Tony0822/ReactNativeDemo | '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... |
frontend/src/DiscoverMovie/Posters/Options/DiscoverMoviePosterOptionsModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import DiscoverMoviePosterOptionsModalContentConnector from './DiscoverMoviePosterOptionsModalContentConnector';
function DiscoverMoviePosterOptionsModal({ isOpen, onModalClose, ...otherProps }) {
return (
... |
docs/src/app/components/pages/components/Checkbox/Page.js | w01fgang/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import checkboxReadmeText from './README';
import checkboxCode from '!raw!materi... |
src/BootstrapDataTable.js | gkaran/react-bootstrap-tabular | import React from 'react';
import update from 'react-addons-update';
import Table from './Table';
import PaginationComponent from './PaginationComponent';
import SearchEntry from './SearchEntry';
import { sum } from './utils/reducers';
import { sort, splitToPages, SORT_ASCENDING } from './utils/data-helpers';
import gu... |
lib/core-admin/release_bs3/docs/javascripts/application.js | emobile/psistemas | /*! 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){retur... |
examples/todomvc/src/components/TodoItem.spec.js | aGuyNamedJonas/slim-redux-react | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoItem from './TodoItem'
import TodoTextInput from './TodoTextInput'
const setup = ( editing = false ) => {
const props = {
todo: {
id: 0,
text: 'Use Redux',
completed: false
},
editTodo: jest.fn(),
d... |
ajax/libs/analytics.js/2.3.16/analytics.min.js | sevypannella/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
modules/RouteContext.js | mattydoincode/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
src/components/VideoListItem.js | adamlesniak/youtube-search-react | import React, { Component } from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const videoImage = video.snippet.thumbnails.default.url;
const videoTitle = video.snippet.title;
return (
<li onClick={ () => onVideoSelect(video) } className="list-group-item">
<div className="video-list med... |
frontend/src/components/controls/BugReportUI/fields.js | webrecorder/webrecorder | import React from 'react';
import PropTypes from 'prop-types';
import { Form } from 'react-bootstrap';
export function CheckboxField(props) {
const { cb, label, name } = props;
return (
<Form.Check type="checkbox" id={name} name={name} onChange={cb} label={label} />
);
}
CheckboxField.propTypes = {
cb:... |
src/App.js | deluxe-pig/cloud-farmer | import React, { Component } from 'react';
import { Faq, Login, Home, Account } from './containers';
import { Router, Route, hashHistory } from 'react-router'
export default class App extends Component {
render() {
return (
<Router history={hashHistory}>
<Route path='/' component={Home}/>
<R... |
packages/wix-style-react/src/MessageModalLayout/docs/examples/BasicExample.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
class BasicExample extends React.Component {
render() {
return (
<MessageModalLayout
primaryButtonText="Leave"
secondaryButtonText="Cancel"
title="Discard changes"
sideActions={<Checkbox>Don't show this again</Checkbox>}
... |
src/App.js | jishiniao/radio | import React from 'react'
import ReactDOM from 'react-dom'
import Demo from './components/Demo'
ReactDOM.render(
<Demo />,
document.getElementById('app')
)
|
ajax/libs/mediaelement/2.3.2/jquery.js | taydakov/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
components/ui/Switch.js | resource-watch/resource-watch | /* eslint-disable jsx-a11y/no-static-element-interactions */
import React from 'react';
import PropTypes from 'prop-types';
class Switch extends React.Component {
static defaultProps = {
active: false,
onChange: () => ({}),
};
static propTypes = {
active: PropTypes.bool,
classNames: PropTypes.st... |
src/routes/login/Login.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import {
FormGroup,
Button,
ControlLabel,
FormControl,
HelpBlock,
PageHeader,
} from 'react-bootstrap';
import s from './Login.css';
class Login extends React.Component {
static... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.