path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
node_modules/react-bootstrap/es/SplitToggle.js | acalabano/get-committed | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
example/react-station/stateless-component.js | entwicklerstube/takeoff | const t = require('outdent');
module.exports = ({name}) => t`
import React from 'react';
import PropTypes from 'prop-types';
const MyStatelessComponent ({ name }) => (
<div className='container'>
<span>hello: ${name}</span>
</div>
);
MyStatelessComponent.propTypes = {
name: PropTypes.string
}
export defau... |
app/shared/availability-view/AvailabilityView.js | fastmonkeys/respa-ui | import isEqual from 'lodash/isEqual';
import PropTypes from 'prop-types';
import React from 'react';
import ReservationInfoModal from '../modals/reservation-info/ReservationInfoModalContainer';
import DateSelector from './DateSelector';
import TimelineGroups from './timeline-groups/TimelineGroups';
import Sidebar from... |
components/NestedChildren/RandomChildOne.js | craigbilner/cant-test-this | import React from 'react';
export default () => (
<div>i am random child one</div>
);
|
src/main.js | hydro-c/methane | /**
* The root of the whole app
*/
import React from 'react';
import Container from './components/Container';
React.render(<Container />, document.querySelector("#app"));
|
examples/02 Drag Around/Naive/index.js | tomulin1/react-dnd | import React, { Component } from 'react';
import Container from './Container';
import { Link } from 'react-router';
export default class DragAroundNaive extends Component {
constructor(props) {
super(props);
this.handleHideSourceClick = this.handleHideSourceClick.bind(this);
this.state = {
hideSour... |
webApp/web_client/components/StreamEntry.js | deliquescentlicorice/silent-disco | import React from 'react';
// MATERIAL DESIGN
import Divider from '../../node_modules/material-ui/lib/divider';
import ListItem from '../../node_modules/material-ui/lib/lists/list-item';
import Avatar from '../../node_modules/material-ui/lib/avatar';
import PlayCircleOutline from 'material-ui/lib/svg-icons/av/play-cir... |
lib/FocusLink/tests/FocusLinkWithObjectTarget.js | folio-org/stripes-components | import React from 'react';
import { describe, beforeEach, it, afterEach } from 'mocha';
import { expect } from 'chai';
import sinon from 'sinon';
import { mount } from '../../../tests/helpers';
import FocusLink from '../FocusLink';
import FocusLinkInteractor from './interactor';
const targetObject = { focus: sinon.sp... |
src/svg-icons/action/system-update-alt.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
src/svg-icons/notification/phone-paused.js | pancho111203/material-ui | 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... |
src/components/Password/Password.js | MeetDay/dreampark-web | import React from 'react';
import PropTypes from 'prop-types';
export default class Password extends React.Component {
static propTypes = {
title: PropTypes.string,
value: PropTypes.string,
onChange: PropTypes.func
}
static defaultProps = {
title: '密码'
}
constructor(... |
ui/src/page/Review.js | tibyte/hanpyo | import React, { Component } from 'react';
class review extends Component {
render() {
return (
<div>
<h1> review 페이지 입니다. </h1>
</div>
);
}
}
export default review; |
test/__mocks__/@styled-icons/material.js | styled-components/styled-components-website | import React from 'react';
const DummyIcon = props => <svg {...props} />;
module.exports = {
Close: DummyIcon,
Favorite: DummyIcon,
KeyboardArrowRight: DummyIcon,
KeyboardDown: DummyIcon,
Link: DummyIcon,
Search: DummyIcon,
};
|
app/containers/App/index.js | haxorbit/chiron | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import { Helmet } from 'react-helmet';
import styled from 'styled-components';
import { Switch, Route } from 'react-router-d... |
stories/components/layouts/notification/index.js | one-love/storybook | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import cssModules from 'react-css-modules';
import Header from '../../molecules/header';
import Footer from '../../atoms/footer';
import Notification from '../../atoms/notification';
import styles from './notification.sc... |
fields/types/localfile/LocalFileField.js | developer-prosenjit/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 ()... |
src/components/notfound/NotFound.js | 60frames/react-boilerplate | import React from 'react';
import styles from 'components/notfound/NotFound.css';
function NotFound() {
return (
<div className={styles.root}>
404 Not Found
</div>
);
}
export default NotFound;
|
RN HotUpdate/SmartHomeII/SmartHome/Me/HeaderCell.js | HarrisLee/React-Native-Express | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
Image,
TouchableHighlight,
PixelRatio
} from 'react-native';
import Constant from '../Global/Constant.js';
export default class He... |
react/src/pages/byyear/UsageByYearGraph.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... |
src/statement/StatementMobile.js | nuruddeensalihu/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import StatementContainer from './StatementContainer';
export default (props) => (
<MobilePage>
<StatementContainer compact {...props} />
</MobilePage>
);
|
test/NavItemSpec.js | brentertz/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import NavItem from '../src/NavItem';
describe('NavItem', function () {
it('Should add active class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<NavItem active={true}>
Item content
</NavIte... |
imports/ui/components/tags/ClientTagList.js | ctagroup/home-app | import _ from 'lodash';
import moment from 'moment';
import React, { Component } from 'react';
import Select from 'react-select';
import DatePicker from 'react-datepicker';
// import ClientTagItem from './ClientTagItem';
import DataTable from '/imports/ui/components/dataTable/DataTable';
import { blazeData, removeClien... |
src/__tests__/index.js | landerton/react-bootstrap-submit | import React from 'react';
import {shallow, mount, render} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import {
Form,
ValidatedCheckbox,
ValidatedInput,
RadioGroup,
ValidatedRadio } from '../index';
let onSubmit;
let onChange;
let checkbox;
describe('ValidatedCheckbox', () => {
... |
src/features/welcome/index.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity,
Dimensions
} from 'react-native';
import * as moviesService from '../../services/movies-service';
import * as colors from '../../common/colors';
const { width, height } = Dimensions.get('window');
export ... |
src/media/js/app.js | ziir/marketplace-content-tools | require('babel/polyfill');
import React from 'react';
import {Provider} from 'react-redux';
import {Redirect, Route, Router} from 'react-router';
import {history} from 'react-router/lib/BrowserHistory';
import {applyMiddleware, combineReducers, compose, createStore} from 'redux';
import loggerMiddleware from 'redux-log... |
src/parser/shared/modules/items/bfa/raids/uldir/InoculatingExtract.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import ItemLink from 'common/ItemLink';
import { formatPercentage } from... |
others/ant/antd-demo/src/Home.js | fengnovo/diary | import React, { Component } from 'react';
import { Tabs } from 'antd';
import List from './List.js';
const TabPane = Tabs.TabPane;
/*
* 1 => 头条
* 2 => 娱乐
* 3 => 军事
* 4 => 汽车
* 5 => 财经
* 6 => 笑话
* 7 => 体育
* 8 => 科技
*/
cl... |
src/Cards.js | leeppolis/bookmarks | import React, { Component } from 'react';
import "./Cards.css";
import Card from './Card.js';
class Cards extends Component {
render() {
return (
<section className="grid">
<ul className={"items " + this.props.viewMode}>
{
this.props.items.map(
function(item) {
... |
example/src/screens/types/DummyScreen.js | coteries/react-native-navigation | import _ from 'lodash';
import React, { Component } from 'react';
import {
View,
ScrollView,
Dimensions,
Text,
StyleSheet,
Button,
PixelRatio
} from 'react-native';
import {NavigationToolBarIOS} from 'react-native-navigation';
const {width} = Dimensions.get('window');
class DummyScreen extends Componen... |
packages/material-ui-icons/src/Map.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Map = props =>
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19... |
node_modules/redux-devtools-log-monitor/src/LogMonitor.js | jotamaggi/react-calendar-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import shouldPureComponentUpdate from 'react-pure-render/function';
import * as themes from 'redux-devtools-themes';
import { ActionCreators } from 'redux-devtools';
import { updateScrollTop, startConsecutiveToggle } from './actions';
import ... |
Dockerfiles/node/nodeapp/src/Modules/Customer.js | 4lexBaum/projekt-5s-dhbw | import React from 'react';
import { ChartContainer } from '../Components/ChartContainer.js';
import { Header } from '../Components/Header.js';
export class Customer extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){
}
componentWi... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | akre96/GeneDiagrams | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
docs/src/pages/demos/badges/SimpleBadge.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Badge from 'material-ui/Badge';
import MailIcon from 'material-ui-icons/Mail';
import FolderIcon from 'material-ui-icons/Folder';
const styles = theme => ({
badge: {
margin: `0 ${... |
examples/Modal.js | azendoo/react-overlays | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-overlays/Modal';
let rand = ()=> (Math.floor(Math.random() * 20) - 10);
const modalStyle = {
position: 'fixed',
zIndex: 1040,
top: 0, bottom: 0, left: 0, right: 0
};
const backdropStyle = {
...modalStyle,
z... |
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/settings-base.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
// Global module dependencies
import { SettingsPageLayout } from '../../../../../components/layout';
// Current module dependencies
import { SettingsMenu } from '../../../../../mobilizations/widgets/__plugins__/pressure/components';
const SettingsBase = ... |
node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.ios.js | nauman-ahmad-qureshi/adsManagement | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/server/frontend/render.js | dfogas/my-mindmap | import * as state from '../../client/state';
import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../in... |
public/app/components/ui-project-tab/toolbar.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import base from '../base/index';
import icons from '../icons';
const styles = {
icon: {
margin: 16,
},
button: {
height: '56px',
width: '56px',
overflow: 'inherit'
}
};
const Toolbar = ({ vpanelProjectNames, onNewIm... |
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/hidden/index.js | wpexpertsio/WP-Secure-Maintainance | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/text';
import { TYPE_HIDDEN } from 'fields/constants'... |
src/lib/plugins/cpu.js | Hyperline/hyperline | import React from 'react'
import Component from 'hyper/component'
import { currentLoad as cpuLoad } from 'systeminformation'
import leftPad from 'left-pad'
import SvgIcon from '../utils/svg-icon'
class PluginIcon extends Component {
render() {
return (
<SvgIcon>
<g fill="none" fillRule="evenodd">
... |
2-alpha/src/index.js | saturninoharris/primer-design | import React from 'react';
import ReactDOM from 'react-dom';
import 'csshake'
import './styles/index.css';
import registerServiceWorker from './registerServiceWorker';
// Redux
import { Provider } from 'react-redux'
import { fetchAllExercises } from './actions'
import configureStore from './configureStore'
// Styling... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | imas/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
src/js/pages/Projects.js | diajelovic/react-test | import React from 'react';
export default class Projects extends React.Component {
constructor(){
super();
this.state = {
title: "Projects"
}
}
render() {
const { params } = this.props;
const { query } = this.props.location;
return (
<div>
<h1>{this.state.title} ({params.project})</h1>
... |
src/components/FormFields/TextInput.spec.js | Bartekus/r3 | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import TextInput from './TextInput';
const shallowRender = (component) => {
const renderer = TestUtils.createRenderer();
renderer.render(component);
return renderer.getRenderOutput();
};
const shallowRenderWithProps = (props = {}) =>
... |
components/Search.js | wrariza/candado | import React from 'react';
import styled from 'styled-components';
const DefaultStyles = `
outline: 0;
borde: none;
border-radius: 4px;
`;
const Form = styled.form`
display: flex;
font-weight: bold;
font-family: 'arial'
top: 200px;
position: relative;
@media (max-width: 1024px) {
... |
src/Popup.js | taskworld/react-overlay-popup | import React from 'react'
import ReactDOM from 'react-dom'
import invar from 'invariant'
import Overlay from './Overlay'
var _strategies = { }
function calculate (vp, lp, lc, kp, kc, Δv) {
return vp + kp * lp - kc * lc + Δv
}
function calculateWithFallback (vp, lp, lc, kp, kc, vm, Δv) {
var primary = kp !== kc
... |
Movies-GES/Movies-GES.Web/App/React/test/components/movie-list-tests.js | mauricedb/Movies-GES | import chai from 'chai';
import React from 'react';
import { shallow } from 'enzyme';
import { Link } from 'react-router';
import MovieList from '../../movie-management/components/movie-list.jsx';
chai.should();
describe('The MovieList component', () => {
let component;
beforeEach(() =>{
... |
client2/src/Video/components/search_bar.js | zhangbenny/Board | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: ''}
}
render() {
return (
<div className="search-bar">
<input
value={this.state.term}
onChange={event => this.onInputChange(event.target.value)} />
</div>
)
}
o... |
src/js/components/pages/items/Item.js | athill/wimf | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { Col, Panel, Row } from 'react-bootstrap';
//// components
import { Icon } from '../../common/common';
//// utils
import { getDisplayFormat } from '../../../util/DateUtils';
export const ItemHeader = ({editCli... |
examples/js/sort/multi-sort-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
let price = 2100;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (id % 5... |
frontend/app_v2/src/common/icons/PlayCircle.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary PlayCircle
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function PlayCircle({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className={styling}>
<path d="M256 ... |
boilerplates/app/src/routes/rbac/Roles.js | hexagonframework/antd-admin-cli | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import RoleList from '../../components/Role/RoleList'
import RoleSearch from '../../components/Role/RoleSearch'
import RolePanel from '../../components/Role/RolePanel'
import RoleModal fr... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/library-books.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"/>
</SvgIcon>
);
AvLibrary... |
src/components/attributes/d3-parsed/AttrListItem.js | jjeffreyma/ID3-React | import React, { Component } from 'react';
//
// As soon as we have the attribute object parsed the code commented out below is
// the over layout and styling.
class AttrListItem extends Component {
constructor(props) {
super(props);
this.state = {
checkbox: false
};
this.handleCheckbox = this.... |
react-flux-mui/js/material-ui/src/svg-icons/image/navigate-before.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore = pure(ImageNavigateBefore);
ImageNavigateBefore.displayName... |
Libraries/Components/MapView/MapView.js | shrutic/react-native | /**
* 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.
*
* @provides... |
__tests__/index.android.js | i8wu/Converrency | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/pages/Components/Buttons/Colors.js | JSLancerTeam/crystal-dashboard | import React from 'react';
const Colors = () => (
<div>
<div className="header">
<h4 className="title">Colors</h4>
</div>
<div className="content buttons-with-margin">
<button className="btn btn-default btn-fill btn-wd">Default</button>
<button className="btn btn-primary btn-fill btn-wd... |
src/component/profileScreen/TransactionItem.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { View, TouchableHighlight, Animated, Text, Image } from 'react-native'
import DefaultText from '../DefaultText'
import Price from '../Price'
import {format} from '../../util/date'
import styles from './ProfileStyle'
import Images from '@Assets/images'
import Colors from '@Colors/colors... |
tests/lib/rules/vars-on-top.js | platinumazure/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("..... |
src/svg-icons/communication/contact-phone.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactPhone = (props) => (
<SvgIcon {...props}>
<path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-... |
src/svg-icons/action/settings-ethernet.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-input-hdmi.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHdmi.displayName = 'ActionSettingsI... |
tests/react_web_tests/test_data/react_code/WebButton/src/components/Desktop/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import styled from 'styled-components'
import SharpButton from '../SharpButton'
const Desktop = (props) => (
<DesktopStyledComponent>
<SharpButton
onClick={this.onClick}
></SharpBu... |
docs/src/app/pages/components/Dropdown/Page.js | GetAmbassador/react-ions | import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/Dropdown/Dropdown'
import CodeExample from 'private/modules/CodeExample'
import ExampleDropdownButton from './ExampleDropdownButton'
import exampleDropdownButtonCode from '!raw!./ExampleDropd... |
client/trello/src/app/routes/home/routes/boardView/components/CardItems/CardItems.js | Madmous/madClones | import React, { Component } from 'react';
import { CreateCardItem, CardItem } from '../index';
import './CardItems.css';
export default class CardItems extends Component {
constructor(props) {
super(props);
this.state = {
placeholderIndex: undefined
};
}
renderCardItems() {
const { cardI... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | chengjunjian/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
examples/todomvc/index.js | coderstudy/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
pootle/static/js/auth/components/SocialSignInForm.js | phlax/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 React from 'react';
import { PureRenderMixin } from... |
app/src/components/MainTabs/index.js | oh-my-github/yo-omg-basic | import React from 'react'
import Tabs from 'material-ui/lib/tabs/tabs'
import Tab from 'material-ui/lib/tabs/tab'
import FlatButton from 'material-ui/lib/flat-button'
import FontIcon from 'material-ui/lib/font-icon'
import { MainColors, TabColors, } from '../../theme'
import EmptyTabs from './EmptyTabs'
import MainTab... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | stockspiking/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... |
js/views/user/CreateUserView.js | n8e/memoirs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay';
import { Grid, Row, Col, FormGroup, FormControl, Button, Panel, Alert, ControlLabel } from 'react-bootstrap';
import SignUpMutation from '../../mutations/SignUpMutation';
const camelToTitleCase = text => tex... |
src/svg-icons/av/play-circle-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... |
lib-module-node7-dev/RedBoxWrapper.js | turacojs/fody | var _jsxFileName = 'RedBoxWrapper.jsx',
_this = this;
import React from 'react';
import RedBox from 'redbox-react';
import t from 'flow-runtime';
const PropsType = t.type('PropsType', t.object(t.property('error', t.any())));
export default (function redBoxWrapper(_arg) {
let { error } = PropsType.assert(_arg)... |
src/client/index.js | kiki-le-singe/react-redux-universal-boilerplate | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from 'history/createBrowserHistory'
import { Provider } from 'react-redux'
import { AppContainer } from 'react-hot-loader'
import { ConnectedRouter } from 'react-router-redux'
import AppLayout from 'common/layouts/... |
src/js/components/modal/modal_button.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { autobind, mixin } from '../../utils/decorators';
import { Button } from '../../components';
import { CssClassMixin } from '../../mixins';
import ModalActions from '../../actions/modal_actions';
@mixin(CssClassMixin)
export d... |
packages/ringcentral-widgets/components/DropdownSelect/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss';
class DropdownSelect extends Component {
constructor(props) {
super(props);
this.state... |
src/Stepper/Step.spec.js | igorbt/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Step from './Step';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Step />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node, context = {}) => {
return sha... |
src/components/itemsManager/transfer/WeaponContent.js | MrRandol/littleLight | /******************
REACT IMPORTS
******************/
import React from 'react';
import { View, Text, Image, TouchableOpacity } from 'react-native';
/*****************
CUSTOM IMPORTS
******************/
import T from 'i18n-react';
var styles = require('../../../styles/itemsManager/transfer/WeaponContent');
impor... |
node_modules/rc-tabs/es/SwipeableTabBarMixin.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import classnames from 'classnames';
import Hammer from 'rc-hammerjs';
import ReactDOM from 'react-dom';
import { isVertical, getStyle, setPxStyle } from './utils';
expor... |
ReactJS/07.Async-Redux/chiper-spa/src/components/elements/auth.js | Martotko/JS-Web | import React, { Component } from 'react';
import { connect } from 'react-redux'
import Login from './login'
import Register from './register'
import actions from './../../store/actions/action'
class Auth extends Component {
constructor(props) {
super(props)
this.state = {
login: true
... |
spec/react/image/image.spec.js | pivotal-cf/pivotal-ui | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-dom/test-utils';
import {Image} from '../../../src/react/images';
describe('Image', () => {
const renderComponent = props => ReactDOM.render(
<Image src="http://placehold.it/20x20" {...props} />, root);
it('adds cla... |
react/features/overlay/components/web/SlowGUMOverlay.js | gpolitis/jitsi-meet | // @flow
import Spinner from '@atlaskit/spinner';
import React from 'react';
import { translate } from '../../../base/i18n';
import AbstractSlowGUMOverlay from './AbstractSlowGUMOverlay';
import OverlayFrame from './OverlayFrame';
/**
* Implements a React {@link Component} for slow gUM overlay. Shown when
* a slow... |
src/containers/Dialogs.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import PropTypes from 'prop-types';
import ons from 'onsenui';
import {
Page,
List,
ListItem,
ListHeader,
Dialog,
Button
} from 'react-onsenui';
import Popovers from '../components/Popovers';
class Dialogs extends React.Component {
constructor(props) {
s... |
src/MicroGarden.Settings.UI/app/settings/components/settings/fields/TextField.js | chaliy/microgarden-settings | import React from 'react';
export default ({ field, defaultValue, onChange }) => {
var localOnChange = e => {
onChange({
name: field.name,
value: e.target.value
});
}
return (
<div key={field.name} className="form-group">
<label htmlFor={field.name}>{field.displayName}</... |
src/core/display/App/Component/List.js | JulienPradet/pigment-store | import React from 'react'
import ComponentPreview from './Preview'
export default ({category, pathname}) => <div>
{category.components
.map((component) => <ComponentPreview
key={component.name}
pathname={pathname}
component={component}
/>)}
</div>
|
examples/babel-plugin-react-hot/index.js | bloodyowl/redbox-react | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
website/sections/StaticSiteGenerator.js | sahat/boilerplate | import React from 'react';
import cx from 'classnames';
const STATIC_SITE_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 26 26">
<path d="M 25.15625 0.1875 C 23.885328 0.2454375 20.96425 0.5555 18.0625 2 C 16.8205 2.62 15.58275 3.4505 14.46875 4.5625 C 12.648519 6.3827313 10.... |
test/MediaBodySpec.js | glenjamin/react-bootstrap | import React from 'react';
import { mount } from 'enzyme';
import Media from '../src/Media';
describe('<Media.Body>', () => {
it('uses "div" by default', () => {
mount(
<Media.Body className="custom-class">
<strong>Content</strong>
</Media.Body>,
).assertSingle('div.media-body.custom-cla... |
packages/bonde-admin/src/components/share/whatsapp-share-button.spec.js | ourcities/rebu-client | import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { WhatsAppShareButton } from './index'
describe('client/components/share/whatsapp-share-button', () => {
let wrapper
const props = {
href: 'http://www.minhasampa.org.br',
whatsappText: 'Foo Bar WhatsApp Text'
... |
app/assets/flow/controllers/open-source.js | aewing/portfolio | 'use strict';
import React from 'react'
import { Link } from 'react-router'
import { Card, CardTitle, Row, Col } from 'react-materialize'
export default class OpenSourceController extends React.Component {
constructor(props) {
super(props);
this.state = {
entries: [
{
image: "/img/de... |
src/routes/admin/index.js | DaveyEdwards/myiworlds | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import { graphql } from 'rel... |
src/user/containers/welcome_screen.js | foundersandcoders/sail-back | import React from 'react'
import { connect } from 'react-redux'
import { identity, merge, propOr } from 'ramda'
import { toggle_gift_aid, toggle_delivery_method } from '../../shared/redux/modules/member.js'
class WelcomeScreen extends React.Component {
constructor (props) {
super(props)
this.state = {
... |
packages/rex-intl-example/src/browser.js | linear-bits/linear-bits | import React from 'react'
import {render} from 'react-dom'
import Cookies from 'js-cookie'
import {Provider} from 'react-redux'
import App from './app.js'
import createStore from './store.js'
import Intl from './intlProvider.js'
const preloadedState = window.PRELOADED_STATE
const store = createStore(Cookies, preloaded... |
src/helpers/universalRouter.js | CarlosMela/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export function createTr... |
modules/__tests__/IndexLink-test.js | clloyd/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
import IndexLink from '../IndexLink'
describe('An <In... |
src/client/components/FlickrAsync/Flickr.js | EdgeJay/web-starterkit | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { bindActions, mapStateToProps } from '../../stores';
import * as actions from '../../actions/main';
import PageHeader from '../PageHeader';
const Row = styled.div`
fle... |
node_modules/react-bootstrap/es/MediaBody.js | caughtclean/but-thats-wrong-blog | 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 ... |
MadWare.Hathor.FrontEnd/src/js/components/App.js | zvizdo/MadWare.Hathor | import React from 'react'
import { connect } from 'react-redux'
class App extends React.Component {
render() {
return (
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1 id="container">Hathor</h1>
</d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.