path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
renderer/vectors/error.js | wulkano/kap | import React from 'react';
import Svg from './svg';
const ErrorIcon = props => (
<Svg {...props}>
<path opacity=".3" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 13h-2v-2h2v2zm0-4h-2V7h2v6z"/>
<path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16z"/>
<path d="M11 15h2v2h-2zM11... |
tweeza/static/vendors/modernizr/test/caniuse_files/jquery.min.js | yacinepes/dzlibs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForString.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
app/components/BookingForm/index.js | krijoh92/cabin-booking | import React from 'react'
import {Avatar, DatePicker, Dialog, FlatButton, MenuItem, SelectField} from 'material-ui'
class BookingForm extends React.Component {
static propTypes = {
handleSubmit: React.PropTypes.func.isRequired,
handleClose: React.PropTypes.func.isRequired,
handleRoomChange: React.PropTyp... |
ajax/libs/sendbird/3.0.146/SendBird.min.js | cdnjs/cdnjs | /**
* Copyright (c) 2016 Sendbird DBA (Smile Family, Inc.)
* Sendbird JavaScript SDK v3.0.146
*/
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("axios"),require("form-data"),require("ws")):"function"==typeof define&&define.amd?define(["axios","form-data","ws"],n):(e=e||... |
ajax/libs/yui/3.10.0pr1/scrollview-base/scrollview-base.js | seogi1004/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
examples/with-module-federation/basic-2/src/Button.js | jaredpalmer/razzle | import React from "react";
const style = {
background: "#00c",
color: "#fff",
padding: 12,
};
const Button = () => <button style={style}>App 2 Button</button>;
export default Button;
|
ajax/libs/bla/0.0.12/bla.js | ramda/cdnjs | /**
* @module vow
* @author Filatov Dmitry <dfilatov@yandex-team.ru>
* @version 0.4.5
* @license
* Dual licensed under the MIT and GPL licenses:
* * http://www.opensource.org/licenses/mit-license.php
* * http://www.gnu.org/licenses/gpl.html
*/
(function(global) {
/**
* @class Deferred
* @exports vow:Def... |
renderer/containers/App/ErrorBoundary.js | LN-Zap/zap-desktop | import React, { useCallback } from 'react'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'
import AppErrorBoundary from 'components/ErrorBoundary/AppErrorBoundary'
const AppWithErrorBoundaries = ({ history, children }) => {
const onCloseDialog = useCallback(() => {
history.push('... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | kazh98/social.arnip.org | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
app/client/src/views/TableInfo.js | lealhugui/schema-analyser | import React, { Component } from 'react';
import JsonApiReq from '../Requests';
import {
API_URL,
addLogoAnimation,
removeLogoAnimation
} from '../constants';
import { TableCard } from './Cards';
import './TableInfo.css';
class TableInfo extends Component {
constructor(props){
super(props);
this.state = {t... |
app/components/EmailForm/index.js | elainewlin/Executive | /**
*
* EmailForm
*
*/
import React from 'react';
import styles from './styles.scss';
import { Field } from 'redux-form';
import { reduxForm } from 'redux-form/immutable';
import states from 'utils/state_names';
function EmailForm(props) {
let helperText = 'Submit Email';
let result;
const registerText = 'Get ... |
packages/material-ui-icons/src/SwapHorizSharp.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="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z" /></React.Fragment>
, 'SwapHorizSharp');
|
node_modules/recompose/withReducer.js | smaccoun/wrapid-react-ts | 'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = requi... |
src/components/FavouritesButton.js | polinazolotukhina/redux-movieDB | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators} from 'redux';
import * as actions from '../actions/moviesActions';
import { Button, Popover, Tooltip, Modal, OverlayTrigger } from 'react-bootstrap';
class FavouritesButton extends Reac... |
stories/carousel/index.js | lanyuechen/dh-component | import React from 'react';
import { Button, Carousel } from '../../src';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const addWithInfoOptions = { inline: true, propTables: false };
class CarouselDemo extends React.Component {
constructor(props) {
super(props);
this.handleClickNext = this.h... |
src/js/components/Markdown/stories/Override.js | grommet/grommet | import React from 'react';
import styled from 'styled-components';
import { Box, Markdown } from 'grommet';
const CONTENT = `
# Out of Breath
You know, sometimes in life it seems like there's no way out. Like
a sheep trapped in a maze designed by wolves. See all the
options [here](https://github.com/probably... |
src/react/images/images.js | pivotal-cf/pivotal-ui | import React from 'react';
import PropTypes from 'prop-types';
import {mergeProps} from '../helpers';
export class Image extends React.PureComponent {
static propTypes = {
responsive: PropTypes.bool,
href: PropTypes.string,
alt: PropTypes.string,
src: PropTypes.string.isRequired
};
componentDidM... |
ajax/libs/6to5/1.13.1/browser.js | ruiaraujo/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
examples/todomvc/src/app.js | yy8597/process | import Process from 'process-table'
import store from './store'
import View from './component/view'
import React from 'react'
export default class App {
constructor() {
this.process = new Process()
this.container = 'todoapp'
this.combo()
this.listen()
}
render(data) {
React.render(<View {...data} process=... |
ajax/libs/rxjs/2.3.19/rx.lite.extras.js | sujonvidia/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
src/isomorphic/children/__tests__/sliceChildren-test.js | iOSDevBlog/react | /**
* Copyright 2013-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-co... |
packages/react-devtools-shell/src/app/EditableProps/index.js | ericyang321/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {
createContext,
Component,
forwardRef,
Fragment,
memo,
useCallback... |
ajax/libs/flocks.js/0.16.16/flocks.min.js | aeharding/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
client/components/Snap.js | polarbearjs/polarbear | import React from 'react';
export default class Snap extends React.Component {
constructor(props) {
super(props);
this.state = { count: 0 };
this.up = this.up.bind(this);
}
up() {
this.setState({ count: this.state.count + 1 });
}
render() {
return (
<div>
<h1>Snap {this.st... |
assets/scripts/app.js | tweedegolf/symfony-okoa | import $ from "jquery";
import React from 'react';
global.$ = global.jQuery = $;
require('bootstrap-sass');
require('selectize');
|
ajax/libs/angular.js/1.1.2/angular-scenario.js | hippich/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsProps.js | gabelevi/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
componentWillReceiveProps(nextProps: Props) {}
}
class MyComponent2 extends React.Component {
shouldComponentUpdate(prevProps: Props) {}
}
class MyComponent3 extends React.Component {
componentWillUpdate(prevProps: Props) {}
}
c... |
src/content/templates/template books/Wall Calendar/jquery-1.10.1.js | BloomBooks/BloomDesktop | /*!
* jQuery JavaScript Library v1.10.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-30T21:49Z
*/
(function(window, undefined) {
//... |
src/components/JeopardyDetails/JeopardyDetails.js | matthewgallo/portfolio | import React from 'react';
import DetailHeader from '../DetailPage/DetailHeader';
import JeopardyDetailsImage from '../../assets/images/jeopardy/home_jeopardy_app.png';
import Tag from '../Tag/Tag';
import CalloutGroup from '../DetailPage/DetailCalloutGroup';
import CalloutGroupItem from '../DetailPage/CalloutGroupItem... |
src/Tooltip.js | pandoraui/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
packages/icons/src/md/device/WifiLock.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWifiLock(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M41 19c.56 0 1.09.08 1.63.16L48 12c-6.69-5.02-15-8-24-8S6.69 6.98 0 12l24 32 7-9.33V29c0-5.52 4.48-10 10-10zm5 13c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H36... |
src/views/components/util/AutoSave.js | Domiii/project-empire | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { dataBind } from 'dbdi/react';
const DefaultStatusMessages = {
[SaveStatus.NotSaved]: 'not saved',
[SaveStatus.Saving]: 'saving...',
[SaveStatus.Saved]: 'Saved.'
};
@dataBind({})
export default class AutoSave extends Compone... |
client/src/index.js | Darkrender/raptor-ads | import React from 'react';
import { render } from 'react-dom';
import Root from './components/Root';
const appElement = document.getElementById('app');
render(
<Root />
, appElement,
);
|
actor-apps/app-web/src/app/index.js | KitoHo/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import injectTapEventPlugin from 'react-tap-event-plugin';
import Deactivated from 'components/Deactivated.react';
import Login from 'components/Login.react';
import ... |
misc/jquery.js | YubaShed/www |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
fields/components/DateInput.js | everisARQ/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import Popout from '../../admin/client/App/shared/Popout';
import { FormInput } from 'elemental';
let lastId = 0;
module.exports = React.createClass({
displayName: 'DateInput',
propTypes: {
format: React.PropTypes.st... |
transports/http/http-tests-suite/js/apache-maven-fluido-1.3.0.min.js | princeofdarkness76/trap | /*!
* jQuery JavaScript Library v1.8.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/components/app_heading.js | Daviepark/m | import React from 'react';
import styles from '../../style/components/app_heading.css';
const Header = () => {
return (
<div>
<h1 className={styles.heading}>MYOB Coding Test</h1>
</div>
);
};
export default Header; |
example/app.js | nayaabkhan/react-polyglot | import React from 'react';
import { render } from 'react-dom';
import { I18n } from '../lib';
import Greeter from './greeter';
const locale = window.locale || 'en';
const messages = {
"hello_name": "Hello, %{name}.",
"num_cars": "%{smart_count} car |||| %{smart_count} cars",
}
render(
<I18n locale={locale} mess... |
src/App.js | mlesk/equation-blocks | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import equations from './equations';
import EquationBlocksByCategory from './components/equation/EquationBlocksByCategory';
class App extends Component {
render() {
return (
<div className="App">
<div clas... |
src/svg-icons/av/not-interested.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
scripts/auth/components/login.js | rek/grammar-notes | import React from 'react'
import {connect} from 'react-redux'
export class App extends React.Component {
render() {
return (
<nav className='navbar navbar-default'>
<div className='container-fluid'>
<div className='navbar-header'>
<button type='button' className='navbar-toggle collapsed' data-to... |
src/scenes/modals/components/Modal.js | niekert/soundify | import React from 'react';
import { node, bool } from 'prop-types';
// import ReactModal from 'react-modal';
import styled, { keyframes } from 'styled-components';
import { prop } from 'styled-tools';
const dialogIn = keyframes`
from {
transform: translateY(10px);
opacity: 0
}
50% {
opacity: 1;
}
... |
src/components/Logo.js | markshlick/markshlick.github.io | import React from 'react';
export default () => (
<span>
<span style={{ color: 'tomato' }}>ui</span>
<span style={{ color: '#444444' }}>.</span>
<span style={{ color: 'lightslategray' }}>zone</span>
</span>
);
|
src/App.js | UNumbervan/todo-shmodo | import React from 'react';
import './App.css';
import AppBar from 'material-ui/AppBar';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {Tree} from './components/... |
components/PageHero.js | turntwogg/esports-aggregator | import React from 'react';
import classNames from 'classnames';
import { Container, useTheme } from '@turntwo/react-ui';
import ResponsiveImage from './ResponsiveImage';
import api from '../utils/api';
const PageHeroContent = ({ content, theme }) => {
return (
<div className="page-hero__content">
<Contai... |
app/components/util/DevTools.js | jboho/boilerplate | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q'>
<LogMonitor />
</DockM... |
node_modules/react-bootstrap/es/Thumbnail.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/material-ui-icons/src/MicNone.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2-.66 0-1.2-.54-1.2-1.2V4.9zm6.... |
src/index.js | villamil/rocket-app | import React from 'react';
import ReactDOM from 'react-dom';
import Content from './components/content'
import './index.css'
class APP extends React.Component {
render() {
return (
<div>
<Content />
</div>
)
}
}
ReactDOM.render(
<APP />,
document... |
src/routes/Oppgave5/components/Oppgave5View.js | andreasnc/summer-project-tasks-2017 | import React from 'react';
import PropTypes from 'prop-types';
import StarWarsCharacters from './StarWarsCharacters';
import Oppgave5Text from './Oppgave5Text';
const Oppgave5View = ({
fetchCharacters
}) => (
<div>
<h4>Oppgave 5</h4>
<Oppgave5Text />
<div className="button-row">
<button className... |
app/src/components/ProgressBar/index.js | oh-my-github/yo-omg-basic | import React from 'react'
import ReactTooltip from 'react-tooltip'
import styles from './index.css'
/** ref: http://cssdeck.com/labs/twitter-bootstrap-progress-bars */
class ProgressBar extends React.Component {
render() {
const { width, color, label, animated, tooltipLabel, } = this.props
const animationS... |
demo/js/jquery.min.js | R2D2-fwks/R2D2-fwks | /*! jQuery v1.11.1 | (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... |
ajax/libs/react-highcharts/3.0.0/index.js | rlugojr/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["Highcharts"] = fact... |
src/components/TableStoreProvider/index.js | cantonjs/re-admin | import React from 'react';
import AppConfigContext from 'contexts/AppConfig';
import TableStoreInternal from './TableStoreInternal';
export default function TableStoreProvider(props) {
return (
<AppConfigContext.Consumer>
{(appConfig) => <TableStoreInternal {...props} appConfig={appConfig} />}
</AppConfigConte... |
ajax/libs/survey-jquery/0.11.1/survey.jquery.min.js | Amomo/cdnjs | /*!
* surveyjs - Survey JavaScript library v0.11.1
* Copyright (c) 2015-2017 Devsoft Baltic O� - http://surveyjs.org/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define... |
imports/ui/components/Messages/MessageImageUpload.js | haraneesh/mydev | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { Cloudinary } from 'meteor/socialize:cloudinary';
import { Image, Placeholder, Transformation } from 'cloudinary-react';
const config = {
options: {
tags: 'message',
folder: 'messages',
overwrite: true, // only 1 image per message... |
app/components/Card/Temperature.js | PeterEB/quick-demo-boilerplate | import React from 'react';
var fgColor = "#FFF",
bgColor = "#F5D76E",
fgColorDisabled = "#EEEEEE",
bgColorDisabled = "#BDBDBD";
const Temperature = ({enable, temp}) => {
enable = !!enable;
let cardFgColor = enable ? fgColor : fgColorDisabled;
let cardBgColor = enable ? bgColor : bgColorDisabl... |
ajax/libs/rxjs/2.3.18/rx.all.js | wout/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... |
src/svg-icons/social/domain.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialDomain = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v... |
example/react/index.js | egoist/tooling | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
// AppContainer is a necessary wrapper component for HMR
import App from './App';
const render = (Component) => {
ReactDOM.render(
<AppContainer>
<Component/>
</AppContainer>,
document.ge... |
src/components/GithubButton/GithubButton.js | tanvip/hackPrinceton | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
ajax/libs/yui/3.0.0/loader/loader-debug.js | underyx/cdnjs | YUI.add('loader', function(Y) {
(function() {
/**
* Loader dynamically loads script and css files. It includes the dependency
* info for the version of the library in use, and will automatically pull in
* dependencies for the modules requested. It supports rollup files and will
* automatically use these when app... |
app/components/H3/index.js | Dattaya/react-boilerplate-object | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
analysis/warriorarms/src/modules/talents/DefensiveStance.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatNumber, formatThousands } from 'common/format';
import SPELLS from 'common/SPELLS/talents/warrior';
import { SpellIcon } from 'interface';
import { SpellLink } from 'interface';
import { Tooltip } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/... |
frontend/src/components/auth/signin.js | raymestalez/django-react-blog | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions/auth';
class Signin extends Component {
handleFormSubmit({username, password}) {
/* console.log(username, password);*/
// log user in
// signinUser comes from actions.
// it is an action cr... |
js/app.js | webcoding/react-tab-selector | 'use strict';
require('../style.css');
var TabSelector = require('./TabSelector');
var React = require('react');
var data = [
{name: 'Red', value: 'red'},
{name: 'Blue', value: 'blue'},
{name: 'Yellow', value: 'yellow'},
{name: 'Green', value: 'green'},
{name: 'White', value: 'White'}
];
var node = docume... |
ajax/libs/yui/3.14.0/scrollview-base/scrollview-base-debug.js | ppavlov/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
src/svg-icons/social/people-outline.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeopleOutline = (props) => (
<SvgIcon {...props}>
<path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7... |
addons/themes/zerofour/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Blog = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
blueocean-material-icons/src/js/components/svg-icons/maps/directions-walk.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-... |
app/javascript/mastodon/components/status_action_bar.js | RobertRence/Mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureCompo... |
src/components/MainHeader/LogoText.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
const LogoText = ({isMini, isLarge, title, boldTitle}) => {
const className = {
'logo-mini': isMini,
'logo-lg': isLarge
}
return <span className={classnames(className)}><b>{boldTitle}</b>{title}</span>
}
Lo... |
src/visualization/FeatureNetwork.js | VasilyShelkov/scikic-app | import React, { Component } from 'react';
import d3 from 'd3';
class FeatureNetwork extends Component {
componentDidMount() {
const width = $(this.refs.mountPoint).width();
const height = this.props.height;
const force = this.props.force
.size([width, height]);
const svg = d3.select(this.refs... |
lib/site/topic-layout/topic-article/admin-actions/component.js | DemocraciaEnRed/vicentelopez | import React from 'react'
import t from 't-component'
import urlBuilder from 'lib/url-builder'
export default ({ topic, forum }) => {
if (!topic.privileges.canEdit) return null
return (
<div className='topic-article-content topic-admin-actions'>
{topic.privileges.canEdit && (
<a
href={... |
src/components/LoginForm/index.js | cantonjs/re-admin | import styles from './styles';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import routerStore from 'stores/routerStore';
import localize from 'hocs/localize';
import { Icon } from 'antd';
import { Form, Input, Submit } from 'components/Form';
@lo... |
src/components/video_list.js | dpolak/react_simple_yt_app |
import React from 'react';
import VideoListItem from'./video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return <VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
});
return (
<ul ... |
investninja-web-ui-admin/src/routes/dashboardPages/notification/index.js | InvestNinja/InvestNinja-web-ui |
import React from 'react';
import Notification from './Notification';
export default {
path: '/notification',
action() {
return <Notification />;
},
};
|
client/src/components/drink/index.js | bmtwebdevs/sodalicious | import React, { Component } from 'react';
import './style.css';
/* NOT IN USE CURRENTLY */
class Drink extends Component {
render() {
var path = this.props.image ? 'url(drink_images/' + this.props.image + ')' : null;
return (
<li className="Drink" >
<div className="drinkImage" style={{backg... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | dashed/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
packages/material-ui-icons/src/Tab.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 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-2zm0 16H3V5h10v4h8v10z" /></React.Fragment>
, 'Tab');
|
example/src/components/list.view.js | ayoubdev/react-native-responsive | import React, {
Component,
PropTypes
} from "react";
import {
ListView as RNListView,
ScrollView
} from "react-native";
import ListItem from "./list.item.js";
class ListView extends Component {
static propTypes = {
...ScrollView.propTypes,
data: PropTypes.array.isRequired,
onClick: PropTypes.func
};
cons... |
src/containers/menuSections/alphabetIncrementorMenu.js | Harlantr/text-mod | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { changeText } from '../../actions/actions';
import incrementors from '../../const/incrementors';
class AlphabetIncrementorMenu extends Component {
constructor (props) {
super(props... |
client/src/NewProfile.js | chi-bumblebees-2017/gnomad | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import Checkbox from './Checkbox';
// import Dropdown from 'react-dropdown';
import update from 'react-addons-update';
import Dashboard from './Dashboard';
import { Form, TextArea, Dropdown, Loader } from 'semantic-ui-react';
class ... |
node_modules/react-icons/io/ios-flag.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosFlag = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.8 8.8c0.4-0.1 0.8-0.1 1.2-0.2v13.5c-0.4 0.1-0.8 0.1-1.2 0.2-0.9 0-1.9 0.2-3.1 0.2-1.9 0-3.7-0.3-5.4-0.7s-3.3-1-5-1c-2.3 0-3.6 0.4-4.1 0.5v11.2h-1.2v-23.9l0.2-0.2c... |
build/karma.conf.js | traptrilliams/kings | import { argv } from 'yargs'
import config from '../config'
import webpackConfig from './webpack.config'
import _debug from 'debug'
const debug = _debug('app:karma')
debug('Create configuration.')
const karmaConfig = {
basePath: '../', // project root in relation to bin/karma.js
files: [
{
pattern: `./$... |
src/components/ReachabilityTab.js | Greennav/greennav | import React, { Component } from 'react';
import AutoComplete from 'material-ui/AutoComplete';
import Slider from 'material-ui/Slider';
import RaisedButton from 'material-ui/RaisedButton';
import FontIcon from 'material-ui/FontIcon';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/M... |
src/components/Task/TaskText.js | Charlie9830/pounder | import React from 'react';
import { Typography } from '@material-ui/core';
const TaskText = (props) => {
return (
<Typography> {props.text} </Typography>
);
};
export default TaskText; |
ballot-maker/src/MyBallots.js | OnVelocity/ov-ballot | /**
* Created by onvelocity on 4/11/17.
*/
import React from 'react'
import { remove_ballot, set_ballot_to_edit, add_ballot_and_edit } from './Reducers'
import './MyBallots.css'
const MyBallots = ({ballots, dispatch}) => {
const ballot = (ballot, index) => {
const handleOnClickRemove = () => {
dispatch(() =>... |
src/routes/login/Login.js | joaquingatica/git-demo | /**
* 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/mineral-ui-icons/src/IconBlurOff.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBlurOff(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
ajax/libs/react/0.14.9/react-with-addons.js | maruilian11/cdnjs | /**
* React (with addons) v0.14.9
*/
(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!=="undef... |
client/pages/NotFoundPage.js | marcocom/portfolio-react-webpack2 | import React from 'react';
export default function NotFoundPage() {
return (
<div className="lost-page">
<div className="container">
<div className="section is-full-page">
<h1 className="app-title title is-1">404</h1>
<p>The page you requested does not exist.</p>
</div>
... |
consoles/my-joy-instances/src/server-error.js | yldio/joyent-portal | import React from 'react';
import { Margin } from 'styled-components-spacing';
import {
RootContainer,
PageContainer,
ViewContainer,
Message,
MessageDescription,
MessageTitle
} from 'joyent-ui-toolkit';
import Breadcrumb from '@containers/navigation/breadcrumb';
export const Route = () => (
<ViewContai... |
src/routes/UIElement/dataTable/index.js | IssaTan1990/antd-admin | import React from 'react'
import { DataTable } from '../../../components'
import { Table, Row, Col, Card, Select } from 'antd'
class DataTablePage extends React.Component {
constructor (props) {
super(props)
this.state = { filterCase: {
gender: '',
} }
}
handleSelectChange = (gender) => {
... |
src/native/auth/Email.js | chad099/react-native-boilerplate | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import emailMessages from '../../common/auth/emailMessages';
import { Box, Button, Heading, Text, TextInput } from '../../common/components';
import { compose } from 'ramd... |
example/app.js | alexcurtis/react-spotlight | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import PureRenderer from 'react-addons-pure-render-mixin';
import Radium from 'radium';
import {Spotlight, decorators} from '../src/index';
import theme from '../themes/default';
import etheme from './theme';
import schwarzenegger from './schw... |
node_modules/expect-jsx/index-test.js | NathanBWaters/jb_club | /* eslint-env mocha */
/* eslint react/prop-types:0 */
import React from 'react';
import expect from 'expect';
import expectJSX from './index';
expect.extend(expectJSX);
class TestComponent extends React.Component {
render() {
return <div>Hi! {this.props.name}</div>;
}
}
describe('expect(ReactElement).toEqu... |
src/components/Loading/Loading.js | fforres/coworks_client_side | import React, { Component } from 'react';
class Loading extends Component {
render () {
return (
<div>
<center>
<h1><i className='fa fa-spinner fa-spin' /> </h1>
<h1> Loading... </h1>
</center>
</div>
);
}
}
export { Loading };
export default Loading;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.