path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/wix-style-react/src/Notification/TextLabel/index.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import Text from '../../Text';
import { dataHooks } from '../constants';
import { classes } from '../Notification.st.css';
import { EllipsisCommonProps } from '../../common/PropTypes/EllipsisCommon';
import { FontUpgradeContext } from '../../FontUpgrade/con... |
client/page/logs/row-actions.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { RowActions, RowAction } from 'component/table/row-action';
import GeoMapAction from 'component/log-page/log-actions/geo-map';
import UseragentAction from 'component/lo... |
website/modules/examples/NoMatch.js | asaf/react-router | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link,
Switch,
Redirect
} from 'react-router-dom'
const NoMatchExample = () => (
<Router>
<div>
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/old-match">Old Match, to be redirected</Link></li>
<li><L... |
src/index.js | ayosdev/react-i18n-map | import { template, defaultProps } from './utils'
import React from 'react'
export class FormattedMessage extends React.Component {
constructor(){
super()
}
render() {
let { message, values, tagName: Element, ...rest } = this.props
message = template(message, values, rest)
return <Element>{ messag... |
src/server.js | koistya/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import path from 'path';
import e... |
src/client/js/admin/match/KickEvents.js | GoodBoy123/crendorianinvitational | import React from 'react';
class KickEvents extends React.Component {
constructor(props) {
super(props)
}
render() {
const kickEvents = this.props.kickEvents.map((event, index) => {
return (
<div key={index}>
<label htmlFor={`name${index}`}>Name</label>
<select id={`nam... |
tools/playground/containers/App/App.js | auth0/web-header | /* eslint-env browser */
import React from 'react';
import WebHeader from '../../../../src';
import { Iframe, Section } from '../../components';
const App = () => {
if (
window &&
window.location &&
window.location.search &&
window.location.search.indexOf('mobile') > -1
) {
return <Iframe url="... |
examples/transitions/app.js | birendra-ideas2it/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History, Lifecycle } from 'react-router'
const history = useBasename(createHistory)({
basename: '/transitions'
})
const App = React.createClass({
render() {
return (
<div>
<ul>
... |
src/client/pages/notFound/NotFound.js | BhumiSukhadiya/React_Project_Repo | /**
* 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 PropTypes from 'prop-... |
packages/create-react-app/index.js | maletor/create-react-app | #!/usr/bin/env node
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!... |
src/ui/containers/FooterContainer.js | notifapi/notifapi-web | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { currentYear } from '../actions/app';
import Footer from '../components/Footer.js';
const mapStateToProps = (state) => {
return {
currentYear: state.app.currentYear
};
}
const mapDispatchToProps = (dispatch) => {
... |
src/svg-icons/action/settings-applications.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsApplications = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c... |
app/components/UploadPicture/index.js | vlastoun/picture-uploader-crud | import React from 'react';
import axios from 'axios';
import winston from 'winston';
import FileButton from './FileButton';
import Input from './Input';
import Thumbnail from './Thumbnail';
import Img from './Img';
/* eslint-disable react/prefer-stateless-function */
/* eslint-disable no-console */
class UploadPicture... |
app/containers/NotFoundPage/index.js | scribeklio/audora-io | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
*/
import React from 'react';
export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
const containerStyle={
background:... |
node_modules/react-bootstrap/es/Tab.js | FoxMessenger/nyt-react | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'pr... |
ajax/libs/angular-google-maps/2.0.10/angular-google-maps_dev_mapped.js | BenjaminVanRyseghem/cdnjs | /*! angular-google-maps 2.0.10 2014-11-25
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this sof... |
wisewit_front_end/node_modules/react-router/modules/Link.js | emineKoc/WiseWit | import React from 'react'
import warning from './routerWarning'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
functio... |
src/Stepper/Step.spec.js | spiermar/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Step from './Step';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Step />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node, context = {}) => {
return sha... |
examples/with-fela/pages/index.js | dizlexik/next.js | import { createComponent } from 'react-fela'
import Page from '../layout'
const title = ({ size }) => ({
fontSize: size + 'px',
color: 'red'
})
const Title = createComponent(title, 'h1')
export default () => (
<Page>
<Title size={50}>My Title</Title>
</Page>
)
|
containers/page_index.js | MonkingStand/MS-blog-site-v3.0 | import React from 'react';
import $ from 'jquery';
import IndexHeader from '../components/index_header';
import IndexSection01 from '../components/index_section_01';
import IndexSection02 from '../components/index_section_02';
import IndexFooter from '../components/index_footer';
class PageIndex ext... |
assets/javascript/components/progress/skillCalendar.js | colinjeanne/learning-site | import { childPropType } from './../propTypes';
import {
compareSkills,
nextBenchmark,
previousBenchmark
} from './skillMethods';
import React from 'react';
import SkillCard from './skillCard';
const skillCalendar = props => {
const sortedSkills = [...props.skills].sort(compareSkills);
const skillT... |
packages/material-ui-icons/src/AddAlert.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18.94V20h1... |
src/svg-icons/av/play-circle-filled.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleFilled = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>
);
AvPlayCircleFilled = pure(AvPlayCirc... |
examples/todomvc/index.js | ch3lo/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/svg-icons/device/signal-cellular-null.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNull = (props) => (
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellularNull = pure(DeviceSignalCellularNull);
DeviceSignalCellularN... |
docs/src/pages/components/drawers/PermanentDrawerRight.js | kybarg/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import List from '@material-ui/core/Li... |
src/js/applets/text-editor.js | SpaceHexagon/pylon | import React from 'react';
import Applet from './applet.js';
export default class TextEditor extends Applet {
constructor() {
super();
// Initial state of the component
this.state = {name: 'Text Editor',
visible: true
}
}
toggle (set) {
this.setState({
visible: typeof(set.visible) != 'und... |
src/js/view/ServerForm.js | yoichiro/chromeos-filesystem-sftp | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import... |
tests/routes/Home/components/HomeView.spec.js | ksevezich/DayOfBlueprint | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
src/js/mixins/css_class_mixin.js | rafaelfbs/realizejs | import React from 'react'
import themes from '../theme'
import $ from 'jquery'
import PropTypes from '../prop_types';
export default {
propTypes: {
clearTheme: PropTypes.bool,
className: PropTypes.string,
themeClassKey: PropTypes.string
},
getDefaultProps() {
return {
clearTheme: false
... |
node_modules/semantic-ui-react/dist/es/collections/Table/TableFooter.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import { customPropTypes, getUnhandledProps, META } from '../../lib';
import TableHeader from './TableHeader';
/**
* A table can have a footer.
*/
function TableFooter(props) {
var as = props.as;
var rest = getUnhandledProps(Table... |
frontend/src/picturedisplay/components/MediaViewerDialog.js | mangosmoothie/picappa | import React from 'react'
import Dialog from 'material-ui/Dialog'
const styles = {
container: {
display: 'flex',
displayDirection: 'column'
},
img: {
visibility: 'hidden',
width: '100%'
},
dialog: {
width: '100%'
}
}
const Picture = ( { url, onClick } ) => {
const style = {
backg... |
Xing_scripts/node_modules/react-token-autocomplete/node_modules/radium/modules/__tests__/keyframes-test.js | evah/HealthyWebCrawler-T14 | var styleElement;
var exenv;
var {Component} = require('react/addons');
class MyComponent extends Component { }
describe('keyframes', () => {
beforeEach(() => {
styleElement = {
textContent: '',
sheet: {
insertRule: sinon.spy(),
cssRules: []
}
};
sinon.stub(document,... |
websocket/client/Client/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | prayuditb/tryout-01 | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
ajax/libs/foundation/4.2.3/js/vendor/jquery.min.js | boneskull/cdnjs | !function(a,b){function J(a){var b=a.length,c=u.type(a);return u.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function L(a){var b=K[a]={};return u.each(a.match(w)||[],function(a,c){b[c]=!0}),b}function O(a,c,d,e){if(u.acceptData(a)){var f,g,h=u.expando,i=a.... |
node_modules/react-bootstrap/es/Col.js | chenjic215/search-doctor | 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 ... |
react-ui/src/components/Contact/index.js | michaelcheng429/bestactprep | import React, { Component } from 'react';
import './Contact.scss';
class Contact extends Component {
render() {
return (
<div className="Contact">
<p>If you have any questions about the course, have any troubles with the course after purchasing it, or want a refund, simply emai... |
client/src/components/signup/UserVerification.js | FCC-Alumni/alumni-network | import { addFlashMessage } from '../../actions/flashMessages';
import { connect } from 'react-redux';
import { connectScreenSize } from 'react-screen-size';
import { mapScreenSizeToProps } from '../Navbar';
import propTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import {
... |
src/containers/SideMenu.js | sheminusminus/dealz | import React from 'react';
import MenuOption from '../components/MenuOption';
import MenuIcon from '../components/MenuIcon';
var SideMenu = React.createClass({
getMenuOptions() {
var options = [];
for (var i = 0; i < this.props.options.length; i++) {
var k = 'opt' + i;
var isActive = this.props.active == i ... |
examples/shopping-cart/test/components/ProductItem.spec.js | tappleby/redux | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Product from '../../components/Product'
import ProductItem from '../../components/ProductItem'
function setup(product) {
const actions = {
onAddToCartClicked: expect.createSpy()
}
const component = shallow(
<Pr... |
plugins/Files/js/components/usagestats.js | NebulousLabs/New-Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
// UsageStats defines the presentation component for displaying file spending.
const UsageStats = ({
allowance,
downloadspending,
uploadspending,
storagespending,
contractspending,
unspent,
renewheight
}) => {
if (allowance === 0) {
retur... |
src/svg-icons/editor/title.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
export default EditorTitle;
|
docs/src/index.js | dsslimshaddy/material-ui | // @flow
/* eslint-disable import/prefer-default-export */
import { AppContainer } from 'react-hot-loader';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import React from 'react';
import { render } from 'react-dom';
import App from 'docs/src/components/App';
// Warns about potential ac... |
src/renderers/dom/shared/utils/__tests__/getNodeForCharacterOffset-test.js | wmydz1/react | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... |
frontend/src/app/containers/ExperimentPage.js | mathjazz/testpilot | import React from 'react';
import moment from 'moment';
import classnames from 'classnames';
import { buildSurveyURL, createMarkup, experimentL10nId, formatDate } from '../lib/utils';
import LoadingPage from './LoadingPage';
import NotFoundPage from './NotFoundPage';
import EmailDialog from '../components/EmailDial... |
react-flux/demo04/src/AppView.js | majunbao/xue | import React from 'react';
import Draggable, {DraggableCore} from 'react-draggable';
function AppView(props) {
const SideArray = [
{
content: '111111'
},
{
content: '222222'
},
{
content: '333333'
}
];
return (
<div className="out">
<DragTestGroup data={SideArr... |
ajax/libs/forerunnerdb/1.3.482/fdb-all.js | dc-js/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... |
Console/app/node_modules/antd/es/tree-select/index.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
node_modules/native-base/Components/Widgets/DeckSwiper.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import clamp from 'clamp';
import {Animated, PanResponder} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import View from './View';
var SWIPE_THRESHOLD = 70;
export default class CardSwiper extends NativeBaseCompone... |
ajax/libs/handsontable/0.11.0-beta3/jquery.handsontable.js | luigimannoni/cdnjs | /**
* Handsontable 0.11.0-beta3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012-2014 Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Fri Jul 25 2014 11:41:59 GMT+0200 (CEST)
... |
src/index.js | manojsinghnegiwd/react-window-titlebar | import React from 'react';
import WindowControls from './WindowControls';
require('./style/index.scss');
export default class TitleBar extends React.Component {
// render side buttons
renderButtons = (buttons) => {
return buttons.map((button, index) => {
return React.cloneElement(button, {key: index});
})
... |
ajax/libs/react-bootstrap/0.23.0/react-bootstrap.js | vuonghuuphuc/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
ajax/libs/react/0.11.0/react-with-addons.js | AMoo-Miki/cdnjs | /**
* React (with addons) v0.11.0
*/
!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.React=e()}}(fu... |
app/app.js | brietsparks/curr__ui-rbp-apollo-cvb | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { applyRouterMiddleware, Router, brows... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
www/jquery-flot/jquery.min.js | aziraphale/eagle-owl | /*
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
frontend/src/index.js | pahomovda/victorious-pirate | import 'core-js/fn/object/assign';
import 'whatwg-fetch';
import React from 'react';
import { render } from 'react-dom';
import Routes from 'components/Routes';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
impor... |
app/components/LoadingIndicator/index.js | williamsnieves/reactnews | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
src/components/education.js | AnkilRNaik/AnkilRNaik.github.io | import React from 'react';
import { education } from '../content/education.json';
function Education() {
let joinDegreeToMajor = "in";
return (
<div> {
education.map((item, i) => (
<div key={i}>
<h2>{item.university}</h2>
<h4>{item.degree} {joinDegreeToMajor} {item.major} - {i... |
examples/customised/styleguide/components/SectionsRenderer.js | sapegin/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
import Heading from 'rsg-components/Heading';
// Import default implementation from react-styleguidist using the full path
import DefaultSectionsRenderer from 'react-styleguidist/lib/client/rsg-components/Sections... |
app/containers/NotFoundPage/index.js | castlemilk/nutry-web | /**
* 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... |
staticfiles/js/components/LoadingPage/LoadingPage.js | alemneh/negativity-purger | import React from 'react';
import styles from './LoadingPage.css';
const Loading = () => {
return (
<div className={styles.wrapper}>
<div className={styles.focus}>
purging
</div>
<div className={styles.mask}>
<div className={styles.text}>purging</div>
</div>
... |
src/components/Github/TabsScreen.js | jseminck/react-native-github-feed | import React from 'react';
import { View, TabBarIOS } from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as githubActions from './githubActions';
import {onLogout} from './../Login/loginActions';
import routes from './../../scripts/routes';
import Loading f... |
packages/@lyra/default-layout/src/components/ActionButton.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import ActionModal from './ActionModal'
import Fab from 'part:@lyra/components/buttons/fab'
class ActionButton extends React.Component {
static propTypes = {
actions: PropTypes.array
}
constructor(props) {
super(props)
this.handleToggleMo... |
vendor/cakephp/debug_kit/webroot/js/jquery.js | Vibeosys/RorderWeb | /*! 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... |
packages/wix-style-react/src/TableToolbar/Toolbar.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import s from './Toolbar.scss';
import Text from '../Text';
export const Toolbar = props => {
return <div className={s.toolbar}>{props.children}</div>;
};
Toolbar.displayName = 'Toolbar';
Toolbar.propTypes = {
chi... |
src/svg-icons/hardware/headset.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... |
examples/src/index.js | HBM/md-components | /* global ga */
import 'core-js/fn/array/find-index'
import 'core-js/fn/string/starts-with'
import './index.css'
import '../node_modules/md-components/style.css'
import React from 'react'
import ReactDOM from 'react-dom'
import {Route, NavLink, HashRouter} from 'react-router-dom'
import {Shell} from 'md-components'
i... |
client/app/main.js | feedhenry/snapscreen | import React from 'react';
import { Platform } from 'react-native';
import { StackNavigator } from 'react-navigation';
import LoadingScreen from './screens/Loading';
import LoginScreen from './screens/Login';
import InviteListScreen from './screens/InviteList';
import InviteDetailScreen from './screens/InviteDetail';
... |
client/src/components/App.js | alexandernanberg/luncha | import React from 'react'
import { Provider } from 'mobx-react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom/es'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import Header from './Header'
import Footer from './Footer'
import routes from '../routes'
import ScrollTo... |
ajax/libs/react-quill/0.0.1/react-quill.js | rlugojr/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quilljs"));
else if(typeof define === 'function' && define.amd)
define(["react", "quilljs"], factory);
else if(typeof exports === 'object')... |
packages/babel-plugin-jest-hoist/src/__tests__/integration-test.js | razh/jest | /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails onca... |
ajax/libs/rxjs/2.3.23/rx.compat.js | sarmadsangi/cdnjs | // 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... |
Libraries/Text/Text.js | aljs/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/fullscreen.js | waywaaard/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Radium from 'radium';
@Radium
export default class Fullscreen extends Component {
constructor() {
super(...arguments);
this.handleToggleFullScreen = this.handleToggleFullScreen.bind(this);
}
handleToggleFullScreen() {
... |
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image } from 'shengnian-ui-react'
const ImageExampleBordered = () => (
<Image src='/assets/images/wireframe/white-image.png' size='medium' bordered />
)
export default ImageExampleBordered
|
src/app/capital_projects/CapitalProjectsSummary.js | cityofasheville/simplicity2 | import React from 'react';
import { Query } from 'react-apollo';
import gql from 'graphql-tag';
import CIPFilter from './CIPFilter';
import CategoryDetails from './CategoryDetails';
import PageHeader from '../../shared/PageHeader';
import Icon from '../../shared/Icon';
import { IM_CITY } from '../../shared/iconConstant... |
packages/material-ui/src/Card/CardHeader.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = theme => ({
root: theme.mixins.gutters({
display: 'flex',
alignItems: 'center',
paddingTop: them... |
.atom/packages/linter-ui-default/lib/tooltip/message.js | natept/dotfiles | /* @flow */
import * as url from 'url'
import React from 'react'
import marked from 'marked'
import { visitMessage, openExternally, openFile, applySolution, getActiveTextEditor, sortSolutions } from '../helpers'
import type TooltipDelegate from './delegate'
import type { Message, LinterMessage } from '../types'
impor... |
app/pages/main.js | IamBusy/fancy-password | /**
* Created by william on 10/05/2017.
*/
import React, { Component } from 'react';
import SettingsList from 'react-native-settings-list';
import Icon from 'react-native-vector-icons/Ionicons';
import ActionButton from 'react-native-action-button';
import {
Animated,
StyleSheet,
Platform,
StatusBar,
... |
lib/ConfirmationModal/ConfirmationModal.js | folio-org/stripes-components | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import uniqueId from 'lodash/uniqueId';
import Button from '../Button';
import Modal from '../Modal';
import ModalFooter from '../ModalFooter';
import css from './ConfirmationModal.css';
const propTypes = {
... |
src/decorators/withViewport.js | youprofit/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
js/components/Header/5.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import { openDra... |
ajax/libs/yui/3.9.0pr2/datatable-body/datatable-body.js | joeyparrish/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
client/components/Flass/Lecture/Content/Content.js | Nexters/flass | import React from 'react';
import PropTypes from 'prop-types';
import { Col, Row } from 'react-bootstrap';
import styled from 'styled-components';
import color from '~/css/base/colors.scss';
const LectureContent = styled.div`
width: 100%;
padding-top: 3rem;
padding-bottom: 4rem;
`;
const Title = styled.div`
f... |
src/js/components/CameraClickDummy.js | r-wittmann/IFD | import React from 'react'
import { Entity } from 'aframe-react'
const Camera = (props) => (
<Entity>
<Entity id='main-camera' camera='userHeight: 1.6' look-controls wasd-controls='' position='0 -6 9' {...props}>
<Entity
raycaster='far: 5; near: 1;'
cursor='fuse: false'
position='0 0... |
blueocean-material-icons/src/js/components/svg-icons/action/highlight-off.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 1... |
django_fixmystreet/fixmystreet/static/lib/backbone/backbone.js | IMIO/django-fixmystreet | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
src/plugin-hooks/useSortBy.js | tannerlinsley/react-table | import React from 'react'
import {
actions,
ensurePluginOrder,
defaultColumn,
makePropGetter,
useGetLatest,
useMountedLayoutEffect,
} from '../publicUtils'
import { getFirstDefined, isFunction } from '../utils'
import * as sortTypes from '../sortTypes'
// Actions
actions.resetSortBy = 'resetSortBy'
acti... |
ajax/libs/rxjs/2.3.14/rx.lite.compat.js | icco/cdnjs | // 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... |
client/src/main.js | soprasteria/dad | import 'babel-polyfill';
import 'isomorphic-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import RootComponent from './components/app/root';
import { store } from './store';
import { browserHistory } from 'react-router';
import { syncHistoryWithS... |
ajax/libs/react/0.13.0-alpha.2/react.js | qrohlf/cdnjs | /**
* React v0.13.0-alpha.2
*/
!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.React=e()}}(function... |
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import AsyncSelect from 'react-select/async';
import { NonceProvider } from 'react-sele... |
modules/react-documentation/src/components/Code.js | casesandberg/reactcss | 'use strict';
import React from 'react'
import reactCSS from 'reactcss'
import markdown from '../helpers/markdown'
import context from 'react-context'
var { Tile, Raised } = require('../../../react-material-design');
class Code extends React.Component {
render() {
const styles = reactCSS({
'default': {
... |
src/svg-icons/image/transform.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
packages/material-ui-icons/src/LibraryBooksTwoTone.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="M8 16h12V4H8v12zm2-10h8v2h-8V6zm0 3h8v2h-8V9zm0 3h4v2h-4v-2z" opacity=".3" /><path d="M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2z" /><path d="M6 4v12c0 ... |
sub-packs/themes/zealder-default-theme/src/components/Grid.js | Zealder/zealder-cms | // @flow
import React from 'react';
import { Row, Col } from 'react-bootstrap';
import { getComponent } from '../routes/';
export default class Grid extends React.Component {
render() {
const { scContent, verticalAlign } = this.props.content;
// css class
let className = this.props.content.className;
... |
core/dslmcode/shared/drupal-7.x/modules/ulmus/adminimal_admin_menu/js/jquery.min.js | cgldevel/elmsln | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
.storybook/config.js | modularcode/modular-admin-react | // import 'typeface-roboto'
import React from 'react'
import { configure, addDecorator, addParameters } from '@storybook/react'
import { withA11y } from '@storybook/addon-a11y'
import { themes } from '@storybook/theming';
import { ThemeProvider } from '@material-ui/styles'
import CssBaseline from '@material-ui/core/Cs... |
docs/app/Examples/elements/Image/States/ImageExampleHidden.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleHidden = () => (
<Image src='/assets/images/wireframe/image.png' size='small' hidden />
)
export default ImageExampleHidden
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.