path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
docs/src/app/components/pages/components/AutoComplete/Page.js | kittyjumbalaya/material-components-web | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import autoCompleteReadmeText from './README';
import autoCompleteCode from '!ra... |
src/containers/FolderContainer/FolderContainer.js | TobiasTimm/marked-it | import React from 'react';
import PropTypes from 'prop-types';
import Divider from 'material-ui/Divider';
import List from 'material-ui/List';
import { withTheme } from 'material-ui/styles';
import { darken } from 'polished';
import { connect } from 'react-redux';
import styled from 'styled-components';
import Bookmark... |
SpotifyAPI.Docs/src/pages/index.js | JohnnyCrazy/SpotifyAPI-NET | import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import CodeBlock from '@theme/CodeBlock';
import Layout from '@theme/Layout';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';
import classnames... |
src/components/Seats/Seats.js | dderevjanik/dnx-exercise | import React from 'react';
import { Seat } from './Seat';
import { seatsType } from './../../utils/customProps';
export const Seats = (props) => (
<tbody>
{
props.seats.map((row, rowInd) =>
(<tr key={rowInd}>
<td><b>Row {rowInd + 1}</b> </td>
{ row.map((seat,... |
blog-post-5+6/src/www/js/components/widget-table.js | DevelopIntelligenceBoulder/react-flux-blog | import React from 'react';
import ViewRowComponent from './view-row';
import EditRowComponent from './edit-row';
export default props => {
return <table className="table table-inverse">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Color</th>
<th>Size</th>
<th>Quantity</th>
<th>Owne... |
src/containers/views/tests/staticfiles.spec.js | jekyll/jekyll-admin | import React from 'react';
import { mount } from 'enzyme';
import { StaticFiles } from '../StaticFiles';
import { staticfile, directory } from './fixtures';
function setup(files = [directory, staticfile]) {
const actions = {
fetchStaticFiles: jest.fn(),
uploadStaticFiles: jest.fn(),
deleteStaticFile: je... |
src/components/icons/EyeIcon.js | austinknight/ui-components | import React from 'react';
const EyeIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="1 1 22 22">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.... |
js/components/form/textArea.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Textarea, Body, Left, Right, IconNB } from 'native-base';
import { Actions } from 'react-native-router-flux';
import sty... |
react/features/invite/components/ShareLinkForm.js | KalinduDN/kalindudn.github.io | import React, { Component } from 'react';
import { translate } from '../../base/i18n';
const logger = require('jitsi-meet-logger').getLogger(__filename);
/**
* A React {@code Component} for displaying a value with a copy button to copy
* the value into the clipboard.
*/
class ShareLinkForm extends Component {
... |
node_modules/@expo/vector-icons/vendor/react-native-vector-icons/lib/icon-button.js | RahulDesai92/PHR | import { isString, omit, pick } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Text, TouchableHighlight, View } from './react-native';
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
justifyContent: 'flex-start',
ali... |
src/svg-icons/action/perm-device-information.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
app/scripts/TrackArea.js | hms-dbmi/4DN_matrix-viewer | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import { SortableHandle } from 'react-sortable-hoc';
class TrackArea extends React.Component {
constructor(props) {
super(props);
this.state = {
controlsVisible: false,
};
}
shouldComponentUpdate(... |
source/patterns/00-atoms/spinner/docs/spinner.example.js | apparena/patterns | import React from 'react';
import {Spinner} from 'apparena-patterns-react';
export default function SpinnerExample() {
return (
<Spinner type="outline-primary" size="lg"/>
);
} |
components/MailingList.js | etaiklein/gameghost | import React from 'react'
export default class MailingList extends React.Component {
render() {
return (
<form
action="https://formspree.io/gameghostnyc@gmail.com"
method="POST"
style={{
display: "flex",
flexDirection: "row",
marginBottom: 0,
... |
web/src/Footer/Footer.js | ncpierson/soundoftext | import React from 'react';
import { HashLink as Link } from 'react-router-hash-link';
import './Footer.css';
function Footer(props) {
return (
<footer className="footer">
<div className="footer__left">
<a className="footer__link" href="https://twitter.com/SoundOfTextApp">
Twitter
... |
src/package/plugins/slate-grid-plugin/GridRowNode.js | abobwhite/slate-editor | import React from 'react'
const GridRowNode = ({ attributes, children }) => (
<tr {...attributes}>
{children}
</tr>
)
export default GridRowNode
|
20161216/cnode/app/main.js | fengnovo/react-native | import React from 'react';
import{
AppRegistry,
Platform,
TouchableOpacity,
StyleSheet,
Navigator,
View,
Text,
Image
} from 'react-native';
import HomePage from './HomePage';
const defaultRoute = {
component: HomePage
};
class Avigation extends React.Component {
_renderScene(route, navigator) {
... |
components/common/icon/index.js | marrus-sh/mastodon-go | // <CommonIcon>
// ========
// This is a very simple component for streamlining FontAwesome icons.
// The passed `icon` should be the FontAwesome name (not including the
// `'fa-'`). If `proportional` isn't specified, the icon is assumed
// to be fullwidth.
// Alternatively, the passed `icon` can be a node, i... |
src/index.js | EnvisionMobile/ReduxTuiCool | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose, combineReducers} from 'redux';
import { Provider } from 'react-redux';
import reducers from './reducers';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import createRouter... |
docs/src/app/components/pages/components/Toggle/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import Toggle from 'material-ui/Toggle';
const styles = {
block: {
maxWidth: 250,
},
toggle: {
marginBottom: 16,
},
thumbOff: {
backgroundColor: '#ffcccc',
},
trackOff: {
backgroundColor: '#ff9d9d',
},
thumbSwitched: {
backgroundColor: 'red',
},
trac... |
src/server.js | bierbaumf/02_Eingabefeld_FINAL | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from... |
packages/mineral-ui-icons/src/IconHistory.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconHistory(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
pages/error/index.js | MartinKilonzo/remmyMartin | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
client/views/UserEdit/UserEdit.js | alexpalombaro/react-redux-starter-kit | import {style} from './UserEdit.scss';
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {Link} from 'react-router';
import {UserEditAction} from 'actions';
import {ProgressBarView, InputDateView, InputView} from 'views';
import {log, Modernizr, validEmai... |
src/js/components/Movie.js | csepreghy/VR-Cinema-Website-with-React.js | import {Entity} from 'aframe-react';
import React from 'react';
export default class Movie extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Entity>
<a-video
webkit-playsinline=""
id="movie"
src="#movie"
... |
app/javascript/mastodon/components/status_action_bar.js | masto-donte-com-br/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from ... |
src/widgets/components/leagueMemberHighlights.js | vipoo/iracing-widgets | import React from 'react';
import iRacingService from 'lib/iRacingService';
import WidgetNames from 'lib/widgetNames';
import when from 'when';
WidgetNames.add('leagueMemberHighlights')
const outerStyles = {
background: '#FFFFFF',
height: '200px',
width: '360px',
paddingTop: '25px'
}
const innerStyles = {
... |
src/pages/about.js | dnzhng/phlog | import React from 'react'
import { graphql } from 'gatsby'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'
import Layout from '../components/Layout'
import SEO from '../components/Seo'
const AboutPage = ({ data: { contentfulAboutPage } }) => (
<Layout collapsed={true}>
<SEO titl... |
admin/components/catalog/flat_list.js | svyatogor/dreamscape | import React from 'react'
import {
Card,
CardTitle,
} from 'material-ui'
import {pluralize, humanize} from 'inflection'
import {compose} from 'recompose'
import {connect} from 'react-redux'
import SearchBar from 'material-ui-search-bar'
import {push} from 'react-router-redux'
import ListConfigurationMenu from './li... |
lib/admin/admin-topics-form/view.js | DemocracyOS/democracyos | import React from 'react'
import { render as ReactRender } from 'react-dom'
import closest from 'component-closest'
import confirm from 'democracyos-confirmation'
import Datepicker from 'democracyos-datepicker'
import debug from 'debug'
import o from 'component-dom'
import t from 't-component'
import page from 'page'
i... |
cloud/dashboard/src/components/ResourceList.js | rzr/iotivity | /*
* //******************************************************************
* //
* // Copyright 2017 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use th... |
src/junior_profiles/JuniorProfile.js | tadahmen/jrdev-job-hunt-FRONT | import React from 'react';
import jQuery from 'jquery';
class JuniorProfile extends React.Component {
constructor(){
super();
this.state = {
user: [],
skills: [
"coffeescript",
"cplusplus",
"csharp",
"java",
"javascript",
"jquery",
... |
react/features/dial-out/components/DialOutNumbersForm.web.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import ExpandIcon from '@atlaskit/icon/glyph/expand';
import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
import { translate } from '../../base/i18n';
import CountryIcon from './CountryIcon';
import { updateDialOutCodes } fro... |
src/scripts/shared/components/Document.js | Fourwinged/react-quizz |
/* Document
**
** Base HTML document
*/
import React from 'react';
class Document extends React.Component {
constructor(props) {
super(props);
this.createScript = this.createScript.bind(this);
this.createStylesheet = this.createStylesheet.bind(this);
}
createScript(file) {
... |
src/client/main.js | victoryancn/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
src/svg-icons/image/photo.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePhoto = p... |
packages/netlify-cms-core/src/components/Collection/__tests__/NestedCollection.spec.js | netlify/netlify-cms | import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { render, fireEvent } from '@testing-library/react';
import { fromJS } from 'immutable';
import configureStore from 'redux-mock-store';
import { Provider } from 'react-redux';
import ConnectedNestedCollection, {
NestedCollection,
ge... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/index.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/components/SearchBox/SearchBox.stories.js | austinknight/ui-components | import { action, storiesOf } from "@storybook/react";
import React from "react";
import SearchBox from "./SearchBox";
import * as SearchBoxThemes from "./SearchBoxThemes.js";
import { wrapComponentWithContainerAndTheme, colors } from "../styles";
function renderChapterWithTheme(theme) {
return {
info: `
... |
components/dialogs/ContainersDialog.js | FredTingaud/quick-bench-front-end | import React from 'react';
import { Modal, Button, Form, Col, Row } from 'react-bootstrap';
import Fetch from 'components/Fetch.js';
class ContainersDialog extends React.Component {
constructor(props) {
super(props);
this.state = {
possibles: [],
checked: [],
pul... |
src/Parser/Hunter/Survival/Modules/Items/Tier21_2p.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDon... |
src/base/Slider.js | WellerQu/rongcapital-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import clazz from 'classnames';
import memoize from 'ramda/src/memoize';
import compose from 'ramda/src/compose';
import clamp from 'ramda/src/clamp';
import pathOr from 'ramda/src/pathOr';
import autobind from 'core-decorators/lib/autobind';... |
assets/jqwidgets/demos/react/app/chart/areasplineseries/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'tab',
datafields: [
{ name: 'Year' },
... |
app/containers/FeaturePage/index.js | emise/hoosit | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/components/maps/NationalMap.js | availabs/kauffman-atlas | "use strict"
import React from 'react'
import d3 from 'd3'
import { connect } from 'react-redux'
import { loadNationalData } from 'redux/modules/geoData'
import { loadDensityComposite,loadNewValues,loadShare,loadShareEmpNoAccRet,loadShareEmpHighTech, } from 'redux/modules/densityData'
import { loadFluidityComposite,... |
components/LocationButton.js | brown-jones-industries/client | import React from 'react'
import { connect } from 'react-redux'
import { locationFetchLocation } from '../actions/location'
import AnimatedLocationLoader from './AnimatedLocationLoader'
class LocationButton extends React.Component {
render () {
let locationlabel = ''
if (this.props.location.locationIsLoadi... |
src/components/calculatorSmall/presentation/CSButtons.js | edu-affiliates/promo_calculators | 'use strict';
import React from 'react';
import {connect} from 'react-redux'
import PropTypes from 'prop-types'
import generalOptions from '../../../config/generalOptions';
import {handleValidEmail, initCalc} from '../../../store/actions';
class CalculatorSmallButtons extends React.Component {
constructor(props)... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | limarc/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
examples/js/selection/custom-multi-select-table.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
require('../../customMultiSelect.css');
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantit... |
packages/react-server-website/pages/source.js | davidalber/react-server | import React from 'react';
import {ReactServerAgent, RootContainer} from 'react-server';
import SourceBody from '../components/source-body';
import PageTitle from '../components/page-title';
import SourceContents from '../components/source-contents';
import DataBundleCacheManager from '../middleware/DataBundleCache';
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Snapkey/snapkey.github.io | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
teletobit/src/components/Admin/FeedContainer.js | edenpark/teletobit | import React, { Component } from 'react';
import { Button } from 'semantic-ui-react';
class FeedContainer extends Component {
render() {
const { children } = this.props;
return(
<div className="editor-wrapper">
{ children }
</div>
);
}
}
export ... |
6.4.0/examples/react-widgets/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(303),e.exports=n(302)},function(e,t,n){var r=n(6),o=n(40),i=n(21),a=n(22),u=n(41),s="prototype",... |
src/components/Management/TafExampleTafManagementPanel.spec.js | maartenlterpstra/GeoWeb-FrontEnd | import React from 'react';
import { default as TafExampleTafManagementPanel } from './TafExampleTafManagementPanel';
import { mount } from 'enzyme';
describe('(Component) TafExampleTafManagementPanel', () => {
let _component;
beforeEach(() => {
_component = mount(<TafExampleTafManagementPanel urls={{ BACKEND_S... |
js/index.js | silverHub/accessible-web-example | import React from 'react';
import ReactDOM from 'react-dom';
import Todo from './components/Todo';
ReactDOM.render(<Todo />, document.getElementById('app'));
|
shared/components/Equilab/Info/Info.js | thehink/equilab-web | import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import { Element } from 'react-scroll';
import image1 from 'assets/images/mobile2.png';
import image2 from 'assets/images/mobile1.png';
import PreloadImage from 'Equilab/PreloadImage';
import styles from './Info.scss';
class In... |
src/app/components/graphs/inline/SparklineContainer.js | backpackcoder/world-in-flames | import 'script-loader!smartadmin-plugins/bower_components/relayfoods-jquery.sparkline/dist/jquery.sparkline.js'
import React from 'react'
import {findDOMNode} from 'react-dom'
export default class SparklineContainer extends React.Component {
barChart($el) {
let barColor = $el.data('sparkline-bar-color') || $... |
app/components/Watched/WatchedComponent.js | TriPSs/popcorn-time-desktop | import React from 'react'
import classNames from 'classnames'
import ReactTooltip from 'react-tooltip'
import type { Props } from './WatchedTypes'
import classes from './Watched.scss'
export default (props: Props) => {
const { item, toggleWatched, className, tooltip = { effect: 'solid', place: 'top' } } = props
... |
fields/types/textarea/TextareaField.js | codevlabs/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged... |
src/index.js | bj0rge/bjorge-irc | // modules
import {AppContainer} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {syncHistoryWithStore} from 'react-router-redux';
import {browserHistory} from 'react-router';
// api
import FirebaseApi from './api/firebase';
// actions... |
step02_child_component/src/components/ChildCom.js | panacloud/learn-react | import React, { Component } from 'react';
class ChildCom extends Component {
render() {
return (
<div>
Tea with {this.props.with}
</div>
);
}
}
export default ChildCom;
|
src/server.js | cbellino/react-sandbox | /**
* 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... |
src/routes/user/UserList.js | hhj679/mybition-web | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import styles from './UserList.less'
import classnames from 'classnames'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import { DropOption } from '../../components'
import { Link } from 'dva/router'
... |
lib/Select/tests/Select-ReduxForm-test.js | folio-org/stripes-components | import React from 'react';
import { describe, beforeEach, it } from 'mocha';
import { Field } from 'redux-form';
import { Select as SelectInteractor, including } from '@folio/stripes-testing';
import { mountWithContext } from '../../../tests/helpers';
import TestForm from '../../../tests/TestForm';
import Select from ... |
src/components/sandbox.js | nicolas-briemant/react-inception | import React from 'react';
import PropTypes from 'prop-types';
import Pulsar from './pulsar';
import { div } from 'glamorous';
const StyledDiv = div({ padding: 20 });
const SandBox = () => {
return (
<StyledDiv className="sand-box">
<Pulsar />
</StyledDiv>
);
};
SandBox.propTypes = {};
export defa... |
packages/material-ui-icons/src/ExposurePlus1.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ExposurePlus1 = props =>
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z" />
</SvgIcon>;
ExposurePlus1 = pure(ExposurePlus1);
ExposurePlus1.muiNam... |
docs/app/Examples/collections/Form/States/FormSuccessExample.js | jcarbo/stardust | import React from 'react'
import { Button, Form, Input, Message } from 'stardust'
const FormSuccessExample = () => (
<Form success>
<Form.Input label='Email' placeholder='joe@schmoe.com' />
<Message
success
header='Form Completed'
content="You're all signed up for the newsletter"
/>
... |
src/components/Card/CardActions.js | tuckerconnelly/carbon-ui | import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import Uranium from 'uranium'
import { connectTheme } from '../../index'
const CardActions = ({ children, style }) =>
<View css={[styles.root, style]}>
{children}
</View>
CardActions.propTypes = {
/**
* Can b... |
client/src/core-components/card.js | opensupports/opensupports | import React from 'react';
import Icon from 'core-components/icon';
import Button from 'core-components/button';
import classNames from 'classnames';
class Card extends React.Component{
static propTypes = {
description: React.PropTypes.string,
title: React.PropTypes.string,
icon: React.Prop... |
src/admin/ShelterSummary.js | ocelotconsulting/global-hack-6 | import React from 'react'
import moment from 'moment'
import BedChart from './BedChart'
export default class ShelterSummary extends React.Component {
render() {
const { name, date, beds: { available, pending, total } } = this.props
const formattedDate = moment(date).format('dddd MMMM Do')
return (
... |
es6/Carousel/CarouselItem.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
src/components/Search.spec.js | benjamintd/mapbox-maps | import React from 'react';
import renderer from 'react-test-renderer';
import {shallow} from 'enzyme';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import {defaultState} from '../reducers/index';
import reducers from '../reducers/index';
import {Search} from './Search';
impo... |
src/routes.js | alex-bluemix/web01.pointlook.com | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
src/components/topic/header.js | nickhsine/twreporter-react | import { Link } from 'react-router-dom'
import mq from '../../utils/media-query'
import React from 'react'
import SearchBox from './search-box'
import styled from 'styled-components'
import WhiteDonationIcon from '../../../static/asset/white-donation-icon.svg'
import WhiteLogoIcon from '../../../static/asset/logo-white... |
modules/Router.js | ryardley/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
app/components/TwoColomnsList/index.js | 54vanya/ru-for-you-front | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item) => (
<ComponentToRender key={`item-$... |
src/server.js | jlfwong/1rt | import fs from 'fs';
import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from... |
packages/react-examples/src/index.js | ustbhuangyi/better-scroll | import React from 'react'
import ReactDOM from 'react-dom'
import { HashRouter } from 'react-router-dom'
import reportWebVitals from './reportWebVitals'
import App from './App'
import './index.styl'
ReactDOM.render(
<HashRouter>
<App />
</HashRouter>,
document.getElementById('root')
)
// If you want to st... |
webpack.config.babel.js | efegurkan/interval-picker | import * as path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import SystemBellPlugin from 'system-bell-webpack-plugin';
import CleanPlugin from 'clean-webpack-plugin';
import merge from 'webpack-merge';
im... |
src/components/views/delegatesList/components/introduction/CoolnessScore.js | LiskHunt/LiskHunt | import React, { Component } from 'react';
import MediaQuery from 'react-responsive';
class CoolnessScore extends Component {
constructor(props) {
super(props);
this.state = { expanded: false };
}
renderScore() {
if (this.state.expanded) {
return (
<div>
<div className="coolne... |
src/routes.js | jovey-zheng/react-start-kit | import React from 'react';
import { Route } from 'react-router';
import Base from 'components/base/Base';
import Home from 'components/home/Home';
import {
WebpackPage,
ComponentPage,
RouterPage,
AntdPage
} from 'components/content';
export default (
<Route component={Base}>
<Route path="/" component={Ho... |
src/components/LandingView/GroupPostings/GroupPostingsToolbar/GroupPostingsToolbar.js | dggriffin/warframeLFG | import React from 'react';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
import ToolbarSeparator from 'material-ui/Toolbar/ToolbarSeparator';
import Toggle from 'material-ui/Toggle';
import SelectField from 'material-ui/SelectField';
import {Motion, spring} from 'reac... |
fields/explorer/components/FieldType.js | rafmsou/keystone | import React from 'react';
import Markdown from 'react-markdown';
import Col from './Col';
import Row from './Row';
import FieldSpec from './FieldSpec';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
readmeIsVisible: !!this.props.readme,
filter: this.props.FilterComponent.getDefa... |
src/components/typography.js | garth/material-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Typ extends Component {
static displayName = 'Typography';
static contextTypes = {
componentStyle: PropTypes.object
};
static propTypes = {
className: PropTypes.string,
childre... |
js/jqwidgets/jqwidgets-react/react_jqxwindow.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxWindow extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
src/index.js | suiyang1714/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
frontend/modules/list/components/AddItem.js | rustymyers/OpenEats | "use strict";
import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, defineMessages } from 'react-intl'
import {
ENTER_KEY
} from '../constants/ListStatus'
class AddItem extends React.Component {
constructor(props) {
super(props);
this.state = {
title: '',
};
}
... |
ui/src/main/js/components/UpdateTime.js | apache/aurora | import moment from 'moment';
import React from 'react';
import { RelativeTime } from 'components/Time';
function UpdateTimeDisplay({ timestamp }) {
return (<div className='update-time'>
<span>{moment(timestamp).utc().format('ddd, MMM Do')}</span>
<h4>{moment(timestamp).utc().format('HH:mm')}</h4>
<span ... |
packages/react-error-overlay/src/components/NavigationBar.js | IamJoseph/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { red, redTransparent } from '../styles';
const navigationBarStyle = {
marginBottom: '0... |
examples/js/complex/app.js | pvoznyuk/react-bootstrap-table | /* eslint no-unused-vars: 0 */
/* eslint no-console: 0 */
/* eslint space-infix-ops: 0 */
/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < qu... |
src/packages/@ncigdc/components/SpinnerCentered.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import Particle from '@ncigdc/uikit/Loaders/Particle';
import { Column } from '@ncigdc/uikit/Flex';
type TProps = {
style: Object,
};
const SpinnerCentered = ({ style, ...props }: TProps) => (
<Column
className="test-spinner"
style={{
alignItems: 'center',
... |
js/components/AddModal.js | pt-br/relay-phones | import React, { Component } from 'react';
import Relay from 'react-relay';
import { Alert, Modal, Form, FormGroup, FieldGroup, Col, Button } from 'react-bootstrap';
import AddPhoneMutation from '../mutations/AddPhoneMutation';
export default class AddModal extends Component {
constructor(props) {
super(props);... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | kssujithcj/TestMobileCenter | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
test/components/Counter.spec.js | lynks-p2p/lynks-client | /* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import { shallow } from 'enzyme';
import Counter from '../../app/components/Counter';
function setup() {
const actions = {
increment: spy(),
incrementIfOdd: spy(),
incrementA... |
src/browser/auth/Email.js | VigneshRavichandran02/3io | /* @flow */
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import emailMessages from '../../common/auth/emailMessages';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { connect } from 'react-redux'... |
server/sonar-web/src/main/js/apps/background-tasks/components/TaskDay.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... |
app/assets/scripts/components/dropdown.js | worldbank-cdrp/disaster-risk-explorer | 'use strict'
import React from 'react'
import TetherComponent from 'react-tether'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import _ from 'lodash'
const Dropdown = React.createClass({
displayName: 'Dropdown',
propTypes: {
triggerElement: React.PropTypes.oneOf(['a', 'button']),
... |
src/elements/List/ListHeader.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A list item can contain a header.
*/
function ListHeader(props) {
const { children... |
src/main.js | glevinzon/capstone-frontend | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './store/createStore'
import AppContainer from './containers/Ap... |
public/js/12C.spec.js | ritchieanesco/frontendmastersreact | /* Snap shot Testing - renders out component and compares the last snapshot */
import React from 'react'
import Search from './12C'
// need this module for Jest
// import renderer from 'react-test-renderer'
import ShowCard from './12D'
import { shallow } from 'enzyme'
import { shallowToJson } from 'enzyme-to-json'
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.