path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/image/filter-7.js | ngbrown/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... |
components/card/CardActions.js | rubenmoya/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers';
const CardActions = ({ children, className, theme, ...other }) => (
<div className={classnames(theme.cardActions, className)} {...other}>... |
docs/app/Examples/collections/Form/States/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Loading'
description='If ... |
js/BaseComponents/MainTabBarAndroid.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
client/app/scripts/components/time-control.js | kinvolk/scope | import React from 'react';
import moment from 'moment';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { trackAnalyticsEvent } from '../utils/tracking-utils';
import { pauseTimeAtNow, resumeTime } from '../actions/app-actions';
import { isPausedSelector, timeTravelSupportedSelector ... |
frontend/src/Settings/ImportLists/ImportListExclusions/EditImportListExclusionModalContentConnector.js | geogolem/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { saveImportExclusion, setImportExclusionValue } from 'Store/Actions/settingsActions';
import selectSettings from 'Store/Selector... |
app/components/Code/index.js | brainsandspace/ship | /**
*
* Code
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { colors } from 'global-styles';
const Block = styled.pre`
padding: 1rem;
&.block {
background: #333;
code {
color: yellow;
}
}
`;
const Inline = sty... |
imports/client/utils/uniforms-custom/ErrorsField.js | mordka/fl-events | import BaseField from 'uniforms/BaseField'
import React from 'react'
import filterDOMProps from 'uniforms/filterDOMProps'
import nothing from 'uniforms/nothing'
const ErrorsField = ({children, ...props}, {uniforms: {error, schema}}) =>
(!error && !children) ? nothing : (
<div {...filterDOMProps(props)}>
{c... |
src/experimental-design/view/ExperimentalDesignContainer.js | sozemego/StatHelper | import React from 'react';
import {connect} from 'react-redux';
import designSelectors from '../selectors';
import designOperations from '../operations';
import SelectableElementCollectionComponent from '../../common/component/SelectableElementCollectionComponent';
import {RaisedButton} from 'material-ui';
import TestC... |
app/components/PageListItem.js | runandrew/memoriae | // @flow
// Required libraries
import React, { Component } from 'react';
import { Link } from 'react-router';
// Required files
import TagList from './TagList.js';
export default class PageListItem extends Component {
render () {
let divStyle = {
backgroundColor: this.props.active ? '#d6e5ff' : 'inherit'
... |
src/RemoveImage/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';
import classNames from 'classnames';
import Wrapper from '../Wrapper';
import ActionButton from '../ActionButton';
function RemoveImage(props) {
const style = {
backgroundImage: `url(${props.image})`,
... |
src/mixins/style-propable.js | vanHeemstraSystems/components | import React from 'react';
import ImmutabilityHelper from '../utils/immutability-helper';
import Styles from '../utils/styles';
// This mixin isn't necessary and will be removed
/**
* @params:
* styles = Current styles.
* props = New style properties that will override the current style.
*/
export default {
p... |
node_modules/react-bootstrap/es/Alert.js | NathanBWaters/jb_club | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
docs/app/src/pages/Faq.js | tercenya/compendium | import React from 'react';
import { NavMain, PageHeader, PageFooter, A } from '../components';
const Faq = (props) => {
return (
<div>
<NavMain activePage="faq" />
<PageHeader
title="Frequently Asked Question"
subTitle="As evidenced by the forums" />
<div className="container... |
src/components/menu/modals/messages.js | aautem/aa | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import * as friendsActions from '../../../store/actions/friends';
import * as messagesActions from '../../../store/actions/messages';
import { Dimensions, TextInput, Modal, V... |
src/containers/user/UserSettings/index.js | mydearxym/mastani | /*
*
* UserSettings
*
*/
import React from 'react'
import { ICON_CMD } from '@/config'
import { C11N } from '@/constant'
import { buildLog } from '@/utils/logger'
import { pluggedIn } from '@/utils/mobx'
import { Br } from '@/widgets/Common'
import { Radio } from '@/widgets/Switcher'
import ThemeSelector from '@... |
app/components/Views/ViewScene.js | sceneweaver/entwine | import React, { Component } from 'react';
import ViewActors from './ViewActors';
import ReactMapboxGl, { Layer, Feature, Marker } from 'react-mapbox-gl';
import ReactTimeout from 'react-timeout';
/* ----- COMPONENT ----- */
class Scene extends Component {
constructor() {
super();
this.state = {
coord... |
src/components/Editor/Editor.js | mapengze/Antd-Backstage | import React from 'react'
import { Editor } from 'react-draft-wysiwyg'
import styles from './Editor.less'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
const DraftEditor = (props) => {
return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {..... |
app/components/AddUser/Map/index.js | prudhvisays/newsb | import React from 'react';
import { AntPath } from 'leaflet-ant-path';
import UserMapStyle from './UserMapStyle';
import { Control } from 'leaflet-draw';
let map;
export default class UserMap extends React.Component { //eslint-disable-line
constructor() {
super();
this.leafletMap = this.leafletMap.bind(this... |
example/components/theme.js | souporserious/react-tether | import React from 'react';
import { ThemeProvider } from 'styled-components';
export type Theme = {
colors: Array<string>,
font: string,
lightText: string,
darkText: string,
};
const theme: Theme = {
colors: ['#BDA1E8', '#77FFEC', '#E8E19A', '#B1FFDD', '#FFCDBE'],
font: '"Arial Rounded MT Bold", "Helvetica... |
src/index.js | andresilveira/jsrulez | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import flowEngine, { validators } from './flow';
import './index.css';
ReactDOM.render(
<App flowEngine={flowEngine} flowValidator={validators.cyclicValidator} />,
document.getElementById('root')
);
|
src/components/PropVal.js | programstinator/react-storybook-addon-info | import React from 'react';
import createFragment from 'react-addons-create-fragment';
const valueStyles = {
func: {
color: '#170',
},
attr: {
color: '#666',
},
object: {
color: '#666',
},
array: {
color: '#666',
},
number: {
color: '#a11',
},
string: {
color: '#22a',
... |
src/index.js | joehannes-www/karaokefun | 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'));
|
packages/wix-style-react/src/FunnelChart/FunnelLabel/FunnelLabel.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import Text from '../../Text';
import { dataHooks } from '../constants';
import { classes } from './FunnelLabel.st.css';
export const FunnelLabel = ({ value, label, displayValue }) => {
const numberToPresent = displayValue ? displayValue : value;
retu... |
web/src/index.js | ncpierson/soundoftext | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import { unregister } from './registerServiceWorker';
import './polyfills';
import './index.css';
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getEl... |
client/acp/components/ChannelsStats.js | NicolasSiver/nodebb-plugin-ns-twitch-monitor | import ChannelsStore from '../stores/ChannelsStore';
import connectToStores from 'alt/utils/connectToStores';
import React from 'react';
class ChannelsStats extends React.Component {
static getStores() {
return [ChannelsStore];
}
static getPropsFromStores() {
return ChannelsStore.getState(... |
cerberus-dashboard/src/components/Header/Header.js | Nike-Inc/cerberus-management-service | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
q-a11y-training-demo/src/components/react-aria-live/PoliteMessage.js | AlmeroSteyn/Q-A11y-Training | import PropTypes from 'prop-types';
import React from 'react';
import offScreenStyle from './offScreenStyle';
const PoliteMessage = ({ message }) =>
<div
style={offScreenStyle}
role="log"
aria-live="polite"
aria-relevant="additions"
aria-atomic="true">
{message ? message : ''}
</div>;
Poli... |
src/svg-icons/action/trending-up.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
lib/containers/current-pull-request-container.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import {QueryRenderer, graphql} from 'react-relay';
import {Disposable} from 'event-kit';
import {autobind, CHECK_SUITE_PAGE_SIZE, CHECK_RUN_PAGE_SIZE} from '../helpers';
import {RemotePropType, RemoteSetPropType, BranchSetPropType, EndpointPropType} from ... |
src/components/Button.js | tnewman16/CirdlesWebUI | // @flow
import React from 'react';
import Radium from 'radium';
import { colors } from 'constants';
type Props = {
onClick: Function,
size?: number,
color?: string,
textColor?: string,
children?: any
};
const BaseButton = ({
onClick,
size = 12,
color = colors.dark,
children,
...rest
}: Props) => ... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-overscan.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsOverscan = (props) => (
<SvgIcon {...props}>
<path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z... |
src/svg-icons/maps/restaurant.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
src/containers/search/index.js | PocketOfWeird/mjfjobs | import React from 'react'
import FilterBarContainer from './FilterBarContainer'
import ResultsContainer from './ResultsContainer'
const SearchViewContainer = () => (
<div>
<FilterBarContainer />
<ResultsContainer />
</div>
)
export default SearchViewContainer
|
src/components/HeroRow/HeroRow.js | OR13/car2go | import React from 'react'
import Navbar from 'containers/Navbar/Navbar'
import classes from './HeroRow.scss'
import { PropTypes } from 'prop-types';
import Particles from 'react-particles-js';
import particles from './particles.json'
import Theme from 'theme'
export const HeroRow = ({ children, renderParticles }) ... |
example/index.js | kib357/react-object-inspector | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
web/src/Dashboard.js | jinghang/react-todo-demo | import React from 'react'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import Bundle from './bundle'
import Home from './components/Home' // 首页不按需加载
// bundle-loader 按需加载静态页面
import loadAbout from 'bundle-loader?lazy&name=[name]!./components/About'
import loadTopics from 'bundle-loader?lazy... |
react-ui/src/app/layouts/components/commun/menu/index.js | jendigital/deezer-data-grid | import React, { Component } from 'react';
//import { Icon } from 'react-fa';
import './index.css';
class Menu extends Component {
render() {
return (
<div id='header'>
<a href='https://github.com/jendigital/deezer-data-grid' target='_blank' rel="noopener noreferrer">
... |
client_src/component/TopNavigation.js | frauca/votelist | import React from 'react'
import UserLogin from '../containers/UserLogin.js'
class TopNavigation extends React.Component {
render () {
return <div className="top_nav">
{/*top navigation*/}
<div className="nav_menu">
<nav className="" role="navigation">
<div className="nav toggle">
... |
dispatch/static/manager/src/js/pages/FilesPage.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import DocumentTitle from 'react-document-title'
import Dropzone from 'react-dropzone'
import { Button } from '@blueprintjs/core'
import filesActions from '../actions/FilesActions'
import ItemList from '../components/ItemList'
import { humanizeDatetime } ... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | chengjunjian/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import AvatarItem from 'components/common/AvatarItem.react';
var ContactItem = React.createClass({
displayName: 'ContactItem',
propTypes: {
contact: React.PropTypes.object,
onSelect: React.PropTypes.func
},
mixins: [PureRende... |
src/containers/Page/Page.js | Ryx10/Post_managment | import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route
} from 'react-router-dom';
import Header from '../../components/Header/Header';
import Footer from '../../components/Footer/Footer';
import PostsContainer from '../PostsContainer/PostsContainer';
import SinglePostContainer from '.... |
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js | spiermar/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
export default class LinearProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() => thi... |
app/javascript/flavours/glitch/components/column_header.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import NotificationPurgeButtonsContainer from 'flavours/glitch/containers/notificati... |
src/components/Experience.js | jlekas/Site | import React from 'react';
export default class Experience extends React.Component {
constructor(props) {
super(props);
this.state = {
jobs: [
{
job: "Threatstack",
title: "Backend / Platform Intern",
dates: ["June 2016", "August 2016"],
img:... |
src/components/footer/footer-column.js | adrienlozano/stephaniewebsite | import React from 'react';
import { defaultProps, compose, setDisplayName } from 'recompose';
import { Flex } from 'rebass';
const enhance = compose(
setDisplayName("FooterColumn"),
defaultProps({
column: true,
align: ["center", "center", "flex-start"],
mr: [0, 0, 4],
p: [2, 2... |
client/components/Login/Login.js | djaracz/useless-app | import React, { Component } from 'react';
import FormContainer from '../../containers/FormContainer/FormContainer';
import styles from './login.scss';
export default class Login extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
document.body.style.backgroundC... |
information/blendle-frontend-react-source/app/components/dialogues/FacebookSignupProgress/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import Dialogue from '../Dialogue';
import { translate } from '../../../instances/i18n';
import UserAvatar from 'components/UserAvatar';
import CSS from './style.scss';
const FacebookSignupProgress = ({ onClose, user }) => {
const firstName = user.get('f... |
app/js/flux-sample/component/AddMemoFormComponent.js | h-iwata/react-babel-reflux-tutorial-for-blog | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Form, FormGroup, InputGroup, FormControl } from 'react-bootstrap';
import MemoActionCreator from '../objects/MemoActionCreator';
class AddMemoFormComponent extends React.Component {
static get propTypes() {
return {
};
... |
internals/templates/utils/injectReducer.js | kaizen7-nz/gold-star-chart | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './reducerInjectors';
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer that will be injected
*
... |
src/render/Audio/Recorder.js | hugo-cardenas/jazzroutine-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LibRecorder from 'react-recorder';
const STATE_IDLE = 'idle',
STATE_RECORDING = 'recording';
class Recorder extends Component {
constructor(props) {
super(props);
this.state = {
recordState: 'idle'... |
src/svg-icons/action/exit-to-app.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
app/index.js | pyreta/songrider | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import Record... |
app/scripts/util/RouteHelpers.js | shawnrmoss/rsk | import React from 'react';
import { RouteHandler } from 'react-router';
import AuthStore from '../stores/AuthStore';
var LoginRequired = React.createClass({
statics: {
willTransitionTo: function (transition, params, query, callback) {
if(!AuthStore.loggedIn()){
// go over to login page
con... |
docs/app/Examples/collections/Message/States/MessageExampleVisible.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleVisible = () => (
<Message visible>
You can always see me
</Message>
)
export default MessageExampleVisible
|
fields/types/localfiles/LocalFilesField.js | alobodig/keystone | /*
TODO: this file has been left as a reference for the new File type field.
Some features here, including size formatting and icons, may be ported across.
*/
import _ from 'lodash';
import bytes from 'bytes';
import Field from '../Field';
import React from 'react';
import { Button, FormField, FormInput, FormNote } fr... |
examples/todomvc/containers/TodoApp.js | BoffinsDev/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
internals/templates/homePage.js | brobey8/toomanynotes | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
examples/disable-esc/index.js | chentsulin/react-redux-sweetalert | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(
<App />,
document.getElementById('root')
);
|
src/components/Layout/Layout.js | bobbybeckner/ha-catalyst-test | /**
* 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-... |
app/components/H1/index.js | nimzco/takemyidea-ui | import React from 'react';
import styles from './styles.css';
class H1 extends React.Component {
render() {
return (
<h1 className={ styles.heading1 }>{ this.props.children }</h1>
);
}
}
export default H1;
|
src/components/Chat/NotificationMessages/UserNotificationMessage.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { translate, Interpolate } from 'react-i18next';
import compose from 'recompose/compose';
import pure from 'recompose/pure';
import withHandlers from 'recompose/withHandlers';
import userCardable from '../../../utils/user... |
fixtures/packaging/systemjs-builder/dev/input.js | joecritch/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
src/js/containers/App.js | jonkr/windlogger-frontend | import React from 'react';
import {connect} from 'react-redux';
const App = React.createClass({
componentDidUpdate() {
console.log('App: componentDidUpdate');
console.log('window.location:', window.location);
},
render() {
return (
<div>
{/* react-router figures out what to put here! ... |
src/pages/404.js | adrienlozano/stephaniewebsite | import React from 'react'
import Heading from '~/components/heading';
import Typography from '~/components/typography';
const NotFoundPage = () =>
<div>
<Heading>NOT FOUND</Heading>
<Typography>You just hit a route that doesn't exist... the sadness.</Typography>
</div>
export default NotFoundPage
|
test/test_helper.js | seanrtaylor/ReactWeather | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client/components/Flass/Lecture/Comment/ReplyCommentItem.js | Nexters/flass | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import color from '~/css/base/colors.scss';
const ReplayCommentView = styled.div`
padding-right: 15px;
background-color: ${color['silver-two']};
`;
const ReplyIcon = styled.img`
width: 13px;
position: relat... |
imports/ui/pages/Documents/DocumentHome/Documents.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Table, Alert, Button } from 'react-bootstrap';
import { timeago, monthDayYearAtTime } from '@cleverbeagle/dates';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data... |
src/UserDetails.js | radding/trough-app | import React, { Component } from 'react';
import CheckBox from 'react-native-checkbox';
import {User} from './Models';
import {
AppRegistry,
Alert,
StyleSheet,
Text,
View,
TextInput,
Button,
} from 'react-native';
import { connect } from "react-redux";
import store from "./Store.js"
import... |
public/js/components/admin/feedback/activity.react.js | rajikaimal/Coupley | /**
* Created by Isuru 1 on 07/02/2016.
*/
import React from 'react';
import Table from 'material-ui/lib/table/table';
import TableHeaderColumn from 'material-ui/lib/table/table-header-column';
import TableRow from 'material-ui/lib/table/table-row';
import TableHeader from 'material-ui/lib/table/table-header';
import... |
src/svg-icons/action/assignment-returned.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
lib/ui/index.js | 500tech/mimic | import React from 'react';
import ReactDOM from 'react-dom';
import Mimic from 'ui/components/Mimic';
const root = document.createElement('mimic-div');
root.style.width = '100%';
root.style.top = 0;
root.style.left = 0;
root.style.zIndex = 2147483646;
function render() {
document.body.appendChild(root);
ReactDOM.... |
client/src/components/Root.js | yuxuan1101/airPivilion | /**
* Created by yuxuan on 8/12/16.
*/
import React from 'react'
// import {Link} from 'react-router'
// import {Provider} from 'react-redux'
// import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'
// import {blue500} from 'material-ui/styles/colors'
import MuiThemeProvider from 'material-ui/style... |
books-list/src/components/app.js | WendySanarwanto/udemy-modern-react-with-redux | import React from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail';
const App = () => {
return (
<div className="main">
<BookList />
<BookDetail />
</div>
);
}
export default App;
|
src/index.js | birdy-/shouldiuse | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './containers/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
dist/index-browser.es.js | alpjs/alp-react-redux | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
export { combineReducers } from 'redux';
import { connect } from 'react-redux';
export { connect } from 'react-redux';
import contentLoaded from 'content-loaded';... |
app/CvCamera.js | king-smith/collector-alpha | // MapView.js
import React from 'react';
import {
requireNativeComponent,
NativeModules,
View,
StatusBar,
UIManager,
Dimensions,
StyleSheet
} from 'react-native';
console.log(UIManager);
console.log(NativeModules);
//var imageViewConstants = UIManager.imageView;
//var cameraViewConstants =... |
src/app/routes/e-commerce/index.js | backpackcoder/world-in-flames | import React from 'react';
import HtmlRender from '../../components/utils/HtmlRender'
export default {
path: 'e-commerce',
component: require('../../components/common/Layout').default,
childRoutes: [
{
path: 'products-detail',
getComponent(nextState, cb){
System.import('html-loader?-attr... |
server/sonar-web/src/main/js/apps/project-admin/quality-gate/Form.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... |
src/main.js | morukutsu/popart-io | /**
* App entry point
*/
// Polyfill
import 'babel-polyfill';
//import 'babel-preset-es2017/polyfill';
// Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './common/components/App';
// Base styling
import './common/base.css';
/... |
packages/material-ui-icons/src/SwapCalls.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z" /></g>
, 'SwapCalls');
|
src/js/entry.js | greenishsea/pt3react | import 'babel-polyfill';
import '../styles/index.scss'; // webpack needs this style src entry reference.
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { applyRouterMiddleware, browserHistory, Router } from 'react-router';
import { useScroll } from 'react-... |
app/posts/CubeExplode/component.js | nthitz/t3posts | import React from 'react'
var THREE = require('threejs')
var _ = require('lodash')
var {ease, scale} = require('d3');
var easing = ease('cubic-in-out');
import ThreeScene from '../../components/ThreeScene.jsx'
import {fadingMaterial,Cube} from './Cube.js';
var lastLoopCount = -1;
var cameraTween = scale.linear().doma... |
node_modules/react-icons/md/local-taxi.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalTaxi = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.4 18.4h23.2l-2.5-7.5h-18.2z m20.7 8.2c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m-18.2 0c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5... |
src/components/BetSummary/index.js | skyuplam/mark-six-betting-game | import React from 'react';
import DataGrid from '../DataGrid';
const BetSummary = (props) => (
<DataGrid
{...props}
/>
);
export default BetSummary;
|
app/containers/Css5/cube.js | ledminh/css-pages | import React from 'react';
import styled, {keyframes} from 'styled-components';
const rotate = keyframes`
0% { transform: rotateY(0);}
100% { transform: rotateY(360deg);}
`;
const Stage = styled.div`
position: fixed;
top: 100px;
left: 100px;
width: 100px;
height: 100px;
border: 4px dotte... |
old_examples/conditional/app.js | rackt/react-tabs | import React from 'react';
import { render } from 'react-dom';
import { Tab, Tabs, TabList, TabPanel } from '../../src/index';
import '../../style/react-tabs.css';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
showA: true,
showB: true,
showC: true,
... |
webapp/routes.js | tludikar/wpt-dispatch | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import { App } from './views/app.jsx';
import Locations from './views/settings.jsx';
import { Index } from './views/index.jsx';
import { About } from './views/about.jsx';
const reactRoutes = {
path: '/',
component: App,
indexRoute... |
stories/ui/IconRecommendedBadge.js | kumar303/addons-frontend | /* @flow */
import React from 'react';
import { storiesOf } from '@storybook/react';
import IconRecommendedBadge from 'ui/components/IconRecommendedBadge';
// TODO: remove the comment below once
// https://github.com/yannickcr/eslint-plugin-react/issues/2298 is fixed.
// eslint-disable-next-line react/prop-types
cons... |
node_modules/react-icons/io/ios-printer-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosPrinterOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.5 8.8c1.4 0 2.5 1 2.5 2.4v12.4c0 1.4-1.1 2.5-2.5 2.5h-3.7v8.9h-20v-8.9h-3.8c-1.4 0-2.5-1.1-2.5-2.5v-12.4c0-1.4 1.1-2.4 2.5-2.4h2.5v-3.8h22.5v3.8h2.5z m-... |
RN/ImageDemo/TouchableHighlightDemo.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TextInput,
TouchableOpacity,
TouchableHighlight,
ScrollView,
} from 'react-native';
var Dimensions ... |
packages/vx-responsive/src/enhancers/withParentSize.js | Flaque/vx | import React from 'react';
import debounce from 'lodash/debounce';
export default function withParentSize(BaseComponent) {
class WrappedComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
parentWidth: null,
parentHeight: null,
}
this.han... |
public/js/components/profile/About.react.js | rajikaimal/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui... |
app/components/List/index.js | fenderface66/spotify-smart-playlists | 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, index) => (
<ComponentToRend... |
client/components/PhotoGrid.js | dimitardanailov/reduxstagram | import React from 'react';
import Photo from './Photo';
const PhotoGrid = React.createClass({
render() {
return (
<div className="photo-grid">
{this.props.posts.map((post, i) => <Photo
{...this.props} key={i} i={i} post={post} />)}
</div>
);
}
});
export default PhotoGrid; |
modules/RoutingContext.js | ThibWeb/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
var { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
var RoutingConte... |
frontend/app/js/components/settings/user/add.js | serverboards/serverboards | import React from 'react'
import Modal from 'app/components/modal'
import i18n from 'app/utils/i18n'
class AddUser extends React.Component{
handleAddUser(ev){
ev.preventDefault()
let $form = $(this.refs.form)
this.props.onAddUser( {
email: $form.find('[name=email]').val(),
name: $form.find('... |
client/scripts/components/user/numeric-control/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
packages/base-shell/src/providers/Update/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
packages/wix-style-react/src/MarketingLayout/docs/examples.js | wix/wix-style-react | import React from 'react';
import Button from '../../Button';
import Image from '../../Image';
export const description = {
title: 'Description',
text:
'Marketing layout is a layout designed to promote new features or display first time visit. Component has title, description, action and illustration areas.',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.