path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
demo/app.js | jide/react-classnames | /*global document:false*/
import React from 'react';
import classNames from '../src/classNames';
@classNames
class App extends React.Component {
render() {
return (
<div>
<div classNames='Demo'/>
<div classNames={ ['main', false && 'hidden', true && 'visible'] } className='other-class'/>
... |
alcarin_frontend/src/router/App/App.js | alcarin-org/alcarin-elixir | // @flow
import './App.css';
import React from 'react';
import { Route, Link } from 'react-router-dom';
import { CharacterDashboardPage } from '../../character_dashboard';
import { Socket } from '../../connection';
export default class App extends React.PureComponent<{}> {
render() {
return (
<Socket.Soc... |
main.js | argelius/react-onsenui-kitchensink | import React from 'react';
import ReactDOM from 'react-dom';
import ons from 'onsenui';
import {
Page,
Tabbar,
Tab,
Navigator
} from 'react-onsenui';
import Home from './components/Home';
import Dialogs from './components/Dialogs';
import Forms from './components/Forms';
import Animations from './components... |
src/components/UserOrientationLeads.js | vitorbarbosa19/ziro-online | import React from 'react'
import { Image } from 'cloudinary-react'
export default () => (
<div style={{ marginBottom: '40px' }}>
<Image
style={{ margin: '20px 0' }}
cloudName='ziro'
width='40'
publicId='ok-icon_bskbxm'
version='1508212647'
format='png'
secure='true'
... |
src/svg-icons/action/turned-in-not.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedInNot = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionTurnedInNot = pure(ActionTurnedInNo... |
src/svg-icons/image/timer.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer = (props) => (
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | chunwei/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
app/js/components/ui/containers/shell.js | blockstack/blockstack-portal | import React from 'react'
import { Type } from '@ui/components/typography'
import { StyledShell } from '@ui/components/shell'
import { ActionButtons } from '@ui/containers/button'
import { FormContainer } from '@ui/containers/form'
import { withShellContext } from '@blockstack/ui/common/withOnboardingState'
import { Sp... |
src/packages/recompose/__tests__/utils.js | acdlite/recompose | import React from 'react'
import setDisplayName from '../setDisplayName'
import wrapDisplayName from '../wrapDisplayName'
export const countRenders = BaseComponent => {
class CountRenders extends React.Component {
renderCount = 0
render() {
this.renderCount += 1
return <BaseComponent renderCount... |
internals/templates/app.js | hieubq90/react-boilerplate-3.4.0 | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/apps/DataObjects/DataObjectsTable/DataObjectsTableTextCell.js | Syncano/syncano-dashboard | import React from 'react';
import Truncate from '../../../common/Truncate';
const DataObjectsTableTextCell = ({ content }) => (
<Truncate
text={content}
title={content}
/>
);
export default DataObjectsTableTextCell;
|
HealthAndFitness.Mobile/src/app.android.js | DennisAikara/HealthAndFitness | import React from 'react';
import { Provider } from 'react-redux';
import { Navigation } from 'react-native-navigation';
import { registerScreens } from './screens';
import configureStore from './store';
import { LoadIcons, Icons } from './global/IconCache';
LoadIcons.then(() => {
const store = configureStore();
... |
src/icons/IosCart.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCart extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M160,400c-13.248,0-24,10.752-24,24s10.752,24,24,24s24-10.752,24-24S173.248,400,160,400z"></path>
<path d="M384.5,40... |
src/svg-icons/device/screen-lock-portrait.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockPortrait = (props) => (
<SvgIcon {...props}>
<path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.... |
assets/jqwidgets/demos/react/app/kanban/headertemplate/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
componentDidMount() {
this.refs.myKanban.on('itemAttrClicked', (event) =>... |
src/components/Articles/List.js | mcnamee/react-native-starter-app | import React from 'react';
import PropTypes from 'prop-types';
import { Actions } from 'react-native-router-flux';
import { FlatList, TouchableOpacity, Image } from 'react-native';
import {
Container, Card, CardItem, Body, Text, Button,
} from 'native-base';
import { Error, Spacer } from '../UI';
import { errorMessag... |
js/jqwidgets/jqwidgets-react/react_jqxtreemap.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTreeMap extends React.Component {
componentDidMount() {
let options = this.manageAt... |
src/components/Icons/Share.js | bogas04/SikhJS | import React from 'react';
import SVG from './SVG';
export default props => (
<SVG
viewBox="0 0 507.45 507.45"
enableBackground="new 0 0 507.45 507.45"
fill="black"
{...props}
>
<g>
<g id="share-alt">
<path
d="M408,178.5c-20.4,0-38.25,7.65-51,20.4L175.95,94.35c2.55-5.1,2... |
src/parser/shared/modules/items/bfa/GildedLoaFigurine.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import UptimeIcon from 'interface/icons/Uptime';
import PrimaryStatIcon from 'interface/icons/PrimaryStat';
import ItemStatistic from 'interface/statistics/ItemStati... |
frontend/src/System/Tasks/Scheduled/ScheduledTasks.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import FieldSet from 'Components/FieldSet';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import translate from 'Utilities/String/translate... |
frontend/src/Components/MonitorToggleButton.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import { icons } from 'Helpers/Props';
import styles from './MonitorToggleButton.css';
function getTooltip(monitored, isDisabled) {
if ... |
packages/material-ui-icons/src/MoveToInbox.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z" /></g>
, 'MoveToInbox');
|
src/app.js | CyberKronos/social-trading-web-app | import React from 'react'
import ReactDOM from 'react-dom'
import 'bootstrap/dist/css/bootstrap.css'
import './app.css'
import App from 'containers/App/App'
import {browserHistory} from 'react-router'
import makeRoutes from './routes'
import firebase from 'firebase';
import config from '../config.json';
const fbCo... |
src/components/main/OrderForm.js | samihda/pizza | /* eslint-disable react/no-set-state */
import React from 'react';
import assign from 'object-assign';
const sizeOpts = [20, 30, 40];
const ingredientOpts = ['Tomato Sauce', 'Mozzarella', 'Cheese', 'Salami', 'Mushrooms', 'Spinach'];
export default class OrderForm extends React.Component {
constructor(props) {
... |
docs/src/examples/collections/Grid/Variations/GridExampleTextAlignmentRight.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Grid, Menu } from 'semantic-ui-react'
const GridExampleTextAlignmentRight = () => (
<Grid textAlign='right' columns={3}>
<Grid.Row>
<Grid.Column>
<Menu fluid vertical>
<Menu.Item className='header'>Cats</Menu.Item>
</Menu>
</Grid.Column>
... |
react-dev/containers/header.js | WDTAnyMore/WDTAnyMore.github.io | import React, { Component } from 'react';
import classnames from 'classnames';
import { connect } from 'react-redux';
import AppBar from 'material-ui/AppBar';
import { fetchSiteInfo } from '../actions/index';
import Menu from '../components/menu';
import { RightBar } from '../components/right_menu_bar';
class Heade... |
src/components/header.js | ak1103dev/ak1103dev.github.io | import { Link } from 'gatsby'
import PropTypes from 'prop-types'
import React from 'react'
const Header = ({ siteTitle }) => (
<div
style={{
background: `rebeccapurple`,
marginBottom: `1.45rem`,
}}
>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45... |
ui/modules/www/router.js | sinemetu1/chronos | // import
import React from 'react';
import {Provider} from 'react-redux';
import {syncHistoryWithStore} from 'react-router-redux';
import {Router, Route, Redirect, browserHistory} from 'react-router';
import store from './store';
// routes
import AppRoute from './AppRoute/AppRoute.js';
import JobUpdateRoute from '.... |
src/svg-icons/toggle/star.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStar = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ToggleStar = pure(ToggleStar);
ToggleStar.disp... |
src/client/components/todos/newtodo.js | fabriciocolombo/este | import PureComponent from '../../../lib/purecomponent';
import React from 'react';
import immutable from 'immutable';
import {addTodo, onNewTodoFieldChange} from '../../todos/actions';
import {addons} from 'react/addons';
import {msg} from '../../intl/store';
export default class NewTodo extends PureComponent {
add... |
src/navigation/tabs.js | LancCJ/react-native-cyber-police | /**
* Tabs Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
import { AppStyles, AppSizes } from '@theme/';
// Components
import { Ta... |
src/routes.js | redux-china/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Widgets,
About,
Login,
RequireLogin,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default function(store) {
return (
<Route component={App}>
<Route path="/" component={Hom... |
app/javascript/mastodon/features/compose/components/search.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
const messages = defineMessages({... |
src/svg-icons/action/settings-input-component.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComponent = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
fluxArchitecture/src/js/components/product/app-catalogdetail.js | wandarkaf/React-Bible | import React from 'react';
import AppStore from '../../stores/app-store';
import StoreWatchMixin from '../../mixins/StoreWatchMixin';
import AppActions from '../../actions/app-actions'
import CartButton from '../cart/app-cart-button';
import { Link } from 'react-router';
function getCatalogItem( props ){
let item = ... |
imports/client/components/Project/ProjectInfoList.js | evancorl/skate-scenes | import React from 'react';
class ProjectInfoList extends React.Component {
shouldComponentUpdate() {
return false;
}
render() {
const { subtitle, list } = this.props;
return (
<div className="project-info-list-container">
<h3 className="project-subtitle">{subtitle}:</h3>
<ul c... |
shared/components/Common/Content/NavRight.js | kizzlebot/music_dev | import React from 'react'
export default class NavRight extends React.Component {
render() {
return (
<div className="content__right">
<div className="social">
<div className="friends">
<a href="#" className="friend">
<i className="ion-android-person" />
... |
examples/src/components/CustomRenderField.js | jakeland/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
website/irulez/src/components/admin_menu/Administrator.js | deklungel/iRulez | import React, { Component } from 'react';
import AuthService from '../AuthService';
import SideBar from '../SideBar';
import { Route } from 'react-router-dom';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import withAuth from './../withA... |
es/ExpansionPanel/ExpansionPanelActions.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
ui/src/main/js/components/InstanceViz.js | rdelval/aurora | import React from 'react';
import { Link } from 'react-router-dom';
export default function InstanceViz({ instances, jobKey }) {
const {job: {role, environment, name}} = jobKey;
const className = (instances.length > 1000)
? 'small'
: (instances.length > 100) ? 'medium' : 'big';
return (<ul className={`i... |
docs/src/pages/components/icons/SvgIconsSize.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import SvgIcon from '@material-ui/core/SvgIcon';
const useStyles = makeStyles((theme) => ({
root: {
'& > svg': {
margin: theme.spacing(2),
},
},
}));
function HomeIcon(props) {
return (
<SvgIcon {...props}>
... |
src/App.js | qf3/card-games-vocabulary | import React from 'react'
import { connect } from 'react-redux'
import ScoreBoard from './components/ScoreBoard'
import ReportCard from './components/ReportCard'
import Confirm from './components/Confirm'
import CardsBoard from './container/CardTransition'
import CountDown from './components/CountDown'
const App = ({... |
frontend/component/TopicList.js | wangmuming/node-forum | import React from 'react';
import { Router, Route, Link, browserHistory } from 'react-router';
import {getTopicList} from '../lib/client';
export default class TopicList extends React.Component {
constructor(pros){
super(pros);
this.state = {};
}
componentDidMount() {
this.updateList({
// 路由... |
app/sources/js/components/dialog/setting_dialog.react.js | ixui/sirusu | // Library
import connectToStores from 'alt/utils/connectToStores'
import React from 'react'
// Alt - Flux
// Actions
import NotebooksActions from '../../actions/notebooks'
import SettingActions from '../../actions/setting'
import ErrorsActions from '../../actions/errors'
// Stores
import SettingStore from '... |
packages/web/src/lib/apollo.js | dvaJi/ReaderFront | import React from 'react';
import Head from 'next/head';
import {
ApolloProvider,
ApolloClient,
InMemoryCache,
HttpLink
} from '@apollo/client';
import fetch from 'isomorphic-unfetch';
let globalApolloClient = null;
/**
* Creates and provides the apolloContext
* to a next.js PageTree. Use it by wrapping
* ... |
src/Fade.js | jakubsikora/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
retu... |
src/components/transactions/amount.js | slaweet/lisk-nano | import React from 'react';
import { translate } from 'react-i18next';
import styles from './transactions.css';
import LiskAmount from '../liskAmount';
import { TooltipWrapper } from '../timestamp';
import ClickToSend from '../clickToSend';
import transactionTypes from '../../constants/transactionTypes';
const Amount =... |
packages/web/src/components/Interface/Interface.js | hengkx/note | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import queryString from 'query-string';
import { Card, Table, Button, Modal, Select } from 'antd';
import { Link } from 'react-router-dom';
import './less/interface.less';
const Option = Select.Option;
class Interface extends ... |
src/common/components/LoadingIndicator.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* 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, or (at your o... |
examples/with-unstated/pages/about.js | BlancheXu/test | import React from 'react'
import Link from 'next/link'
import { Subscribe } from 'unstated'
import { ClockContainer, CounterContainer } from '../containers'
import { Clock, Counter } from '../components'
class About extends React.Component {
componentWillUnmount () {
clearInterval(this.timer)
}
render () {
... |
src/Jumbotron.js | thealjey/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... |
liveExample/src/react-live-editor/patch.js | ArnoSaine/react-link-state-vm | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
React.createClass = createClass;
React.PropTypes = PropTypes;
|
src/Avatar.js | escabc/members-search-app | import React from 'react'
import PropTypes from 'prop-types'
import NoAvatarImage from './assets/default-professional-avatar.svg'
const styles = {
root: {},
}
const Avatar = ({ image }) => (
<div style={styles.root}>
<img src={image} alt="no avatar" />
</div>
)
Avatar.propTypes = {
image: PropTypes.stri... |
stories/index.js | wegotpop/prt-client | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import PRTComponent from 'prt';
storiesOf('PRTC... |
src/pages/paper/review/paperReview/reviewQuestions.js | sunway-official/acm-admin | import React from 'react';
import { Col, Row } from 'react-flexbox-grid';
import { Field, reduxForm } from 'redux-form';
import SelectPoint from './selectPoint';
import { RaisedButton } from 'material-ui';
import CustomInput from '../../../../components/CustomInput';
const validate = (values, props) => {
const error... |
src/components/Quiz.js | scottluptowski/newyorktimesorjennyholzer | import React from 'react';
import Score from './Score';
import PostGame from './PostGame';
import GameLogicStore from '../stores/GameLogicStore';
import TruismActions from '../actions/truism_actions';
import { HOLZER, NYT } from '../constants';
function getUpdatedState() {
let state = GameLogicStore.getState();
... |
packages/reactor-kitchensink/src/NavTree.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Panel, SearchField, Toolbar, TreeList } from '@extjs/ext-react';
export default class NavTree extends Component {
filterNav = (field, value) => {
const { store } = this.props;
this.filterRegex = new RegExp(`(${Ext.String.escapeRegex(value)})`, 'i'... |
src/components/UsersList/UsersList.js | fkn/ndo | import PropTypes from 'prop-types';
import React from 'react';
import { ListGroup, ListGroupItem } from 'react-bootstrap';
import User from '../User';
import Action from './Action';
class UsersList extends React.Component {
static propTypes = {
onClick: PropTypes.func.isRequired,
users: PropTypes.arrayOf(
... |
src/svg-icons/image/filter-2.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter2 = (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-4-4h-4v-2h2c1.1 0 2-.89 ... |
src/Layout.js | txwkx/grime-map | import React, { Component } from 'react';
import axios from 'axios';
import Sidebar from './components/Sidebar';
import MapContainer from './components/MapContainer';
import './css/general.css';
class Layout extends Component {
constructor(props) {
super(props);
this.state = {
districtsList: ... |
src/svg-icons/action/android.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
packages/editor/src/components/Icons/Paragraph.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const Paragraph = props => (
<Icon viewBox="0 0 384 512" {...props}>
<path d="M372 32H165.588C74.935 32 .254 104.882.001 195.535-.252 286.177 73.415 360 164 360v108c0 6.627 5.373 12 12 12h32c6.627 0 12-5.373 12-12V88h40v380c0 6.627 5.373 12 12 12h32c6.627 0 1... |
src/components/Post/index.js | RyszardRzepa/React-Redux-Firebase-Boilerplate | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import { Flex, Box } from 'reflexbox'
import s from './styles';
const Post = (props) => {
return (
<div>
<Flex
align="center"
... |
docs/app/Examples/elements/Step/Types/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const StepTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Step'
description='A single... |
src/components/CropBox/index.js | lapanoid/redux-cropper | import React from 'react';
import PureComponent from 'react-pure-render/component';
import ViewBox from '../ViewBox'
import CropperFace from '../CropperFace'
import {
ACTION_SOUTH,
ACTION_EAST,
ACTION_SOUTH_WEST,
ACTION_NORTH,
ACTION_WEST,
ACTION_NORTH_WEST,
ACTION_NORTH_EAST,
ACTION_SOUTH_EAST
} from '../../co... |
docs/src/examples/elements/Input/Usage/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const InputUsageExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Focus'
description='An inp... |
pyxis/views/beacon/home.js | gtkatakura/furb-desenvolvimento-plataformas-moveis | import React from 'react';
import { Text, View, Button, StyleSheet, ScrollView } from 'react-native';
import Components from './../../components';
const styles = StyleSheet.create({
base: {
padding: 24,
flex: 1
},
name: {
fontSize: 24
},
header: {
flexWrap: 'wrap',
flexDirection: 'row'
... |
app/components/pages/Workshop/index.js | romainquellec/cuistot | /*
*
* Workshop
*
*/
import React from 'react';
import Container from '../../genericComponents/Container';
import Header from '../../genericComponents/Header';
import WorkshopCarousel from '../../specificComponents/WorkshopCarousel';
import Main from './Main';
import Sider from './Sider';
// eslint-disable-next... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | xiaotaijun/actor-platform | import React from 'react';
//import { Styles, Tabs, Tab } from 'material-ui';
//import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
//import ContactsSection from 'components/sidebar/Conta... |
app/components/YourNextApp/scatterPlot.js | mhoffman/CatAppBrowser | import React from 'react';
import _ from 'lodash';
import Grid from 'material-ui/Grid';
import TextField from 'material-ui/TextField';
import Button from 'material-ui/Button';
import Plot from 'react-plotly.js';
export default class ScatterPlot extends React.Component {
constructor(props) {
super(props);
th... |
src/pages/article/articleDetail.js | ShiChao1996/BlogAdmin | import React, { Component } from 'react';
import {
Input,
Row,
Col,
Button,
Spin
} from 'antd';
import MarkDown from '../../components/markdown';
import './articleDetail.css';
import { connect } from "react-redux";
import {
saveContent
} from '../../actions/index';
const { TextArea } = Input;
class Articl... |
packages/material-ui-icons/src/ContentPaste.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ContentPaste = props =>
<SvgIcon {...props}>
<path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 ... |
form/MoneyField.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {view} from 'components';
export default class MoneyField extends React.Component {
static propTypes = {
metaItem: PropTypes.object.isRequired,
input: PropTypes.shape({
name: PropTypes.string,
value: Pro... |
fields/types/textarea/TextareaField.js | Tangcuyu/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height,
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged}... |
src/pages/consultation/index.js | Vision100IT/v100it-template | import React from 'react';
import fm from 'front-matter';
import Index from '../../components';
import {Markdown} from '../../components/markdown';
import content from '../../content/consultation.md';
const {body, attributes} = fm(content);
const Consultation = () => (
<Index>
<div className="consultation-wrapper"... |
app/javascript/mastodon/features/reblogs/index.js | Ryanaka/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
app/jsx/rubrics/Comments.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/topic/snapshots/foci/builder/nyttheme/EditNytThemeContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm, formValueSelector, Field } from 'redux-form';
import MenuItem from '@material-ui/core/MenuItem';
import { connect } from 'react-redux';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Grid, Row, Col } from 'react-flex... |
src/entry.js | sunya9/follow-manager | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Index from './containers/Index';
import NotFound from './components/NotFound';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux'... |
src/components/common/svg-icons/action/exit-to-app.js | abzfarah/Pearson.NAPLAN.GnomeH | 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... |
example/shapefile.js | Charmatzis/react-leaflet-shapefile | import React from 'react';
import { Map, Circle, TileLayer, LayersControl, FeatureGroup } from 'react-leaflet'
import JQuery from 'jquery'
import {ShapeFile} from '../src'
const { BaseLayer, Overlay } = LayersControl;
export default class ShapefileExample extends React.Component {
constructor() {
super();
... |
app/utils/markdown.js | BeautifulTrouble/beautifulrising-client | import React from 'react';
import { Link } from 'react-router';
import { gaClick, gaTrackedLinks } from 'utils/analytics';
export function RouterLink(props) {
if (gaTrackedLinks.hasOwnProperty(props.href)) {
return <a href={props.href} target={'_blank'} onClick={()=>gaClick(gaTrackedLinks[props.href])}>{props.... |
components/HomeScreen.js | raylenmoore/mind-map-note | import React, { Component } from 'react';
import {
View,
StyleSheet,
Text,
} from 'react-native';
class HomeScreen extends React.Component {
/**
* This is where we can define any route configuration for this
* screen. For example, in addition to the navigationBar title we
* could add backgroundColo... |
frontend/app/components/VisibilityMinimal/VisibilityMinimalPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import Dialog from '@material-ui/core/Dialog'
import DialogActions from '@material-ui/core/DialogActions'
import DialogContent from '@material-ui/core/DialogContent'
import DialogContentText from '@material-ui/core/DialogContentText'
import IconButton from '... |
sketch/src/components/Title.js | preciousforever/sketch-data-populator | import React from 'react'
import './Title.scss'
import classNames from 'classnames'
import ReactDOM from 'react-dom'
class Title extends React.Component {
constructor() {
super()
this.state = {
showTooltip: false,
tooltipTop: 0,
tooltipLeft: 0
}
this.showTooltip = this.showTooltip... |
src/components/ui/Content.js | yuri/notality | import React from 'react';
const Content = ({ children, style = {}, isVisible }) => {
return (
<div
className={ `flex-auto mt3 p1` }
style={{ ...styles.base, style }}>
{ isVisible ? children : null }
</div>
);
};
const styles = {
base: {},
};
export default Content;
|
src/pages/Preferences/Volumes/VolumeForm.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import deepClone from 'mout/src/lang/deepClone';
import style from 'HPCCloudStyle/ItemEditor.mcss';
export default class VolumeForm extends React.Component {
constructor(props) {
super(props);
this.formChange = this.formChange.bind(this);
... |
client/modules/expense/components/.stories/expense_page.js | BitSherpa/expensius | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import ExpensePage from '../expense_page.jsx';
storiesOf('expense.ExpensePage', module)
.add('default view', () => {
return (
<ExpensePage />
);
})
|
frontend/src/screens/monitor/widgets/controls/controls.js | linea-it/qlf | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Popover from '@material-ui/core/Popover';
import FormLabel from '@material-ui/core/FormLabel';
import FormControl from '@material-ui/... |
example/containers/Root.js | ForbesLindesay/redux-wait | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
export default class Root extends Component {
render() {
return (
<div>
<Pro... |
code/L8-staging/Composing Components/components/movies/movies-page.js | santhoshthepro/reactjs | import React, { Component } from 'react';
import { Link } from 'react-router';
import MovieBox from './movie-box';
export default class MoviesPage extends Component{
constructor(props){
super(props);
//Here is where you initialize state
this.state ={
movies: [
{key:'1', title: 'Kabali',desc:'Super ... |
src/route/adminuser/UserRoleTabHeader.js | simors/yjbAdmin | import React from 'react';
import {connect} from 'react-redux';
import {action, selector} from './redux';
class UserRoleTabHeader extends React.Component {
constructor(props) {
super(props);
}
onSave = () => {
};
render() {
return (
<div style={{display: "flex", flexFlow: "column"}}>
... |
src/components/common/CardSection.js | brianyamasaki/rideshare | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={[styles.containerStyle, props.style]}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
... |
examples/material-UI-components/src/App.js | react-tools/react-table | import React from 'react'
import CssBaseline from '@material-ui/core/CssBaseline'
import MaUTable from '@material-ui/core/Table'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableHead from '@material-ui/core/TableHead'
import TableRow from '@material-ui... |
src/collections/valueMachine/affirm/Affirm.js | michael-eightnine/hometown-advantage-2 | import React from 'react'
import ThumbsUp from './../../../svg/affirmation/thumbsUp.svg'
import CollectionFooter from './../../../grid/extras/CollectionFooter'
const Affirm = () => {
return (
<div className='affirm-display'>
<img src={ThumbsUp} alt='GJ!' className='thumbs-up' />
<h2>!SELF AFFIRMATION! VERY IM... |
docs/src/SupportPage.js | johanneshilden/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
src/index.js | lambdablocks/blocks-front-react | import { parse } from 'query-string'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import LambdaBricksApp from './components/LambdaBricksApp'
import configureStore from './store/configureStore'
const store = configureStore()
const params = parse(location.search)
Re... |
src/js/components/Image/stories/Fit.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, Image } from 'grommet';
import { grommet } from 'grommet/themes';
export const Fit = () => (
<Grommet theme={grommet}>
<Box align="start" gap="medium">
<Box height="small" width="small" border>
<Image src="//v2.grommet.io/assets/IMG_4245.jpg" fit="... |
src/svg-icons/device/dvr.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDvr = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.