path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/common/svg-icons/hardware/tablet-android.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
src/components/Contentful/News/presenter.js | ndlib/usurper | // Presenter component for a Page content type from Contentful
import React from 'react'
import PropTypes from 'prop-types'
import 'static/css/global.css'
import LibMarkdown from 'components/LibMarkdown'
import Related from '../Related'
import Image from 'components/Image'
import Link from 'components/Interactive/Link'... |
src/svg-icons/action/settings-input-svideo.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h... |
upgrade-guides/v0.12-v0.13/es5/src/components/Layout.js | lore/lore | /**
* This component is intended to reflect the high level structure of your application,
* and render any components that are common across all views, such as the header or
* top-level navigation. All other components should be rendered by route handlers.
**/
import React from 'react';
import PropTypes from 'prop... |
node_modules/rc-time-picker/es/TimePicker.js | prodigalyijun/demo-by-antd | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { Component } from 'react';
im... |
src/containers/Location/index.js | TUIHackfridays/tuise-poc | import React from 'react'
const Location = () =>
<div>
The location page
</div>
const styles = {
}
export default Location
|
src/components/topic/words/InfluentialWordsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import Word2VecTimespanPlayerContainer from './Word2VecTimespanPlayerContainer';
import WordCloudCompa... |
src/js/containers/GalleryContainer.js | sdeleon28/react-fullscreen-gallery | import React from 'react';
import Gallery from '../components/Gallery';
const pt = React.PropTypes;
class GalleryContainer extends React.Component {
constructor() {
super();
this.onImageSelected = this.onImageSelected.bind(this);
this.state = {
selectedImageIndex: 0,
};
}
onImageSelected... |
information/blendle-frontend-react-source/app/modules/timeline/components/FollowChannels.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { translate, translateElement, getIso639_1 as getLang } from 'instances/i18n';
import classNames from 'classnames';
import Link from 'components/Link';
import ChannelName from 'components/ChannelName';
import Auth from 'controllers/auth';
import Chan... |
motion-test/src/motionCustom.js | wandarkaf/React-Bible | import React, { Component } from 'react';
import {Motion, spring, presets} from 'react-motion';
class MotionCustom extends Component {
render(){
return (
<Motion
defaultStyle={{
y: 500,
z: 4
}}
style={{
y: spring(100, presets.wobbly),
z: sprin... |
packages/icons/src/md/maps/LocalDrink.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLocalDrink(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M6 4h36l-4.03 36.47A3.994 3.994 0 0 1 34 44H14c-2.05 0-3.74-1.54-3.97-3.53L6 4zm18 34c3.31 0 6-2.69 6-6 0-4-6-10.8-6-10.8S18 28 18 32c0 3.31 2.69 ... |
components/BottomNavigation.js | BDE-ESIEE/mobile | 'use strict';
import React from 'react';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import {DefaultRenderer} from 'react-native-router-flux';
import TabBar from './TabBar';
class BottomNavigation extends React.Component {
render () {
const props = this.props;
return (
<Scrollab... |
src/components/RayGunComponent.js | pacmessica/worms-copy | import React from 'react';
class RayGunComponent extends React.Component {
constructor() {
super();
}
gunStyle() {
return {
position: "fixed",
width: "5px",
height: "5px",
backgroundColor: "black",
left: this.props.x + 5 + "px",
top: this.props.y + "px"
};
}
... |
examples/src/app.js | mrcodemonkey/react-autosuggest | require('./app.less');
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Badges from './Badges/Badges';
import Examples from './Examples';
import Footer from './Footer/Footer';
import ForkMeOnGitHub from './ForkMeOnGitHub/ForkMeOnGitHub';
import TrackLinks from './TrackLinks/TrackLinks... |
lib/ui/src/modules/ui/components/layout/index.js | bigassdragon/storybook | import PropTypes from 'prop-types';
import React from 'react';
import USplit from './usplit';
import Dimensions from './dimensions';
import SplitPane from 'react-split-pane';
const rootStyle = {
height: '100vh',
backgroundColor: '#F7F7F7',
};
const leftPanelStyle = leftPanelOnTop => ({
width: '100%',
display... |
src/components/Github/Feed/DetailPush.js | jseminck/react-native-github-feed | import React from 'react';
import { Text, View, Image, ScrollView, ListView } from 'react-native';
import moment from 'moment';
export default class DetailComment extends React.Component {
static propTypes = {
eventDetail: React.PropTypes.object.isRequired
}
constructor(props) {
super(prop... |
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/8_VenuePreview/index.js | westoncolemanl/tabbr-web | import React from 'react'
import withStyles from 'material-ui/styles/withStyles'
import Typography from 'material-ui/Typography'
import VenueTable from './VenueTable'
import Navigation from './Navigation'
const styles = theme => ({
root: {
[theme.breakpoints.down('sm')]: {
paddingLeft: theme.spacing.unit... |
app/index.js | Onra/inspiringquote | import React from 'react';
import ReactDOM from 'react-dom';
import Home from './components/Home';
import './styles/stylesheet.scss';
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<Home />, document.getElementById('root'));
}); |
src/scenes/home/landing/landing.js | sethbergman/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactModal from 'react-modal';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import { faTimes } from '@fortawesome/fontawesome-free-solid';
import Hero from './hero/hero';
import Membership from './membership/membership... |
src/svg-icons/file/cloud-upload.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudUpload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.... |
src/components/RecurrencePicker/RecurrencePicker.js | F-Ruxton/taskata | import React, { Component } from 'react';
// import moment from 'moment';
// import 'moment-recur';
// import { find, chunk, map, remove, isEmpty } from 'lodash';
import { find, chunk, map } from 'lodash';
import './RecurrencePicker.css';
import SimpleSelectWrapper from '../SimpleSelectWrapper/SimpleSelectWrapper';
i... |
src/components/Last/Last.stories.js | joshwcomeau/react-collection-helpers | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Last from '../Last';
import Sort from '../Sort';
storiesOf('Last', module)
.add('default (1 item)', () => (
<Last collection={['Apple', 'Banana', 'Carrot']}>
{item => <div>{item}</div>}
</Last>
))
.add('last 3 of 4 i... |
src/components/projectManageIndex/projectManageIndex.js | wengyian/project-manager-system | /**
* Created by 51212 on 2017/4/10.
*/
import React, { Component } from 'react';
import {BrowserRouter as Router, Route, browserHistory, Switch} from 'react-router-dom';
import Header from '../Header/Header';
//import ProjectManage from '../projectManage/projectManage';
//import TextTable from '../textTable/textTabl... |
src/parser/warrior/fury/modules/spells/Recklessness.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { SELECTED_PLAYER } from 'parser/core/EventFilter';
import StatisticBox from 'interface/others/StatisticBox';
i... |
src/js/components/settings/Global.js | barumel/ultritium-radio-player | import React from 'react';
import { Panel } from 'react-bootstrap';
import { SettingsPanel } from './panel/Panel';
import { SettingsPanelHeader } from './panel/Header';
import { SettingsFormGlobal } from './form/Global';
export class GlobalSettings extends SettingsPanel {
constructor() {
super();
this.state... |
docs/app/Examples/elements/List/Variations/ListExampleCelled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image, List } from 'semantic-ui-react'
const ListExampleCelled = () => (
<List celled>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<List.Content>
<List.Header>Snickerdoodle</List.Header>
An excellent compan... |
packages/icons/src/md/av/LibraryAdd.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLibraryAdd(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M8 12H4v28c0 2.21 1.79 4 4 4h28v-4H8V12zm32-8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4h24zm-2 18v-4h-8v-8h... |
src/Container.js | thebritican/react-router-relay | import React from 'react';
import StaticContainer from 'react-static-container';
import getParamsForRoute from './getParamsForRoute';
import RootComponent from './RootComponent';
import RouteAggregator from './RouteAggregator';
export default class Container extends React.Component {
static displayName = 'ReactRout... |
frontend/src/common/InputEmail.js | Ormabe/tuesday | import React from 'react';
import TextField from 'material-ui/TextField';
import { green800, grey800, orange800 } from 'material-ui/styles/colors';
const InputEmail = ({ name, label, value, onChange, errorText }) => {
const { floatingLabelFocusStyle, floatingLabelStyle, underlineStyle, errorStyle } = styles;
... |
app/javascript/mastodon/main.js | riku6460/chikuwagoddon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
docs/pages/api-docs/breadcrumbs.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/breadcrumbs';
const requireRaw = require.context('!raw-loader!./', false, /\/breadcrumbs\.md$/);
export default function Pag... |
resources/assets/js/components/admin/LateralMenu.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
export default class LateralMenu extends Component {
constructor(props) {
super(props);
this.state = {
activeTab: null,
randomBackgroundColor: this.getRandomColor()
};
}
getRandomColor() {
return... |
src/components/Calendar/Calendar.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import { defineMessages } from 'react-intl';
import InfiniteCalendar, {
withRange,
Calendar as CalendarWithRange,
} from 'react-infinite-calendar';
import s from './Calendar.css';
/* eslint-... |
src/components/Feedback/Feedback.js | vbauerster/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.less';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedb... |
src/view/UIElement/iconfont/index.js | fishmankkk/mircowater2.0 | import React from 'react'
import { Iconfont } from 'components'
import { Table, Row, Col, Icon } from 'antd'
import styles from './index.less'
import './emoji'
const colorfulIcons = ['boluo', 'baixiangguo', 'chengzi', 'boluomei', 'caomei', 'dayouzi', 'chelizi', 'fanqie', 'hamigua', 'ganlan',
'juzi', 'heimei', 'huolo... |
src/js/app.js | dockpit/dockpit | import React from 'react'
import Router from 'react-router'
import { Route, DefaultRoute } from 'react-router'
import App from './views/App.jsx'
import Daily from './views/Daily.jsx'
var routes = (
<Route handler={App}>
<DefaultRoute handler={Daily}/>
</Route>
);
Router.run(routes, Router.HashLocation, (Root... |
admin/client/App/components/Navigation/Mobile/index.js | cermati/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
snippets/camunda-tasklist-examples/camunda-react-app/src/components/forms/invoice/newTask.js | camunda/camunda-consulting | import React from 'react'
import { Field, reduxForm } from 'redux-form'
const SimpleForm = props => {
const { handleSubmit, pristine, reset, submitting } = props
return (
<form onSubmit={handleSubmit}>
<div>
<label>First Name</label>
<div>
<Field
name="firstName"
... |
docs/app/Examples/elements/Button/Variations/ButtonExampleColored.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleColored = () => (
<div>
<Button color='red'>Red</Button>
<Button color='orange'>Orange</Button>
<Button color='yellow'>Yellow</Button>
<Button color='olive'>Olive</Button>
<Button color='green'>Green</Button>
... |
src/components/Spinner.js | robertkirsz/magic-cards-manager | import React from 'react'
import styled from 'styled-components'
import { AbsoluteFullSize } from 'styled'
import { spinAnimation } from 'styled/animations'
const SpinnerContainer = styled.div`
position: relative;
width: 100px;
height: 100px;
margin: 100px auto;
animation: ${spinAnimation(0)} 2s linear infin... |
src/Zdd.js | lincolnphu/zzdi | import React, { Component } from 'react';
import Info from './Info';
require("./style.scss");
require('es6-promise').polyfill();
require('fetch-ie8');
export default class Zdd extends Component {
constructor(props){
super(props);
this.state = {
name:'lincolnphu',
url:'https://ws.audioscrobbler.com/2... |
server/server.js | sethkaufee/TherapyApp | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import bcrypt from 'bcryptjs';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
impo... |
app/react-icons/fa/compass.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCompass extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m17.3 24.3l5.7-2.9-5.7-2.8v5.7z m8.6-13.2v12.1l-11.5 5.7v-12.1z m6.4 8.9q0-3... |
src/app/core/atoms/icon/icons/plus.js | blowsys/reservo | import React from 'react'; const Plus = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="13 11 13 6 11 6 11 11 6 11 6 13 11 13 11 18 13 18 13 13 18 13 18 11 13 11"/></g></g></svg>; export default Plus;
|
stories/Grid.js | abouthiroppy/scuba | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Container, { Grid, Cell } from '../src';
const styles = {
container: {
width : '80%',
margin : 30,
padding: 30,
border : '1px solid #333'
},
cell: {
background: '#777'
}
};
storiesOf('Grid', module).add('list... |
app/test/setup.js | nhtera/react-starter | import React from 'react'; // eslint-disable-line no-unused-vars
import chai, { expect } from 'chai';
import sinonChai from 'sinon-chai';
import sinon from 'sinon';
import chaiAsPromised from 'chai-as-promised';
import chaiEnzyme from 'chai-enzyme';
import { jsdom } from 'jsdom';
chai.use(sinonChai);
chai.use(chaiAsPr... |
docs/src/app/components/pages/components/Badge/Page.js | spiermar/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 badgeReadmeText from './README';
import BadgeExampleSimple from './Exampl... |
index.android.js | ChenLi0830/RN-Auth | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('RN_Auth', () => App);
|
blueocean-material-icons/src/js/components/svg-icons/communication/import-export.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationImportExport = (props) => (
<SvgIcon {...props}>
<path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/>
</SvgIcon>
);
CommunicationImportExport.displayName = 'CommunicationImportExport';
CommunicationI... |
springboot/GReact/src/main/resources/static/app/routes/forms/jcrop/components/FieldInput.js | ezsimple/java | import React from 'react'
import {connect} from 'react-redux'
import {cropFieldChange} from '../actions/crop'
import Field from './Field'
const mapStateToProps = (state, ownProps)=> {
return {
field: ownProps.field,
value: state.crop[ownProps.field]
}
};
const mapDispatchToProps = (dispatch, ... |
src/scripts/components/avatar/Avatar.component.story.js | kodokojo/kodokojo-ui-commons | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
fields/types/textarea/TextareaFilter.js | geminiyellow/keystone | import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Matches', value: 'matches' },
{ label: 'Contains', value: 'contains' },
{ label: 'Begins with', value: 'beginsWith' },
{ lab... |
src/svg-icons/notification/network-check.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28... |
node_modules/@material-ui/styles/es/StylesProvider/StylesProvider.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import { exactProp } from '@material-ui/utils';
import createGenerateClass... |
packages/strapi-admin/files/public/app/components/LeftMenuLinkContainer/index.js | lucusteen/strap | /**
*
* LeftMenuLinkContainer
*
*/
import React from 'react';
import LeftMenuLink from 'components/LeftMenuLink';
import styles from './styles.scss';
class LeftMenuLinkContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
// List of links
let links = this.... |
src/routes/admin/Admin.js | binyuace/vote | /**
* 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 PropTypes from 'prop-... |
src/common-ui/components/IndexDropdownNewRow.js | WorldBrain/WebMemex | import React from 'react'
import PropTypes from 'prop-types'
import IndexDropdownRow from './IndexDropdownRow'
const IndexDropdownNewRow = ({ value, isNew = true, ...props }) => (
<IndexDropdownRow {...props} value={<span>{value}</span>} isNew />
)
IndexDropdownNewRow.propTypes = {
value: PropTypes.string.is... |
src/app/development/trc/PermitTypeCards.js | cityofasheville/simplicity2 | import React from 'react';
import PermitTypeCard from './PermitTypeCard';
import { trcProjectTypes } from './textContent';
const PermitTypeCards = () => {
let cardWidth = '40%';
if (window.innerWidth < 500) {
cardWidth = '90%';
}
return (
<div
style={{
display: 'flex',
flexDirecti... |
src/App.js | kade042/flux-bank-account-app | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Container } from 'flux/utils';
import BankRewardsStore from './BankRewardsStore';
import BankBalanceStore from './BankBalanceStore';
import BankActions from './BankActions';
class App extends Component {
constructor() {
super(... |
src/components/ProductForm.js | ihenvyr/react-parse | import React from 'react';
import Grid from 'grid-styled';
import Input from './Input';
import Textarea from './Textarea';
import Select from './Select';
import Label from './Label';
import Button from './Button';
const ProductForm = ({ brands, children, create, update, cancel, router }) => {
const onSubmit = (event... |
packages/lore-react-forms-material-ui/src/fields/string.js | lore/lore-forms | import React from 'react';
import _ from 'lodash';
import { Field } from 'lore-react-forms';
import { TextField } from 'material-ui';
export default function(form, props, name) {
return (
<Field name={name}>
{(field) => {
return (
<TextField
name={field.name}
value... |
src/router.js | HuangXingBin/goldenEast | import React from 'react';
import { Router, Route, browserHistory, IndexRedirect, IndexRoute, hashHistory, Redirect } from 'react-router';
//首页,数据总览
import HomeContainer from './components/containers/home-container';
//用户列表
import UserListContainer from './components/containers/user-list-container';
import UserDetailCo... |
src/main/Main.js | corbig/AfterWorkManager | import React, { Component } from 'react';
//import logo from './logo.svg';
//import './App.css';
import AppToolbar from '../header/AppToolbar'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import AutoComplete from 'material-ui/AutoComplete';
import injectTapEventPlugin from 'react-tap-event-plugin';
import D... |
src/browser/auth/Social.js | robinpokorny/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { signIn } from '../../common/auth/actions';
import {
Box,
Button,
} from ... |
src/svg-icons/device/screen-lock-portrait.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockPortrait = (props) => (
<SvgIcon {...props}>
<path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.... |
src/svg-icons/notification/power.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPower = (props) => (
<SvgIcon {...props}>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</SvgIcon>
);
NotificationPower = pu... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | daychen/niceday | 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'));
|
src/Parser/Hunter/Survival/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Putro } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contrib... |
src/parser/shaman/elemental/modules/talents/EarthenRage.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
class EarthenRage exten... |
src/svg-icons/action/settings-input-hdmi.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let 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>
);
ActionSettingsInputHd... |
example/webpack-2/client/components/App.js | iansinnott/react-static-webpack-plugin | import React from 'react';
import { Link, IndexLink } from 'react-router';
import classnames from 'classnames/bind';
// Using CSS Modules so we assign the styles to a variable
import s from './App.styl';
const cx = classnames.bind(s);
import logo from './react-logo.png';
// Favicon link is in the template, this just ... |
app/app/components/UrlGenerator/CampaignsSelect.js | lycha/masters-thesis | import React from 'react';
class CampaignsSelect extends React.Component {
constructor(props) {
super(props);
this.displayName = 'CampaignsSelect';
}
handleChange(e) {
this.props.setCampaign(e.target.value);
}
render() {
return (
<select required ref="utm_ca... |
project/react-ant-multi-pages/src/pages/index/containers/AssetMgmt/Add/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
node_modules/react-bootstrap/es/HelpBlock.js | chenjic215/search-doctor | 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 ... |
src/svg-icons/device/bluetooth-searching.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9... |
app/javascript/mastodon/features/ui/components/media_modal.js | pixiv/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import classNames from 'classn... |
src/svg-icons/communication/comment.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Co... |
node_modules/react-native/Libraries/Image/Image.ios.js | Helena-High/school-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.
*
* @provides... |
1-live-timeline-post/js/components/SubLayout.js | melvinodsa/my-react-experiments | import React from 'react';
class SubLayout extends React.Component {
render() {
var classNames = "";
if(this.props.extraclass instanceof Array) {
this.props.extraclass.forEach(function(item) {
classNames += " " + item;
});
}
return (
<div className={'sub-layout' + classNames... |
src/parser/deathknight/blood/modules/spells/azeritetraits/EternalRuneWeapon.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'int... |
src/client/scenes/Guild/ChannelList/index.js | kettui/webcord-web-app | import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import CSSTransitionGroup from 'react-addons-css-transition-group'
import { Button, Item, Segment, Sidebar } from 'semantic-ui-react';
import Channels from './Channels';
import VoiceChannelInfo from './VoiceChannelInfo';
import { ... |
assets/jqwidgets/jqwidgets-react/react_jqxinput.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxInput extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.createCo... |
src/widget/Text.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
import React from 'react';
import ReactNative, { StyleSheet, Dimensions, Text ,ReactElement} from 'react-native';
import color from './color'
export function HeadingBig({sty... |
packages/ui-toolkit/src/styleguide/sectionHeading.js | geek/joyent-portal | import React from 'react';
import styled from 'styled-components';
import cx from 'classnames';
import Styled from 'react-styleguidist/lib/rsg-components/Styled';
import remcalc from 'remcalc';
const styles = ({ color, fontFamily, fontSize }) => ({
heading: {
margin: remcalc(24),
marginLeft: 0,
color: co... |
src/routes/admin/Components/CKEditor/index.js | luanlv/comhoavang | /* global CKEDITOR */
import React from 'react';
import {Modal, Form, Input, Icon, Tooltip, Button, Switch, DatePicker, Select, Row, Col, Card, Tabs, Affix, message} from 'antd';
import ReactResizeDetector from 'react-resize-detector';
import VisibilitySensor from 'react-visibility-sensor'
import ImageSelect from '../I... |
src/svg-icons/action/flight-land.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
web/react/app.js | tribou/near-earth-asteroids | import React from 'react';
import ReactDOM from 'react-dom';
import Index from './components/Index.jsx';
import '../styles/app.scss';
// Render the React Index into DOM at #app
ReactDOM.render(
React.createElement(Index),
document.getElementById('app')
);
|
hbw/app/javascript/packs/hbw/components/shared/element/icon.js | latera/homs | import React from 'react';
const HydraIcon = () => (
<svg className="hbw-icon-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="241.667px" height="235.5px" viewBox="0 0 241.667 235.5" enableBackground="new 0 0 241.667 235.5">
<path className="hbw-icon-svg-path" fillRule="evenodd" c... |
src/layouts/CoreLayout.js | mastermind1981/react-redux-starter-kit | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
constructor () {
super();
}
render () {
return (
<div className='page-container'>
<div className='view-containe... |
docs/src/app/components/pages/components/TextField/ExampleError.js | pancho111203/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleError = () => (
<div>
<TextField
hintText="Hint Text"
errorText="This field is required"
/><br />
<TextField
hintText="Hint Text"
errorText="The error text can be as long as you want, i... |
src/components/books/edit-page/BookInformation.js | great-design-and-systems/cataloguing-app | import { ImageUpload, SearchSelector, TextInput } from '../../common/';
import {
LABEL_AUTHOR,
LABEL_BOOK_COVER,
LABEL_EDITION,
LABEL_ISBN_10,
LABEL_ISBN_13,
LABEL_NUMBER_OF_PAGES,
LABEL_PUBLISHED_DATE,
LABEL_PUBLISHER,
LABEL_SERIES_TITLE,
LABEL_SUB_TITLE,
LABEL_TITLE,
MESSAGE_AUTHOR_REQUIRED,
... |
docs/app/src/pages/guides/Etc.js | tercenya/compendium | import React from 'react';
import { CodeExample, CondLang, NavMain, PageHeader, PageFooter, A } from '../../components';
const Overview = (props) => {
return (
<div>
<NavMain activePage="guides" />
<PageHeader
title="The remainder"
subTitle="A survey of the other APIs"
/>
... |
app/components/Currency.js | schwuk/fx_u_like | import React from 'react';
import CurrencyAmount from '../containers/CurrencyAmount';
import CurrencyChooser from '../containers/CurrencyChooser';
export default class Currency extends React.Component {
render() {
const direction = this.props.direction;
const id = "currency_" + direction;
return (
... |
src/components/common/svg-icons/device/signal-cellular-null.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNull = (props) => (
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellularNull = pure(DeviceSignalCellularNull);
DeviceSignalCellularN... |
src/pages/blog.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import styled , { injectGlobal, keyframes } from 'styled-components';
// import '../css/index.css'; // add some style if you want!
import Header from '../components/header.js'
import PostCard from '../components/post-card.js'
... |
examples/gh-pages/components/Intro.js | broucz/react-inline-grid | import React, { Component } from 'react';
import { Row, Cell } from 'react-inline-grid';
import { COLOR } from '../constants';
import Box from './Box';
const { gray, primary } = COLOR;
class Intro extends Component {
render() {
return (
<div>
<Row>
<Cell is="3 tablet-4 phone-4"><Box colo... |
app/components/TouchableItem/index.android.js | JSSolutions/Perfi | import T from 'prop-types';
import React from 'react';
import {
TouchableNativeFeedback,
TouchableOpacity,
Platform,
View,
} from 'react-native';
const noop = () => {};
const Button = ({
onPress = noop,
onLongPress = noop,
onLayout = noop,
children,
rippleColor,
style,
backgroundType,
borderle... |
app/jsx/blueprint_courses/components/CourseFilter.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/components/presentation/PasswordChangeForm.js | PHPiotr/phpiotr4 | import React from 'react';
import Button from 'material-ui/Button';
import {FormControl} from 'material-ui/Form';
import Input, {InputLabel, InputAdornment} from 'material-ui/Input';
import IconButton from 'material-ui/IconButton';
import Visibility from 'material-ui-icons/Visibility';
import VisibilityOff from 'materi... |
src/svg-icons/av/branding-watermark.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.