target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
test/StyleSheetRegistrySpec.js | michalkvasnicak/stylo | import { expect } from 'chai';
import StyleSheetRegistry from '../src/StyleSheetRegistry';
import StyleSheet from '../src/StyleSheet';
import { stub, spy } from 'sinon';
import jsdom from './jsdom';
import React from 'react';
describe('StyleSheetRegistry', () => {
describe('#styleElement()', () => {
let r... |
js/App/Components/Sensor/AddSensor/AddSensorContainer.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/svg-icons/editor/vertical-align-top.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
example/stories/simple.js | Kilix/storybook-addon-jsx | import React from 'react';
import { storiesOf } from '@storybook/react';
const Simple = ({ children }) => (
<div>
<span>Hello</span>
{children}
</div>
);
storiesOf('Simple Test', module)
.addWithJSX('No children - No options', () => <Simple />)
.addWithJSX('No children - Rename', () => <Simple />, {
... |
react-ui/src/components/portifolio/Gallery.js | MaGuangChen/resume-maguangchen | import React from 'react';
const Gallery = (props) => {
const { background, title, text, link } = props;
const backgroundStyle = {
background: `url(${background})center no-repeat`,
backgroundSize: 'cover'
}
const linkTo = (e) => {
e.preventDefault();
window.open(`${link}... |
packages/reactor-modern-boilerplate/src/About/About.js | markbrocato/extjs-reactor | import React from 'react';
import { Container } from '@extjs/reactor/modern';
export default function About() {
return (
<Container padding="20">
<h1>About this App</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget leo sed mi imperdiet dictum a id turpis. ... |
packages/material-ui-icons/src/VideocamOffTwoTone.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12.39 8L15 10.61V8zM5 8v8h9.73l-8-8z" opacity=".3" /><path d="M3.41 1.86L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.55-.18L19.73 21l1.41-1.41L3.41 1.86zM... |
dist/1.10.0/jquery-ajax-css-effects.min.js | eric-seekas/jquery-builder | /*! jQuery v1.10.0 -css,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],d="1.10.0 -css,-aj... |
client/src/components/Explorer/ExplorerPanel.js | nimasmi/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import FocusTrap from 'focus-trap-react';
import { STRINGS, MAX_EXPLORER_PAGES } from '../../config/wagtailConfig';
import Button from '../Button/Button';
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner';
import Transition, { PUSH, POP } from... |
src/dataTypes/RegExp.js | mrose/react-dump | import React from 'react';
import { Row, Table } from '../format';
export const RegExp = ( props ) => {
const obj = props.obj || null
const opts = props.opts || { expand:true
, format:'html'
, label:'RegExp'
}
let { labe... |
src/pages/signup.js | guzmonne/mcp | import React from 'react'
import SignupForm from '../components/signup/form.signup.js'
import RowColXS12 from '../components/bootstrap/row.col-xs-12.js'
import Logo from '../components/helpers/logo.helper.js'
export default class Signup extends React.Component {
render(){
return (
<div className="Signup">
<R... |
ReactNative/node_modules/react-navigation/src/views/Header/ModularHeaderBackButton.js | tahashahid/cloud-computing-2017 | import React from 'react';
import { I18nManager, Image, Text, View, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
class ModularHeaderBackButton extends React.PureComponent {
static defaultProps = {
tintColor: '#037aff',
truncatedTitle: 'Back',
// eslint-disable-next-lin... |
springboot/GReact/src/main/resources/static/app/routes/forms/jcrop/containers/ApiPanelControls.js | ezsimple/java | import React from 'react'
import OptionToggle from './../components/OptionToggle'
import OptionRadio from './../components/OptionRadio'
export default () =>(
<div className="row" style={{
padding: '0 .75rem .5rem'
}}>
<fieldset className="col-md-4">
<legend>Selection properties</l... |
client/src/routes/index.js | OpenSecTre/sword | import React from 'react';
import { Route, IndexRoute } from 'react-router';
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardle... |
lib/svg-icons/social/person-outline.js | checkraiser/material-ui2 | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var SocialPersonOutline = React.createClass({
displayName: 'SocialPersonOutline',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M12 5.9c1.16 ... |
docs/pages/components/button-group.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/button-group';
const requireDemo = require.context('docs/src/pages/components/button-group', false, /\.(js|tsx)$/);
co... |
blueocean-material-icons/src/js/components/svg-icons/editor/bubble-chart.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorBubbleChart = (props) => (
<SvgIcon {...props}>
<circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/>
</SvgIcon>
);
EditorBubbleChart.displayName = 'EditorBubbleChart';
EditorBubbleCh... |
src/AppBar/AppBar.js | Lynx-Productions/OPeM | /***
* Copyright 2017 - present Lynx Productions
*
* 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 applicabl... |
public/jspm_packages/npm/material-ui@0.14.4/lib/svg-icons/image/filter-8.js | nayashooter/ES6_React-Bootstrap | /* */
'use strict';
Object.defineProperty(exports, "__esModule", {value: true});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi... |
fields/types/localfile/LocalFileField.js | BlakeRxxk/keystone | import Field from '../Field';
import React from 'react';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
return this.refs.fileField.getDOMNode();
},
changeFile ()... |
interfaces/global.js | simonfl3tcher/react-progressive-web-app | import React from 'react';
declare module CSSModule {
declare var exports: { [key: string]: string };
}
declare module OfflinePlugin {
declare function install(): any;
}
declare interface System {
static import: (module: string) => Promise<{
default: any,
inc: number,
}>
};
declare modul... |
Server/app/assets/javascripts/components/NoteComponent.js | codemeow5/Carnival | import React from 'react';
export var NoteComponent = React.createClass({
render: function(){
return (
<div className="note note-info">
<p>{this.props.note}</p>
</div>
);
}
});
export var NoteWithTitleComponent = React.createClass({
rend... |
ajax/libs/analytics.js/2.8.6/analytics.min.js | blairvanderhoof/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
src/layout/hero-head.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class HeroHead extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
className: PropT... |
node_modules/react-router/es6/RouterContext.js | sharonjean/React-Netflix | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
app/src/components/content/UserPage/index.js | ouxu/NEUQ-OJ | /**
* Created by out_xu on 16/12/30.
*/
import React from 'react'
import QueueAnim from 'rc-queue-anim'
import { Icon, Tooltip } from 'antd'
import { Link } from 'react-router'
import './index.less'
import DashCard from './DashCard'
import StatusCard from './StatusCard'
import GroupStatus from './GroupStatus'
class... |
ajax/libs/vue/0.12.0/vue.js | bspaulding/cdnjs | /**
* Vue.js v0.12.0
* (c) 2015 Evan You
* Released under the MIT License.
*/
(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(typ... |
test/components/label-spec.js | nordsoftware/react-foundation | import React from 'react';
import { render } from 'enzyme';
import { expect } from 'chai';
import { Label } from '../../src/components/label';
import { Colors } from '../../src/enums';
// TODO: Add test cases for invalid enum values
describe('Label component', () => {
it('sets tag name', () => {
const componen... |
spec/components/snackbar.js | jasonleibowitz/react-toolbox | import React from 'react';
import Button from '../../components/button';
import Snackbar from '../../components/snackbar';
class SnackbarTest extends React.Component {
state = {
active: false
};
handleSnackbarClick = () => {
this.setState({active: false});
};
handleSnackbarTimeout = () => {
thi... |
frontend/capitolwords-spa/src/components/Avatar/Avatar.story.js | sunlightlabs/Capitol-Words | import React from 'react';
import { storiesOf } from '@storybook/react';
import g from 'glamorous';
import Avatar from './Avatar';
const people = [
{
"url": "https://www.congress.gov/member/raja-krishnamoorthi/K000391",
"imageUrl": "https://theunitedstates.io/images/congress/225x275/K000391.jpg",
"par... |
src/components/common/svg-icons/av/branding-watermark.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | arbas/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
ajax/libs/react-dom/18.0.0-alpha-1a3f1afbd/umd/react-dom-server.browser.development.js | cdnjs/cdnjs | /** @license React vundefined
* react-dom-server.browser.development.js
*
* 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.
*/
(function (global, factory) {
typeof exports === 'object'... |
blueocean-material-icons/src/js/components/svg-icons/content/drafts.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>
</SvgIcon>
);
ContentDrafts.di... |
src/components/Content.react.js | AllenFang/react-babel-demo | import React from 'react';
export default React.createClass({
render() {
return (
<div>Current value: {this.props.count}</div>
)
}
}); |
packages/react-art/npm/Circle.js | silvestrijonathan/react | /**
* Copyright (c) 2013-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.
* @typechecks
*
* Example usage:
* <Circle
* radius={10}
* stroke="green"
* strokeWidth={3}
* fill="blue"
* />
*
*/
'use ... |
src/icons/FlightLandIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FlightLandIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M5 38h38v4H5zm14.37-11.46l8.69 2.33 10.63 2.85c1.6.43 3.24-.52 3.67-2.12.43-1.6-.52-3.24-2.12-3.67l-10.... |
clients/libs/webpage/src/lib/plugins/pressure/components/targets.js | nossas/bonde-client | import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'react-intl'
import { arrayUtils, pressureUtils } from '../utils'
if (require('exenv').canUseDOM) require('./targets.scss')
const parseTarget = target => {
const targetSplit = target.split('<')
const valid = targetSplit.... |
src/server.js | transitlinks/web-app | import { getLog } from './core/log';
const log = getLog('server');
import 'babel-polyfill';
import './serverIntlPolyfill';
import path from 'path';
import http from 'http';
import https from 'https';
import express from 'express';
import cookieParser from 'cookie-parser';
import requestLanguage from 'express-request-l... |
app/javascript/mastodon/features/account/components/header.js | 5thfloor/ichiji-social | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
Components/ResourceMixin.js | tradle/tim | import _ from 'lodash'
import Icon from 'react-native-vector-icons/Ionicons';
import React from 'react'
import {
Text,
View,
ActivityIndicator,
Linking,
TouchableOpacity
} from 'react-native'
import {Column as Col, Row} from 'react-native-flexbox-grid'
// import JSONTree from 'react-native-json-tree'
import ... |
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleDisabled = () => (
<Image src='/assets/images/wireframe/image.png' size='medium' disabled />
)
export default ImageExampleDisabled
|
packages/storybook/stories/tab.js | xcv58/Tab-Manager-v2 | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Tab from 'components/Tab/Tab'
import DraggableTab from 'components/Tab/DraggableTab'
import Icon from 'components/Tab/Icon'
import store from '../.storybook/mock-store'
store.windowStore.getA... |
packages/reactor-kitchensink/src/examples/FormFields/SearchField/SearchField.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel, Container, Button, SearchField, TitleBar } from '@extjs/ext-react'
export default class SearchFieldExample extends Component {
render() {
return (
<Container width="600" layout="vbox" padding={20}
platformConfig={{
... |
src/components/icons/EyeRegular.js | lmammino/loige.co | import React from 'react'
const EyeRegular = props => (
<svg
aria-hidden="true"
data-prefix="far"
data-icon="eye"
className="svg-inline--fa fa-eye fa-w-18"
viewBox="0 0 576 512"
width="1em"
height="1em"
{...props}
>
<path
fill="currentColor"
d="M569.354 231.631C512.9... |
node_modules/material-ui/lib/svg-icons/action/assignment.js | Sporks/Doc-tor | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
Week_12/SOAPClient/SOAPClient/Scripts/jquery-1.10.2.js | peteratseneca/dps907fall2015 | /* NUGET: BEGIN LICENSE TEXT
*
* 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 or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
app/scripts/components/node-details/node-details-generic-table.js | hustbill/network-verification-ui | import React from 'react';
import sortBy from 'lodash/sortBy';
import { Map as makeMap } from 'immutable';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import {
isNumber,
getTableColumnsStyles,
genericTableEntryKey
} from '../../utils/node-details-utils';
import NodeDetailsTabl... |
ajax/libs/yui/3.14.0/event-custom-base/event-custom-base-coverage.js | jemmy655/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,... |
website/src/pages/help/index.js | blitze/phpBB-ext-sitemaker | import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import Translate from '@docusaurus/Translate';
import Hero from '../../components/Hero';
function Help() {
return (
<Layout title="Help">
<Hero>
<h2>
<Translate>Need help?</Translate>
</h2>
<p>
... |
src/components/books/preview/BookPreviewFooter.js | great-design-and-systems/cataloguing-app | import { FontAwesome, ResponsiveButton } from '../../common/';
import { LABEL_ADD_BOOK, LABEL_CLOSE } from '../../../labels/';
import PropTypes from 'prop-types';
import React from 'react';
export const BookPreviewFooter = ({ closeDialog, addBook, readOnly }) => {
return (<div className="btn-group btn-md">
{!re... |
src/interface/layout/Footer/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import DiscordLogo from 'interface/icons/DiscordTiny';
import GithubLogo from 'interface/icons/GitHubMarkSmall';
import PatreonIcon from 'interface/icons/PatreonTiny';
import './style.css';
class Footer extends React.PureComponent {
render() {
return (
<footer>
<div cla... |
src/svg-icons/av/call-to-action.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvCallToAction = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/>
</SvgIcon>
);
AvCallToAction = pure(AvCallToAction);... |
src/modules/background/components/FullscreenImage/index.js | emadalam/mesmerized | import React, { Component } from 'react';
import Image from '@components/Image';
import './style.css';
export const IMAGE_TYPE = {
main: 'main',
placeholder: 'placeholder'
};
class FullScreenImage extends Component {
state = {
isLoading: true,
};
handlePhotoLoad = (type = IMAGE_TYPE.main)... |
src/svg-icons/action/spellcheck.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpellcheck = (props) => (
<SvgIcon {...props}>
<path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-... |
src/AddTodo.js | lishengzxc/ReactReduxTodo | import React from 'react';
import ReactDOM from 'react-dom';
export default class AddTodo extends React.Component {
render() {
return (
<div>
<input type='text' ref='input'/>
<button onClick={e => this.handleClick(e)}>
Add
</button>
</div>
);
}
handleClick(e... |
examples/src/components/States.js | paulmillr/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = React.createClass({
displayName: 'StatesField',
propTypes: {
label: React.PropTypes.string,
searchable: React.PropTypes.bool,
},
getDefaultProps () {
return {
label: 'States:',
sea... |
src/components/Feedback/Feedback.js | Zubergoff/project | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
ajax/libs/material-ui/4.9.4/es/FormControl/FormControlContext.js | cdnjs/cdnjs | import React from 'react';
/**
* @ignore - internal component.
*/
const FormControlContext = React.createContext();
if (process.env.NODE_ENV !== 'production') {
FormControlContext.displayName = 'FormControlContext';
}
export function useFormControl() {
return React.useContext(FormControlContext);
}
export defa... |
app/containers/Hero/HeroContainer.js | saelili/F3C_Website | import React from 'react'
import { Hero } from '../../components'
const HeroContainer = () => (
<Hero />
)
export default HeroContainer
|
test/PaginationSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pagination from '../src/Pagination';
describe('Pagination', function () {
it('Should have class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Pagination>Item content</Pagination>
);
assert.... |
src/App.js | iamtonybologna/freebird | import React, { Component } from 'react';
import cookie from 'react-cookie';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import {fade} from 'material-ui/utils/color... |
frontend/src/Settings/ImportLists/ImportLists/AddImportListItem.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
import translate from... |
core/router.js | a76/eric | import React from 'react'
function decodeParam(val) {
if (!(typeof val === 'string' || val.length === 0)) {
return val;
}
try {
return decodeURIComponent(val);
} catch (err) {
if (err instanceof URIError) {
err.message = `Failed to decode param '${val}'`;
err.status = 400;
}
t... |
test/daypickerinput/rendering.js | saenglert/react-day-picker | import React from 'react';
import ReactDOM from 'react-dom';
import { shallow, mount } from 'enzyme';
import DayPickerInput from '../../src/DayPickerInput';
import DayPicker from '../../src/DayPicker';
describe('DayPickerInput', () => {
describe('rendering', () => {
it('should have default props', () => {
... |
packages/react-dom/src/server/ReactPartialRenderer.js | krasimir/react | /**
* Copyright (c) 2013-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.
*
* @flow
*/
import type {ReactElement} from 'shared/ReactElementType';
import type {
ReactProvider,
ReactConsumer,
ReactContext,
}... |
src/components/Pagination.js | MunGell/elemental | var React = require('react');
var classNames = require('classnames');
module.exports = React.createClass({
displayName: 'Pagination',
propTypes: {
className: React.PropTypes.string,
currentPage: React.PropTypes.number.isRequired,
onPageSelect: React.PropTypes.func,
pageSize: React.PropTypes.number.isRequired... |
packages/logos/src/percona.js | geek/joyent-portal | import React from 'react';
export default props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...props}>
<title>Artboard 1 copy 11</title>
<path
fill="#1B3240"
d="M21.05 3.4c-9.9 0-18 7.9-18 17.5A17.69 17.69 0 0 0 11 35.5V20.7a10.2 10.2 0 0 1 10-10.2 10.18 10.18 0 0 1 10 10.4 ... |
src/pages/paper/edit/editForm.js | sunway-official/acm-admin | import React, { Component } from 'react';
import CustomInput from 'components/CustomInput';
import { renderSelectField } from 'components/render';
import { reduxForm, Field } from 'redux-form';
import validate from '../validate';
import { RaisedButton, Subheader, MenuItem } from 'material-ui';
import { Link } from 'rea... |
src/components/table-item.js | waywaaard/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import Radium from 'radium';
@Radium
export default class TableItem extends Component {
render() {
const typefaceStyle = this.context.typeface || {};
return (
<td className={this.pro... |
test/pages/search.js | MoveOnOrg/mop-frontend | import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { createMockStore } from 'redux-test-utils'
import SearchPage from '../../src/containers/search'
describe('<SearchPage />', () => {
const baseStore = createMockStore({ userStore: {} })
it('renders default values wit... |
ui/shared/utils/constants.js | macarthur-lab/seqr | import React from 'react'
import { Form } from 'semantic-ui-react'
import orderBy from 'lodash/orderBy'
import flatten from 'lodash/flatten'
import { validators } from '../components/form/ReduxFormWrapper'
import {
BooleanCheckbox,
RadioGroup,
Dropdown,
Select,
InlineToggle,
Pagination,
BaseSemanticInput... |
docs/app/Examples/elements/Container/Variations/ContainerExampleAlignment.js | shengnian/shengnian-ui-react | /* eslint-disable max-len */
import React from 'react'
import { Container, Divider } from 'shengnian-ui-react'
const ContainerExampleAlignment = () => (
<div>
<Container textAlign='left'>
Left Aligned
</Container>
<Container textAlign='center'>
Center Aligned
</Container>
<Container ... |
test/ModalSpec.js | natlownes/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Modal from '../src/Modal';
import { render, shouldWarn } from './helpers';
describe('Modal', function () {
let mountPoint;
beforeEach(() => {
mountPoint = document.createElement('div');
document.body.appendChild(mount... |
src/index.js | iTrollu/trollapp | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
import 'babel-polyfill';
render(
<App />,
document.querySelector('#root')
);
|
github/src/users/UserListItem.js | changjianhong/react-native-redux | import React from 'react';
import { View, Text, TouchableOpacity, Image, StyleSheet } from 'react-native';
import { Heading1 } from '../components/Text';
import Button from 'apsl-react-native-button';
class UserListItem extends React.Component {
render() {
const {login, avatar_url} = this.props.data;
const {onPre... |
app/javascript/mastodon/features/compose/index.js | foozmeat/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
packages/material-ui-icons/src/WorkOff.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M23 21.74l-1.46-1.46L7.21 5.95 3.25 1.99 1.99 3.25l2.7 2.7h-.64c-1.11 0-1.99.89-1.99 2l-.01 11c0 1.11.89 2 2 2h15.64L21.74 23 23 21.74zM22 7.95c.05-1.11-.84-2-1.95-1.95h-4V3.95c0-1.11-... |
src/svg-icons/maps/local-post-office.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
index.android.js | daikon-db/daikon-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class daikon extends Component {
render() {
return (
<View style={styles.container}>
... |
src/components/proof.js | barrierandco/barrierandco | import React from 'react'
import styled from 'styled-components'
import fitbot from '../assets/images/proof-fitbot.png'
import mideo from '../assets/images/proof-mideo.png'
import Button from './button'
import Cell from './cell'
const ProofContainer = styled.div`
margin: 40px 0 0;
@media ${props => props.theme.br... |
packages/app/app/components/LibraryView/LibraryHeader/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Button } from 'semantic-ui-react';
import { withTranslation } from 'react-i18next';
import { withHandlers, withState, compose } from 'recompose';
import Header from '../../Header';
import LibraryFolders from '../Librar... |
node_modules/react-bootstrap/es/MenuItem.js | mohammed52/something.pk | 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 ... |
test/TabbedAreaSpec.js | zerkms/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import TabbedArea from '../src/TabbedArea';
import NavItem from '../src/NavItem';
import TabPane from '../src/TabPane';
import ValidComponentChildren from '../src/utils/ValidComponentChildren';
describe('TabbedArea', function () {
it('... |
winearb/static/__tests__/date_test.js | REBradley/WineArb | jest.unmock('../react/js/components/date.js')
import React from 'react';
import { shallow } from 'enzyme';
import { Date } from '../react/js/components/date.js';
describe('Date', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<Date date={'November 30, 2012'}/>);
});
it('sh... |
jekyll-admin/src/containers/views/tests/documentnew.spec.js | mparlak/mparlak.github.io | import React from 'react';
import { shallow } from 'enzyme';
import { DocumentNew } from '../DocumentNew';
import Errors from '../../../components/Errors';
import Button from '../../../components/Button';
import { config, doc } from './fixtures';
const defaultProps = {
errors: [],
fieldChanged: false,
updated:... |
barebones_bbb/src/components/Webcam/Image.js | wasong/cmpt433 | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
const Image = ({
image,
}) => (
<div>
<img src={image} alt="webcam" />
</div>
)
Image.propTypes = {
image: PropTypes.string,
}
Image.defaultProps = {
image: '',
}
export default Radium(Image)
|
ajax/libs/highcharts/3.0.2/highcharts.src.js | CyrusSUEN/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.2 (2013-06-05)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
assets/jqwidgets/demos/react/app/grid/roweditwitheverpresentrow/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: generatedata(10),
datafields:
[
... |
src/layouts/Group/FactList.js | armaanshah96/lunchbox | import React from 'react'
import PropTypes from 'prop-types'
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
export const FactList = ({ children }) => (
<List>
<Subheader>Fun Facts </Subheader>
<ListItem
primaryText="Fun Fact 1"
secondaryText="I lov... |
gatsby-site/src/pages/work.js | serendipitist/serendipitist | import React from 'react'
import Link from 'gatsby-link'
const SecondPage = () => (
<div>
<h3> I like working on Front end technologies. Currently working for digital publishing platform Startup in Bangalore.</h3>
<h3>When I get some time I like building stuff and improve my tech skills </h3>
</div>
)
expo... |
src/index.js | DaveOrDead/react-dnd-character-generator | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, browserHistory} from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to l... |
src/svg-icons/image/hdr-off.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOff = (props) => (
<SvgIcon {...props}>
<path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1... |
ajax/libs/react-table/5.4.0/react-table.js | holtkamp/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.reactTable = f... |
ajax/libs/react-native-web/0.12.0/exports/YellowBox/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under th... |
test/client/app/components/survey_form_spec.js | inouetakuya/survey-builder | /** @jsx React.DOM */
var React = require("react/addons");
var TestUtils = React.addons.TestUtils;
var SurveyForm = require('../../../../client/app/components/survey_form');
describe("components/survey_form", function (){
var subject, onChangeSpy;
beforeEach(function () {
onChangeSpy = jasmine.createSpy();
... |
examples/auth-with-shared-root/components/App.js | tylermcginnis/react-router | import React from 'react'
import { Link } from 'react-router'
import auth from '../utils/auth'
const App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
}
},
updateAuth(loggedIn) {
this.setState({
loggedIn: !!loggedIn
})
},
componentWillMount() {
... |
ajax/libs/rxjs/2.3.11/rx.compat.js | artch/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... |
fields/types/money/MoneyField.js | tony2cssc/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | powerreviews/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.