target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
ajax/libs/6to5/3.0.0/browser-polyfill.js | iskitz/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/js/components/directory.js | mdibaiee/Hawk | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import changedir from 'actions/changedir';
import store from 'store';
import entry from './mixins/entry';
import Hammer from 'react-hammerjs';
export default class Directory extends Component {
constructor() {
super();
Object.assign(... |
example/extract-css/server.js | iansinnott/react-static-webpack-plugin | /* eslint-disable prefer-template, no-console */
/**
* NOTE: This file must be run with babel-node as Node is not yet compatible
* with all of ES6 and we also use JSX.
*/
import url from 'url';
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import express from 'express';
import w... |
ajax/libs/yasgui/1.0.7/yasgui.bundled.min.js | athanclark/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/message/MessageGroupView.js | Sam1301/zulip-mobile | /* @flow */
import React, { PureComponent } from 'react';
import { StyleSheet, View, Text } from 'react-native';
const styles = StyleSheet.create({
threadGroup: {
flexDirection: 'column',
backgroundColor: '#eee',
marginBottom: 4,
borderWidth: 1,
borderColor: '#eee',
},
threadGroupHeader: {
... |
lib/components/MapCircle.js | amitv87/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The coordinate of the center of the circle
*... |
app/containers/NotFoundPage/index.js | pauleonardo/demo-trans | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/PageHeader.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
src/index.js | bazeeff/react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import store from './state';
import {getIssues} from './api'
import {Provider} from 'react-redux'
ReactDOM.render(<Provider store={store}>
<App />
</Provider>, document.getElementById('root'));
store.subscribe(()=>console.lo... |
src/views/Filter/AmpView.js | looshi/wavetable-synth-2 | /*
AmpView
ADSR faders for amplitude.
*/
import React from 'react'
import {connect} from 'react-redux'
import VerticalSlider from '../Components/VerticalSlider.js'
import Actions from '../../data/Actions.js'
class AmpView extends React.Component {
onSliderChange (event) {
const {id} = this.props
const name ... |
modules/__tests__/matchRoutes-test.js | stshort/react-router | import expect from 'expect'
import { createMemoryHistory } from 'history'
import React from 'react'
import IndexRoute from '../IndexRoute'
import matchRoutes from '../matchRoutes'
import Route from '../Route'
import { createRoutes } from '../RouteUtils'
import shouldWarn from './shouldWarn'
describe('matchRoutes', fun... |
01-react-todos/src/Todo.js | iproduct/course-node-express-react | import React from 'react';
export default ({todo, onChangeStatus}) => (
<div key={todo.id}>
<span className={`label label-${todo.status === 'active' ? 'info' : todo.status === 'completed' ? 'success' : 'danger'} pull-right`}>
{todo.status === 'active' ? '' : todo.status === 'completed' ? 'Completed' : 'Can... |
examples/BasicExample/__tests__/index.android.js | thegamenicorus/react-native-phone-input | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
client/src/js/components/rooms/NewChatroomForm.js | abitlog/retube | import React from 'react';
import NewChatroomFormTags from './NewChatroomFormTags';
import NewChatroomErrorNotifier from './NewChatroomErrorNotifier';
import { validateNewRoomCreation } from '../../utils/validations';
class NewChatroomForm extends React.Component {
static propTypes = {
formOnSubmit: React.Prop... |
node_modules/react-router/es6/IndexRoute.js | signalcat/UIportfolio | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
node_modules/react-icons/fa/google-wallet.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaGoogleWallet = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m9.6 15.1q0.7 0 1.1 0.6 5.8 7.9 7.9 16.8h-9.7q-2.8-9.6-8-16.3-0.2-0.3-0.1-0.7t0.7-0.4h8.1z m12.2 7.8q-1.1 4.3-2.7 8.6-1.8-6.8-5.6-13 0.9-4.8 0.9-9.8 4.6 7.4 7.4 ... |
ajax/libs/core-js/0.2.3/core.js | sujonvidia/cdnjs | /**
* Core.js 0.2.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
src/sites/space-stations.js | cosmowiki/cosmowiki | import React from 'react';
import SpaceStationsComponent from '../components/space-stations';
export default class SpaceStations {
static componentWithData(stations) {
return <SpaceStationsComponent spaceStations={stations} />;
}
static fromRawData(rawData) {
return rawData.map(raw => SpaceStation.from... |
kitsune/sumo/static/sumo/js/tests/tagsfiltertests.js | Osmose/kitsune | import React from 'react';
import {default as mochaJsdom, rerequire} from 'mocha-jsdom';
import {expect} from 'chai';
import sinon from 'sinon';
import mochaGettext from './fixtures/mochaGettext.js';
import mochaK from './fixtures/mochaK.js';
import mochaJquery from './fixtures/mochaJquery.js';
import mochaUnderscore ... |
src/svg-icons/social/sentiment-satisfied.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1... |
src/components/reflorp.js | tomat/react-reflorp | import React, { Component } from 'react';
import { connect as defaultRefetch } from 'react-refetch';
import { connect as redux } from 'react-redux';
import hoistStatics from 'hoist-non-react-statics';
import { refetchPrefix } from '../ConfigurationHelper';
const defaultMapPropsToEntities = () => ({});
const defaultOpt... |
ajax/libs/js-data/2.0.0-beta.5/js-data.js | him2him2/cdnjs | /*!
* js-data
* @version 2.0.0-beta.5 - 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... |
files/core-js/2.1.0/shim.js | MadhavBitra/jsdelivr | /**
* core-js 2.1.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
index.ios.js | Proyoyo/LynxReact---RN-0.20 | // 'use strict';
//
// var React = require('react-native');
// var GeoEncoding = require('./app/index');
//
// var {
// AppRegistry
// } = React;
//
//
// AppRegistry.registerComponent('GeoEncoding', () => GeoEncoding);
'use strict';
import React from 'react-native';
import App from './app/containers/app';
var {
... |
src/ui/form/checkbox/checkbox-story.js | josmardias/react-redux-boilerplate | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Checkbox from '.'
storiesOf('ui.Form.Checkbox', module)
.add('Default', () => (
<Checkbox label="Check it!" />
))
|
my-app/src/components/pages/projectpages/onoff/container.js | sThig/jabbascrypt | import React, { Component } from 'react';
import styled from 'styled-components';
import { ContainLeft } from '../../../helper/comps';
import { Col, Row } from 'react-flexbox-grid';
import SyntaxHighlighter from 'react-syntax-highlighter';
import { agate } from 'react-syntax-highlighter/dist/styles';
import jeditemples... |
src/svg-icons/maps/ev-station.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEvStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V... |
examples/react-hot-loader-example/index.js | DenisIzmaylov/pinkbox-react | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
src/svg-icons/maps/layers-clear.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayersClear = (props) => (
<SvgIcon {...props}>
<path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-... |
frontend/app/js/containers/rules_v2/when.js | serverboards/serverboards | import React from 'react'
import View from 'app/components/rules_v2/when'
import cache from 'app/utils/cache'
import i18n from 'app/utils/i18n'
import {map_get} from 'app/utils'
class WhenModel extends React.Component{
constructor(props){
super(props)
this.state={
service_name: undefined,
service... |
node_modules/react-icons/io/android-menu.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidMenu = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5 30v-3.4h30v3.4h-30z m0-8.4v-3.2h30v3.2h-30z m0-11.6h30v3.4h-30v-3.4z"/></g>
</Icon>
)
export default IoAndroidMenu
|
client/ui/molecules/header.story.js | LestaD/InstaClone | /* eslint-disable react/prop-types */
import React from 'react'
import { storiesOf } from '@storybook/react'
import { text } from '@storybook/addon-knobs'
import { MemoryRouter } from 'react-router-dom'
import { Header } from './header'
storiesOf('ui/molecules', module)
.addWithJSX('Header', () => (
<MemoryRou... |
ajax/libs/orb/1.0.4/orb.js | calvinf/cdnjs | /**
* orb v1.0.4, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.4
* @link http://nnajm.github.io/orb/
* @license MIT
*/
'use strict';
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
els... |
ajax/libs/rollbar.js/2.3.6/rollbar.named-amd.js | sufuf3/cdnjs | define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(in... |
webpack/scenes/Subscriptions/SubscriptionsPage.js | mccun934/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Immutable from 'seamless-immutable';
import { translate as __ } from 'foremanReact/common/I18n';
import { propsToCamelCase } from 'foremanReact/common/helpers';
import { isEmpty, isEqual } from 'lodash';
import { Grid, Row, Col } from ... |
src/components/Filler/Filler.js | Zoomdata/nhtsa-dashboard | import React, { Component } from 'react';
export default class Filler extends Component {
render() {
const text = this.props.text;
return <div className="filler">{text}</div>;
}
}
|
vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/libraries/jquery-1.6.2.min.js | Coolnesss/Coordinates | /*!
* 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.
... |
packages/material-ui-icons/src/ColorLens.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-... |
src/components/Sections/SectionGroupedList.js | demisto/sane-reports | import './SectionGroupedList.less';
import React from 'react';
import PropTypes from 'prop-types';
import SectionList from './SectionList';
import SectionTitle from './SectionTitle';
const SectionGroupedList = ({ columns, data, classes, style, title, titleStyle, groupClass,
emptyString, forceRangeMessage }) => {
c... |
src/Alert.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
src/containers/book_list.js | Jesus-Gonzalez/ReactReduxTestNumberTwo | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import selectBook from '../actions/action_creators';
const BookList = ({ activeBook, books, actions }) => {
if (!books)
return (
<div className="alert alert-primary">
<h4 classNa... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Apis.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
ajax/libs/antd-mobile/2.0.0-beta.6/antd-mobile.min.js | tholu/cdnjs | /*!
* antd-mobile v2.0.0-beta.6
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports... |
example/src/pages/Home.js | ethanselzer/react-image-magnify | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import Header from '../components/Header';
import 'bootstrap/dist/css/bootstrap.css';
import '../styles/app.css';
import {
Clearfix,
Col,
Grid,
Jumbotron,
Nav,
NavItem,
Panel,
Row
} from 'react-bootstrap';
e... |
react-ui/src/components/App.js | the-oem/happy-hour-power | import React from 'react';
import '../styles/App.css';
import ControlsContainer from '../containers/ControlsContainer';
const App = (props) => {
return (
<div className="App">
<header className="App-header">
<h1 className="title">Happy Hour Power</h1>
</header>
<main className="main-con... |
node_modules/react-bootstrap/es/Well.js | acalabano/get-committed | 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/Parser/Core/Modules/Features/Checklist/index.js | enragednuke/WoWAnalyzer | import React from 'react';
import TickIcon from 'Icons/Tick';
import CrossIcon from 'Icons/Cross';
import ChevronIcon from 'Icons/Chevron';
import InformationIcon from 'Icons/Information';
import Analyzer from 'Parser/Core/Analyzer';
import Expandable from 'Main/Expandable';
import { formatNumber, formatPercentage, f... |
__tests__/index.ios.js | tomi/scrum-poker-cards | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/components/instagram/FlipPic.js | Block-and-Frame/block-and-frame | import React from 'react';
const FlipPic = ({ data }) => {
return (
<div className="ui shape" id={data.id}>
<div className="sides insta-fixed">
<div className="active side">
<div className="ui card insta-fixed">
<div className="image insta-fixed">
<img className=... |
ajax/libs/forerunnerdb/1.3.720/fdb-core.js | pvnr0082t/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... |
docs/app/src/components/LanguageSelector.js | tercenya/compendium | import React from 'react';
import ReactDOM from 'react-dom';
import MFizzIcon from './MFizzIcon';
import _ from 'lodash';
export const Language = (props, context) => {
const changeLanguage = (lang, event) => {
console.log(`changing language to ${lang}`);
if (props.onClick) { props.onClick(lang); };
}
c... |
WebApp/wwwroot/ReactApp/src/components/codecamp/speakers/Speakers.js | pkellner/svcc-react4 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import SpeakersHeader from './SpeakersHeader';
import SpeakerList from './SpeakerList';
import { load } from '../../../actions/speakers';
class Speakers exten... |
app/components/QueueTab.js | oeb25/colio | import React from 'react';
import VideoList from '../components/VideoList';
export default class QueueTab extends React.Component {
static propTypes = {
search: React.PropTypes.object.isRequired,
videos: React.PropTypes.object.isRequired,
current: React.PropTypes.object.isRequired,
setVideo: React.P... |
js/ui/panelMenu.js | GLolol/Cinnamon | // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Cinnamon = imports.gi.Cinnamon;
const Signals = imports.signals;
const St = imports.gi.St;
const Main = imports.ui.main;
const Params = imports.misc.params;
c... |
src/components/atoms/logo.js | jameslutley/jameslutley.com | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import styled from 'react-emotion'
import t from 'tachyons-js'
const LogoLink = styled(Link)`
${t.dib};
${t.link};
${t.fw7};
padding-top: ${props => props.theme.spacingMediumLarge};
padding-right: ${props => props.the... |
src/svg-icons/action/view-headline.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
app/static/src/performer/TestTypeResultForm_modules/MetalsInOilTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import Panel fro... |
RichWeb/Lab 4/react-app/src/App.js | hashdoge/RichWeb | import React from 'react';
import axios from 'axios';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
data: [],
inputValue: 'Luke Skywalker',
query: props.query,
dropDown: 'people'
};
};
compone... |
src/svg-icons/action/alarm-off.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6... |
config/index.js | IndyXTechFellowship/Cultural-Trail-Web | /* eslint key-spacing:0 spaced-comment:0 */
import path from 'path'
import _debug from 'debug'
import { argv } from 'yargs'
import ip from 'ip'
const localip = ip.address()
const debug = _debug('app:config')
debug('Creating default configuration.')
// ========================================================
// Defaul... |
web/src/main.js | aloysbaillet/mycoffeeapp | import firebase from 'firebase';
import React from 'react';
import ReactDOM from 'react-dom';
import {PageHeader, Panel} from 'react-bootstrap';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
// for iOS
if (!global.Intl) {
require('intl');
require('intl/locale-data/jsonp/en.js');
}
import * as ReactInt... |
docs/app/Examples/views/Card/Content/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Content Block'
description='A card... |
src/components/tag.js | catalinmiron/blog | const React = require('react');
const csp = require('js-csp');
const { go, chan, take, put, ops } = csp;
const { displayDate } = require("../lib/date");
const { connect } = require("../lib/redux");
const postActions = require('../reducers/posts').actions
const globalActions = require('../globalActions');
const actions... |
source/app/lib/meeptv.js | Vuanjun/meep-toy | import React from 'react';
import css from '../meeptv-style';
import {merge as m} from 'meepworks/styles';
import '../assets/preset.css!';
import SignInAction from '../actions/sign-in-action';
import ChatStore from '../stores/chat-store';
import Livestream from '../lib/livestream';
const Meeptv = React.createClass({
... |
src/components/Buttons.js | IShin00biI/Ktulu | import React from 'react'
import {
View,
TouchableOpacity,
Image
} from 'react-native'
import { styles } from '../styles/styles'
let yesImg = require('../../img/icons/yes.png')
let noImg = require('../../img/icons/no.png')
export const ChoiceFooter = ({onYes, onNo}) => {
return (
<View style={styles.foote... |
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js | him2him2/cdnjs | /*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
docs/src/examples/elements/Segment/Variations/SegmentExampleClearing.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Segment } from 'semantic-ui-react'
const SegmentExampleClearing = () => (
<Segment clearing>
<Button floated='right'>floated</Button>
</Segment>
)
export default SegmentExampleClearing
|
app-kanban-flux/components/KanbanBoardContainer.js | singun/kanban-app | import React, { Component } from 'react';
import update from 'react-addons-update';
import KanbanBoard from './KanbanBoard';
import { throttle } from '../utils';
import { Container } from 'flux/utils';
import CardActionCreators from '../actions/CardActionCreators';
import CardStore from '../stores/CardStore';
import ... |
App/Components/SpinnerHOC.js | MariusGarbea/Bucurestiul-Tinerilor | import React from 'react';
import { ScrollView, ActivityIndicator } from 'react-native';
const SpinnerHOC = Component => {
return ({ spinner, children, ...props }) => (
<ScrollView>
{ spinner ? <ActivityIndicator color="red" size="large" /> : <Component {...props} >{ children }</Component> }
</ScrollView>
)... |
src/FormsyRadio/FormsyRadio.spec.js | st-andrew/formsy-mui | import 'jsdom-global/register';
import React from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {Form} from 'formsy-react-2';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import test from 'tape';
import RadioB... |
React Native/Demos/nearby/Nearby/views/food.js | AngryLi/note-iOS | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
import List from './list';
export default class Food extends React.Component {
render() {
return (
<List type="肯德基" nav={this.props.navigator} />
);
}
}
... |
app/components/application.js | garth/material-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from '@cerebral/react';
import { state, signal } from 'cerebral/tags';
import Icon from './icon';
import { Appbar, Button, Menu, Sidenav } from '../../lib';
class Application extends Component {
static childContextTypes... |
example/examples/ViewsAsMarkers.js | palexs/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.7882... |
src/parser/shared/modules/spells/bfa/azeritetraits/HeedMyCall.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
/**
* Your damaging abilities have a chance to deal... |
src/browser/createRoutes.js | XeeD/este | import App from './app/App.react';
import Auth from './auth/Page.react';
import Home from './home/Page.react';
import Me from './me/Page.react';
import NotFound from './notfound/Page.react';
import Profile from './me/Profile.react';
import React from 'react';
import Settings from './me/Settings.react';
import Todos fro... |
app/javascript/mastodon/features/report/thanks.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import { connect } from 'react-redux';
import {
unfollowAccount,
muteAccount,
blockAccount,
} f... |
components/RuleCreator.js | zaragozamartin91/taller2SharedServer | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card';
import Checkbox from 'material-ui/Checkbox';
imp... |
ajax/libs/yui/3.10.1/event-focus/event-focus-coverage.js | CosmicWebServices/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.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":0,"14":0,"15":0,"... |
ui/src/main/js/components/__tests__/JobHistory-test.js | apache/aurora | import React from 'react';
import { shallow } from 'enzyme';
import JobHistory from '../JobHistory';
import TaskList from '../TaskList';
import { ScheduledTaskBuilder } from 'test-utils/TaskBuilders';
describe('JobHistory', () => {
it('Should render a task list only with terminal tasks', () => {
const tasks = ... |
src/components/ui/atoms/Heading/Heading.js | asukaleido/react-flux-example | import classNames from 'classnames';
import React from 'react';
import s from './Heading.css';
export default function Heading({ children, className }) {
return (
<h1 className={classNames(className, s.container)}>
{children}
</h1>
);
}
Heading.propTypes = {
children: React.PropTypes.string,
cla... |
web-react/src/components/LineChart.js | gizmo-cda/g2x-submarine-v2 | import React from 'react';
import Label from './Label';
class LineChart extends React.Component {
static defaultProps = {
x: 10,
y: 10,
width: 100,
height: 100,
padding: 10,
data: [],
path_color: "rgb(255, 128, 0)",
... |
src/components/Header/index.js | azoff/wedding | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import styles from './index.module.scss'
const Header = ({ links, logo, hashtag }) =>
<header className={styles.header}>
<HeaderLink {...links[0]} />
<HeaderLink {...links[1]} />
<HeaderLogo logo={logo} hashtag={h... |
examples/node_modules/react-native/node_modules/react-tools/src/addons/__tests__/ReactFragment-test.js | allomov/react-native-swiper | /**
* Copyright 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-core
*... |
src/svg-icons/maps/flight.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
lib/server/src/descriptors/color-map.js | honeyframework/honey-dipper-comb-documentation | import React from 'react';
import descriptionData from '../data/user-style.json';
export default class ColorMap extends React.Component {
render() {
const colorMapData = descriptionData['colour-map'];
return(
<div className='content'>
<h2>Color Map</h2>
<section className='scaffold co... |
modules/RouteContext.js | cojennin/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/app/js/components/messages/Message.js | AppSaloon/chrome-app_socket.io-tester | /**
* MessageView
*
* Renders a single message
*
* @property {Object} message
*/
import React from 'react'
import MessageView from './MessageView'
const Message = ({message}) =>
<div className={`message ${message.right ? 'message-right' : ''}`}>
<div className="message-sidebar" style={{backgroundCo... |
ajax/libs/forerunnerdb/1.3.844/fdb-legacy.min.js | joeyparrish/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... |
lib/components/ErrorView/index.js | 0mkara/etheratom | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
web/components/screens/Auth/index.fixture.js | skidding/flatris | // @flow
import React from 'react';
import { FlatrisReduxMock } from '../../../mocks/ReduxMock';
import Auth from '.';
export default {
default: (
<FlatrisReduxMock initialState={{ jsReady: true }}>
<Auth onAuth={() => console.log('Auth started...')} />
</FlatrisReduxMock>
),
disabled: (
<Fla... |
ajax/libs/ink/2.2.1/js/ink.js | seogi1004/cdnjs |
(function() {
'use strict';
/**
* @module Ink_1
*/
/**
* global object
*
* @class Ink
*/
// skip redefinition of Ink core
if ('Ink' in window) { return; }
// internal data
/*
* NOTE:
* invoke Ink.setPath('Ink', '/Ink/'); before requiring local... |
src/components/RichTextEditor.js | tsaiDavid/react-rich-text-editor | import React, { Component } from 'react';
import {
Editor,
EditorState,
Entity,
ContentState,
RichUtils,
convertToRaw,
convertFromRaw,
convertFromHTML
} from 'draft-js';
import { stateToHTML } from 'draft-js-export-markup';
import { InlineStyleControls } from './utils/controllers/InlineS... |
examples/with-mobx/components/Page.js | kevmannn/next.js | import React from 'react'
import Link from 'next/link'
import { inject, observer } from 'mobx-react'
import Clock from './Clock'
@inject('store') @observer
class Page extends React.Component {
componentDidMount () {
this.props.store.start()
}
componentWillUnmount () {
this.props.store.stop()
}
rend... |
lib/Navigation/Tabs/tabTwo/views/TabTwoScreenThree.js | Ezeebube5/Nairasense | import React from 'react';
import { View, Text } from 'react-native';
export default class TabTwoScreenThree extends React.Component {
static navigationOptions = {
tabBarLabel: 'Podcasts'}
render() {
return (
<View
style={{
flex: 1,
backgroundColor: 'white',
alignItems: 'cente... |
tests/framework.spec.js | hack-duke/hackduke-portal | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
src/components/RecipeType.js | ataylorme/hazels-heritage-frontend | import React from 'react';
import axios from 'axios';
import Recipe from './Recipe';
import Config from '../Config';
import GoHomeButton from './GoHomeButton';
class RecipeType extends React.Component {
constructor() {
super();
// Set initial state
this.state = {
data: {}
... |
src/app/components/media/BulkActionsAssign.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { commitMutation, createFragmentContainer, graphql } from 'react-relay/compat';
import { FormattedMessage } from 'react-intl';
import Box from '@material-ui/core/Box';
import TextField from '@material-ui/core/... |
src/components/filter-list/FilterList.es6.js | widged/SOT-skills-report | /* jshint esnext: true */
import React from 'react';
let {Component} = React;
export default class CheckList extends Component {
constructor(props) {
super(props);
}
render() {
let {key, title, list} = this.props;
return (
<div data-target={{key}}>
<h3>{{tit... |
client/app/Core/ReactTags/index.js | mahimaag/DTA | /**
* Created by saubhagya on 24/8/17.
*/
import React from 'react';
import ReactTags from 'react-tag-autocomplete';
class Tags extends React.Component {
constructor(props) {
super(props);
this.state = {
tags: [],
suggestions: [
{
id: 2... |
client/components/Routes.js | FlammableHairnet/HireOrbit | import React from 'react';
import { Router, Route, IndexRoute, hashHistory, browserHistory } from 'react-router';
import AppContainer from '../containers/AppContainer';
import HomeContainer from '../containers/HomeContainer';
import Home from '../components/Home';
import SearchContainer from '../containers/SearchContai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.