path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/6to5/2.4.7/browser.js | yogeshsaroya/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... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | zwensoft/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupSt... |
ajax/libs/6to5/2.13.0/browser.js | iamJoeTaylor/cdnjs | !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.to5=n()}}(function(){var define,module,exports;return... |
examples/todo/src/containers/Link.js | mirrorjs/mirror | import React from 'react'
import {connect} from 'mirrorx'
import Link from '../components/Link'
export default connect((state, props) => {
return {
active: state.todos.visibility === props.filter
}
})(Link)
|
granvilleBusMaps/index.ios.js | granvilledigital/hackathon | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class granvilleBusMaps extends Component {
render() {
return (
<View style={styles.co... |
src/components/repos/Repos.js | azinasili/githubsearch | import React from 'react';
import { connect } from 'react-redux';
import './Repos.css';
function mapStateToProps(state) {
return {
repos: state.repos.items,
reposResultLength: state.searchResultLength.repos,
};
}
function Repos(props) {
let repos = null;
if (props.repos !== undefined && props.repos.l... |
src/pages/settings/settings-followers.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
src/modules/browse/routes/index.js | cltk/cltk_frontend | import React from 'react';
import { Route } from 'react-router';
// components
import BrowsePage from '../components/BrowsePage';
import MainLayout from '../../../layouts/MainLayout';
export default (
<div>
<Route
path="browse"
component={() => (
<MainLayout>
<BrowsePage />
</MainLayout>
... |
components/Animate/Roll.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { spring, TransitionMotion } from 'react-motion';
const DEFAULT_SPRINT_CONFIG = { stiffness: 250, damping: 25 };
export default class Roll extends Component {
static propTypes = {
children: PropTypes.any,
width: PropTypes.s... |
src/svg-icons/av/volume-up.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeUp = (props) => (
<SvgIcon {...props}>
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91... |
app/javascript/mastodon/features/notifications/index.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
imports/ui/components/WelcomeContent/WelcomeContent.js | hwillson/meteor-solr-demo | import React from 'react';
const WelcomeContent = () => (
<div className="welcome-content">
<h1>Meteor Solr Search Demo</h1>
<p>
Welcome to the Meteor Solr search demo!
</p>
<div className="welcome-get-started clearfix">
<div className="pull-left hidden-xs">
<i className="fa fa-in... |
node_modules/react-native-tab-view/src/TabBar.js | joan17cast/Enigma | /* @flow */
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import {
Animated,
StyleSheet,
View,
Text,
ScrollView,
Platform,
I18nManager,
} from 'react-native';
import TouchableItem from './TouchableItem';
import { SceneRendererPropType } from './TabViewPropTypes';
impor... |
client/src/components/Listing/AllListings/AllListingsComponents/AllListingsSearch.js | wolnewitz/raptor-ads | import React from 'react';
import { Form, Icon, Input } from 'semantic-ui-react';
const AllListingsSearch = ({ onChange, onSubmit }) =>
<Form onSubmit={e => onSubmit(e)}>
<Form.Field>
<Input
icon={<Icon onClick={e => onSubmit(e)} name="search" inverted circular link />}
placeholder="Enter s... |
src/app/containers/Hints.js | lmcjt37/kulor-reactify | import React from 'react';
import Dialog from 'react-toolbox/lib/dialog';
import themedHints from '../theme/themedHints';
export default class Hints extends React.Component {
constructor(props) {
super(props);
}
getContent() {
let array = this.props.dialogs.helphints.text;
return ... |
src/svg-icons/av/featured-video.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/>
</SvgIcon>
);
AvFeaturedVideo = pure(AvFeaturedVideo)... |
examples/react-native-vanilla/storybook/stories/Knobs/index.js | rhalff/storybook | import React from 'react';
import { View, Text } from 'react-native';
import {
text,
number,
boolean,
color,
select,
array,
date,
object,
} from '@storybook/addon-knobs/react';
export default () => {
const name = text('Name', 'Storyteller');
const age = number('Age', 70, { range: true, min: 0, max... |
src/svg-icons/image/style.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
packages/material-ui/src/styles/withStyles.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getDisplayName from 'recompose/getDisplayName';
import wrapDisplayName from 'recompose/wrapDisplayName';
import contextTypes from 'react-jss/lib/contextTypes';... |
app/domain/page/UserProfile.js | njxiaohan/TransPal |
'use strict';
import React, {Component} from 'react'
import {
Text,
View,
ScrollView,
StyleSheet,
Alert
} from 'react-native'
import NavBar from '../component/NavBar'
import Item from '../component/Item'
import {user_getinfo} from "domain/api/apis"
import {Routes} from "domain/page"
//FontAwesome
... |
benchmarks/src/implementations/react-native-web/Tweet/IconDirectMessage.js | rofrischmann/fela | /* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import React from 'react';
import styles from './styles';
const IconDirectMessage = props =>
createElement('svg', {
children: (
<g>
<path d="M43.34 14H12.66L28 27.946z" />
<path d="M51.392 14.789L30.018 34.2... |
docs/src/app/components/Master.js | rscnt/material-ui | import React from 'react';
import Title from 'react-title-component';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import spacing from 'material-ui/styles/spacing';
import styleResizable from 'material-ui/utils/styleResizable';
import getMuiTheme from 'material-ui/styles/get... |
packages/material-ui-icons/src/TuneTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 5h10v2H3zm4 6H3v2h4v2h2V9H7zm6 4h-2v6h2v-2h8v-2h-8zM3 17h6v2H3zm8-6h10v2H11zm6-8h-2v6h2V7h4V5h-4z" />
, 'TuneTwoTone');
|
config/webpack/development.js | justin808/react-webpack-rails-tutorial | // The source code including full typescript support is available at:
// https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/config/webpack/development.js
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
const { devServer, inliningCss } = require('@rails/webpac... |
packages/material-ui-icons/src/Battery30.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z" /><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.7... |
src/svg-icons/hardware/cast-connected.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
src/Slider/Slider.spec.js | w01fgang/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import keycode from 'keycode';
import Slider from './Slider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Slider />', () => {
const muiTheme = getMuiTheme();
con... |
components/input.js | kalicki/WhatsAppLike | import React from 'react'
const Input = ({ placeholder, value, onChange, onSubmit, name, margin = 0, buttonSubmit }) =>
<form onSubmit={onSubmit}>
<input
type="text"
value={value}
placeholder={placeholder}
name={name}
onChange={onChange}
style={{ margin }}
/>
<input t... |
components/Panel/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { withState } from 'recompose'
import Input from 'components/Input'
import {
Panel,
PanelHeading,
PanelBlock,
PanelTabs,
} from './'
const items = [
'All',
'Success',
'Fail',
]
const MyPanel = withState('selectedTab... |
ajax/libs/forerunnerdb/1.3.819/fdb-legacy.min.js | x112358/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... |
index.js | moritzmhmk/sane-webui | import React from 'react'
import { render } from 'react-dom'
import configureStore from './store/configureStore'
import Root from './containers/Root.jsx'
import {fetchDevices} from './actions/devices'
const store = configureStore()
store.dispatch(fetchDevices())
render(
<Root store={store} />,
document.getEleme... |
docs/app/Examples/elements/List/ContentVariations/ListExampleFloatedHorizontal.js | koenvg/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleFloatedHorizontal = () => (
<div>
<List floated='right' horizontal>
<List.Item disabled href='#'>© GitHub, Inc.</List.Item>
<List.Item href='#'>Terms</List.Item>
<List.Item href='#'>Privacy</List.Item>
<Li... |
src/components/Sidebar/Copyright/Copyright.js | bapti/blog | // @flow strict
import React from 'react';
import styles from './Copyright.module.scss';
type Props = {
copyright: string
};
const Copyright = ({ copyright }: Props) => (
<div className={styles['copyright']}>
{copyright}
</div>
);
export default Copyright;
|
3_compress_ensure_render/component/extPage/index.js | chkui/react-server-demo | import React from 'react'
const ExtPage = props =>{
return(
<div>这就是一个为了静态看的页面</div>
)
}
module.exports = ExtPage
module.exports.default = module.exports |
web-app/src/shared/components/Button/index.js | crypticism/FF | import React from 'react';
import classNames from 'classnames';
import stylesheet from './Button.scss';
export default function Button({ onClick, type, className, children }) {
const buttonClass = classNames(className, stylesheet.button, {
[stylesheet.login]: type === 'login',
[stylesheet.export]: type === ... |
packages/react/src/internal/__tests__/useId.server-test.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* @jest-environment node
*/
import React from 'react';
import { renderToString } from 'react-dom/server';
import { useId } from '../useId';
... |
src/package/plugins/slate-list-plugin/ListItemNode.js | abobwhite/slate-editor | import React from 'react'
const ListItemNode = ({ attributes, children }) => (
<li {...attributes}>
{children}
</li>
)
export default ListItemNode
|
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_06/start/src/routes.js | yevheniyc/Autodidact | import React from 'react'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import { App, Whoops404 } from './components'
import SkiDayCount from './components/containers/SkiDayCount'
import AddDayForm from './components/containers/AddDayForm'
import SkiDayList from './components/containers/SkiDayLi... |
src/ui/components/CrudSearch.js | dartelvis/zf3 |
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {CardActions, FloatingActionButton, CardTitle, CardText, Card, CardHeader, RaisedButton, TextField, MenuItem, GridList, GridTile, AutoComplete } from 'material-ui';
import moment from 'moment';
import ActionSearch f... |
app/containers/GalleryPage/index.js | Cherchercher/Wedding-Llama | /*
* GalleryPage
*
* List all the Gallerys
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import Gallery from 'react-photo-gallery';
import H1 from 'components/H1';
import messages from './messages';
export default class GalleryPage extends React.Comp... |
app/javascript/mastodon/components/__tests__/button-test.js | h3zjp/mastodon | import { shallow } from 'enzyme';
import React from 'react';
import renderer from 'react-test-renderer';
import Button from '../button';
describe('<Button />', () => {
it('renders a button element', () => {
const component = renderer.create(<Button />);
const tree = component.toJSON();
expect(tree)... |
react/features/base/media/components/web/VideoTrack.js | KalinduDN/kalindudn.github.io | import React from 'react';
import { connect } from 'react-redux';
import AbstractVideoTrack from '../AbstractVideoTrack';
/**
* Component that renders a video element for a passed in video track.
*
* @extends AbstractVideoTrack
*/
class VideoTrack extends AbstractVideoTrack {
/**
* Default values for {@c... |
test/specs/collections/Form/FormFieldInput-test.js | aabustamante/Semantic-UI-React | import React from 'react'
import FormInput from 'src/collections/Form/FormInput'
import Input from 'src/elements/Input/Input'
import * as common from 'test/specs/commonTests'
describe('FormInput', () => {
common.isConformant(FormInput)
common.labelImplementsHtmlForProp(FormInput)
it('renders a FormField with a... |
src/widgets/button.story.js | francisl/baer-toolkit | import React from 'react';
import { storiesOf, action, linkTo } from '@storybook/react';
import { containerSizeStyles } from '../../stories/config';
import Button from './button';
export default () => (
<div>
<Button onClick={function(){alert('clicked')}}>Hello Button</Button>
<pre><code>{`
... |
core/src/plugins/access.ajxp_conf/res/js/AdminPlugins/core/PluginEditor.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
src/svg-icons/image/crop-original.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
examples/sidebar/app.js | nkatsaros/react-router | var React = require('react');
var Router = require('react-router');
var { Route, DefaultRoute, RouteHandler, Link } = Router;
var data = require('./data');
var CategoryNav = React.createClass({
getInitialState: function () {
return { isOpen: this.props.defaultIsOpen};
},
getDefaultProps: function () {
r... |
node_modules/material-ui/lib/svg-icons/action/shop.js | Sporks/Doc-tor | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
docs/src/app/components/pages/components/Avatar/Page.js | andrejunges/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 avatarReadmeText from './README';
import AvatarExampleSimple from './Exam... |
app/views/Index.js | sysrex/sysrex | import React from 'react';
import { Link } from 'react-router-dom';
import Main from '../layouts/Main';
const Index = () => (
<Main>
<article className="post" id="index">
<header>
<div className="title">
<h2><Link to="/">About this site</Link></h2>
<p>Notes, thoughts and projec... |
examples/huge-apps/components/Dashboard.js | levjj/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
let { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
... |
src/Flags/Colombia.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const yellow = '#FCD20F';
const blue = '#003694';
const red = '#CF0821';
export default function Colombia() {
return (
<LinearFlag
gradient={`${gradient([yellow, blue, red], [2, 1, 1])}`}
... |
docs/pages/discover-more/roadmap.js | mbrookes/material-ui | import * as React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import {
demos,
docs,
requireDemo,
} from '!@material-ui/markdown/loader!docs/src/pages/discover-more/roadmap/roadmap.md';
export default function Page() {
return <MarkdownDocs demos={demos} docs={docs} require... |
node_modules/react-router/es6/IndexRoute.js | ajkhatibi/wheevy | 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... |
ajax/libs/graphiql/0.2.3/graphiql.min.js | cdnjs/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(... |
src/components/Loading.js | kunal-mandalia/reactnd-project-readable | import React from 'react'
import Halogen from 'halogen'
import '../styles/Loading.css'
const Loading = () => (
<div className='loading'>
<Halogen.ScaleLoader color='grey' size='32px' />
</div>
)
export default Loading
|
local-cli/generator/templates/index.ios.js | jeffchienzabinet/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/components/BackgroundImage/BackgroundImage.js | Zoomdata/nhtsa-dashboard-2.2 | import styles from './BackgroundImage.css';
import React, { Component } from 'react';
import image from '../../images/car_background@2x.jpg';
export default class BackgroundImage extends Component {
render() {
return <img src={image} className={styles.root}></img>
}
} |
bitpig/index.android.js | kuncloud/bitcoinHelper | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class bitpig extends Component {
render() {
return (
<View style={styles.container}>
... |
admin/canvas/_lib/jquery.min.js | PixeloSoft/portobuild | /*! 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===... |
app/components/Thumbnail/index.js | dreamweaver1231/react-project | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Img from 'components/Img/Loadable';
import { getIndex, capitalize } from 'utils/util';
function Thumbnail({ name, url }) {
const imgUrl = getIndex(url);
const capitalName = capitalize(name);
return (
... |
app/containers/File-container.js | Git-Together/GitTogether | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as file from '../actions/file-actions.js';
import * as watch from '../actions/watch-actions.js'
import * as ui from '../actions/ui-actions.js';
import PanelPage from '../components/_shar... |
webpack/components/SelectOrg/SetOrganization.js | adamruzicka/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { Form, Button } from 'patternfly-react';
import { withRouter } from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
imp... |
src/components/ProgressBar/index.js | LIQIDTechnology/liqid-react-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Utils from '../../utils';
import './styles.scss';
/**
* ProgressBar component
* @param {Object} props The props for the component
* @returns {React.Component} Component to be returned
*/
class ProgressBar ext... |
client/routes.js | tinycode2333/Bucket | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Register from './components/Register';
import Login from './components/Login';
import Plan from './components/Plan';
import Emotion from './components/Emotion';
import Work fro... |
user_guide/_static/jquery.js | itzedu/ci3_with_htaccess | /*! 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==... |
packages/material-ui/src/Slide/Slide.js | Kagami/material-ui | // @inheritedComponent Transition
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import EventListener from 'react-event-listener';
import debounce from 'debounce'; // < 1kb payload overhead when lodash/debounce is > 3kb.
import Transition from 'react-transition-group/T... |
views/huge-app/index.js | FeifeiyuM/koa2-boilerplate-yu | /*eslint-disable no-unused-vars */
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import stubbedCourses from './stubs/COURSES'
const rootRoute = {
component: 'div',
childRoutes: [ {
path: '/',
component: require('./components/App... |
src/App.js | dennisdijkstra/tic-tac-toe | import React from 'react';
import GameModel from './models/GameModel';
import GameListComponent from './components/gamelistcomponent';
import NewGameComponent from './components/newgamecomponent';
import NewPlayerComponent from './components/newplayercomponent';
import Gameboard from './containers/gameboard';
import Sc... |
app/containers/LanguageProvider/index.js | 7ruth/PadStats2 | /*
*
* 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... |
desktop-application/app/components/home.js | santosh-surya/pcb-cnc-machine | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import IconButton from 'material-ui/lib/icon-button';
import FontIcon from 'material-ui/lib/font-icon'... |
draft-js-anchor-plugin/src/components/LinkButton/AddLinkForm.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import unionClassNames from 'union-class-names';
import URLUtils from '../../utils/URLUtils';
import EditorUtils from '../../utils/EditorUtils';
export default class AddLinkForm extends Component {
static propTypes = {
getEditorState: ... |
src/DataTable/TableHeader.js | react-mdl/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Tooltip from '../Tooltip';
const propTypes = {
cellFormatter: PropTypes.func, // Used by the Table component to format the cell content for this "column"
className: PropTypes.string,
name: PropTypes.s... |
Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js | corbt/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/components/Navigation.js | r-portas/robogals-brisbane-pwa | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import ReactGA from 'react-ga';
import Page from './Page';
import PartnersPage from './PartnersPage';
import ExecutivesPage from './ExecutivesPage'
class Navigation extends Component {
constructor(props) {
super(props);
this... |
src/svg-icons/device/battery-charging-30.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging30 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7... |
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js | iwdmb/cdnjs | /*!
* jQuery Tools v1.2.7 - The missing UI library for the Web
*
* dateinput/dateinput.js
* overlay/overlay.js
* overlay/overlay.apple.js
* rangeinput/rangeinput.js
* scrollable/scrollable.js
* scrollable/scrollable.autoscroll.js
* scrollable/scrollable.navigator.js
* tabs/tabs.js
* tabs/tabs.sli... |
ajax/libs/reflux/5.0.3/reflux.js | kiwi89/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.Reflux = f()}}... |
src/parser/monk/mistweaver/modules/spells/azeritetraits/FontOfLife.js | sMteX/WoWAnalyzer | import React from 'react';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import HIT_TYPES from 'game/HIT_TYPES';
import SpellLink from 'common/SpellLink';
import StatTracker from 'parser/shared/mod... |
src/deviceMapping.js | aspic/wemo-control | import React from 'react';
import { LightDevice, SocketDevice, SensorDevice} from './index.js';
export function mapDevices(devices, control) {
return devices.map(function (device) {
if (device.type === 'light') {
return <LightDevice key={device.id} device={device} valueControl={control}/>;
... |
ajax/libs/highcharts/4.1.2/highcharts.src.js | thisispiers/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.2 (2015-02-27)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
fields/types/cloudinaryimage/CloudinaryImageField.js | joerter/keystone | import xhr from 'xhr';
import React from 'react';
import ReactDOM from 'react-dom';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../components/Lightbox';
import classnames from 'classnames';
const SUPPORTE... |
ajax/libs/webshim/1.15.3/dev/shims/moxie/js/moxie-swf.js | nareshs435/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/client/components/Login.js | giulianf/Start-Redux | /**
* Created by julienfumanti on 06/04/2017.
*/
import React, { Component } from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
export default class Login extends Component {
constructor (props){
super(props);
}
render() {
return (
<Grid >
<Row className='section section-pa... |
test/MediaBoxSpec.js | mattBlackDesign/react-materialize | /* global describe, it */
import React from 'react';
import { shallow } from 'enzyme';
import { assert } from 'chai';
import MediaBox from '../src/MediaBox';
const wrapper = shallow(
<MediaBox className='more' src='image.jpg' caption='A demo media box1' width='650' />
);
describe('<MediaBox />', () => {
it('rend... |
react-native-demo/Zebreto/src/components/Decks/Deck.js | zhangjunhd/react-examples | import React, { Component } from 'react';
import {
StyleSheet,
View
} from 'react-native';
import DeckModel from './../../data/Deck';
import Button from './../Button';
import NormalText from './../NormalText';
import colors from './../../styles/colors';
class Deck extends Component {
static displayName = 'Dec... |
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
marginRight: 24,
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
const SvgIco... |
ajax/libs/parsley.js/2.3.1/parsley.js | Piicksarn/cdnjs | /*!
* Parsley.js
* Version 2.3.1 - built Wed, Feb 10th 2016, 10:06 am
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
var _slice = Arra... |
node_modules/react-bootstrap/es/Badge.js | mohammed52/something.pk | 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/js/jquery-1.9.0.min.js | ivankd/restobaza-demo | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
src/admin/components/chrome/index.js | ccetc/platform | import React from 'react'
import { connect } from 'react-redux'
import { getActiveUser } from '../admin/selectors'
import Topbar from './topbar'
export class Chrome extends React.Component {
static contextTypes = {
router: React.PropTypes.object
}
static propTypes = {
teams: React.PropTypes.array,
... |
fields/types/password/PasswordField.js | tony2cssc/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
ditto/static/dist/main-015e76c62b052d879970.js | Kvoti/ditto | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/static/dist/",t(0)}([function(e,t,n){e.exports=n(270)},function(e,t,n){e.exports=n(61)},function(e,t,n){"use strict";function r(... |
chrome/extension/newtab.js | aaggarwa88/AlwaysOn | import React from 'react'
import Root from '../../app/containers/Root';
class AlwaysOn extends React.Component {
constructor () {
super()
}
render () {
return <div>
<Root />
</div>
}
}
window.addEventListener('load', () => {
React.render(<AlwaysOn />, document.querySelector('#reactApp'));
... |
DemoApp/lib/modal-custom/index.js | andyfen/react-native-UIKit | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Modal,
StyleSheet,
SwitchIOS,
Text,
TouchableHighlight,
View,
} from 'react-native';
var Button = React.createClass({
getInitialState() {
re... |
src/pages/404.js | maciejziaja/lutech-www | import React from 'react';
const NotFoundPage = () => (
<div>
<h1>Page not found</h1>
<p>Route doesn't exist...</p>
</div>
);
export default NotFoundPage;
|
ajax/libs/6to5/2.6.3/browser-polyfill.js | TerryMooreII/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/tabs/notifs/AddItemFailNotif.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import FailRetryNotif from '../../elements/FailRetryNotif';
import * as actions from '../actions';
///
// View
///
class AddItemFailNotifView extends Component {
///
// Rendering
///
renderMessage(action, userMessage) {
return (
'Adding t... |
src/Parser/RestoDruid/Modules/Features/PowerOfTheArchdruid.js | mwwscott0/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants'... |
client/src/components/Discussion.js | codefordenver/Circular | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Well } from 'react-bootstrap';
import { fetchComments, postComment } from '../redux/actions/comments';
import Comment from './Comment';
import PostBox from './PostBox';
class Discussion extends... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.