path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
kitchensink/ios/index.js | junewinds/jmui | import { hashHistory } from 'react-router'
import getRoutes from './routes'
import Root from './Root'
import React from 'react'
import ReactDOM from 'react-dom'
const routes = getRoutes()
ReactDOM.render(
<Root history={hashHistory} routes={routes} />,
document.getElementById('root')
)
|
files/firebuglite/1.4.0/firebug-lite-debug.js | EragonJ/jsdelivr | (function(){
/*!*************************************************************
*
* Firebug Lite 1.4.0
*
* Copyright (c) 2007, Parakey Inc.
* Released under BSD license.
* More information: http://getfirebug.com/firebuglite
*
********************************************************... |
packages/docs/components/Examples/undo/gettingStarted.js | draft-js-plugins/draft-js-plugins | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createUndoPlugin from '@draft-js-plugins/undo';
import React from 'react';
// Creates an Instance. At this step, a configuration object can be passed in
// as an argument.
const undoPlugin = createUndoP... |
client/containers/services.js | ckiss/vidi-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import Panel from '../components/panel'
export const Services = React.createClass({
render () {
return (
<div className="page container-fluid">
<div className="row middle-xs">
<h2 className="col-xs-12 col-sm-6">Se... |
ajax/libs/angular.js/0.9.1/angular-scenario.min.js | alucard001/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
examples/src/components/Multiselect.js | glowka/react-select | import React from 'react';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label... |
test/fixtures/webpack-message-formatting/src/AppCss.js | GreenGremlin/create-react-app | import React, { Component } from 'react';
import './AppCss.css';
class App extends Component {
render() {
return <div className="App" />;
}
}
export default App;
|
ajax/libs/react-native-web/0.12.3/exports/AppRegistry/AppContainer.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under th... |
wp-includes/js/jquery/jquery.js | joachimbl/ajourdk | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/AutoProgressBar.js | peterbe/whatsdeployed | import React from 'react';
import PropTypes from 'prop-types';
import { Progress } from 'reactstrap';
export default class AutoProgressBar extends React.Component {
static propTypes = {
done: PropTypes.number,
total: PropTypes.number,
targetTime: PropTypes.number,
auto: PropTypes.bool,
autoTickRa... |
addons/themes/minimaxing/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Blog = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
packages/cxx/src/router.js | wangzuo/cxx | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import NProgress from 'nprogress';
import { createOperationSelector, getOperation } from 'relay-runtime';
import QueryRenderer from './query-renderer';
import normalizeHref from './normalize-href';
import createMatcher from './matcher';
expo... |
client/src/components/Home.js | kevinladkins/newsfeed | import React from 'react'
import Login from '../containers/Login'
import {Link} from 'react-router-dom'
const Home = (props) =>
<div>
<h2 >
Welcome! Log in below to view your newsfeed, or <Link className="link" to="/signup">click here</Link> to sign up.
</h2>
<Login history={props.history... |
app/main.js | n8e/simple-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './views/App.jsx';
ReactDOM.render(<App />, document.getElementById('wrapper'));
|
packages/material-ui-icons/src/BrushSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm14.41-8.66l-2.75-2.75L9 12.25 11.75 15l9.... |
js/react-native/merin_j/src/app.js | petarov/sandbox | // Root Component
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import Firebase from 'firebase';
import reducers from './reducers';
import FirebaseC... |
src/svg-icons/image/photo-size-select-small.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectSmall = (props) => (
<SvgIcon {...props}>
<path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H... |
js/jquery.mobile-1.3.2.js | pcphashimoto/WorldClockBox | /*!
* jQuery Mobile 1.3.2
* Git HEAD hash: 528cf0e96940644ea644096bfeb913ed920ffaef <> Date: Fri Jul 19 2013 22:17:57 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
ajax/libs/yui/3.10.0/event-custom-base/event-custom-base-coverage.js | blairvanderhoof/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,... |
source/demo/NavLink.js | cesarandreu/react-virtualized | /** @flow */
import React from 'react'
import { Link } from 'react-router'
import Icon from './Icon'
import styles from './NavLink.css'
export default function NavLink ({ children, href, iconType, to }) {
let link
let icon
if (iconType) {
icon = (
<Icon
className={styles.Icon}
type={ic... |
ajax/libs/ionic/0.9.25/js/ionic.js | gasolin/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.25
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
window.ioni... |
ajax/libs/yui/3.0.0pr2/yui/yui.js | jackdoyle/cdnjs | /**
* YUI core
* @module yui
*/
(function() {
var _instances = {},
// @TODO: this needs to be created at build time from module metadata
_APPLY_TO_WHITE_LIST = {
'io.xdrReady': 1,
'io.start': 1,
'io.success': 1,
'io.failure': 1,
'io.abort': 1... |
src/frontend/components/DummyEventCreate.js | Bernie-2016/ground-control | import React from 'react';
import Relay from 'react-relay';
export default class DummyEventCreate extends React.Component {
render() {
window.location.reload();
return <div></div>
}
} |
src/atoms/archive-list-item/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import any from '@travi/any';
import storyRouter from 'storybook-router';
import {linkTo} from '@storybook/addon-links';
import ArchiveListItem from './component';
const meeting = {
node: {
fields: {sl... |
frontend/jqwidgets/jqwidgets-react/react_jqxnotification.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxNotification extends React.Component {
componentDidMount() {
let options = this.m... |
ReactFlux/node_modules/reactify/node_modules/react-tools/src/browser/ui/dom/components/__tests__/ReactDOMIframe-test.js | wandarkaf/React-Bible | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/yui/3.10.2/event-focus/event-focus-min.js | kevinburke/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
src/svg-icons/notification/do-not-disturb-alt.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8... |
fixtures/fiber-debugger/src/Editor.js | with-git/react | import React, { Component } from 'react';
class Editor extends Component {
constructor(props) {
super(props);
this.state = {
code: props.code
};
}
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>
<textarea
value={this.state.c... |
src/IconDropdown/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';
import Icon from '../Icon';
import classNames from 'classnames';
function IconDropdown(props) {
return (
<div
className={classNames(styles.wrapper, {
[props.className]: props.class... |
ajax/libs/forerunnerdb/1.3.703/fdb-core.min.js | pombredanne/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/svg-icons/image/timer-3.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer3 = (props) => (
<SvgIcon {...props}>
<path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1.... |
src/routes/notFound/index.js | stanxii/laiico | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
ajax/libs/react-instantsearch/5.0.0-beta.0/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 5.0.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
App/db/entities/content/Events/Theatre.js | nthbr/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. You can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
... |
src/scripts/main.js | needcash/real-estate-lead-generation | import React from 'react';
import ReactDOM from 'react-dom';
import Website from './components/Website';
import style from '../styles/main.scss';
ReactDOM.render(<Website />, document.getElementById('app')); |
src/client-scripts/admin-client.js | thegazelle-ad/gazelle-front-end | /* eslint-disable react/jsx-filename-extension */
// Emil hacking because he can't find a babel plugin that does it for some reason
if (!Array.prototype.flatten) {
// eslint-disable-next-line
Array.prototype.flatten = function flatten() {
return this.reduce((acc, cur) => acc.concat(cur), []);
};
}
import Rea... |
packages/material-ui-icons/lib/CloudSharp.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/js/components/ui/Banner/Banner.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './Banner.scss';
export default class Banner extends Component {
static propTypes = {
onClickHandler: PropTypes.func.isRequired,
onSkipHandler : PropTypes.func.isRequired,
title : PropT... |
app/webpack/observations/show/containers/map_container.js | calonso-conabio/inaturalist | import { connect } from "react-redux";
import Map from "../components/map";
function mapStateToProps( state ) {
return {
observation: state.observation,
observationPlaces: state.observationPlaces
};
}
const MapContainer = connect(
mapStateToProps
)( Map );
export default MapContainer;
|
src/svg-icons/device/battery-charging-80.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
app/javascript/mastodon/containers/compose_container.js | vahnj/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
src/App/views/Settings/index.js | hajjiTarik/SolarNews | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ScrollView, StyleSheet } from 'react-native';
import Sites from './components/Sites';
import FontSize from './components/FontSize';
import NotificationAlarm from './components/Notificati... |
src/svg-icons/content/clear.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
app/components/Product/index.js | abakusbackup/abacash-client | // @flow
import React from 'react';
import Style from './Product.css';
import Products from './Products';
type Props = {
product: Object,
select: (product: Object) => void,
};
const Product = (props: Props) => (
<div
className={Style.product} onClick={() => props.select(props.product)}
key={props.produc... |
modules/RouteContext.js | hgezim/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... |
templates/rubix/demo/src/common/timeline.js | jeffthemaximum/jeffline | import React from 'react';
import {
Grid,
Row,
Col,
Button,
TimelineView,
TimelineItem,
TimelineBody,
TimelineHeader,
TimelineAvatar,
TimelineTitle,
} from '@sketchpixy/rubix';
export default class TimelineComponent extends React.Component {
render() {
return (
<div>
<Grid>
... |
packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/FromComputerForm.js | wistityhq/strapi | /* eslint-disable jsx-a11y/label-has-associated-control */
import React, { useRef, useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/... |
webApp/src/index.js | s-law/silent-disco | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route } from 'react-router';
import { createHistory } from 'history';
import injectTapEventPlugin from '../node_modules/react-tap-event-plugin';
import App from './App.jsx';
import StreamLive from './Components/StreamLive.js';
import Broadca... |
src/svg-icons/av/skip-next.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipNext = (props) => (
<SvgIcon {...props}>
<path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/>
</SvgIcon>
);
AvSkipNext = pure(AvSkipNext);
AvSkipNext.displayName = 'AvSkipNext';
AvSkipNext.muiName = 'SvgIcon... |
ajax/libs/golden-layout/1.5.6/goldenlayout.js | seogi1004/cdnjs | (function($){var lm={"config":{},"container":{},"controls":{},"errors":{},"items":{},"utils":{}};
lm.utils.F = function () {};
lm.utils.extend = function( subClass, superClass ) {
subClass.prototype = lm.utils.createObject( superClass.prototype );
subClass.prototype.contructor = subClass;
};
lm.utils.createObject... |
example/src/components/SliderEntry.js | archriss/react-native-snap-carousel | import React, { Component } from 'react';
import { View, Text, Image, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import { ParallaxImage } from 'react-native-snap-carousel';
import styles from '../styles/SliderEntry.style';
export default class SliderEntry extends Component {
stati... |
assets/javascripts/sso/components/AdminListMemberCard.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {Admin} from '../models/Models';
let AdminListMemberCard = React.createClass({
getInitialState() {
return {
members: [],
};
},
componentWillMount() {
this.reload();
},
componentWillReceiveProps(nextProps){
const... |
examples/js/shopping-list-redux-hoc/client/components/ShoppingListCreator.js | reimagined/resolve | import React from 'react'
import { Button, Col, FormLabel, FormControl, Row } from 'react-bootstrap'
import { v4 as uuid } from 'uuid'
class ShoppingListCreator extends React.PureComponent {
constructor() {
super(...arguments)
this.state = {
shoppingListName: '',
}
this.updateShoppingListName = ... |
src/svg-icons/action/compare-arrows.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows = pure(ActionCompareArrows);
Acti... |
src/components/SocialActivities.js | qkevinto/kevinto.me | import React from 'react';
import { root, header, heading, list, listItem } from './SocialActivities.module.scss';
import * as content from '../utils/content';
import Github from './Github';
import Trakt from './Trakt';
import LastFm from './LastFm';
export default class SocialActivities extends React.Component {
r... |
src/pages/vov.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Vov' />
)
|
packages/material-ui-icons/src/LocalParkingSharp.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="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z" /></React.Fragment>
, 'LocalParkingSharp');
|
src/routes/Oppgave1Fasit/components/Oppgave1View.js | andreasnc/summer-project-tasks-2017 | import React from 'react';
import StarWarsCharacter from './StarWarsCharacter';
import Oppgave1Text from './Oppgave1Text';
const character = require('../data.json');
const Oppgave1View = () => (
<div>
<h4>Oppgave 1</h4>
<Oppgave1Text />
<StarWarsCharacter
{...character}
/>
</div>
);
export d... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | ArmendGashi/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... |
tests/Formsy-spec.js | sdemjanenko/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import TestInput from './utils/TestInput';
import immediate from './utils/immediate';
import sinon from 'sinon';
export default {
'Setting up a form': {
'should render a for... |
dashboard/src/components/dashboard/history/Incident.js | leapfrogtechnology/chill | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ToolTip from 'react-tooltip';
import { getFormattedDate } from '../../../utils/date';
import * as statusService from '../../../services/status';
/**
* Renders by getting all the information of incidents
* from... |
ReactNativeDemo/app/main/Navigator.js | zxpLearnios/ReactNativeDemo | /**
* Created by jingnanzhang on 2017/5/31.
*/
// 这里只写tab页
import React, { Component } from 'react';
import {
Button,
Text,
} from 'react-native';
import {
TabNavigator,
StackNavigator,
TabBarBottom,
}from 'react-navigation'; // npm install --save react-navigation 来安装词库
// 导入js类
import HomeP... |
public/js/src.js | hkdnet/GitRec | 'use strict';
import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import gitRecApp from './public/js/reducers.js'
import Screen from './public/js/components/Screen.js'
let store = createStore(gitRecApp);
render(
<Provider sto... |
wrappers/yaml.js | frontendyteam/www.frontendy.com | import React from 'react'
import yaml from 'js-yaml'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (... |
src/routes.js | ClaudiuCeia/mioritic | // @flow
import React from 'react';
import { Router, Route } from 'react-router';
import Home from './components/Home';
import CoursePage from './components/CoursePage';
import NotFound from './components/NotFound';
const Routes = (props: any) => (
<Router {...props}>
<Route path="/" component={Home} />
<Ro... |
src/averageReviewTimeReport.js | Earthstar/gerrit-report-dashboard | import React from 'react';
// "Pure Function" way of declaring React classes. Useful if don't need to store state
const AverageReviewTimeReport = (props) =>
<div className="report-container">
<h2>Average Review Time</h2>
<span className="large-report">{props.averageHours} hours</span>
</div>;
export { AverageRevi... |
pages/glossary.js | maven-hackathon/TheQueerTour | import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Glossary</h1>
<p>Coming soon.</p>
</div>
);
}
}
|
ajax/libs/react-bootstrap-typeahead/0.1.5/react-bootstrap-typeahead.min.js | brix/cdnjs | !function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{... |
lib/components/notifications.js | spncrgr/hyper | import React from 'react';
import Component from '../component';
import {decorate} from '../utils/plugins';
import Notification_ from './notification';
const Notification = decorate(Notification_);
export default class Notifications extends Component {
template(css) {
return (<div className={css('view')}>
... |
src/core/display/App/Navigation/Horizontal/CategoryNavigation.js | JulienPradet/pigment-store | import React from 'react'
import {Match, Miss, Link} from 'react-router'
import {Container, Item} from '../../util/View/HorizontalList'
import ComponentNavigation from './ComponentNavigation'
import ChildrenLinks from './ChildrenLinks'
const extractCategoryChildren = (prefix, category) => [
...category.categories.ma... |
src/components/MainPage/FormTable/TradingInfo/TradingInfo.js | coolshare/ReactReduxStarterKit | import React from 'react'
import ReactDataGrid from 'react-data-grid';
import {connect} from 'react-redux'
import { Editors, Formatters } from 'react-data-grid-addons';
import cs from '../../../../services/CommunicationService'
import $ from "jquery";
class _TradingInfo extends React.Component{
constructor(props) ... |
ajax/libs/react-dom/16.0.0-alpha.10/umd/react-dom.production.min.js | joeyparrish/cdnjs | /**
* react-dom.production.min.js v16.0.0-alpha.10
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.ReactDOM=t(e.React)}(this,function(e){"use strict";function t(e){for(var t=arguments.length-1,n="Mini... |
packages/material-ui-icons/src/Colorize.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Colorize = props =>
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12... |
SprinterV1/scripts/jquery-1.11.0.min.js | jasimmahamoodkm/NexGen | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
modules/components/topic.js | yuanziyuer/yuanzi-share | /**
* Created by natefang on 1/14/16.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import fetch from 'isomorphic-fetch';
import moment from 'moment';
import './style/topic.css';
import $ from 'jquery'
class Topic extends Component {
constructor(props) {
super(props);
this.sta... |
app/javascript/mastodon/features/compose/components/search.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/index.js | renaudtertrais/resume | import React from 'react';
import ReactDOM from 'react-dom';
import './style/index.scss';
import 'font-awesome/css/font-awesome.css';
import * as serviceWorker from './serviceWorker';
import data from './data';
import Resume from './components/Resume';
console.log(data);
ReactDOM.render(<Resume {...data} />, documen... |
ajax/libs/ember-data.js/1.0.0-beta.9/ember-data.js | jdanyow/cdnjs | (function(global){
var define, requireModule, require, requirejs;
(function() {
var registry = {}, seen = {}, state = {};
var FAILED = false;
define = function(name, deps, callback) {
registry[name] = {
deps: deps,
callback: callback
};
};
function reify(deps, name, seen) {
var leng... |
packages/material-ui-icons/src/SmsFailed.js | Kagami/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 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z" /></React.Fragment>
, 'SmsFailed');
|
ajax/libs/yui/3.14.0/datatable-core/datatable-core-coverage.js | robfletcher/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
specs/fixtures/bug-45.js | royriojas/esformatter-jsx | import React, { Component } from 'react';
import injectProps from '../../helpers/injectProps';
export default class Form extends Component {
@injectProps // esfmt-ignore-line
render({memberTypes}) {
return (
<div style={ { minWidth: '400px'} }>
<h4>New Title</h4>
{ /* Modal Form With Fields... |
src/routes.js | frankleng/react-redux-universal-hot-example | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
ajax/libs/6to5/1.13.13/browser.js | luanlmd/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.to5=e()}}(function(){var define,module,exports;return... |
examples/todos-with-undo/src/containers/AddTodo.js | lifeiscontent/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
src/svg-icons/editor/text-fields.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTextFields = (props) => (
<SvgIcon {...props}>
<path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/>
</SvgIcon>
);
EditorTextFields = pure(EditorTextFields);
EditorTextFields.displayName = 'Edi... |
ajax/libs/polymer/0.5.3-rc/polymer.js | noraesae/cdnjs | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
examples/webrx/node_modules/rx/dist/rx.all.js | startersacademy/todomvc | // 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
};
v... |
src/containers/Onboarding/Registration.js | LedgerHQ/ledger-vault-front | //@flow
import { connect } from "react-redux";
import type { Translate } from "data/types";
import { translate } from "react-i18next";
import React, { Component } from "react";
import { withStyles } from "@material-ui/core/styles";
import BlurDialog from "components/BlurDialog";
import Plus from "../../components/icons... |
src/containers/DevTools/createDevToolsWindow.js | Viral-MediaLab/viralSitePubPub | import React from 'react';
import { render } from 'react-dom';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
/*
* Puts Redux DevTools into a separate window.
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218.
*/
export default function createDevToo... |
ajax/libs/yui/3.13.0/event-custom-base/event-custom-base-debug.js | marxo/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... |
view/src/components/FileTable.js | reliablejs/reliable-master | 'use strict';
import React from 'react';
import { List } from 'antd';
export default class DepTable extends React.Component {
state = {
loading: false,
};
render () {
return (
<List
size="small"
bordered
dataSource={this.props.data}
renderItem={item => (
... |
src/pages/Game/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './styles.css';
import { Loader } from '../../components';
import GameSideMenu from '../../containers/GameSideMenu';
import GameContext from '../../contai... |
src/Preloader.js | jareth/react-materialize | import React from 'react';
import cx from 'classnames';
const Spinner = () => {
let {color, only} = this.props;
let spinnerClasses = {
'spinner-layer': true
};
if (only) {
spinnerClasses['spinner-' + color + '-only'] = true;
} else {
spinnerClasses['spinner-' + color] = true;
}
return (
<... |
v7/development/src/templates/archive/archive.js | BigBoss424/portfolio | /* Vendor imports */
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
/* App imports */
import Layout from '../../components/layout'
import SEO from '../../components/seo'
import PostList from '../../components/post-list'
import ArchivePagination from '../../components/archi... |
src/svg-icons/action/picture-in-picture-alt.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPictureAlt = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/>
</Svg... |
ajax/libs/elfinder/2.1.18/js/i18n/elfinder.nl.js | kennynaoh/cdnjs | /**
* Dutch translation
* @author Barry vd. Heuvel <barry@fruitcakestudio.nl>
* @version 2015-12-01
*/
if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.nl = {
translator : 'Barry vd. Heuvel <barry@fruitcakestudio.nl>',
language : 'Nederlands',
... |
ajax/libs/react-virtualized/7.11.3/react-virtualized.js | Piicksarn/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
src/index.js | chrisbuttery/react-tape | import './css/style.css';
import React from 'react';
import Hello from './js/component';
(function () {
React.render(<Hello />, document.getElementById('root'));
}());
|
examples/src/components/SelectedValuesField.js | urvashi01/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.