path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
es6/RoutingContext.js | fis-components/react-router | 'use strict';
import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`Rou... |
src/svg-icons/device/signal-cellular-4-bar.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
src/components/BigDrink/BigDrink.js | hrnik/roofbar | import React from 'react'
import PropTypes from 'prop-types'
import Delay from 'react-delay'
import Button from 'components/Button'
import { DRINK_STATUS_AVAILABLE } from 'store/bar'
import Loader from 'components/Loader'
import classNames from 'classnames'
import './BigDrink.scss'
const BigDrink = ({
name,
drink... |
src/mui/input/ReferenceInput.spec.js | matteolc/admin-on-rest | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { ReferenceInput } from './ReferenceInput';
describe('<ReferenceInput />', () => {
const defaultProps = {
crudGetMatching: () => true,
crudGetOne: () => true,
input: {... |
wegas-app/src/main/node/wegas-react-form/src/Script/modules/Condition.js | Heigvd/Wegas | import PropTypes from 'prop-types';
import React from 'react';
import { types } from 'recast';
import Impact, { ErrorCatcher } from './Impact';
import { methodDescriptor, extractMethod } from './method';
import { methodDescriptor as globalMethodDescriptor } from './globalMethod';
import ConditionOperator from './Condit... |
src/containers/EventsPage/EventsPage.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import _partition from 'lodash/partition';
import { loadEvents, addEvent, editEvent, removeEvent } from 'redux/modules/eventsModule';
// COMPONENTS
import { Map } from ... |
app/containers/Store/index.js | monkeyzealer/Webstore-FrontEnd | /*
*
* Store
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router';
import Avatar from 'material-ui/Avatar';
import FileFolder from 'material-ui/svg-icons/file/folder';
import FontIcon from 'material-ui/FontIcon';
import List from 'material-ui/List/List';
impo... |
test/helperFunctions-test.js | mlimberg/Digidex | import React from 'react';
import { shallow, mount, render } from 'enzyme';
import sinon from 'sinon';
import { expect } from 'chai'
import combineArrays from '../lib/components/Helpers/combineArrays'
describe('combineArrays()', () => {
it('should return a single array', () => {
let array1 = [{ firstName: 'Wayn... |
example/examples/LoadingMap.js | ksincennes/react-native-maps | import React from 'react';
import {
Text,
View,
Dimensions,
StyleSheet,
} from 'react-native';
import MapView from 'react-native-maps';
import flagImg from './assets/flag-blue.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGI... |
app/App.js | pro-react/react-app-boilerplate | import React, { Component } from 'react';
import {render} from 'react-dom';
class App extends Component {
render(){
return (
<h1>Hello World</h1>
);
}
}
render(<App />, document.getElementById('root'));
|
client/app/Core/MultiSelectDropDown/index.js | puja1234/DTA | /**
* Created by saubhagya on 1/8/17.
*/
import React, { Component } from 'react';
import TtnButton from 'core/Button/btn';
class MultiSelectDropdown extends Component{
constructor(){
super();
}
render(){
return(
<div>
{this.props.newCollab.map((item, index) ... |
server/sonar-web/src/main/js/apps/web-api/components/__tests__/Params-test.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
web/src/components/SimpleReport.js | Ding-Jun/Analysis | import React from 'react';
import { Link } from 'react-router'
import { Card, Row, Col } from 'antd';
var RANK_LOW=0;
var RANK_MEDIUM=3;
var RANK_HIGH=5;
class SimpleReport extends React.Component{
handleClick(e){
e.preventDefault();
console.log(this.props.id)
}
render(){
var rankCls;
switch (this.... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | xiaohu-developer/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... |
src/pages/julia-plus.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Julia Plus' />
)
|
app/index.js | atomixinteractions/material-theme-generator | import React from 'react'
import ReactDOM from 'react-dom'
import RedBox from 'redbox-react'
import { AppContainer } from 'react-hot-loader'
import RootComponent from './root'
import baseStyles from './styles'
const rootPoint = document.createElement('div')
document.body.insertBefore(rootPoint, document.body.firstChi... |
components/date_picker/DatePicker.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { DATE_PICKER } from '../identifiers';
import events from '../utils/events';
import time from '../utils/time';
import InjectIconButton from '../button/IconB... |
src/app/components/EthernetConnection.js | UrgBenri/UrgBenriWeb | import React from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import IconButton from 'material-ui/IconButton';
import ActionLabelOutline from 'material-ui/svg-icons/action/label-outline';
import ActionLabel from 'material-ui/svg-icons/action/label';
import Subheader fr... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-tree.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js';
import List from './tree-list.js';
import Item from './tree-item.js';
import './tree.less';
export const Tree = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
Conten... |
fields/types/relationship/RelationshipColumn.js | kwangkim/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.create... |
src/Modal/test/ModalTitleSpec.js | suitejs/suite | import React from 'react';
import { getDOMNode } from '@test/testUtils';
import ModalTitle from '../ModalTitle';
describe('ModalTitle', () => {
it('Should render a modal title', () => {
const title = 'Test';
const instance = getDOMNode(<ModalTitle>{title}</ModalTitle>);
assert.equal(instance.className, ... |
examples/js/column-filter/date-filter-programmatically.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const startDate = new Date(2015, 0, 1);
const endDate = new Date();
... |
src/Tabs/Tabs.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Tabs from './Tabs';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Tabs />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {muiTh... |
src/shared/universal/components/App/Posts/Post/Post.js | DAppx/SharpReact | /* */
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import * as FromState from '../../../../reducers';
function Post({ post }) {
if (!post) {
// Post hasn't been fetched yet. It would be better if we had a "status"
// reducer attached to our post... |
src/shared/views/plugins/Model3d/Model3d.js | in-depth/indepth-demo | import React from 'react'
import styles from './Model3d.css'
const Model3d = (props) => {
return (
<div className={styles.holder}>
<iframe width="100%" height="100%" src={props.url} frameBorder="0" allowFullScreen />
</div>
)
}
Model3d.propTypes = {
url: React.PropTypes.string.isRequired,
}
expo... |
test/containers/CounterPage.spec.js | MustD/a3al | import { expect } from 'chai';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import config... |
src/index.dev.js | ryanswapp/react-starter-template | import 'App/style/index';
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import routes from 'config/routes.js';
import { createStore, compose, applyMiddleware, combineReducers } from 'redux';
import { Provider } from 'react-redux'... |
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1107.js | guardicore/monkey | import React from 'react';
import ReactTable from 'react-table';
import {renderMachineFromSystemData, ScanStatus} from './Helpers'
import MitigationsComponent from './MitigationsComponent';
class T1107 extends React.Component {
constructor(props) {
super(props);
}
static renderDelete(status) {
if (sta... |
client/components/todo-list.js | wbinnssmith/react-redo | import values from 'lodash/values';
import React from 'react';
import { connect } from 'react-redux';
import { pure } from 'recompose';
import Todo from './todo';
import { deleteTodo, toggleTodo, updateTodo } from '../modules/todos';
function stateToProps(state, props) {
return {
todos: values(state.todos).sort... |
frontend/src/Artist/Index/Overview/ArtistIndexOverviews.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Grid, WindowScroller } from 'react-virtualized';
import ArtistIndexItemConnector from 'Artist/Index/ArtistIndexItemConnector';
import Measure from 'Components/Measure';
import dimensions from 'Styles/Variables/dimensions';
import get... |
packages/map-gl/src/overlays/GeoJSONLayer.expo.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
import { Marker as RNMarker, Polyline as RNPolyline } from 'react-native-maps';
import { Colors } from 'react-native-paper';
import { useGeoJSON } from '@wq/map';
const COLOR_LIST = Object.values(Colors);
export default function GeoJSONLayer({ id, data })... |
Redux-Weather/src/containers/searchBar.js | vivekbharatha/ModernReactWithReduxCourseUdemy | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from './../actions/index';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: '' };
this.onInputChange = this.onIn... |
app/javascript/mastodon/features/list_editor/components/search.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
const messages ... |
app/containers/Merchant/index.js | theterra/newsb | import React from 'react';
import { connect } from 'react-redux';
import AuthStyle from './AuthStyle';
import BackgrndStyle from './BackgrndStyle';
import AuthForm from '../../components/AuthForm';
import CurveStyle from './CurveStyle';
import LogoStyles from './LogoStyles';
import LoadingStyle from './LoadingStyle';
i... |
examples/src/components/Contributors.js | MattMcFarland/react-select | import React from 'react';
import Select from 'react-select';
const CONTRIBUTORS = require('../data/contributors');
const MAX_CONTRIBUTORS = 6;
const ASYNC_DELAY = 500;
const Contributors = React.createClass({
displayName: 'Contributors',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
ret... |
src/components/GameWrapper/GameWrapper.js | rainbowland302/hangman | import React from 'react';
import { Row, Col } from 'react-flexbox-grid';
import './GameWrapper.scss';
import WordChipContainer from '../../containers/WordChipContainer';
export const GameWrapper = (props) => {
return (
<div id="gameContainer" className="game-wrapper">
<div className="row">
{
... |
packages/wix-style-react/src/EditableSelector/EditableRow/EditableRow.spec.js | wix/wix-style-react | import React from 'react';
import editableRowDriverFactory from './EditableRow.driver';
import {
createRendererWithDriver,
createRendererWithUniDriver,
cleanup,
} from '../../../test/utils/react';
import EditableRow from './EditableRow';
import { editableRowUniDriverFactory } from './EditableRow.uni.driver';
des... |
src/index.js | alpjs/alp-react-redux | import React from 'react';
import { renderToString } from 'react-dom/server';
import Helmet from 'react-helmet';
import reactTreeWalker from 'react-tree-walker';
import Logger from 'nightingale-logger/src';
import createIsModernBrowser from 'modern-browsers';
import htmlLayout from './layout/htmlLayout';
import createA... |
client/routes.js | pandaben7890/react-panda-style-level-1 | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { App, Home, About } from './components'
export default () => {
return (
<Router history={browserHistory}>
<Route path='/' component={App}>
<IndexRoute component={Home} />
<Route path='... |
src/actions/search.js | ello/webapp | import React from 'react'
import * as ACTION_TYPES from '../constants/action_types'
import * as MAPPING_TYPES from '../constants/mapping_types'
import * as api from '../networking/api'
import * as StreamRenderables from '../components/streams/StreamRenderables'
import { ZeroState } from '../components/zeros/Zeros'
exp... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | mxw0417/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';
import AvatarItem from... |
src/index.js | sPyOpenSource/personal-website | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import './index.css';
import Layout from './Layout';
import Home from './view/Home';
import About from './view/About';
import Media from './view/Media';
import Projects from './view/Proje... |
frontend/src/client/index.js | tsurupin/portfolio | import 'shared/styles/vendors';
import 'shared/styles/globals';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { applyRouterMiddleware, Router, browserHistory } from 'react-router';
import useScroll from 'react-router-scroll';
import { createStore, applyMidd... |
docs/app/Examples/modules/Sidebar/SlideOut/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SidebarVariationsExamples = () => (
<ExampleSection title='Slide Out'>
<ComponentExample
title='Left Slide Out'
... |
src/app/modules/HeaderBar/components/HeaderBar.js | toxzilla/app | import React from 'react';
import {connect} from 'cerebral-view-react';
import {classNames} from 'react-dom-stylesheet';
import {User} from './../../../common/User';
import {Badge, Button, ButtonGroup, Icon, Popover, PopoverControl, Text} from './../../../common/UserInterface';
import profile from './../../../store/co... |
app/main.js | firewenda/testwebsite | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
import Navbar from './components/Navbar';
let history = createBrowserHistory();
ReactDOM.render(<Router history={history}>... |
src/RadioButton/RadioButtonGroup.js | rscnt/material-ui | import React from 'react';
import RadioButton from '../RadioButton';
import warning from 'warning';
class RadioButtonGroup extends React.Component {
static propTypes = {
/**
* Should be used to pass `RadioButton` components.
*/
children: React.PropTypes.node,
/**
* The CSS class name of t... |
components/GroupRow.js | Jack3113/edtBordeaux | import React from 'react';
import { Text, TouchableHighlight, View } from 'react-native';
import PropTypes from 'prop-types';
import style from '../Style';
export default class GroupRow extends React.PureComponent {
static propTypes = {
cleanName: PropTypes.string.isRequired,
color: PropTypes.stri... |
src/components/search-mapping-view/index.js | datea/datea-webapp-react | import './search-mapping-view.scss';
import React from 'react';
import {observer, inject} from 'mobx-react';
import InfiniteScroll from 'react-infinite-scroller';
import InfiniteLoaderIcon from '../infinite-loader-icon';
import Button from '@material-ui/core/Button';
import MappingColumnLayout from '../mapping-card-gri... |
assets/jqwidgets/demos/react/app/treegrid/xmldata/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.on('bindingComplete', () => {
this.refs.myTreeGrid.expandRow(2);
}); ... |
src/components/App.js | phuchle/recipeas | import React from 'react';
import Navigation from './Nav';
import Main from './Main';
import 'bootstrap/dist/css/bootstrap.css';
import '../App.css';
const App = (props) => {
return (
<div className="App">
<Navigation />
<Main />
</div>
);
};
export default App;
|
test/integration/AppBar/AppBar.spec.js | verdan/material-ui | /* eslint-env mocha */
import React from 'react';
import {mount} from 'enzyme';
import {assert} from 'chai';
import AppBar from 'src/AppBar';
import IconButton from 'src/IconButton';
import FontIcon from 'src/FontIcon';
import getMuiTheme from 'src/styles/getMuiTheme';
describe('<AppBar />', () => {
const muiTheme =... |
client/src/javascript/components/modals/settings-modal/ConnectivityTab.js | stephdewit/flood | import {Checkbox, Form, FormRow, Textbox} from 'flood-ui-kit';
import {FormattedMessage} from 'react-intl';
import React from 'react';
import ModalFormSectionHeader from '../ModalFormSectionHeader';
import SettingsTab from './SettingsTab';
export default class ConnectivityTab extends SettingsTab {
state = {};
ge... |
ajax/libs/react-select/1.0.0/react-select.es.js | holtkamp/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
clas... |
client/admin/info/UsageSection.stories.js | Sing-Li/Rocket.Chat | import React from 'react';
import { UsageSection } from './UsageSection';
export default {
title: 'admin/info/UsageSection',
component: UsageSection,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
],
};
const statistics = {
totalUsers: 'statistics.totalUsers',
nonActiveUsers: 'nonActiveUsers',
... |
zanata-editor/src/__tests__/components/ProjectVersionLinkTest.js | Halcom/zanata-server | jest.disableAutomock()
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import ProjectVersionLink from '../../app/components/ProjectVersionLink'
describe('ProjectVersionLinkTest', () => {
it('ProjectVersionLink markup', () => {
const actual = ReactDOMServer.renderToStaticMarkup(
<Pr... |
js/jqwidgets/demos/react/app/scheduler/monthviewwithautorowheight/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount () {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render () {
let appointments = new Arr... |
app/user/profile/UnselectedProfileSkillListItem.js | ecellju/internship-portal | import React from 'react';
import { Label, Icon } from 'semantic-ui-react';
import PropTypes from 'prop-types';
export default class UnselectedProfileSkillListItem extends React.Component {
constructor() {
super();
this.handleClick = (event, data) => {
console.log(data.children[0].props.children);
... |
packages/television/src/components/Head/Favicons.js | accosine/poltergeist | import React from 'react';
export default ({ config: { media, mediasuffix } }) => [
<link
rel="apple-touch-icon"
sizes="57x57"
href={`${media}apple-touch-icon-57x57.png${mediasuffix}`}
/>,
<link
rel="apple-touch-icon"
sizes="60x60"
href={`${media}apple-touch-icon-60x60.png${mediasuffix}`}
... |
docs/client/components/pages/Focus/SimpleFocusEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
import createFocusPlugin from 'draft-js-focus-plugin';
import createColorBlockPlugin from './colorBlockPlugin';
import editorStyles from './editor... |
src/app/modules/cart/components/Cart.spec.js | michael-wolfenden/redux-shopping-cart | import React from 'react'
import expect from 'expect'
import { mount } from 'enzyme'
import Cart from './Cart'
import Product from 'modules/products/components/Product'
const render = (total, products = []) => {
const actions = {
onCheckoutClicked: expect.createSpy(),
}
const component = mount(
... |
packages/ndla-image-search/src/ImageSearchForm.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2016-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'ndla-ui';
import BEMHelper from 'react... |
packages/components/src/DateTimePickers/pickers/TimePicker/TimePicker.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { timeToStr, pad } from '../../Time/time-extraction';
import withListGesture from '../../../Gesture/withListGesture';
import theme from './TimePicker.scss';
function isBefore(a, b) {
if (a.hours > b.hours) {
... |
mdbreact/components/NavItem.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class NavItem extends Component {
render() {
const {
children,
className,
tag: Tag,
...attributes
} = this.props;
const classes = classNames(
'nav-item',
... |
graphwalker-studio/src/main/js/index.js | KristianKarl/graphwalker-project | import "core-js/stable";
import "regenerator-runtime/runtime";
import React from 'react';
import { render } from "react-dom";
import { Provider } from 'react-redux'
import store from './redux/store'
import Application from './Application';
render(<Provider store={store}><Application /></Provider>, document.getElementB... |
test/components/EnterprisePageComponentTest.js | chimo/se-dir-frontend-react | /* eslint-env node, mocha */
/* global expect */
/* eslint no-console: 0 */
'use strict';
import React from 'react';
import { shallow } from 'enzyme';
import EnterprisePageComponent from 'components/EnterprisePageComponent.js';
var slug = require('slug');
slug.defaults.mode = 'rfc3986';
describe('EnterprisePageComp... |
src/js/admin/articles/filters/label-filter/label-filter.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import FilterInput from '../filter-input'
const LabelFilter = ({ value }) => (
<FilterInput title="标签" label="label" value={value} />
)
const mapStateToProps = state => ({
value: state.filters.label,
})
const mapDispatchToProps = () => ({})
const ... |
packages/veritone-react-common/src/components/OAuthLoginButton/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import OAuthLoginButton from './';
storiesOf('OAuthLoginButton', module)
.add('With text', () => {
return <OAuthLoginButton />;
})
.add('Logo icon only', () => {
return <OAuthLoginButton iconOnly />;
});
|
frontend/js/components/ecosystems/LocationForm.js | Code4HR/okcandidate-platform | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Hr from './../atoms/Hr';
import Alert from './../organisms/Alert';
import TextField from './../organisms/TextField';
import {
getLocationByGPS,
getLocationByAddress,
fetchNonRegionLimitedSurveys
} from './.... |
src/screens/App/components/Header.js | enesTufekci/react-clear-starter-kit | /* @flow */
import React from 'react';
const Header = () => (
<div className="App-header">
<h2>React Clear Starter Kit</h2>
</div>
);
export default Header;
|
webpack/containers/questions/QuestionModalContainer.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Modal, Button, Row, Col } from 'react-bootstrap';
import $ from 'jquery';
import { saveQuestion } from '../../actions/questions_actions';
import { fe... |
src/components/UserDetailSections/ExtendedInfo/components/RequestPreferencesView/RequestPreferencesView.js | folio-org/ui-users | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import {
Col,
KeyValue,
Row,
} from '@folio/stripes/components';
import { requestPreferencesShape } from '../../../../../shapes';
import styles from './RequestPreferencesView.css';
class... |
src/containers/views/PageNew.js | jekyll/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory, withRouter } from 'react-router';
import DocumentTitle from 'react-document-title';
import CreateMarkdownPage from '../../components/C... |
app/containers/SignUpContainer.js | jcarral/cafeADE | import React, { Component } from 'react';
import { connect } from 'react-redux';
import SignUp from '../components/SignUp';
import LoadingPage from '../components/LoadingPage';
import { signUp } from '../actions/statusActions';
class SignUpContainer extends Component {
static navigationOptions = {
title: 'Regi... |
src/routes/authority/account/Filter.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Button, Row, Col, Input, Popconfirm } from 'antd'
const { Search } = Input
const ColProps = {
xs: 24,
sm: 12,
style: { marginBottom: 16 },
}
const TwoColProps = {
...ColProps,
xl: 96,
}
const Filter = ({
onAdd,
onFilterChange,
... |
packages/es-components/src/components/controls/radio-buttons/RadioButton.js | jrios/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Label from '../label/Label';
import getRadioFillVariables from './radio-fill-variables';
import { useTheme } from '../../util/useTheme';
import ValidationContext from '../ValidationContext';
import useUniqueId... |
test/integration/scss-fixtures/npm-import-nested/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
app/components/Product.js | Byte-Code/lm-digital-store-private-test | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Map, fromJS } from 'immutable';
import glamorous from 'glamorous';
import throttle from 'lodash/throttle';
import inRange from 'lodash/inRange';
import ImageSlider from './... |
src/entry-points/client.js | shaunstanislaus/react-redux-starter-kit | import React from 'react';
import App from 'containers/app';
import { history } from 'react-router/lib/BrowserHistory';
React.render(<App history={history} />, document.getElementById('mount'));
|
src/svg-icons/image/filter-7.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter7 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2l4-8V5h-6v2h4l-4 8h2z... |
__tests__/TestComponentWhichShouldThrow4.js | liegeandlief/whitelodge | 'use strict'
import React from 'react'
import {AddStoreSubscriptions} from '../src/'
class TestComponent extends React.Component {
render () {
return null
}
}
export default AddStoreSubscriptions(TestComponent, ['testStore'], window, ['notAString'])
|
app/javascript/mastodon/components/column_back_button_slim.js | esetomo/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButtonSlim extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length ==... |
docs/src/app/components/pages/components/Avatar/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import avatarReadmeText from './README';
import AvatarExampleSimple from './Exam... |
src/bundles/ApplicationsAdmin/components/AppDiff/AppDiff.js | AusDTO/dto-digitalmarketplace-frontend | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Control, LocalForm } from 'react-redux-form';
import { appSave } from '../../redux/modules/application';
import { diff_match_patch } from 'diff-match-patch';
import styles from './AppDiff.css';
import traverse from 'traverse';
c... |
app/javascript/mastodon/components/missing_indicator.js | codl/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
test/specs/modules/Modal/Modal-test.js | jcarbo/stardust | import _ from 'lodash'
import React from 'react'
import Portal from 'react-portal'
import Modal from 'src/modules/Modal/Modal'
import ModalHeader from 'src/modules/Modal/ModalHeader'
import ModalContent from 'src/modules/Modal/ModalContent'
import ModalActions from 'src/modules/Modal/ModalActions'
import ModalDescript... |
src/html/tags/HtmlTagLi.js | saketkumar95/zulip-mobile | import React from 'react';
import { StyleSheet, View } from 'react-native';
import styles from '../HtmlStyles';
import HtmlNodeText from '../HtmlNodeText';
import renderHtmlChildren from '../renderHtmlChildren';
const BULLET = '\u2022';
const customStyles = StyleSheet.create({
text: {
flexWrap: 'wrap',
fle... |
src/index.js | ebn646/react-moviesearch | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, hashHistory,Router, Route, IndexRoute, Link, withRouter } from 'react-router'
import App from './components/app/app.js'
import Home from './components/home/home.js'
import Movie from './components/movie/movie.js'
import MovieList from... |
src/server.js | samerce/lampshade | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
app/app.js | maciejsikora/react-task-list | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TaskBox from './tasklist/taskbox.jsx';
const App = React.createClass({
render:function(){
r... |
frontend/components/Question.js | ParroApp/parro | import React from 'react';
import Navbar from './Navbar';
import TypeWriter from 'react-typewriter';
import RecordRTC from 'recordrtc';
const StereoAudioRecorder = RecordRTC.StereoAudioRecorder;
import {captureUserMedia, uploadAudio} from './AppUtils';
class Question extends React.Component {
constructor(props) {
... |
src/DataTables/DataTablesTable.js | hyojin/material-ui-datatables | import React from 'react';
import {Table} from 'material-ui/Table';
class DataTablesTable extends Table {
createTableBody(base) {
return React.cloneElement(
base,
{
allRowsSelected: this.state.allRowsSelected,
multiSelectable: this.props.multiSelectable,
onCellClick: this.onC... |
node_modules/react-router/es/Redirect.js | juhov/travis-test | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
app/private/indexerApp/imports/ui/pages/Documents.js | ericvrp/GameCollie | import React from 'react';
import { Link } from 'react-router';
import { Row, Col, Button } from 'react-bootstrap';
import DocumentsList from '../components/DocumentsList';
const Documents = () => (
<div className="Documents">
<Row>
<Col xs={ 12 }>
<div className="page-header clearfix">
<... |
src/__tests__/MaterialText.js | material-native/material-native | 'use strict';
import React from 'react';
import MaterialTheme from '../styles/MaterialTheme';
import ThemeProvider from '../styles/ThemeProvider';
import MaterialText from '../MaterialText';
import ReactTestRenderer from 'react-test-renderer';
import ToJSX from 'react-element-to-jsx-string';
const theme = new Materia... |
src/svg-icons/social/poll.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPoll = (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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
SocialPoll = ... |
client/src/javascript/components/icons/DownloadThickIcon.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class DownloadThickIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--download ${this.props.className}`} viewBox={this.getViewBox()}>
<polygon points="44.1,23 33,39.7 33,4.6 27,4.6 27,39.7 15.9,23 10.... |
src/index.js | arimaulana/rest-api-frontend-in-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import jwtDecode from 'jwt-decode';
import setAuthorizationToken from './utils/setAuthorizationToken';
import { setCurrentUser } from './actions/authA... |
stories/props/drilldownView.stories.js | jquense/react-big-calendar | import React from 'react'
import moment from 'moment'
import { Calendar, Views, momentLocalizer } from '../../src'
import demoEvents from '../resources/events'
import mdx from './drilldownView.mdx'
const mLocalizer = momentLocalizer(moment)
export default {
title: 'props',
component: Calendar,
argTypes: {
l... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | leechuanjun/TLReactNativeProject | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.