path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
src/renderer/windows/settings.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import { remote } from 'electron';
import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import SettingsPage from '../ui/pages/SettingsPage';
injectTapEventPlugin();
ReactDOM.render(<SettingsPage />, document.querySelector('#settings-window'));
remote... |
src/FormControls/Static.js | asiniy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
src/main.js | lucent1090/colorofmovielines | import React from 'react';
import ReactDOM from 'react-dom';
import Dot from './components/dot.js';
import ShowName from './components/name.js';
import { searchKeyWords } from './utils/utils.js';
import { wordColor } from './data/Carol1.js';
import { intro, content } from './data/content.js';
class Main extends React.... |
docs/app/Examples/collections/Form/Types/FormExampleForm.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button, Checkbox, Form } from 'semantic-ui-react'
const FormExampleForm = () => (
<Form>
<Form.Field>
<label>First Name</label>
<input placeholder='First Name' />
</Form.Field>
<Form.Field>
<label>Last Name</label>
<input placeholder='Last Name' ... |
index.js | samrocksc/contentfu | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
// MUI
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/st... |
src/svg-icons/content/content-cut.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-... |
src/lib/TimePickerComponent.android.js | MichaelCereda/react-native-form-generator | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
let { View, StyleSheet, TextInput, Text, TimePickerAndroid} = require('react-native');
import {Field} from './Field';
export class TimePickerComponent extends React.Component{
constructor(props){
super(props);
this.state ... |
React Native/Demos/address_book/Views/about.js | AngryLi/note-iOS | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import {
View, Text, ScrollView, Image, TouchableOpacity, StyleSheet
} from 'react-native';
import webView from './about/webview';
export default class About extends React.Component {
constructor(props) {
super(props);
}
... |
lib/components/map/analysis-bounds.js | conveyal/analysis-ui | import lonlat from '@conveyal/lonlat'
import React from 'react'
import {Rectangle} from 'react-leaflet'
/**
* Unproject the analysis bounds into `Leaflet.LatLng` points to be used for a
* rectangle. NB code was copied from another location that also incremented
* `west` by 1. Possibly to ensure non-zero numbers.
*... |
node_modules/react-router/es6/RouterContext.js | Giuny/Giuny.github.io | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
docs/src/Root.js | lzcmaro/react-ratchet | import React from 'react';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html'
];
}
},
childContextTypes: {
metadata: React.PropTypes.object
},
getChild... |
examples/wms/wmspopup.js | bartvde/sdk | import React from 'react';
import SdkPopup from '@boundlessgeo/sdk/components/map/popup';
/**
* Show the WMS GetFeatureInfo feature in a popup.
*/
export default class WMSPopup extends SdkPopup {
render() {
const content = [];
for (let i = 0, ii = this.props.features.length; i < ii; ++i) {
const feat... |
packages/cf-component-form/src/FormLabel.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme, hidden }) => ({
fontSize: theme.fontSize,
display: hidden ? 'none' : 'block',
marginBottom: theme.marginBottom,
color: theme.color
});
class FormLabel extends React.Com... |
logspace-frontend-new/src/main/users/components/Page.react.js | Indoqa/logspace | /*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... |
js/src/dapps/registry.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (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 lat... |
docs/src/app/components/pages/components/Drawer/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handl... |
app/packs/src/components/UserAuth.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types'
import 'whatwg-fetch';
import { ButtonGroup, OverlayTrigger, Popover, Nav, NavDropdown, NavItem, MenuItem, Glyphicon, Modal, Button, Table, Panel, Form, FormControl, FormGroup, ControlLabel, Col, Row } from 'react-bootstrap';
import moment fro... |
HTML/前端/my-react-app-spring-boot-yao/src/hello.js | xiaoxiaoyao/PythonApplication1 | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
); |
app/src/pages/NotYetReadyPage/index.js | udacityalumni/alumni-client | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { MartinRulz } from 'components';
import { AppFooter } from 'components';
const NotYetReadyPage = () => (
<div className={styles.container}>
<MartinRulz />
<AppFooter />
</div>
);
export... |
packages/mineral-ui-icons/src/IconRoundedCorner.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconRoundedCorner(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
src/components/common/svg-icons/social/notifications.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
.history/src/components/InstaCelebs/index_20171001003454.js | oded-soffrin/gkm_viewer |
import React from 'react';
import { connect } from 'react-redux'
const InstaCelebs = () => {
console.log('state', state)
return (
<div className="stats">
Stats:
<div>Karen</div>
<div>Donna...</div>
</div>
)
}
const mapStateToProps = (state) => ({
state
})
const InstaCelebsConnect... |
addons/themes/overflow/layouts/Home.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Home = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
src/svg-icons/maps/local-atm.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
src/containers/LoginContainer.js | kiyoshitaro/Instagram- | import React from 'react';
import LoginComponent from "../components/LoginComponent";
import * as LoginAciton from '../actions/LoginAction';
import * as postProfileAction from '../actions/postProfileAction';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
export class LoginContainer ext... |
elements/Rect.js | msand/react-native-svg | import React from 'react';
import { requireNativeComponent } from 'react-native';
import extractProps, { propsAndStyles } from '../lib/extract/extractProps';
import Shape from './Shape';
export default class Rect extends Shape {
static displayName = 'Rect';
static defaultProps = {
x: 0,
y: 0,
width: 0... |
src/svg-icons/hardware/keyboard-arrow-down.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowDown = (props) => (
<SvgIcon {...props}>
<path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/>
</SvgIcon>
);
HardwareKeyboardArrowDown = pure(HardwareKeyboardArrowDown);
HardwareKey... |
old/drafty/src/SaveButton.js | paulpooch/fantasy-football | import React, { Component } from 'react';
import './SaveButton.css';
const SAVE_INTERVAL = 60000;
class SaveButton extends Component {
componentDidMount() {
this.saveInterval = window.setInterval(this.save.bind(this), SAVE_INTERVAL);
}
componentWillUnmount() {
window.clearInterval(this.saveInterval);
... |
src/main.js | jwarshaw/redux-dashboard-app | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
client/src/Conversation.js | nux17/kryptchat | import React from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import { Link } from 'react-router-native';
class Conversation extends React.Component {
render() {
return (
<Link to={`/conv/${this.props.name}`}>
<View style={styles.container}>
<Text>{this.props.name}</Text>
</Vi... |
src/containers/CurrentWeatherContainer/index.js | Junicus/fcc-localweather | import React from 'react';
import { connect } from 'react-redux';
import { CurrentWeather } from '../../components/CurrentWeather';
class CurrentWeatherContainer extends React.Component {
render() {
const { currentWeather } = this.props;
return (
(currentWeather) ?
(<Cu... |
blueocean-material-icons/src/js/components/svg-icons/action/track-changes.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTrackChanges = (props) => (
<SvgIcon {...props}>
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4... |
src/svg-icons/image/blur-linear.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurLinear = (props) => (
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-... |
react/ButtonGroup/ButtonGroup.js | seekinternational/seek-asia-style-guide | /* eslint css-modules/no-unused-class: [2, { markAsUsed: [rootHover, rootActive, selected, root, compact, disabled, root_callToAction, jobsDB, jobStreet, root_primary, root_secondary, root_hyperlink, root_ghost_white, root_tertiary] }] */
import styles from '../Button/Button.less';
import React from 'react';
import Pr... |
src/frontend/react/pages/SearchItemPage.js | FakeYou/voerr | import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import dateFormat from 'dateformat-light';
import { filter, values, reduce, times } from 'lodash';
import { Link } from 'react-router';
import Markdown from 'react-remarkable';
import LoginStore from 'flux/stores/LoginStore';
import D... |
packages/app/app/components/LibraryView/NoSearchResults/index.js | nukeop/nuclear | import React from 'react';
import { useTranslation } from 'react-i18next';
import { Icon } from 'semantic-ui-react';
import styles from './styles.scss';
export default () => {
const { t } = useTranslation('library');
return (
<div className={styles.library_no_search_results}>
<Icon name='file audio out... |
apps/customer/assets/static/js/components/AutoSuggestTextField/index.js | tsurupin/job_search | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Wrapper, Input } from './styles';
import { Label, SuggestedItemList } from 'components';
const propTypes = {
name: PropTypes.string.isRequired,
suggestedItems: PropTypes.arrayOf(PropTypes.string).isRequired,
currentValue: Prop... |
source/client/components/Card.js | NAlexandrov/yaw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import { Modal } from 'antd';
import { Select, CardEdit, Input } from './';
import loading from './helpers/loading';
const CardLayout = styled.div`
position: relative;
width: 260px;
height: 164px;
box-... |
threeforce/node_modules/react-bootstrap/es/ControlLabel.js | wolfiex/VisACC | 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/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/1_LoadingPage/index.js | westoncolemanl/tabbr-web | import React from 'react'
import withStyles from 'material-ui/styles/withStyles'
import { LinearProgress } from 'material-ui/Progress'
import Typography from 'material-ui/Typography'
const styles = theme => ({
root: {
[theme.breakpoints.down('sm')]: {
paddingLeft: theme.spacing.unit,
paddingRight: ... |
app/components/BuildingHeader/index.js | medevelopment/UMA | import React from 'react';
import axios from 'axios';
import * as toastify from '../../functions/Toastify';
import { Link, browserHistory } from 'react-router';
import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card';
import { isoToShortDate, fullDateToIsoDate, numberWithCommas... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-6/index.js | Brandon-J-Campbell/codemash | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/components/OrganizationEditForm/stories.js | envisioning/tdb-storybook | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import OrganizationEditForm from './';
import { mockA } from '../CardGrid/mock.js'
import { getCardUrl, getCloudinaryPath } from '../../utils/cloudinary_url'
const technologiesId = mockA.slice(0, 10).map(res => ({...res, image: getCardUr... |
tests/Rules-isUrl-spec.js | aesopwolf/formsy | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
js/app.js | JACooper/Forge-client | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './redux/store.js'; // Calls CreateStore, since that's the default export
import Wrapper from './react-components/pages/Wrapper.js';
import '../css/Forge.scss';
const init = () => {
ReactDOM.render... |
src/routes/admin/index.js | quyetvv/react-starter-kit | /**
* 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 Layout from '../../co... |
src/js/components/icons/base/Cart.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
new-lamassu-admin/src/pages/Dashboard/LeftSide.js | naconner/lamassu-server | import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import React from 'react'
import styles from './Dashboard.styles'
import SystemPerformance from './SystemPerformance'
const useStyles = makeStyles(styles)
const LeftSide = () => {
const classes = useStyles()
return (... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | levkus/react-overcounters2 | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
app/components/OutputLine.js | mfrohberg/fil | import React from 'react';
import {parseType} from 'helpers';
import Chunk from 'components/Chunk';
class OutputLine extends React.Component {
render() {
var block = "console__output";
return (
<div className={block + "__line"}>
{this.props.output.map(
(chunk, i) => <Chunk key={i} ... |
pootle/static/js/admin/components/ProjectForm.js | mail-apps/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { FormEl... |
components/ScreenMembers.js | lnfnunes/react-native-random-winner | import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
Image,
FlatList,
Dimensions,
} from 'react-native';
const window = Dimensions.get('window');
const arrMembers = require('../assets/members.json').members;
export default class ScreenMembers extends Component {
static navigationO... |
app/scripts/components/Authenticated.react.js | darbio/auth0-roles-permissions-dashboard-sample | import React from 'react';
import Router from 'react-router';
import TokenStore from '../stores/TokenStore';
import RouterService from '../core/RouterService';
export default class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!TokenStore.isAuthenticated()) {
transiti... |
src/index.js | namelos/repress | import React, { Component } from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, bindActionCreators, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import { Provider, connect } from 'react-redux';
// Actions
const inc = () => ({ type: 'INC' });
const dec = () => ({... |
spec/components/card.js | rahultaglr/taglr-toolbox | /* eslint-disable react/prop-types */
import React from 'react';
import Button, { IconButton } from '../../components/button';
import Card, { CardActions, CardMedia, CardText, CardTitle } from '../../components/card';
import style from '../style';
const dummyText = 'Lorem Ipsum is simply dummy text of the printing and... |
src/svg-icons/image/looks-5.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks5 = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/>
</SvgI... |
src/components/ExampleTable.js | Lambda-CDM/react-material-dashboard | import React from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
const items = [
{
id: 1,
name: 'John Smith',
status: 'Employed'
},{
id: 2,
name: 'Randal White',
status: 'Unemployed'
},{
id: 3,
name: 'Stephani... |
node_modules/react-bootstrap/es/DropdownButton.js | ProjectSunday/rooibus | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
screens/CompanyProfileScreen/index.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { ScrollView } from 'react-native'
import PropTypes from 'prop-types'
import CompanyProfile from './CompanyProfileContainer'
import { HeaderNavigation } from '@components'
const CompanyProfileScreen = ( { navigation } ) =>
<ScrollView>
<CompanyProfile navigation={navigation} />
... |
docs/src/components/browser-dev-panel.js | ridixcr/nuclear-js | import React from 'react'
export default React.createClass({
render() {
return <div className="browser-component--dev-panel">
{this.props.children}
</div>
}
})
|
fields/types/azurefile/AzureFileColumn.js | tony2cssc/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
app/js/home/index.js | WikiWebOrg/wikiweb-dot-org | import ReactDOM from "react-dom";
import React from 'react';
import Cards from './container/cards';
ReactDOM.render(
<Cards />,
document.getElementById('root')
);
|
ReactApollo/src/index.js | davidpaulmcintyre/graphql-stockticker | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App/>,
document.getElementById('root')
);
|
hosting/src/index.js | csrf-demo/csrf-demo | import 'babel-polyfill';
import React from 'react'
import ReactDOM from 'react-dom'
import firebase from 'firebase'
import App from './components/App.js'
firebase.initializeApp({
apiKey: 'AIzaSyB80Jkep0vO07Y1BdvgK75Pr9MZy24MdXc',
authDomain: 'csrf-demo.firebaseapp.com',
databaseURL: 'https://csrf-demo.firebasei... |
src/components/Menu/Menu.js | Landish/react-spectre-css | import React from 'react';
//import {} from 'prop-types';
import classNames from 'classnames';
const Menu = ({ children, ...rest }) => {
return (
<ul className={classNames('menu')} {...rest}>
{children}
</ul>
);
};
/**
* Menu property types.
*/
Menu.propTypes = {};
/**
* Menu default properties.... |
src/svg-icons/image/timelapse.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimelapse = (props) => (
<SvgIcon {...props}>
<path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4... |
src/browser/cards/Board.js | xiankai/triple-triad-solver | import React from 'react';
import { connect } from 'react-redux';
import {
getCurrentRules,
computeBoardScore,
} from '../../common/cards/logic';
import {
Grid,
Flex,
} from '../app/components';
import DeckCard from './DeckCard';
import BoardCard from './BoardCard';
let shownCardCounter = 0;
const Board = ... |
packages/spec/integration/redux/index.js | xing/hops | import { render } from 'hops';
import React from 'react';
import { connect } from 'react-redux';
import fetch from 'cross-fetch';
import { Helmet } from 'react-helmet-async';
import { Route } from 'react-router-dom';
const reducers = {
counter(state = 0, action) {
switch (action.type) {
case 'INCREMENT':
... |
App/Components/Landmark.js | quickresolve/CycleTheBay | "use strict";
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
MapView,
ScrollView,
Image,
TabBarIOS,
AlertIOS,
navigator,
LinkingIOS,
View
} from 'react-native';
import LandmarkList from './LandmarkList'
import TrailList from './TrailList'
im... |
app/components/ReplayCard/index.js | medevelopment/UMA | import React from 'react';
// Import { Link, browserHistory } from 'react-router';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import LoadingIndicator from '../LoadingIndicator';
import Avatar from '../icons/userprofile.jpg';
import styled from 'styled-components';
... |
src/Parser/Paladin/Retribution/Modules/PaladinCore/BoWProcTracker.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
imp... |
app/javascript/components/shared/DashboardChartView/dashboard-chart-view.component.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
import Renderer from '@widget-editor/renderer';
const DashboardChartView = ({ error, loading, chartLoading, widget }) => (
<div className="c-dashboard-chart-view">
{!error && (loading || chartLoading) && <div className="c-loading-spinner -bg" />}
... |
src/components/common/FolderBanner/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import FolderUpper from '../../images/folder-upper.png';
import styles from './FolderBanner.module.css';
const FolderBanner = ({ children, rootClassName }) => (
<div className={rootClassName}>
<img src={FolderUpper} alt="foler-upper" />
<div cla... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet2Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8z" /><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet2Bar');
|
src/views/components/Board/Board.js | luispinadev/redux-dnd-taskboard | import React from 'react'
import styles from './Board.styl'
import CardList from 'views/components/CardList'
import CreateCardControl from 'views/components/CreateCardControl'
export default ({ boardID, title, createCard }) =>
<div className={styles.wrapper } >
<div className={styles.container} >
<div cl... |
src/components/WeatherAvatar/index.js | Cirych/WeatherApp | import React from 'react';
import * as weatherIcons from '../../components/WeatherIcons';
const styles = {
default: {
wrapper: {
width: 'auto',
height: 50,
display: 'inline-block',
paddingRight: 20,
position: 'relative'
},
temp: {
display: 'inline-block',
width: 50,
fontSize: 24,
vert... |
source/client/components/shared/saved-modal.js | lawshe/boda | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
/**
*
* Saved modal
*
* @param {String} title - Title of the modal
* @param {Boolean} show - To show or not to show the modal
* @param {String} message - The body of the modal
* @par... |
src/svg-icons/device/brightness-high.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessHigh = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
src/containers/Profile/media/linkedin.js | TheodorTomas/theodortomas.github.io | import React from 'react';
export default (
<svg
className="icon linkedin"
width="32"
height="32"
viewBox="0 0 1792 1792"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.... |
src/components/Modal/Modal.js | meeiyu/mckenna | import './Modal.scss';
import React from 'react';
class Modal extends React.Component {
render() {
return (
<div className="app-modal-wrapper">
<button type="button" className="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo m... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LinkLine/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
js/components/App.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import {Link} from 'react-router';
import Comp from './comp';
import ReferenceLink from './ReferenceLink';
import NodeName from './NodeName';
import NodeId from './NodeId';
import Links from './Links';
import LocalizedText from './Lo... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-hammerjs/es/Hammer.js | bhathiya/test | 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/components/Header/Header.js | SgtRock91/FantasyOptimizer | /**
* 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 withStyles from 'isom... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | nyc-chorus-frogs-2016/google_login_config | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/containers/UGFaqPage/index.js | perry-ugroop/ugroop-react-dup2 | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import UGSubpagesHeader from '../../components/UGSubpagesHeader';
import UGBreadcrumbs from '../../components/UGBreadcrums';
import UGSubpagesContainer from '../../components/UGSubpagesContainer';
export class... |
examples/src/index.js | jakezatecky/react-dual-listbox | import React from 'react';
import ReactDOM from 'react-dom';
import AlignTopExample from './js/AlignTopExample';
import AllowDuplicatesExample from './js/AllowDuplicatesExample';
import BasicExample from './js/BasicExample';
import DisabledExample from './js/DisabledExample';
import FilterExample from './js/FilterExam... |
packages/carbon-react/.storybook/Welcome/Welcome.stories.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { Welcome as Intro } from './Welcome';
import mdx from './Welcome.mdx';
export default {
title: ' Gettin... |
examples/bootstrap/src/App.js | tannerlinsley/react-table | import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import BTable from 'react-bootstrap/Table';
import { useTable } from 'react-table'
import makeData from './makeData'
function Table({ columns, data }) {
// Use the state and functions returned from useTable to build your UI
const { getTab... |
products/mobile/src/screens/WHScreen.js | MykolaGolubyev/whats-happening | import React from 'react';
import {TabNavigator} from "react-navigation";
import Ion from "react-native-vector-icons/Ionicons";
import EventsScreen from './EventsScreen';
import CategoriesScreen from "./CategoriesScreen";
import data from '../../data.json';
import styles from '../styles/WHStyle';
const EventsWrapper ... |
packages/ringcentral-widgets/components/ConferenceCommands/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import BackHeader from '../BackHeader';
import styles from './styles.scss';
import i18n from './i18n';
const Button = ({ text }) => (
<span key={text} className={styles.button}>
{text}
</span>
);
Button.propTypes = {
text: PropTypes.string.isRequ... |
app/javascript/mastodon/features/list_editor/components/edit_list_form.js | Nyoho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
app/src/components/LanguageSearch.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import { Link } from 'react-router-dom';
import './LanguageSearch.css';
import topLanguages from '../data/topLanguages.json';
const LanguageSearch = () => (
<section className="hero is-fullheight LanguageSearch">
<div className="hero-body">
<div className="container has-text-ce... |
src/svg-icons/notification/power.js | xmityaz/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... |
admin/client/views/item.js | nickhsine/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Lists from '../stores/Lists';
import CreateForm from '../components/CreateForm';
import EditForm from '../components/EditForm';
import EditFormHeader from '../components/EditFormHeader';
import FlashMessages from '../components/FlashMessages';
import F... |
code/web/node_modules/react-bootstrap/es/FormControl.js | zyxcambridge/RecordExistence | 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/av/videocam.js | manchesergit/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... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | amido/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.
*/
import React from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
export default () => (
<img id="feature-image-inclusion... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.