target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/mui/field/RichTextField.spec.js | matteolc/admin-on-rest | import React from 'react';
import assert from 'assert';
import { render } from 'enzyme';
import RichTextField, { removeTags } from './RichTextField';
describe('stripTags', () => {
it('should strip HTML tags from input', () => {
assert.equal(removeTags('<h1>Hello world!</h1>'), 'Hello world!');
asse... |
e2e-tests/production-runtime/src/pages/env-vars.js | 0x80/gatsby | import React from 'react'
import Layout from '../components/layout'
const UseEnv = ({ heading, envVar }) => (
<React.Fragment>
<h2>{heading}</h2>
<pre>
<code data-testid={heading}>{JSON.stringify(envVar)}</code>
</pre>
</React.Fragment>
)
const SecondPage = () => (
<Layout>
<h1>Using env ... |
src/js/pages/QuestionEditedStatsPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ButtonFloating from '../components/ui/ButtonFloating';
import QuestionStats from '../components/questions/QuestionStats';
import * as QuestionActionCreators from '../actions/QuestionActionCreators';
import RouterActionCreators from '..... |
ajax/libs/yui/3.15.0/datatable-body/datatable-body-coverage.js | thesandlord/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-... |
src/components/about/about.js | ahaditio/journal-frontend | import React, { Component } from 'react';
export default class About extends Component{
render() {
return (
<div class="row outerDiv">
<div class="col-xs-3 col-md-2 imageDiv" >
<img src="/assets/img/ny.jpg" alt="" class="img-responsive" />
</div>
<div>
<h2>ABOUT Bookwid... |
packages/material-ui-icons/src/TimerSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9... |
App/Components/AlertMessage.js | oreofish/v2exClient | // @flow
import React from 'react'
import { View, Text } from 'react-native'
import styles from './Styles/AlertMessageStyle'
import * as Animatable from 'react-native-animatable'
import { Metrics } from '../Themes/'
import Icon from 'react-native-vector-icons/Ionicons'
/*
import ExamplesRegistry from '../Services/Exam... |
packages/material-ui-icons/src/AccountBalanceWalletSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 18v3H3V3h18v3H10v12h11zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z" />
, 'AccountBalanceWalletSharp');
|
stories/hoc.js | pbernasconi/react-plaid-link | import React from 'react';
import { PlaidLink } from '../src';
const App = props => {
const onExit = (error, metadata) => console.log('onExit', error, metadata);
const onEvent = (eventName, metadata) =>
console.log('onEvent', eventName, metadata);
const onSuccess = (token, metadata) =>
console.log('onSu... |
flux.js | chrisf74/react-flux | import {EventEmitter} from 'events';
import React from 'react';
import flux from 'flux';
/**
* Dispatcher class
*/
export const Dispatcher = flux.Dispatcher;
/**
* Store class
*/
export class Store {
constructor(dispatcher) {
this._CHANGE = 'CHANGE';
this._actionMap = {};
this._eventEmitter = new EventEmit... |
docs/src/app/pages/components/Dropdown/ExampleDropdownConfirmation.js | GetAmbassador/react-ions | import React from 'react'
import Dropdown from 'react-ions/lib/components/Dropdown'
import Button from 'react-ions/lib/components/Button'
class ExampleDropdownConfirmation extends React.Component {
constructor(props) {
super(props)
}
state = {
status: null
}
itemSelected = value => {
const newV... |
examples/multi-index/src/index.js | algolia/react-instantsearch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'instantsearch.css/themes/algolia.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/components/PokemonList.js | billyvg/pokemon-journal | import React, { Component } from 'react';
import {
inject,
observer,
} from 'mobx-react';
import PokemonEntry from './PokemonEntry';
import styles from './PokemonList.css';
type Props = {
authStore: any;
};
@inject('authStore')
@observer
export default class PokemonList extends Component<Props> {
props: Pr... |
node_modules/react-router/es/Link.js | taforyou/testtesttest-yo | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/svg-icons/navigation/arrow-drop-up.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropUp = (props) => (
<SvgIcon {...props}>
<path d="M7 14l5-5 5 5z"/>
</SvgIcon>
);
NavigationArrowDropUp = pure(NavigationArrowDropUp);
NavigationArrowDropUp.displayName = 'NavigationArrowDrop... |
src/svg-icons/image/brightness-2.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
app/components/List/index.js | KarandikarMihir/react-boilerplate | import React from 'react';
import styles from './styles.css';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={`item-${index}`} item... |
src/svg-icons/navigation/unfold-more.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldMore = (props) => (
<SvgIcon {...props}>
<path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/>
</SvgIcon>
);
Navig... |
src/svg-icons/av/queue-play-next.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
pootle/static/js/auth/components/SignInForm.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import assign from 'object-assign';
import React from 'rea... |
src/platform/site-wide/side-nav/components/SideNav.js | department-of-veterans-affairs/vets-website | // Dependencies
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import recordEvent from 'platform/monitoring/record-event';
import { find, filter, get, map, orderBy } from 'lodash';
// Relative
import NavItem from './NavItem';
import debounce from 'plat... |
docs/src/pages/demos/dividers/ListDividers.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemText } from 'material-ui/List';
import Divider from 'material-ui/Divider';
const styles = theme => ({
root: {
width: '100%',
maxWidth: '360px',
b... |
examples/src/MultipleSections/MultipleSections.js | vezetvsem/react-autosuggest | import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function randomInt(min, max) {
return min + Math.floor(Math.random() * (max - min + 1)... |
src/utils/componentCreator.js | dialob/dialob-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* 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... |
docs/app/Examples/elements/Loader/Variations/index.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const LoaderExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
ti... |
dependency-examples/backbone_require/bower_components/jquery/jquery.js | alexmckenley/todomvc | /*!
* jQuery JavaScript Library v1.9.1
* 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-2-4
*/
(function( window, undefined ) {
// Can't do t... |
app/containers/Contact/screen.js | ledminh/ledminh-home | import styled from 'styled-components';
import React from 'react';
const Frame = styled.div`
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
min-width: 600px;
height: 200px;
`;
/*******************
* TAG COMPONENT
********************/
const Tag_Wrappe... |
src/app/components/i18n/Msg.js | backpackcoder/world-in-flames | import React from 'react'
import Reflux from 'reflux'
import LanguageStore from './LanguageStore'
let Msg = React.createClass({
mixins: [Reflux.listenTo(LanguageStore, '_onChangeLanguage')],
languageKey: LanguageStore.getData().language.key,
_onChangeLanguage: function(data){
if(data.language.ke... |
website/sections/NextSteps.js | sahat/boilerplate | import React from 'react';
import { VelocityComponent, VelocityTransitionGroup } from 'velocity-react';
const CHECK_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" version="1" width="18px" height="18px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" style={{ verticalAlign: 'bottom' }}>
<path d="M 12 2 C 6... |
public/js/vendor/@angular/forms/bundles/forms.umd.min.js | IrmantasLiepis/logo-design | /**
* @license Angular v2.1.0
* (c) 2010-2016 Google, Inc. https://angular.io/
* License: MIT
*/
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core"),require("rxjs/operator/toPromise"),require("rxjs/Subject"),require("rxjs/Observable"),require("rxjs... |
samples/react/app/components/LoadingIndicator/Circle.js | IntelliSearch/search-client | import React from 'react';
import PropTypes from 'prop-types';
import styled, { keyframes } from 'styled-components';
const circleFadeDelay = keyframes`
0%,
39%,
100% {
opacity: 0;
}
40% {
opacity: 1;
}
`;
const Circle = props => {
const CirclePrimitive = styled.div`
width: 100%;
height... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | JamesWatling/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from '../../actions/ContactActionCreators';
import DialogActionCreators from '../../actions/DialogActionCreators';
import PeerStore from '../../stores/PeerStore';
import DialogStore from '../../stores/DialogStore';... |
js/app.js | JenningsWu/Chaldea-archives | /**
* @flow
*/
import React from 'react'
import { TabNavigator } from 'react-navigation'
import FgoIndex from './fgoIndex'
import FutureSight from './futureSight'
import About from './about'
const App = TabNavigator({
FgoIndex: {
screen: FgoIndex,
},
FutureSight: {
screen: FutureSight,
},
// Event:... |
packages/material-ui-icons/src/FlightLandSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.5 19h19v2h-19v-2zm16.84-3.15c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l16.57 4.44z" />
, 'FlightLandSharp');
|
src/components/Subject/Subject.js | ndxm/NDReactBoilerplate | import React from 'react';
import { connect } from 'react-redux';
import Router,{ Link } from 'react-router';
import styles from './subject.css';
import { loadSubjectAreas } from '../../actions/SubjectAreasAction';
import { loadSubjectList } from '../../actions/SubjectListAction';
import { loadSubjectTypes } from '../.... |
examples/nextjs/pages/_document.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import Document, { Head, Main, NextScript } from 'next/document';
import flush from 'styled-jsx/server';
class MyDocument extends Document {
render() {
const { pageContext } = this.props;
return (
<html lang="en" dir="ltr">
<Head>
... |
src/components/VideoPlayer.js | mimukit/react-youtube-app | import React from 'react';
const VideoPlayer = ({ video }) => {
if (!video) {
return <div>Loading video player...</div>;
}
const videoId = video.id.videoId;
const url = `https://youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive emb... |
src/pages/AboutPage.js | lincmin/FirstReactApp | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
class AboutPage extends Component {
static navigationOptions = {
title: '关于',
};
render() {
return (
<View>
<Text>
About
... |
src/index.js | halkeye/sauce-debug-client | const ipcRenderer = window.require('electron').ipcRenderer;
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { loadLogins } from './actions.js';
import configureStore from './store/configureStore';
import 'app.css';
const initialStore = window.require('rem... |
src/enzyme-adapter-react-16/detectFiberTags.js | btford/react-palm | import React from 'react';
import ReactDOM from '../react-dom';
import { fakeDynamicImport } from 'enzyme-adapter-utils';
function getFiber(element) {
const container = global.document.createElement('div');
let inst = null;
class Tester extends React.Component {
render() {
inst = this;
return ele... |
packages/material-ui-icons/src/PhotoFilterOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2z" /><path d="M16.06 7.94L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.... |
fields/types/color/ColorField.js | dvdcastro/keystone | import { SketchPicker } from 'react-color';
import { css, StyleSheet } from 'aphrodite/no-important';
import Field from '../Field';
import React from 'react';
import { Button, FormInput, InputGroup } from 'elemental';
import transparentSwatch from './transparent-swatch';
import theme from '../../../admin/client/theme';... |
EZPlayerExample_RN/__tests__/App-test.js | easyui/EZPlayer | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
src/homepage/welcome_calendar.js | MichalKononenko/OmicronClient | /**
* Created by Michal on 2016-04-04.
*/
import React from 'react';
import {Glyphicon, Panel} from 'react-bootstrap';
import {connect} from 'react-redux';
import BigCalendar from 'react-big-calendar';
import moment from 'moment';
import Reducer, {reducer_factory} from '../reducer';
import 'react-big-calendar/lib/cs... |
packages/mineral-ui-icons/src/IconLooks.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 IconLooks(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
test/AffixSpec.js | Tomyail/react-overlays | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-dom/test-utils';
import Affix from '../src/Affix';
import { render, injectCss } from './helpers';
describe('<Affix>', () => {
let mountPoint;
let handlers;
before(() => {
injectCss(`
html, body { margin: 0... |
packages/slate-react/test/rendering/fixtures/custom-mark.js | ashutoshrishi/slate | /** @jsx h */
import React from 'react'
import h from '../../helpers/h'
function Bold(props) {
return React.createElement('strong', null, props.children)
}
function renderMark(props) {
switch (props.mark.type) {
case 'bold':
return Bold(props)
}
}
export const props = {
renderMark,
}
export const... |
example/with-mock-auth/template.js | iansinnott/react-static-webpack-plugin | import React from 'react';
const getRedirect = ({ reactStaticCompilation }) => {
return reactStaticCompilation && reactStaticCompilation.redirectLocation;
};
const Html = (props) => (
<html lang='en'>
<head>
<meta charSet='utf-8' />
<meta httpEquiv='X-UA-Compatible' content='IE=edge' />
<met... |
lib/server.js | imranolas/react-engine | /*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2015 PayPal |
| ... |
ajax/libs/material-ui/5.0.0-beta.2/legacy/Hidden/Hidden.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import HiddenJs from"./HiddenJs";import HiddenCss from"./HiddenCss";import{jsx as _jsx}from"react/jsx-runtime";f... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js | froala/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
renderer/components/Settings/SettingsFieldsGeneral.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { currencies, locales, getLanguageName } from '@zap/i18n'
import { Bar, DataRow } from 'components/UI'
import { Toggle, Select, FieldLabelFactory } from 'components/Form'
import messages from './messages'
const FieldLabel = FieldLabelFactory(messages)... |
test/electron-renderer/ui/AudioDeviceSelector_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai from 'chai';
import { mount } from 'enzyme';
import AudioDeviceSelector from '../../../build/renderer/ui/components/settings/AudioDeviceSelector';
import materialUIContext from './_materialUIContext';
import mockSettings, { getVars, moc... |
ajax/libs/forerunnerdb/1.3.551/fdb-core+persist.js | joeyparrish/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/routes/payroll/components/search-aliases.js | ADourgarian/Syscoin-Payroll | import React from 'react';
import Select from 'react-select';
import fetch from 'isomorphic-fetch';
import {sys} from '../../../config.js';
const Aliases = React.createClass({
displayName: 'Aliases',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {
backspaceRemoves: true,
mul... |
client/src/containers/Quiz/Quiz.js | pqmcgill/stamp-wedding-app | import React from 'react';
import QuizQuestion from '../../components/QuizQuestion';
import Score from '../../components/Score';
import CompatibleImg from '../../components/CompatibleImg';
import RSVPButton from '../../components/RSVPButton';
import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite';
import { css }... |
ajax/libs/forerunnerdb/1.3.801/fdb-core+persist.js | cdnjs/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... |
node_modules/react-icons/md/unfold-less.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdUnfoldLess = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.7 9l-7.7 7.6-7.7-7.6 2.4-2.4 5.3 5.4 5.3-5.4z m-15.4 22l7.7-7.6 7.7 7.6-2.4 2.4-5.3-5.4-5.3 5.4z"/></g>
</Icon>
)
export default MdUnfoldLess
|
site/src/site.js | elementalui/elemental | import React from 'react';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
import classNames from 'classnames';
import createHistory from 'history/createBrowserHistory';
import { Router, Route, Link, Switch } from 'react-router-dom';
const browserHistory = createHistory();
const N... |
src/Calendar.js | ygt-mikekchar/react-calendar-pane | import React from 'react';
import moment from 'moment';
import Day from './Day';
import DayOfWeek from './DayOfWeek';
import Week from './Week';
let Calendar = React.createClass({
propTypes: {
onSelect: React.PropTypes.func.isRequired,
date: React.PropTypes.object,
month: React.PropTypes.... |
demo/components/themeList/themeList.js | rcaferati/react-awesome-button | import React from 'react';
import PropTypes from 'prop-types';
import { Theme } from '../index';
import Modules from '../../helpers/modules';
export default function List({ styles }) {
return (
<div className={styles.themeList}>
{List.renderItems()}
</div>
);
}
List.renderItems = () => (
Modules.T... |
src/js/components/Proposal/ProposalCard/ProposalCard.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import RoundedImage from '../../ui/RoundedImage/RoundedImage.js';
import styles from './ProposalCard.scss';
import translate from '../../../i18n/Translate';
import MatchingBars from "../../ui/MatchingBars/MatchingBars";
import ProposalIcon fr... |
packages/material-ui-icons/src/PhonelinkSetupTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7 3v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2z" /><path d="M9.5 15.5c.29-.12.55-.29.8-.48l-.02... |
ajax/libs/react/0.5.2/JSXTransformer.js | juliusrickert/cdnjs | /**
* JSXTransformer v0.5.2
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m... |
frontend/src/lib/mui-components/ComboboxController.js | jf248/scrape-the-plate | import React from 'react';
import Downshift from 'downshift';
import { Compose, State, renderProps } from 'lib/react-powerplug';
import { wrapInArray } from 'lib/mui-components/utils'; // eslint-disable-line import/no-internal-modules
ComboboxController.defaultProps = {
defaultInputValue: '',
defaultSelectedItem... |
ajax/libs/redux-form/4.1.0/redux-form.js | seogi1004/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["ReduxForm"] = facto... |
src/index.js | budunwang/React-Gallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
client/components/landingPage.js | VaRt-io/V-aRt | import React, { Component } from 'react';
import {OurCarousel} from './index';
export default class Main extends Component{
render(){
return (
<div>
<OurCarousel />
<div id="landingPageDescriptors">
<div className=" col-xs-12 col-md-6 col-lg-4">
<... |
src/main/app/scripts/views/LostPassword.js | ondrejhudek/hudy-app | import React from 'react'
import { Link } from 'react-router'
import { Card, FlatButton, RaisedButton, Snackbar } from 'material-ui'
class LostPassword extends React.Component {
constructor(props) {
super(props)
this.state = {
autoHideDuration: 5000,
message: 'Guest credent... |
client/components/LocationPicker/LocationPicker.js | joshjg/explore | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import GoogleMap from 'google-map-react';
import Dialog from 'material-ui/Dialog';
import styles from './LocationPicker.css';
import Marker from '../Marker';
const LocationPicker = props => (
<Dialog
title="Select the exact location"
... |
ajax/libs/react/0.5.1/JSXTransformer.js | drewfreyling/cdnjs | /**
* JSXTransformer v0.5.1
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m... |
src/test-utils/index.js | sjofartstidningen/bryggan | /* eslint-disable import/no-extraneous-dependencies, react/prop-types */
import React from 'react';
import { ThemeProvider } from 'styled-components';
import { BrowserRouter } from 'react-router-dom';
import { theme } from '../styles';
const WithContexts = ({ children }) => (
<BrowserRouter>
<ThemeProvider theme... |
node_modules/re-base/examples/firebase/github-notetaker/app/components/Github/Repos.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import PropTypes from 'prop-types';
class Repos extends React.Component {
render() {
var repos = this.props.repos.map((repo, index) => {
return (
<li className="list-group-item" key={index}>
{repo.html_url && (
<h4>
<a href={repo.html_u... |
chrome/browser/resources/chromeos/login/oobe.js | Plain-Andy-legacy/android_external_chromium_org | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Out of the box experience flow (OOBE).
* This is the main code for the OOBE WebUI implementation.
*/
<include src="login_commo... |
node_modules/react-icons/io/chatbubbles.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoChatbubbles = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5.5 30.5c-0.1 0 0-0.1-0.1-0.2-1.2-1.7-1.9-3.8-1.9-6 0-3.3 1.5-6.3 3.8-8.3-0.1 0.9-0.3 1.7-0.3 2.7 0 7.2 6.1 13.1 13.6 13.1 1.2 0 2.4-0.2 3.4-0.5-2.1 2.5-5.3 4.2-... |
ajax/libs/react-native-web/0.0.0-dfb716c98/vendor/react-native/Animated/createAnimatedComponent.js | cdnjs/cdnjs | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.leng... |
node_modules/react-bootstrap/es/NavItem.js | jkahrs595/website | 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 ... |
app/containers/Root.js | bagnz0r/ichigo-player | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<Router history=... |
src/components/ToolbarSearchBox.js | juanda99/arasaac | import React from 'react'
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from ... |
packages/material-ui-icons/src/CheckOutlined.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="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" /></React.Fragment>
, 'CheckOutlined');
|
PageOne.js | r0b1n/rnrf-relay-example | import React, { Component } from 'react';
import {
Text,
View,
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import Relay from 'react-relay';
class PageOne extends Component {
render() {
return (
<View style={{flex: 1, justifyContent: 'center', padding: 10}}>
<Te... |
admin/client/App/screens/List/components/UpdateForm.js | Pop-Code/keystone | import React from 'react';
import Select from 'react-select';
import { findDOMNode } from 'react-dom';
import assign from 'object-assign';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { plural } from '../../../../utils/string';
import { BlankState, Button,... |
services/QuillLMS/client/app/bundles/Diagnostic/components/renderForQuestions/generateFeedbackString.js | empirical-org/Empirical-Core | import React from 'react'
import _ from 'underscore'
let C = require("../../constants").default
const feedbackStrings = C.FEEDBACK_STRINGS
export default function generateFeedbackString(attempt) {
//getErrorsForAttempt function below
const errors = _.pick(attempt, ...C.ERROR_TYPES);
// add keys for react list... |
src/utils/CustomPropTypes.js | xsistens/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
src/js/components/icons/base/Robot.js | odedre/grommet-final | /**
* @description Robot SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
frontend/jqwidgets/jqwidgets-react/react_jqxdocking.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxDocking extends React.Component {
componentDidMount() {
let options = this.manage... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | berserkertdl/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... |
app/imports/ui/client/components/ScrumBoard/Column.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { DropTarget } from 'react-dnd';
const columnTarget = {
drop(props) {
return {state : props.state};
}
};
function collect(connect, monitor) {
return {
connectDropTarget: connect.dropTarget(),
isOver: monitor.isOver()
};
}
class Column extends Compo... |
blueocean-dashboard/src/main/js/creation/bitbucket/server/BbServerFlowManager.js | alvarolobato/blueocean-plugin | import React from 'react';
import { i18nTranslator } from '@jenkins-cd/blueocean-core-js';
import waitAtLeast from '../../flow2/waitAtLeast';
import BbCloudFlowManager from '../cloud/BbCloudFlowManager';
import BbLoadingStep from '../steps/BbLoadingStep';
import BbOrgListStep from '../steps/BbOrgListStep';
import BbC... |
packages/material-ui-icons/src/StorageRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2zm4 1H4V5h2v2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9... |
client/src/pages/game.js | DailyGrind/Chain-Reaction | import React, { Component } from 'react';
import Game from 'src/components/game';
import Stats from 'src/containers/stats';
import Matrix from 'src/containers/matrix';
import PlayerUp from '../components/settings';
export default class GamePage extends Component {
render() {
return (
<Game>
<Matrix... |
ajax/libs/jquery/1.4.0/jquery.min.js | KZeni/cdnjs | /*!
* jQuery JavaScript Library v1.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://docs.jquery.com/License
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL License... |
src/MenuItem.js | mxc/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
ajax/libs/react/0.5.1/react-with-addons.js | brix/cdnjs | /**
* React (with addons) v0.5.1
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
return ... |
ajax/libs/algoliasearch/3.24.0/algoliasearch.jquery.js | tholu/cdnjs | /*! algoliasearch 3.24.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o... |
mxcube3/ui/containers/PleaseWaitDialog.js | bolmsten/mxcube3 | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Modal, ProgressBar, Button } from 'react-bootstrap';
import { setLoading } from '../actions/general';
export class PleaseWaitDialog extends React.Component {
constructor(props) {
super(props);
... |
blueocean-material-icons/src/js/components/svg-icons/content/add-box.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentAddBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddBox.displayName = 'ContentAddBox';
Conten... |
src/svg-icons/toggle/indeterminate-check-box.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleIndeterminateCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"/>
</SvgIcon>
);
ToggleIndeterminateCheck... |
packages/benchmarks/styled-components/inline-style/client/index.js | A-gambit/CSS-IN-JS-Benchmarks | import ReactDOM from 'react-dom';
import React from 'react';
import App from 'benchmarks-utils';
import Table from './Table';
import './index.html';
ReactDOM.render(<App table={Table} />, document.getElementById('root'));
|
src/svg-icons/action/loyalty.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLoyalty = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.