path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
frontend/src/components/Footer.js
danscratch/pern
import React from 'react'; import StaticComponent from './StaticComponent'; require('./Footer.scss'); export default class Footer extends StaticComponent { render() { return ( <div className="footer__div"> <div> <a href="https://github.com/danscratch/pern">{'https://github.com/danscratch...
ajax/libs/muicss/0.2.2/react/mui-react.js
tholu/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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
test/PanelSpec.js
mmarcant/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Panel from '../src/Panel'; import Table from '../src/Table'; describe('<Panel>', () => { it('Should have class and body', () => { const instance = ReactTestUtils.renderIntoDocument( <...
app/javascript/mastodon/features/follow_requests/index.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
app/javascript/mastodon/components/display_name.js
maa123/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { autoPlayGif } from 'mastodon/initial_state'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, oth...
examples/src/components/DisabledUpsellOptions.js
alanrsoares/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
src/stories/2016-06-11-tenerife-the-land-of-eternal-spring.js
danpersa/remindmetolive-react
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
frontend/src/Components/Page/Page.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import AppUpdatedModalConnector from 'App/AppUpdatedModalConnector'; import ColorImpairedContext from 'App/ColorImpairedContext'; import ConnectionLostModalConnector from 'App/ConnectionLostModalConnector'; import SignalRConnector from 'Compo...
src/components/registration/TitleBar.js
Vasyl1989/Opus.ua
import React from 'react'; import { Link } from 'react-router'; const TitleBar = () => { return ( <div id="titlebar" className="single"> <div className="container"> <div className="sixteen columns"> <h2>Мій акаунт</h2> <nav id="breadcrumbs"> <ul> <li>В...
src/core/components/types/ArrayType.js
remy/jsconsole
import React, { Component } from 'react'; import zip from 'lodash/zip'; import flatten from 'lodash/flatten'; import which from '../../lib/which-type'; class ArrayType extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { open: props.open, ...
src/pages/CalendarsList.js
LinDing/two-life
import React, {Component} from 'react'; import {CalendarList} from 'react-native-calendars'; export default class CalendarsList extends Component { constructor(props) { super(props); } render() { return ( <CalendarList current={'2012-05-16'} pastScrollRange={24} futureScrollRange={24} /> ); ...
app/Resources/plugins/jquery.maskedinput/lib/jquery-1.8.3.min.js
apihour/crm
/*! 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-icons/src/EuroSymbolTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H...
src/index.js
gaearon/react-stateful
import React, { Component } from 'react'; export default function Stateful({ initialize, reducers }) { return DecoratedComponent => class StateContainer extends Component { constructor(props) { super(props); this.state = initialize(props); this.reducers = {}; Object.keys(reducers).forEac...
src/components/pages/MainLayout/MobileMenu/index.js
humaniq/humaniq-pwa-website
import React from 'react' import * as T from 'prop-types' import './styles.scss' import { cssClassName } from 'utils' import { Link } from 'react-router' const cn = cssClassName('SE_MainLayout_MobileMenu') const socialIcons = `/img/design-v2/icons/social/sprite.svg` const SE_MainLayout_MobileMenu = ({ mix, mobileMenuI...
src/components/application.js
erik-sn/mslt
if (process.env.BROWSER) { require('../sass/style.scss'); require('../sass/main.scss'); require('../sass/entry.scss'); } import '../sass/articles.scss'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import axios from 'axios'; import marked from 'marked'; im...
resources/js/react/Loading.js
chekun/spore
import React from 'react'; var progress = require('nprogress'); var $ = require('jquery'); class Loading extends React.Component { componentDidMount() { $(document).ajaxStart(function() { progress.start(); }); $(document).ajaxComplete(function() { progress.done(); ...
app/components/Page.js
renjithgr/bootbar
import React, { Component } from 'react'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import TabContent from './TabContent'; export default class Page extends Component { componentDidMount() { } renderTabs(tabs) { return tabs.map(tab => <Tab key={tab} >{ tab.title }</Tab>); } renderTabP...
src/js/components/app-Task.js
AwadMaharoof/Lazymine
/*global require, module, openExternalUrl, minimizeWindow*/ /** @jsx React.DOM */ var React = require('react'), randomMC = require('random-material-color'), AppActions = require('../actions/app-actions'), TextField = require('../components/form/app-TextField'), DropDown = require('../components/form/app...
resources/assets/js/app.js
mrkirby153/KirBotPanel
import NavBar from './components/NavBar'; // We have to do it like this because macOS is case insensitive and will import the wrong component import Dashboard from './components/dashboard/index'; import AdminSettings from './components/admin/AdminSettings'; import ReactDOM from 'react-dom'; import React from 'react'; ...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
gale320/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
ajax/libs/react/0.7.0/react.min.js
whardier/cdnjs
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js
barakmitz/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithoutAvatar = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableB...
src/parser/monk/mistweaver/modules/spells/SoothingMist.js
sMteX/WoWAnalyzer
import React from 'react'; import CoreChanneling from 'parser/shared/modules/Channeling'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SUGGESTION_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE'; import StatTracker from 'parser/shared/modules/StatTracker'; import { formatPercentag...
lib/svg-icons/device/access-alarms.js
grovelabs/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var DeviceAccessAlarms = React.createClass({ displayName: 'DeviceAccessAlarms', mixins: [PureRenderMixin], render: function render() { return React.createElement(...
src/main/app/src/Loginscreen.js
xiongjiaji/kyle-identity
import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import Login from './Login'; import Register from './Register'; class Loginscreen extends Component { constructor(props) { super(props); this.stat...
packages/material-ui-icons/src/MoreHorizOutlined.js
Kagami/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 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2...
examples/todomvc/components/TodoTextInput.js
gbezyuk/redux
import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; export default class TodoTextInput extends Component { static propTypes = { onSave: PropTypes.func.isRequired, text: PropTypes.string, placeholder: PropTypes.string, editing: PropTypes.bool, newTodo: PropTyp...
app/containers/CreateEventContainer.js
Block-and-Frame/block-and-frame
import React, { Component } from 'react'; import update from 'react-addons-update'; import eventHelpers from '../utils/eventHelpers'; import MenuBar from '../components/MenuBar'; import CreateEventForm from '../components/events/CreateEventForm'; import moment from 'moment'; const now = moment(); class Creat...
__tests__/index.ios.js
rldona/react-native-tab-view-seed
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
ajax/libs/rxjs/2.5.3/rx.compat.js
steadiest/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/pages/repository/toolbar.js
RexSkz/drone-ui
import {branch} from 'baobab-react/higher-order'; import {Link} from 'react-router'; import React from 'react'; import {Tabs, Tab}from '../../components/layout/tabs'; class Toolbar extends React.Component { render() { const {user} = this.props; const { owner, name } = this.props.params; const tabs = [ ...
apps/dashboard/components/Board.js
chengethem/fangxia_WIT
import React, { Component } from 'react'; class Board extends Component { render() { return (<div></div>); } } export default Board;
src/components/phpstorm/plain-wordmark/PhpstormPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './PhpstormPlainWordmark.svg' /** PhpstormPlainWordmark */ function PhpstormPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Phps...
ajax/libs/yui/3.11.0/event-focus/event-focus.js
mzdani/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
tilapp/src/components/BookSheet/index.js
tilap/tilapp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, View, H3, Text } from 'native-base'; import Image from 'react-native-image-progress'; import ProgressBar from 'react-native-progress/Bar'; import ReadMore from '@expo/react-native-read-more-text'; import BookMeta from './Book...
src/components/Header.js
fjoder/indecision-app
import React from 'react'; const Header = props => ( <div className="header"> <div className="container"> <h1 className="header__title">{props.title}</h1> {props.subtitle && <h2 className="header__subtitle">{props.subtitle}</h2>} </div> </div> ); Header.defaultProps = { title: 'Indecision', ...
src/entypo/Upload.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Upload'; let EntypoUpload = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M8,12h4V6h3l-5-5L5,6h3V12z M19.338,13.532c-0.21-0.224-1.611-1.723-2.011-2.114C17.062,11.159,16.683,11...
src/views/pages/search-page/search-page.js
r-park/soundcloud-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { searchActions } from 'src/core/search'; import ContentHeader from '../../components/content-header'; import Tracklist from '../../components/tracklist'; import './search-page.css'; export class SearchPage ...
ajax/libs/yui/3.9.0/event-focus/event-focus-debug.js
htmlstrap/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
packages/icons/src/md/av/Forward30.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdForward30(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M19.1 29h.9c.4 0 .7-.1 1-.3.3-.2.3-.5.3-.9 0-.2 0-.3-.1-.4-.1-.1-.1-.3-.2-.4-.1-.1-.2-.2-.4-.2s-.3-.1-.5-.1-.3 0-.4.1c-.1.1-.3.1-.4.2-.1.1-.2.2-.2....
src/ContentBlocks/BlockImage/BlockImageForm.js
grommet/grommet-cms-content-blocks
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; import FormField from 'grommet/components/FormField'; import Button from 'grommet/components/Button'...
ajax/libs/jquery-handsontable/0.10.2/jquery.handsontable.full.min.js
rlugojr/cdnjs
/** * Handsontable 0.10.2 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Thu Jan 23 2014 23:06:23 GMT+0100 (CET) *//*jslint...
ajax/libs/phaser/2.0.7/custom/p2.js
LaurensRietveld/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
src/main/js/main.js
o-schneider/heroesdesk-front-web
'use strict'; import React from 'react'; import Router from 'react-router'; import ReactBootstrap from 'react-bootstrap'; import ReactRouterBootstrap from 'react-router-bootstrap'; import Desk from './desk/Desk.js'; import Issue from './issue/Issue.js'; import {Search} from './search/Search.js'; import { createRedux...
client/index.js
ueno-llc/starter-kit-universally
import React from 'react'; import { hydrate } from 'react-dom'; import BrowserRouter from 'react-router-dom/BrowserRouter'; import asyncBootstrapper from 'react-async-bootstrapper'; import { JobProvider } from 'react-jobs'; import { Provider } from 'mobx-react'; import { toJS } from 'mobx'; import stringify from 'json-...
src/components/PostList.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import PostListItem from './PostListItem'; import styled from 'styled-components'; const Ul = styled.ul` list-style: none; margin: ${props => props.theme.blog.list.ul.margin}; padding: ${props => props.theme.blog.list.ul.padding}; `; const PostList ...
src/Label.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
src/index.js
le-du6/BLDMyReadsUdacityReact
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <div className="application"> <BrowserRouter> <App /> </BrowserRout...
example/index.js
osnr/react-object-inspector
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
src/svg-icons/device/location-searching.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationSearching = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-...
src/components/EyeIcon/EyeIcon.js
Mikhail2k15/ps-react-michael
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
src/common/header.js
rldona/react-native-tab-view-seed
import React, { Component } from 'react'; import { TouchableOpacity, Text, View, Image, StyleSheet, Dimensions } from 'react-native'; import * as colors from '../common/colors'; import Icon from 'react-native-vector-icons/MaterialIcons'; const { width, height } = Dimensions.get('window'); export defaul...
fontawesome/advanced-options/use-with-node-js/fontawesome-free-brands/index.js
jbon/design-dependencies
/*! * Font Awesome Free 5.0.13 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'functi...
app/components/Footer/index.js
ddobby94/szakdoge_admin
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
ajax/libs/react-native-web/0.13.11/exports/Touchable/index.min.js
cdnjs/cdnjs
"use strict";function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var E,s,o={},i=Object.keys(t);for(s=0;s<i.length;s++)E=i[s],e.indexOf(E)>=0||(o[E]=t[E]);return o}function ownKeys(t,e){var E=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){retu...
misc/jquery.js
alezyy/drupal1
/*! * 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....
app/components/ProductsTable.js
BestBuyAPIs/bestbuy-sdk-js-sample-app
import React from 'react'; import Product from './Product'; class ProductsTable extends React.Component { render(){ var rows = []; this.props.products.forEach( (product)=> { rows.push(<Product product={product} key={product.name} />); }); return ( <table className="table-bordered table"> ...
src/js/components/common/materialdesignicon.js
michaelatmender/gui
import React from 'react'; import { SvgIcon } from '@mui/material'; import { mdiImageBrokenVariant } from '@mdi/js'; const MaterialDesignIcon = ({ path = mdiImageBrokenVariant, style = {} }) => ( <SvgIcon fontSize="inherit" style={style}> <path d={path} /> </SvgIcon> ); export default MaterialDesignIcon;
test/ColSpec.js
collinwu/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Col from '../src/Col'; describe('Col', function () { it('Should set Offset of zero', function () { let instance = ReactTestUtils.renderIntoDocument( <Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} /> ); ...
js/components/QuestionTypes/Checkboxes.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Text, View, } from 'react-native'; import Checkbox from '../Checkbox'; import Styles from '../../styles/Styles'; import Color from '../../styles/Color'; import ViewText from '../ViewText'; import Icon from 'react-native-vector-icons/FontAwesome'; let uncheckedComponent = <Icon n...
tests/shared/removeSelectedTest.js
ddcat1115/select
/* eslint-disable no-undef */ import React from 'react'; import { mount } from 'enzyme'; import KeyCode from 'rc-util/lib/KeyCode'; import Select from '../../src/Select'; import Option from '../../src/Option'; export default function removeSelectedTest(mode) { describe('remove selected options', () => { it('fire...
src/components/SearchResults.js
BrisklyPapers/react
import React from 'react'; import SearchResult from './SearchResult'; import PropTypes from 'prop-types'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' const SearchResults = ({documents}) => { return ( <MuiThemeProvider> <div style={{marginLeft: "15vw"}}> {d...
src/components/record_list_item.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import {ListGroupItem} from 'react-bootstrap'; const RecordListItem = ({record,action,tab}) => { var date = record.time; var recordinfo = record.record; var values = recordinfo.valuecategory; var stringlength = recordinfo.valuecategory.length; var valuesStr = values.slice...
docs/src/pages/demos/tables/SpanningTable.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'...
views/invocation.js
smaty1/black-screen
import React from 'react'; import Prompt from './prompt'; export default React.createClass({ componentWillMount() { this.props.invocation .on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()})) .on('status', status => this.setState({status: status})...
app/javascript/mastodon/features/video/index.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
ajax/libs/primereact/6.5.1/fullcalendar/fullcalendar.esm.min.js
cdnjs/cdnjs
import e,{Component as t}from"react";import{ObjectUtils as n}from"primereact/core";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defi...
docs/app/Views/PageNotFound.js
koenvg/Semantic-UI-React
import React from 'react' import { Grid, Segment, Header, Icon } from 'src' const PageNotFound = () => ( <Grid padded textAlign='center' stretched> <Grid.Row columns='equal'> <Grid.Column> <Header as='h1' icon textAlign='center'> <Icon name='game' /> 404 <Header.Subhea...
src/components/font-awesome.js
LaserWeb/LaserWeb4
/** * Font-Awesome module. * @module */ // React import React from 'react' /** * Communication component. * * @extends module:react~React~Component * @param {Object} props Component properties. */ class Icon extends React.Component { /** * @type {Object} * @member module:components/font-awesome~...
node_modules/react-bootstrap/es/Form.js
darklilium/Factigis_2
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/actions/application.js
BoilerMake/frontend
import apiFetch from './index'; import { toastr } from 'react-redux-toastr'; import { recordStatEvent } from './index'; export const REQUEST_APPLICATION = 'REQUEST_APPLICATION'; export const RECEIVE_APPLICATION = 'RECEIVE_APPLICATION'; export function fetchApplication() { return dispatch => { dispatch(requestAp...
app/javascript/mastodon/features/ui/components/image_loader.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, src: PropTypes.string.isRequired, previewSrc: PropTypes.string, width: PropTypes.number, ...
ajax/libs/core-js/0.4.1/core.js
IonicaBizauKitchen/cdnjs
/** * Core.js 0.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(returnThis, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
test/test-helpers/shallow-render-helper.js
samuelsantia/react-time-input
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/parser/ui/Cooldown.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import { Icon, SpellLink } from 'interface'; import { formatThousands, formatNumber, formatPercentage, formatDuration } from 'common/format'; import { TooltipElement } from 'interface'; import RESOURCE_TYPES from 'game/R...
ajax/libs/react-datetime/2.0.1/react-datetime.js
jonobr1/cdnjs
/* react-datetime v2.0.1 https://github.com/arqex/react-datetime MIT: https://github.com/arqex/react-datetime/raw/master/LICENSE */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require(undefined), require(undefined)...
tests/views/SignUpView.spec.js
softage0/solid-online-services
import React from 'react' import SignUpView from 'views/SignUpView/SignUpView' import SignUpForm from 'forms/SignUpForm/SignUpForm' import { shallow } from 'enzyme'; describe('(View) SignUp', () => { it('Should render as a <SignUpForm>.', () => { const wrapper = shallow(<SignUpView />); expect(wrapper.is(Sig...
assets/javascripts/kitten/components/structure/cards/simple-card/components/title.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { parseHtml } from '../../../../../helpers/utils/parser' import { Title as TitleComponent } from '../../../../typography/title' import { Marger } from '../../../../layout/marger' export const Title = ({ title, title...
src/SoundControl.js
billgathen/pentaphone
import React from "react"; export default function SoundControl({ options, soundType, setSoundType }) { const selectType = (e) => { setSoundType(e.target.value); e.target.blur(); }; return ( <div className="sound-control"> <div className="sound-control-label">Tone</div> <select value={sou...
bai/src/components/ProgramsList/index.js
blackinai/blackinai.github.io
import { Button, Card, CardActions, CardContent, CardMedia, Container } from '@material-ui/core/'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; import Typography from '../Typography'; const styles = (the...
front-end/app/containers/invoice/add_invoice_container.js
akumbhani66/cantaloupe
import { connect } from 'react-redux'; import AddInvoice from '../../components/invoice/Add_invoice_component'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import * as Actions from '../../actions/actions'; function mapStateToProps(state) { return { props: state }; } const...
src/components/Header/Header.js
mjasinski5/dashboardWookiees
import React from 'react' import { IndexLink, Link } from 'react-router' import classes from './Header.scss' export const Header = () => ( <div> <h2>DashboardJS</h2> <Link to='/'> Home </Link> <Link to='/img'> ImgHome </Link> </div> ) export default Header
ajax/libs/react-native-web/0.0.0-d6e83d84a/exports/Button/index.js
cdnjs/cdnjs
/** * Copyright (c) Nicolas Gallagher. * 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. * * */ import StyleSheet from '../StyleSheet'; import TouchableOpacity from '../TouchableOpacit...
app/react-icons/fa/database.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaDatabase extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20.1 17.1q5.3 0 9.9-0.9t7.3-2.9v3.8q0 1.6-2.3 2.9t-6.3 2.1-8.6 0.8-8.6-0.8...
src/interface/icons/Link.js
yajinni/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=link&i=1063944 // link by arjuazka from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="m 21,1019.3619 c -9.36611,0 -17.0000001,-7.6338 -17.0000...
packages/icons/src/md/action/AssignmentLate.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAssignmentLate(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 8c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h8.37c.82-2.32 3.02-4 5.63-4s4.81 1.68 5.63 4H38zM26 38...
packages/react/src/components/organisms/PageFlipper/index.js
massgov/mayflower
/** * PageFlipper module. * @module @massds/mayflower-react/PageFlipper * @requires module:@massds/mayflower-assets/scss/03-organisms/page-flipper */ import React from 'react'; import PropTypes from 'prop-types'; import airPropTypes from 'airbnb-prop-types'; const PageFlipper = (props) => { const blank = (<div c...
public/library/jquery/jquery-1.11.0.min.js
devdrops/Zf2SkeletonApp
/*! 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...
client/webpack.dev.js
jhuntoo/starhackit
var path = require( 'path' ); var webpack = require( 'webpack' ); var OpenBrowserPlugin = require('open-browser-webpack-plugin'); var webpackDevConfig = { overrides: { devtool: 'eval', debug: true, entry: { app: [ 'webpack-dev-server/client?http://localhost:8080'...
modules/__tests__/RouterContext-test.js
djkirby/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import match from '../match' import { routerShape } from '../PropTypes' import RouterContext from '../RouterContext' import { createRouterObject } from '../RouterUtils' describe('RouterContext', () => { ...
dist/1.9.1/jquery-css-dimensions-offset.js
jgallen23/jquery-builder
/*! * jQuery JavaScript Library v1.9.1 -css,-effects,-offset,-dimensions * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-3-15 */ (function( w...
src/shared/zarizeni/umistovani/__tests__/Umistovani.spec.js
hhjcz/too-simple-react-skeleton
/** Created by hhj on 2/16/16. */ /* eslint-disable no-unused-expressions, no-unused-vars, import/no-extraneous-dependencies */ import { expect } from 'chai' import React from 'react' import sd from 'skin-deep' import { List } from 'immutable' import Umistovani from '../Umistovani' describe('umistovani Umistovani com...
src/index.js
jdhanesh/ftdpwa
import React from 'react' import { render } from 'react-dom' import './base.css' import App from './App' render(<App />, document.getElementById('app'))
src/svg-icons/action/receipt.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReceipt = (props) => ( <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-...
src/svg-icons/maps/local-activity.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalActivity = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z...
app/containers/LanguageProvider/index.js
gtct/wallet.eine.com
/* * * 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...
src/svg-icons/editor/show-chart.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
src/collections/Table/TableRow.js
Rohanhacker/Semantic-UI-React
import _ from 'lodash' import cx from 'classnames' import React, { PropTypes } from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useTextAlignProp, useVerticalAlignProp, } from '../../lib' import TableCell from './TableCell' funct...
packages/slate-react/test/rendering/fixtures/custom-block-multiple.js
AlbertHilb/slate
/** @jsx h */ import React from 'react' import h from '../../helpers/h' export const schema = { nodes: { code: (props) => { return ( React.createElement('pre', props.attributes, React.createElement('code', {}, props.children) ) ) } } } export const state = ( <state...