path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
client/views/setupWizard/SideBar.js
iiet/iiet-chat
import { Box, Margins, Scrollable } from '@rocket.chat/fuselage'; import { useMediaQuery } from '@rocket.chat/fuselage-hooks'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; import Logo from '../../components/basic/Logo'; import './SideBar.css'; function SideBar({ logo...
node_modules/material-ui/svg-icons/hardware/desktop-mac.js
taforyou/testtesttest-yo
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
react/features/base/participants/components/Avatar.web.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; /** * Implements an avatar as a React/Web {@link Component}. */ export default class Avatar extends Component { /** * Avatar component's property types. * * @static */ static propTypes = { /** * The URI of the {@link Avatar}. ...
src/parser/warrior/arms/modules/talents/Avatar.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; impor...
test/test_helper.js
budaminof/scoreboard
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ajax/libs/extjs/4.2.1/src/form/Basic.js
enricodeleo/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
addons/themes/x-landing/includes/Sidebar.js
rendact/rendact
import React from 'react' const Sidebar = React.createClass({ render: function() { return ( <div className="col-md-4 new-section"> <div className="sidebar-grid wow fadeInUpBig animated" data-wow-delay="0.4s"> {this.props.getWidgets('Sidebar')} </div> </div> ) } }); export default Sidebar
ajax/libs/6to5/1.11.9/browser.js
AlicanC/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...
src/components/video_list_item.js
jeffgietz/ReduxReact
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageURL = video.snippet.thumbnails.default.url; return ( <li onClick={ () => onVideoSelect(video) } className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img cl...
src/EmptyTile.js
Codility/swarm
import React from 'react'; import { DropTarget } from 'react-dnd'; import { connect } from 'react-redux'; import { ITEM_TYPES } from './Constants'; import { canDropTile } from './selectors'; import { actions } from './actions'; class EmptyTile extends React.Component { render() { let classes = ['c-tile', 'mod-e...
src/Col.js
react-materialize/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { sizesClass } from './tools/sizes'; const extendClassname = (base, classes, namespace) => { return namespace.split(' ').reduce((acc, current) => { acc[`${base}-${current}`] = true; return acc; }, classes);...
js/Components/SignUp/signUp.js
Heli-Copter/messaging-client
import React from 'react'; import './signUp.scss'; import { postData } from '../../utils/fetch'; import { Link } from 'react-router-dom'; import { signup as signupURL } from '../../utils/urls'; import LogoTopLeft from '../../../assets/LogoTopLeft.png'; class SignUp extends React.Component { constructor() { supe...
app/native/containers/Header.native.js
Nakan4u/pokemons-finder
import React, { Component } from 'react'; import { Link } from 'react-router-native'; import { StyleSheet, View, Text } from 'react-native'; import stylesLocal from './Header.css.js'; const styles = StyleSheet.create(stylesLocal); export default class Header extends React.Component { render () { ...
docs/client/components/pages/Playground/PlaygroundEditor/ColorControls/StyleButton/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import colorStyleMap from '../../colorStyleMap'; const styles = { styleButton: { color: '#999', cursor: 'pointer', marginRight: 16, padding: '2px 0', }, }; export default class StyleButton extends Component { constructor(props) { super(props); th...
Samples/ECM.AutoTagging/ECM.AutoTaggingWeb/Scripts/jquery-1.9.1.js
darei-fr/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
examples/passing-props-to-children/app.js
cold-brew-coding/react-router
import React from 'react'; import { Router, Route, Link, History } from 'react-router'; var App = React.createClass({ mixins: [ History ], getInitialState() { return { tacos: [ { name: 'duck confit' }, { name: 'carne asada' }, { name: 'shrimp' } ] }; }, addTaco() {...
ui/jq.ui.js
jekey/appframework
(function ($) { var cache = []; var objId=function(obj){ if(!obj.jqmCSS3AnimateId) obj.jqmCSS3AnimateId=$.uuid(); return obj.jqmCSS3AnimateId; } var getEl=function(elID){ if (typeof elID == "string" || elID instanceof String) { return document.getElementById(e...
src/lib/teams/toggle-admin-account-link.js
getinsomnia/website
import React from 'react'; import PropTypes from 'prop-types'; import * as session from '../session'; import Link from '../../components/link'; class ToggleAdminAccountLink extends React.Component { state = { loading: false }; async _handleClick(e) { e.preventDefault(); const {teamId, accountId, on...
src/svg-icons/communication/no-sim.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
src/app/index.js
mkkhedawat/weather-forecast-react
import css from '../css/main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render( <App />, document.getElementById('root') );
packages/bundle/src/adaptiveCards/AttachmentForScreenReader/RichCardAttachment.js
billba/botchat
import PropTypes from 'prop-types'; import React from 'react'; import { hooks } from 'botframework-webchat-component'; const { useLocalizer } = hooks; const RichCardAttachment = ({ content = {} }) => { const localize = useLocalizer(); const { buttons, facts, image, images, items, subtitle, tax, text, title, tota...
app/javascript/mastodon/components/status_action_bar.js
mimumemo/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/index.js
grubincatchpoint/reactrouterredux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import reducers from './reducers'; import PostsIndex from './c...
Examples/UIExplorer/UIExplorerApp.ios.js
YComputer/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
draft-js-inline-toolbar-plugin/src/components/Toolbar/__test__/Toolbar.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import Toolbar from '../index'; describe('Toolbar', () => { it('allows children to override the content', (done) => { const structure = [class Child extends Component { componentDidMount() { set...
modules/field_ui/field_ui.js
cmthoreau/Microgreens
/** * @file * Attaches the behaviors for the Field UI module. */ (function($) { Drupal.behaviors.fieldUIFieldOverview = { attach: function (context, settings) { $('table#field-overview', context).once('field-overview', function () { Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings); ...
packages/react-codemod/transforms/utils/ReactUtils.js
patryknowak/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. * */ 'use strict'; ...
packages/material-ui-icons/src/LocalActivity.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.12-3.29-2.69 4...
node_modules/react-icons/md/phone-bluetooth-speaker.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPhoneBluetoothSpeaker = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.4 25.9q0.7 0 1.1 0.4t0.5 1.2v5.9q0 0.7-0.5 1.1t-1.1 0.5q-11.8 0-20.1-8.3t-8.3-20.1q0-0.7 0.5-1.1t1.1-0.5h5.9q0.7 0 1.2 0.5t0.4 1.1q0 3.2 1 6 0.3 1-0...
src/svg-icons/notification/phone-paused.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
ajax/libs/forerunnerdb/1.3.304/fdb-all.js
CyrusSUEN/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...
packages/wix-style-react/src/EditableTitle/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { storySettings } from './storySettings'; import EditableTitle from '..'; import { api, description, divider, example, header, importExample, playground, tab, tabs, testkit, title, } from 'wix-storybook-utils/dist/src/Sections'; import * as examples from './exam...
blueocean-material-icons/src/js/components/svg-icons/image/view-comfy.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageViewComfy = (props) => ( <SvgIcon {...props}> <path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-4h-4v4zm0-14v4h4V5h-4z"/> </Svg...
src--/components/NoMatch/NoMatch.js
wqzwh/react-phone
import React from 'react'; class NoMatch extends React.Component{ render(){ return ( <div className="campInfo"> 没找到相关的页面 </div> ); } } export default NoMatch;
src/scripts/components/Card.js
arkon/crcmaker
import React from 'react'; import CardTypes from '../constants/CardTypes'; /** * Renders a single card with the passed in data. */ const Card = ({ data }) => { let type = ''; if (data.type == CardTypes.ABSTRACT) { type = 'Abstract'; } else if (data.type == CardTypes.INTERFACE) { type = 'Interface'; ...
tests/MonthCalendar.spec.js
react-component/calendar
/* eslint-disable no-undef */ import React from 'react'; import { mount } from 'enzyme'; import keyCode from 'rc-util/lib/KeyCode'; import moment from 'moment'; import MonthCalendar from '../src/MonthCalendar'; describe('MonthCalendar', () => { it('year or decade panel work correctly', () => { const format = 'YY...
src/Button/FloatingButton.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; /** * Functional component for any floating action button * * @param props * @returns {ReactDOM} * @constructor */ const FloatingButton = props => { return ( <Button type={'floating'} {...props}> {props.chil...
admin/client/App/screens/Item/components/FooterBar.js
jstockwin/keystone
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
ajax/libs/clappr/0.0.38/clappr.js
codevinsky/cdnjs
require=(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]...
ajax/libs/places.js/1.4.15/places.js
froala/cdnjs
/*! 1.4.15 | © Algolia | github.com/algolia/places */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object'...
ajax/libs/view-design/4.2.0/iview.min.js
cdnjs/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview",["vue"],t):"object"==typeof exports?exports.iview=t(require("vue")):e.iview=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function...
src/components/NodeStates/component.js
fhelwanger/bayesjs-editor
import React from 'react'; import NodeState from 'components/NodeState'; const NodeStates = ({ id, states, stateHeight, stateWidth, ...props }) => states.map((state, index) => ( <NodeState key={`${id}-${state}`} state={state} index={index} height={stateHeight} width={state...
src/svg-icons/editor/border-inner.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderInner = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ...
src/Menu.js
diginatu/nagome-webui
import React, { Component } from 'react'; import {Page, List, ListItem, ListHeader, Icon} from 'react-onsenui'; import ons from 'onsenui'; import {ngm} from './NagomeConn.js'; import SettingPlugin from './SettingPlugin.js'; import SettingAccount from './SettingAccount.js'; import SettingSlots from './SettingSlots.js';...
src/svg-icons/content/inbox.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
shared/modules/app/headerTags.js
founderlab/fl-base-webapp
import React from 'react' export default ({props}) => ([ <meta key={1} charSet="utf-8" />, <meta key={2} httpEquiv="X-UA-Compatible" content="IE:edge" />, <meta key={3} name="viewport" content="width=device-width initial-scale=1" />, <meta key={7} name="apple-mobile-web-app-capable" value="yes" />, <link ...
client/modules/Product/pages/ProductListPage/ProductListPage.js
Dokvel/outfit_ua
/** * Created by alex on 15.09.16. */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import ProductListItem from '../../components/ProductListItem/ProductListItem'; import styles from './ProductListPage.css'; // Import Selectors import { getProducts } from '../../ProductReducer'; ...
packages/react/src/components/Footer.js
wq/wq.app
import React from 'react'; import { useComponents } from '../hooks'; export default function Footer() { const { FooterContent } = useComponents(); return ( <center> <small> <FooterContent /> </small> </center> ); }
src/components/Header.js
WillJHaggard/wjh
import React from 'react' function Header(props) { let style = {fontFamily: '"Avenir Next", Helvetica', fontSize: '98px'} return <p {...props} style={style} /> } export default Header;
ajax/libs/yui/3.4.0pr2/event-custom-base/event-custom-base.js
Sneezry/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
client/components/charts/chart-base.js
ZeHiro/kresus
import React from 'react'; export default class ChartComponent extends React.Component { container = null; componentWillUnmount() { if (this.container !== null) { this.container.destroy(); this.container = null; } } redraw() { window.alert('not yet impl...
src/components/shared/sims/date.js
FranckCo/Operation-Explorer
import React from 'react'; import { stringToDate } from 'utils/moment'; import './date.css'; export default ({ date }) => <div className="date">{stringToDate(date)}</div>;
test/search/SearchBar_spec.js
sebradloff/movie-surfer
import React from 'react'; import SearchBar from '../../src/search/SearchBar'; import expect from 'expect'; import nock from 'nock'; import { mount } from 'enzyme'; import { browserHistory } from 'react-router'; import sinon from 'sinon'; import path from 'path'; import fs from 'fs'; const fileLocation = path.join(__...
ajax/libs/forerunnerdb/1.3.48/fdb-core+persist.min.js
amoyeh/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
brandonlilly/react-router
import React from 'react'; class Grades extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments; return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment.grade} - {assi...
ajax/libs/react-table/6.7.2/react-table.js
BenjaminVanRyseghem/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactTable=t(require("react")):e.ReactTable=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exp...
tests/routes/Counter/components/Counter.spec.js
ZachShaw/portfolio-react
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
examples/real-world/routes.js
mikekidder/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
tests/utils.js
v8187/regex-generator
import React from 'react'; import { shallow } from 'enzyme'; import { CategorizedValue } from '../src/CategorizedValue'; import { CategorizedValueModel } from '../src/../models/CategorizedValue.model'; export const rndWrapper = (dumData) => { return shallow(<CategorizedValue data={dumData} onChange={data => { }} ...
web/src/js/components/Search/FirstSearchView.js
gladly-team/tab
import React from 'react' import { replaceUrl, searchBaseURL } from 'js/navigation/navigation' // import { SEARCH_INTRO_QUERY_ENGLISH } from 'js/constants' import { detectSupportedBrowser } from 'js/utils/detectBrowser' import { CHROME_BROWSER, FIREFOX_BROWSER, SEARCH_SRC_CHROME_EXTENSION, SEARCH_SRC_FIREFOX_EX...
app/javascript/mastodon/features/notifications/components/notification.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { injectIntl, FormattedMessage } from 'react-intl'; ...
ajax/libs/omniscient/2.1.0/omniscient.min.js
gswalden/cdnjs
/** * Omniscient.js v2.1.0 * Authors: @torgeir,@mikaelbr ***************************************/ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t...
src/js/components/pc_news_details.js
ZSMingNB/react-news
import React from 'react'; import {Row, Col, BackTop} from 'antd'; import PCHeader from './pc_header'; import PCFooter from './pc_footer'; import PCNewsImageBlock from './pc_news_image_block'; import CommonComments from './common_comments'; export default class PCNewsDetails extends React.Component { constructor() { ...
docs/src/pages/customization/components/DynamicCSSVariables.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Switch from '@material-ui/core/Switch'; const useStyles = makeStyles({ button: { background: 'linear-gradient(...
src/containers/Widgets/Widgets.js
delwiv/saphir
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import * as widgetActions from 'redux/modules/widgets'; import WidgetForm from 'components/WidgetForm/WidgetForm'; import { asyncConnect } from 'redux-connect'; const ...
src/routes/shows/index.js
ma489/listify
import React from 'react'; import Shows from './Shows'; var radioService = require('../../lib/radio-service'); export default { path: '/shows/:stationId', async action({ path, render, params }) { var stationId = params.stationId; var shows = await radioService.getShows(stationId); return <Shows shows...
pages/blog/index.js
uraway/Markov
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Blog</h1> <p>Coming soon....
index.android.js
JamesJin038801/CampID
import { AppRegistry } from 'react-native'; import setup from './src/setup'; AppRegistry.registerComponent('StarterApp', setup);
src/components/Socials/Socials.js
Skoli-Code/DerangeonsLaChambre
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import FacebookProvider, { Share } from 'react-facebook'; import SocialConfig from './Config'; import Link from '../Link'; import {Facebook, Twitter, LinkedIn} from '../Pictos'; import s from './Socials.css'; import history fro...
ajax/libs/jquery/1.6.1/jquery.min.js
chrillep/cdnjs
/*! * 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. ...
ajax/libs/react-datepicker/0.11.2/react-datepicker.min.js
wout/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("tether"),require("moment"),require("lodash"),require("react-onclickoutside")):"function"==typeof define&&define.amd?define(["react","tether","moment","lodash","react-onclickoutside"],t):"object"==typeof exports?e...
src/index.spec.js
kylepotts/react-dropzone
import React from 'react' import { mount, render } from 'enzyme' import { spy, stub } from 'sinon' const Dropzone = require(process.env.NODE_ENV === 'production' ? '../dist/index' : './index') // eslint-disable-line import/no-dynamic-require const DummyChildComponent = () => null let files let images describe('Dropz...
ajax/libs/jssip/0.6.30/jssip.js
kellyselden/cdnjs
/* * JsSIP v0.6.30 * the Javascript SIP library * Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan) * Homepage: http://jssip.net * License: MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de...
src/scripts/lib/react/lib/traverseAllChildren.js
sdwangbaotong/react-study
/** * 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. * */ 'use strict...
node_modules/material-ui/svg-icons/navigation/arrow-drop-down.js
firdiansyah/crud-req
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
ajax/libs/yasr/2.5.2/yasr.bundled.min.js
luhad/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
client/src/views/Footer.js
MissUchiha/CANX
import React from 'react' import {Link} from 'react-router' function Footer(props) { return ( <div className="control-nav container-fluid"> <div className="row"> <Link to={props.args.left} onClick={props.args.onClick}> <div className="col-xs-2 col-sm-2 "> </div> </Link> <Link to={...
bai/src/components/MembershipBody/index.js
blackinai/blackinai.github.io
import { Button, Container, Divider } 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 = (theme) => ({ root: { disp...
packages/core/src/icons/components/Search.js
iCHEF/gypcrete
import React from 'react'; export default function SvgSearch(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M777.2 696.3L733 740....
src/pages/js/SetAvatarPage.js
ucev/chatroom
import React from 'react'; import BasePage from './BasePage'; import { Redirect } from 'react-router-dom'; import ImageCropper from 'imagecropper'; import '../css/AvatarPage.css'; import 'imagecropper/src/css/image-cropper.css'; import MyAction from '../../state/action'; class SetAvatarPage extends BasePage { co...
admin/client/components/Forms/CreateForm.js
suryagh/keystone
import React from 'react'; import Fields from '../../fields'; import InvalidFieldType from './InvalidFieldType'; import { Alert, Button, Form, Modal } from 'elemental'; var CreateForm = React.createClass({ displayName: 'CreateForm', propTypes: { err: React.PropTypes.object, isOpen: React.PropTypes.bool, list: ...
fixtures/unstable-async/suspense/src/components/UserPage.js
kaushik94/react
import React, {Suspense} from 'react'; import {unstable_createResource} from 'react-cache'; import Spinner from './Spinner'; import {fetchUserProfileJSON, fetchUserRepositoriesListJSON} from '../api'; export default function UserPage({id}) { return ( <div style={{ display: 'grid', gridTempl...
test/regressions/site/src/tests/ListItem/SecondaryActionCheckboxListItem.js
und3fined/material-ui
// @flow weak import React from 'react'; import { ListItem, ListItemText, ListItemSecondaryAction, } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; export default function SecondaryActionCheckboxListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem b...
ajax/libs/yui/2.9.0/container/container.js
nouveller/cdnjs
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ (function () { /** * Config is a utility used within an Object to allow the implementer to * maintain a list of local configuration properties and liste...
client/src/components/SpanGraph.js
untoldwind/gotrack
import React from 'react' import ReactART from 'react-art' import ReactDOM from 'react-dom' import FetchingComponent from './FetchingComponent' import Rectangle from 'react-art/lib/Rectangle.art' import {throttle} from '../utils/dash' import {formatTotalString} from './formats' const {Surface, Group, Shape, Text, Lin...
node_modules/react-icons/ti/plug.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiPlug = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 29.2c-6.4 0-11.7-5.3-11.7-11.7h3.4c0 4.6 3.7 8.3 8.3 8.3s8.3-3.7 8.3-8.3h3.4c0 6.4-5.3 11.7-11.7 11.7z m10-9.2c-0.9 0-1.7-0.7-1.7-1.7v-5h-16.6v5c0 1-0.8 1.7-1.7 1.7s...
techCurriculum/ui/solutions/2.5/src/App.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
ajax/libs/jquery.fancytree/2.8.1/jquery.fancytree-all.js
contolini/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.8.1 * @dat...
app/components/global/ServerReconnect.js
aaroncox/vessel
// @flow import React, { Component } from 'react'; import { Button } from 'semantic-ui-react'; export default class ServerReconnect extends Component { selectServer = (e, data) => { const { refreshGlobalProps } = this.props.actions; refreshGlobalProps() } render() { return ( <Button floated=...
node_modules/enzyme/src/version.js
niukui/gitpro
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
src/components/Editor/Editor.js
zhangjingge/sse-antd-admin
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
src/client/auth/login.react.js
sljuka/portfulio
import * as actions from './actions'; import Component from '../components/component.react'; import React from 'react'; import exposeRouter from '../components/exposerouter.react'; import immutable from 'immutable'; import {focusInvalidField} from '../lib/validation'; import {msg} from '../intl/store'; @exposeRouter c...
app/containers/LanguageProvider/index.js
dvm4078/dvm-blog
/* * * 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 PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
src/js/components/icons/base/Analytics.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
examples/real-world/containers/Root.js
ariporad/redux
import React, { Component, PropTypes } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore();...
example/examples/Overlays.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.092...
app/components/resume/Basics.js
alessandrodeste/cv-react
import React, { Component } from 'react'; var Configs = require('../../config/configs.js') class Basics extends Component { render() { return ( <div className="resume__basic"> <div className="resume__basic__tops"> <h1>{this.props.basics.name}</h1> <h3>{this.props.ba...
node_modules/react-icons/io/android-arrow-dropdown-circle.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidArrowDropdownCircle = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 3.8c8.9 0 16.2 7.2 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.3-16.3-16.3 7.3-16.2 16.3-16.2z m0 21.2l7.5-7.5h-15z"/></g> </Icon> ) export def...
packages/material-ui-icons/src/Forward10Sharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z" /><path d="M10.9 16v-4.27h-.09l-1.77.63v.69l1.01-.31V16zM14.32 11.78c-.18-.07-...
Examples/UIExplorer/PickerIOSExample.js
leeyeh/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...