path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
fixtures/fiber-debugger/src/index.js | tomocchino/react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
docs/src/sections/ImageSection.js | mmarcant/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ImageSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
addons/info/src/components/markdown/htags.js | enjoylife/storybook | import React from 'react';
import PropTypes from 'prop-types';
import { baseFonts } from '../theme';
const defaultProps = {
children: null,
id: null,
};
const propTypes = {
children: PropTypes.node,
id: PropTypes.string,
};
export function H1(props) {
const styles = {
...baseFonts,
borderBottom: '1p... |
client/src/routes.js | saltypaul/SnipTodo | /**
* This module defines route rules within the app.
*
*/
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from './store';
import { Router, Route, hashHistory, IndexRoute } from 'react-router';
import { Home, Welcome, Archive } from './components';
import { TodoListContaine... |
js/BaseComponents/Input.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
*... |
src/routes/home/index.js | willchertoff/Ben-Kinde | /**
* 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 Home from './Home';
i... |
src/index.js | roycejewell/flux-ui-example | import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes.js';
import 'styles/styles.css';
const router = {
routes,
history: createBrowserHistory(),
createElement: (component, prop... |
src/containers/ChannelData/index.js | TerryCapan/twitchBot | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import SparklineChart from '../../components/SparklineChart';
import { getTone, unsetTone } from '../../actions/index';
/* component styles */
import { styles } from './styles.scss';
class Cha... |
blueocean-material-icons/src/js/components/svg-icons/action/card-membership.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCardMembership = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"/>
</SvgIcon>
);
ActionCardMembership.displayN... |
app/components/CarsList/index.js | aditigoel23/React-Car-App | import React from 'react';
import _ from 'lodash';
import CarListItem from '../CarListItem/index';
import Wrapper from './Wrapper';
function CarsList(props) {
const carTypes = _.get(props, 'metaData.CarTypes', []);
let list = [];
if (Array.isArray(props.items)) {
list = _.map(props.items, (car) =>
<Car... |
docs/src/examples/elements/Segment/Variations/SegmentExampleCompact.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleCompact = () => <Segment compact>Compact content.</Segment>
export default SegmentExampleCompact
|
imports/client/ui/components/HoursFormatted/index.js | focallocal/fl-maps | import React from 'react'
import { formatDateWithWords, formatDate } from '/imports/client/utils/format'
import { findNextEvent, calibrateEndWeekday } from '/imports/client/utils/findNextEvent'
import './styles.scss'
const HoursFormatted = ({ data }) => {
const {
startingDate,
endingDate,
startingTime,
... |
packages/icons/src/md/editor/VerticalAlignBottom.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdVerticalAlignBottom(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M32 26h-6V6h-4v20h-6l8 8 8-8zM8 38v4h32v-4H8z" />
</IconBase>
);
}
export default MdVerticalAlignBottom;
|
src/App.js | jp7internet/react-apz | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import ContactList from './containers/ContactList';
import ContactCreate from './containers/ContactCreate';
import ContactEdit from './containers/ContactEdit';
import './App.css';
class App extends Compon... |
src/svg-icons/places/golf-course.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesGolfCourse = (props) => (
<SvgIcon {...props}>
<circle cx="19.5" cy="19.5" r="1.5"/><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z"/>
... |
src/svg-icons/toggle/star-border.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarBorder = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1... |
src/components/pages/about.js | ranhouxingfu/website-by-react | import React from 'react'
import { Grid, Col, Image, Icon } from 'amazeui-react'
export default class aboutUs extends React.Component {
constructor(props) {
super(props);
this.state = {}
}
render() {
return(
<div className='contain'>
<div className='about-box'>
<img src='../images/aboutus-bg.jpg'/>
... |
ExampleApp/index.ios.js | joonhocho/react-native-linkedin-sdk | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableHighlight
} from 'react-native';
import LinkedInSDK from 'react-native-linkedin-sdk';
export default class ExampleApp exten... |
test/integration/client-navigation/pages/memo-component.js | flybayer/next.js | import React from 'react'
export default React.memo((props) => <span {...props}>Memo component</span>)
|
apps/marketplace/components/BuyerSpecialist/BuyerSpecialistAboutStage.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Form } from 'react-redux-form'
import Textfield from 'shared/form/Textfield'
import Textarea from 'shared/form/Textarea'
import CheckboxDetailsField from 'shared/form/CheckboxDetailsField'
import formProps from '... |
blueocean-material-icons/src/js/components/svg-icons/action/event-seat.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionEventSeat = (props) => (
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/>
</SvgIcon>
);
ActionEventSeat.displayName = 'ActionEventSeat';
ActionEventSeat.muiN... |
pages/notes/index.js | jhanstra/jh-gatsby | import React from 'react'
import TopNav from '../../src/components/core/TopNav'
class Notes extends React.Component {
render () {
return (
<div>
<div className="full-title">
<h1>Notes</h1>
<h3>Notes, reflections, and highlights from my studies and the books I read</h3>
... |
src/index.js | mduleone/crapshoot | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {BrowserRouter as Router} from 'react-router-dom';
import injectTapEventPlugin from "react-tap-event-plugin";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import initializeStore from './conf... |
frontend/src/Movie/Details/Titles/MovieTitlesTableContentConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import MovieTitlesTableContent from './MovieTitlesTableContent';
function createMapStateToProps() {
return createSelector(
(state) => state.movies,
(... |
src/components/Logo/index.js | badT/Chatson | import React, { Component } from 'react';
import TimelineMax from 'gsap/src/minified/TimelineMax.min';
/* component styles */
import { styles } from './styles.scss';
export default class Logo extends Component {
constructor(props) {
super(props);
this.state = {
logo: new TimelineMax,
hatson: ne... |
src/components/Tabs/Tabs-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, number, text } from '@storybook/addon-knobs';
import Tabs from '../Tabs';
import Tab from '../Tab';
import Tag from '../Tag';
import TabsSkeleton from '../Tabs/Tabs.Skeleton';
... |
src/TextField/TextFieldLabel.js | igorbt/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
function getStyles(props) {
const defaultStyles = {
position: 'absolute',
lineHeight: '22px',
top: 38,
transition: transitions.easeOut(),
zIndex: 1, // Needed to display label above Chr... |
src/svg-icons/device/signal-cellular-off.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularOff = (props) => (
<SvgIcon {...props}>
<path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/>
</SvgIcon>
);
DeviceSignalCellularOff = pure(... |
src/svg-icons/av/replay-5.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
website/src/components/charts/Tooltip/index.js | jwngr/notreda.me | import React from 'react';
import {TooltipWrapper} from './index.styles';
import {getWindowDimensions} from '../../../utils';
export default ({x, y, children}) => {
const tooltipStyles = {};
const windowDimensions = getWindowDimensions();
if (y - window.scrollY < 100) {
tooltipStyles.top = y;
} else {
... |
modules/TransitionHook.js | tikotzky/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
src/CarouselItem.js | laran/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
src/views/BootCard/BootCardDeck.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
cssModule: PropTypes.object,
}
const defaultProps = {
tag: 'div',... |
public/pages/UpdateDynamicFormPage.js | dynamicform/dynamicform-react-client | import React from 'react';
import {connect} from 'react-redux';
import DynamicForm from '../../src/components/DynamicForm';
@connect()
export default class UpdateDynamicFormPage extends React.Component{
onSubmit(er){
console.log('回调函数onSubmit');
}
onSuccess(){
}
//${this.props.match && this.pr... |
web/app/layout/header.js | seanhess/serials |
// @flow
import React from 'react'
import {RouteHandler, Link} from 'react-router'
import {assign} from 'lodash'
import {Users} from '../model/user'
import {background, Colors, clickable} from '../style'
import {LinkStyle, TitleStyle, NavBar, CenterText} from './style'
import {AlertView} from '../alert'
import {Aler... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_05/finished/src/index.js | yevheniyc/C | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
import storeFactory from './store'
import { Provider } from 'react-redux'
import { addError } from './actions'
const initialState = (localStorage["redux-store"]... |
App.js | Jack3113/edtBordeaux | import React from 'react';
import { Image } from 'react-native';
import { AppLoading, SplashScreen } from 'expo';
import { Asset } from 'expo-asset';
import * as Font from 'expo-font';
import { Entypo, Feather, FontAwesome, Ionicons, MaterialCommunityIcons, MaterialIcons, SimpleLineIcons } from '@expo/vector-icons';
i... |
src/router.js | Huanzhang89/rss-feed-example | import React from 'react';
import { Provider } from 'react-redux';
import history from './history';
import { Router, Route } from 'react-router-dom';
import store from './store'
import App from './views/App';
const routes = (
<Route path='/' component={App} />
)
const Routes = () => (
<Provider store={store}>
... |
app/src/modules/shared/components/NavigationBar/NavigationBar.js | betofigueiredo/homelibraries.org | import React from 'react';
import PropTypes from 'prop-types';
// import { useSelector } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
// CSS
import CSSModules from 'react-css-modules';
import styles from './style.module.scss';
// Language
// import { translate } from '../../languages/trans... |
src/parser/demonhunter/havoc/modules/talents/Momentum.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage, formatDuration } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interf... |
src/interface/report/Results/EncounterStats.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPECS from 'game/SPECS';
import ROLES from 'game/ROLES';
import ITEMS from 'common/ITEMS';
import fetchWcl from 'common/fetchWclApi';
import Icon from 'common/Icon';
import ItemLink from 'common/ItemLink';
import SpellLink from 'common/SpellLink';
i... |
views/blocks/Photo/Photo.js | dimastark/team5 | import React from 'react';
import './Photo.css';
import b from 'b_';
const photo = b.lock('photo');
function Status(props) {
if (props.userIsCreator || props.status === null) {
return null;
}
return (
<div className={['control', photo('checker')].join(' ')}>
<i className={`fa ... |
packages/react/src/components/molecules/SocialLinks/index.js | massgov/mayflower | /**
* SocialLinks module.
* @module @massds/mayflower-react/SocialLinks
* @requires module:@massds/mayflower-assets/scss/02-molecules/social-links
* @requires module:@massds/mayflower-assets/scss/01-atoms/svg-icons
* @requires module:@massds/mayflower-assets/scss/01-atoms/svg-loc-icons
*/
import React from 'react... |
project/react-ant-multi-pages/src/pages/index/containers/AutoDestination/Item/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... |
examples/BorderlessTable.js | 15lyfromsaturn/react-materialize |
import React from 'react';
import Table from '../src/Table';
export default
<Table>
<thead>
<tr>
<th data-field="id">Name</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Alvin</td>
<td>Eclair</td>
<... |
src/MasterPassword/SetupMasterPassword.js | Lynx-Productions/OPeM | /***
* Copyright 2017 - present Lynx Productions
*
* 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 applicabl... |
src/containers/SigninPage.js | ASIX-ALS/asix-final-project-frontend | import React from 'react';
import SigninPageLayout from '../components/SigninPageLayout';
class SigninPage extends React.Component {
render() {
return (
<SigninPageLayout />
);
}
}
export default SigninPage;
|
admin/client/components/FlashMessages.js | wmertens/keystone | import React from 'react';
import { Alert } from 'elemental';
var FlashMessage = React.createClass({
displayName: 'FlashMessage',
propTypes: {
message: React.PropTypes.oneOfType([
React.PropTypes.object,
React.PropTypes.string,
]),
type: React.PropTypes.string,
},
renderMessage (message) {
if (typeof... |
client/client.js | CityRay/React15-Todo-List | import React from 'react';
import { render } from 'react-dom';
import App from '../components/App';
import configureStore from '../redux/store';
import { Provider } from 'react-redux';
// configure and create our store
// createStore(reducres, initialState)
const initialState = {
todos: [
{
id... |
components/AR/ViroARImageMarker.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, 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.
*
* @provid... |
node_modules/react-router/es/IndexRoute.js | SpaceyRezum/react-trivia-game | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/pages/providers/lenon.js | gelo592/IntegrativeMed-Site | import React from 'react'
import Layout from '../../components/layout'
import SEO from '../../components/seo'
import lenon from '../../images/lenon.jpg'
import Typography from '@material-ui/core/Typography';
import Grid from '@material-ui/core/Grid';
import SubLayout from '../../components/sublayout';
import { withStyl... |
demos/function-tree-demos/src/mobx/components/App/index.js | idream3/cerebral | import React from 'react'
import run from '../../run'
import './styles.css'
import AddAssignment from '../AddAssignment'
import Assignments from '../Assignments'
import appMounted from '../../events/appMounted'
class App extends React.Component {
componentDidMount () {
run('appMounted', appMounted)
}
rende... |
thingmenn-frontend/src/components/party-details/index.js | baering/thingmenn | import React from 'react'
import partyService from '../../services/party-service'
import totalsService from '../../services/totals-service'
import partySummaryService from '../../services/party-summary-service'
import KPI from '../../widgets/key-performance-indicator'
import Topics from '../../widgets/topics'
import ... |
definitions/npm/@storybook/addon-actions_v3.x.x/test_addon-actions_v3.x.x.js | splodingsocks/FlowTyped | // @flow
import React from 'react';
import { action, decorateAction } from '@storybook/addon-actions'
const Button = (props) => <button {...props} />;
const firstArgAction = decorateAction([
args => args.slice(0, 1)
]);
// $FlowExpectedError
const erroneous = action(123);
// $FlowExpectedError
const erroneousDeco... |
packages/react/components/searchbar.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '..... |
src/pages/settings/settings-email.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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 License, o... |
packages/react-error-overlay/src/containers/RuntimeError.js | 0xaio/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 Header from '../components/Header';
import StackTrace from './StackTrace';
import type { ... |
packages/cli-adapter/src/saihubot-cli-addon-dialog.js | gasolin/saihubot | 'use strict';
import React from 'react';
import {Box, Text, useApp, useInput} from 'ink';
import SelectInput from 'ink-select-input';
const SelectBox = ({handleSelect, title, items}) => {
const {exit} = useApp();
useInput((input, key) => {
if (input === 'q' || key.escape) {
exit();
}
});
const ... |
template/src/components/Message.js | phonegap/phonegap-template-react-hot-loader | import '../css/message.css';
import React from 'react';
import CSSTransitionGroup from 'react-addons-css-transition-group';
export default React.createClass({
displayName: 'Message',
propTypes: {
message: React.PropTypes.string,
},
render() {
const { message } = this.props;
const msg = message
... |
src/index.js | richgurney/ReactTemperatureApp | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
.history/src/components/InstaCelebs/index_20171001010701.js | oded-soffrin/gkm_viewer |
import React from 'react';
import { connect } from 'react-redux'
import _ from 'lodash'
import '../../styles/insta-stats.scss'
const imgMap = {
d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg',
e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885... |
src/client/components/loading.react.js | steida/songary | // import './loading.styl';
import Component from '../components/component.react';
import React from 'react';
export default class Loading extends Component {
static propTypes = {
delay: React.PropTypes.number,
msg: React.PropTypes.object.isRequired
}
// http://www.nngroup.com/articles/response-times-3... |
console/src/app/tasklogs/tasklogs.js | alfredking12/hp-scheduler | import React from 'react';
require('rc-pagination/assets/index.css');
require('rc-select/assets/index.css');
import Pagination from 'rc-pagination';
import Select from 'rc-select';
import ActionRefresh from 'material-ui/svg-icons/action/search';
import TextField from 'material-ui/TextField';
import IconButton from 'ma... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js | pomerantsev/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleLoading = () => (
<div style={style.container}>
<RefreshI... |
js/components/leads_old/index.js | aditya-simplecrm/iosReactAppNoresha |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Alert,TouchableHighlight } from 'react-native';
import { Image, AsyncStorage } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { Container, Header, Title, Content, Text, Button, Icon, Left, Right, ... |
electron/app/pages/component/any.js | midsnow/snowelectric | import React from 'react';
import Debug from 'debug'
import Gab from '../../common/gab'
let debug = Debug('snowstreams:app:pages:component:any');
export default class Any extends React.Component {
constructor(props) {
super(props)
this.displayName = 'Any Component'
this.state = {
html: props.children || ... |
src/templates/portfolio-page.js | tannerfiscus/tannerfisc.us | import React from 'react';
import Markdown from 'react-markdown';
import { Helmet } from 'react-helmet';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import PreviewCompatibleImage from '../components/PreviewCompatibleImage'
import styles from './portfolio-page.module.scss';
import Text... |
js/src/views/Settings/Views/defaults.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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 your option) any later version.... |
packages/material-ui-icons/src/BatteryCharging80TwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v11.67C7 21.4 7.6 22 8.33 22h7.33c.... |
docs/src/app/components/pages/components/IconButton/Page.js | pancho111203/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 iconButtonCode from '!raw!material-ui/IconButton/IconButton';
import icon... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js | naustudio/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import DropZoneTarget from './ItemsTableDragDropZoneTarget';
import classnames from 'classnames';
var ItemsTableDragDropZone = React.createClass({
d... |
js/components/App.js | js-mi/so | import React from 'react';
import Header from './Header';
import Container from './Container';
import Ribbon from './Ribbon';
class App extends React.Component {
render () {
return (
<div>
<Header />
<Container />
<Ribbon />
</div>
);
}
}
export default App;
|
docs/app/Examples/collections/Message/Types/MessageExampleIcon.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Message, Icon } from 'semantic-ui-react'
const MessageExampleIcon = () => (
<Message icon>
<Icon name='circle notched' loading />
<Message.Content>
<Message.Header>Just one second</Message.Header>
We are fetching that content for you.
</Message.Content>
</... |
src/svg-icons/av/sort-by-alpha.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSortByAlpha = (props) => (
<SvgIcon {...props}>
<path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ... |
src/components/Dashboard/index.js | LazyHaus/MyHaus | import React from 'react';
import { Card, } from 'react-mdl';
import './style.css';
import '../../../node_modules/react-grid-layout/css/styles.css';
import '../../../node_modules/react-mdl/extra/material.css';
import '../../../node_modules/react-mdl/extra/material.js';
import {Responsive, WidthProvider} from 'react-g... |
src/components/chat-pane.js | johnamiahford/slack-clone | 'use strict';
import React from 'react';
class ChatPane extends React.Component {
render() {
return (
<div className="ChatPane">
<div className="container">
<h2>Hey There!</h2>
</div>
</div>
);
}
}
export default ChatPane;
|
src/components/TodoApp.js | bofa/react-education | import React from 'react';
// import todos from '../todos';
// import TodoApp = from './components/smart/TodoAppContainer';
// import IndexPage = from './components/smart/IndexPageContainer';
import { List } from 'immutable';
export default class TodoApp extends React.Component {
render() {
console.log... |
src/component/ToDoListWithFlux/TodoFooter.react.js | lyc-chengzi/reactProject | /**
* Created by liuyc14 on 2016/9/26.
*/
import React from 'react';
import TodoAction from '../../flux/actions/TodoAction';
let ReactPropTypes = React.PropTypes;
export default class TodoFooter extends React.Component{
constructor(props){
super(props);
this._onClearCompletedClick = this._onCle... |
lib/components/notifications.js | ekmartin/hyperterm | import React from 'react';
import Component from '../component';
import {decorate} from '../utils/plugins';
import Notification_ from './notification';
const Notification = decorate(Notification_);
export default class Notifications extends Component {
template(css) {
return (<div className={css('view')}>
... |
generators/app/templates/app/src/components/SOQHighlightable/SOQHighlightable.js | hasura/generator-hasura-web | import React from 'react';
import { connect } from 'react-redux';
import { toggleHighlight } from './Actions';
import SOQuestion from '../SOQuestion/SOQuestion';
class SOQHighlightable extends React.Component {
static propTypes = {
question: React.PropTypes.shape({
title: React.PropTypes.string.isRequired... |
modules/Link.js | Jastrzebowski/react-router | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
src/svg-icons/av/videocam.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocam = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/>
</SvgIcon>
);
AvVideocam = pure(AvVideocam);
Av... |
js/views/CalendarPage.js | ecohealthalliance/GoodQuestion | import React from 'react';
import {
Text,
View,
} from 'react-native';
import moment from 'moment';
import Styles from '../styles/Styles';
import Color from '../styles/Color';
import Calendar from '../components/Calendar/Calendar';
import CalendarEvent from '../components/Calendar/CalendarEvent';
import Loading fr... |
admin/client/App/shared/Popout/PopoutBody.js | jstockwin/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
src/public/components/tree/index.js | Lunik/tcloud | import React from 'react'
import $ from 'jquery'
import Path from 'path'
import Branch from './branch'
export default class Tree extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
}
initState (props) {
Object.assign(this.state, {
mobile: wi... |
src/svg-icons/maps/local-drink.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
Realization/frontend/czechidm-core/src/content/dashboards/LongRunningTaskDashboard.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
import * as Basic from '../../components/basic';
import { SecurityManager, LongRunningTaskManager } from '../../redux';
import RunningTasks from '../scheduler/RunningTasks';
const manager = new LongRunningTaskManager();
const uiKeyPrefix = 'long-running... |
frontend/src/components/partners/profile/modals/updateObservationSanction/updateSanctionObservationForm.js | unicef/un-partner-portal | import React from 'react';
import R from 'ramda';
import { reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Grid } from 'material-ui';
import GridColumn from '../../../../common/grid/gridColumn';
import TextFieldForm from '../../../../forms/textFieldForm... |
src/routes/private/PanelTools/FilesManager/FilesManager.js | sk-iv/iva-app | import React from 'react';
import {graphql, compose} from 'react-apollo';
import IconButton from '../../../../components/IconButton'
import {ChevronRight, Hierarchy, Facets, Hash, Export, TextInput, Magnifier, Plus, Filter, ChevronDown, ChevronLeft, Square, FileUpload, Times, Image, Book} from '../../../../components/S... |
packages/vulcan-core/lib/modules/containers/withRemove.js | bengott/Telescope | /*
Generic mutation wrapper to remove a document from a collection.
Sample mutation:
mutation moviesRemove($documentId: String) {
moviesEdit(documentId: $documentId) {
...MoviesRemoveFormFragment
}
}
Arguments:
- documentId: the id of the document to remove
Child Props:
- removeMutation(... |
src/components/GuitarApp/parts/Fretguide/index.js | jesusGalan/fretboardApp | import React, { Component } from 'react';
import {TransparentDiv} from './styled'
import {Row} from 'components/common/Template'
class Fretguide extends Component {
render() {
let frets = []
let x = 0
for (x = 0; x < 12; x++) {
frets.push(x)
}
return (
<Row>
{frets.map(th... |
src/svg-icons/maps/add-location.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
src/components/Select.js | aastein/crypto-trader | import React, { Component } from 'react';
import FontAwesome from 'react-fontawesome';
class Select extends Component {
constructor(props) {
super(props);
this.state = {
expanded: false,
};
}
handleExpand = (event) => {
event.preventDefault();
this.setState(prevState => (
{ expan... |
examples/huge-apps/app.js | djkirby/react-router | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './stubs/COURSES'
const rootRoute = {
childRoutes: [ {
path: '/',
component: require('./components/App'),
childRoutes: [
... |
examples/examples/FinancialChartExample.react.js | ericgio/r-d3 | import * as d3 from 'd3';
import React from 'react';
import {Axis, Candlestick, Chart, OHLC} from '../../src';
import {getInnerHeight, getInnerWidth, translate} from '../../src/utils';
import ohlcData from '../data/ohlc.csv';
/* example-start */
/**
* Adapted from http://bl.ocks.org/andredumas/27c4a333b0e0813e093d
... |
src/components/applications/index.js | Menternship/client-web | // @flow
import React from 'react';
import { Route } from 'react-router';
import ShowAll from './ShowAll';
export default [<Route path="applications" component={ShowAll} />];
|
app/javascript/mastodon/components/avatar.js | corzntin/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Avatar extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
staticSrc: PropTypes.string,
size: PropTypes.number.isRequired,
style: PropTypes.object,
animate: PropTypes.bool,
in... |
www/src/App.js | ctnitchie/ec2-dashboard | import React from 'react';
import {ec2Service, eventBus} from './services';
import InstanceInfo from './InstanceInfo';
import autobind from 'react-autobind';
import _ from 'lodash';
export default class App extends React.Component {
constructor() {
super();
this.state = {
instances: [],
unfiltere... |
src/svg-icons/notification/sms.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
NotificationSm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.