path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/core/LoginLogout/component.js
dlennox24/ricro-app-template
import Avatar from '@material-ui/core/Avatar'; import CircularProgress from '@material-ui/core/CircularProgress'; import Portal from '@material-ui/core/Portal'; import Snackbar from '@material-ui/core/Snackbar'; import withStyles from '@material-ui/core/styles/withStyles'; import axios from 'axios'; import IconAccountC...
app/mobileLandscape/Inspector/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; import { isObject, isArray, isString, isBoolean, isNumber, isNull, isError, isFunction, isCircular, isUndefined } from './utils'; function renderType(props) { if (isError(prop...
src/components/CubeContainer.js
JithuTholoor/RubixCube
import React, { Component } from 'react'; import Cube, { cubeWidth, facePosition } from './Cube'; import { calcPosition, calculateResultantAngle, getCubePositionDiffrence, getTouchPositions } from '../utilities/utilities'; class CubeContainer extends Component { constructor(props) { super...
generators/component/templates/_main-airbnb.js
prescottprue/generator-react-firebase
import React from 'react';<% if (addStyle) { %> import { makeStyles } from '@material-ui/core/styles'; import styles from './<%= name %>.styles'; const useStyles = makeStyles(styles);<% } %> function <%= name %>() { <% if (addStyle) { %>const classes = useStyles();<% } %> return ( <% if (addStyle) { %><div c...
src/Parser/Warlock/Demonology/Modules/Talents/SummonDarkglare.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import PETS from 'common/PETS'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/Stati...
src/index.js
benwiley4000/react-gif-player
import React from 'react'; import PropTypes from 'prop-types'; import lifecyclesPoylfill from 'react-lifecycles-compat'; import GifPlayer from './GifPlayer'; const preload = (src, callback) => { var img = new Image(); if (typeof callback === 'function') { img.onload = () => callback(img); img.setAttribute...
src/svg-icons/image/compare.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCompare = (props) => ( <SvgIcon {...props}> <path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ImageCo...
src/app/components/Form/Recaptcha/index.js
nhardy/web-scaffold
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { loadScript } from 'redux-scripts-manager'; import config from 'app/config'; import field, { fieldShape } from '../field'; import styles from './styles.styl'; @connect(null, { loadScript }) @f...
app/javascript/mastodon/components/status_content.js
Nyoho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
client/modules/core/components/.stories/postlist.js
markoshust/mantra-sample-blog-app
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import PostList from '../postlist'; storiesOf('core.PostList', module) .add('default view', () => { const posts = [ {_id: 'one', title: 'React is Superb'}, {_id: 'two', title: 'Meteor is Great'}, {_id: 'three', title: 'Ma...
app/javascript/flavours/glitch/components/status_icons.js
glitch-soc/mastodon
// Package imports. import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl } from 'react-intl'; // Mastodon imports. import IconButton from './icon_button'; import VisibilityIcon from './status_visibility_icon'; i...
fields/types/password/PasswordField.js
suryagh/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
app/components/PostForm/index.js
thecodingwhale/conduit-clone
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'reactstrap'; import { isEmpty } from 'lodash'; import { Form, Field, reduxForm } from 'redux-form/immutable'; import validator from 'utils/validator'; import Input from 'components/Input'; let PostForm = (props) => { // eslint-disab...
client/pages/login.js
quarterto/almanac
import { Meteor } from 'meteor/meteor' import React from 'react' import { toast } from 'react-toastify' import { withHandlers } from 'recompact' import { go } from '../utils/router' import { LabelledInput, Button } from '../visual/primitives' import { Form } from '../control/form' import { Input } from '../visual/form'...
src/components/Help.js
shoegazer/shuffle-guru
import React from 'react' import {connect} from 'react-redux' import Fade from './Fade' import { withActions } from '../lib/actions' import { toggleHelp, toggleSettings, toggleLastfmSettings, toggleWeather, toggleMaxPlayCountSettings, showPlayCount } from '../actions' @connect(state => ({ active: ...
client/src/core-components/button.js
ivandiazwm/opensupports
// VENDOR LIBS import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; // CORE LIBS import callback from 'lib-core/callback'; // CORE COMPONENTS import Icon from 'core-components/icon'; class Button extends React.Component { static contextTypes = { router: React.PropTypes...
frontend/src/views/CompanyView.js
Svjard/flightpath
import React from 'react'; export default class CompanyView extends React.Component { render() { return ( <div></div> ); } }
resources/assets/admin/pages/SignupIndex.js
DoSomething/northstar
import React from 'react'; import Shell from '../components/utilities/Shell'; import SignupsTable from '../components/SignupsTable'; const SignupIndex = () => { const title = 'Signups'; document.title = title; return ( <Shell title={title}> <div className="container__block"> <SignupsTable /> ...
src/containers/Ideas.js
benoitvallon/react-native-redux-app-100-10-1
import React, { Component } from 'react'; import IdeasList from '../components/IdeasList'; export default class Ideas extends Component { constructor(props) { super(props); } render() { return ( <IdeasList {...this.props} /> ); } } Ideas.propTypes = { navigator: React.PropTypes.object.is...
src/Breadcrumb.js
15lyfromsaturn/react-materialize
import React from 'react'; import Col from './Col'; class Breadcrumb extends React.Component { constructor(props) { super(props); this.renderLinks = this.renderLinks.bind(this); } render() { return ( <nav> <div className="nav-wrapper"> <Col s={12}> {this.renderLin...
src/components/app.js
StephanYu/modern_redux_weather_forecast
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar/> <WeatherList/> </div> ); } }
app/react-icons/fa/area-chart.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaAreaChart extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m39.8 32.4v2.5h-39.8v-29.8h2.5v27.3h37.3z m-7.5-19.9l5 17.4h-32.3v-11.1l8....
src/app/components/user/components/LoginInfo.js
backpackcoder/world-in-flames
import React from 'react' import ToggleShortcut from './ToggleShortcut' import {connect} from 'react-redux'; class LoginInfo extends React.Component { componentWillMount() { } render() { return ( <div className="login-info"> <span> <ToggleShortcut> <img src={this....
app/javascript/mastodon/features/compose/components/compose_form.js
foozmeat/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
src/js/entry.js
open-eio/upython-poly
import React from 'react'; import { render } from 'react-dom'; const container = document.querySelector('#target'); function renderApp() { const App = require('./App').default; const app = (<App />); render(app, container); } // Set up HMR re-rendering. if (module.hot) { renderApp(); module.hot.accept(); ...
pootle/static/js/admin/components/Language/LanguageController.js
evernote/zing
/* * 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. */ import React from 'react'; import Search from '../Search'...
app/jsx/assignments_2/student/components/ViewManager.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
imports/ui/components/Orders/ViewInvoicedOrderDetails.js
haraneesh/mydev
import 'moment-timezone'; import React from 'react'; import { Meteor } from 'meteor/meteor'; import moment from 'moment'; import PropTypes from 'prop-types'; import { Row, Col, Label, Panel, } from 'react-bootstrap'; import { toast } from 'react-toastify'; import { dateSettings } from '../../../modules/settings'; imp...
src/browser/main.js
xiankai/triple-triad-solver
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import Root from './app/Root'; import configureReporting from '../common/configureReporting'; import configureStore from '../common/configureStore'; import localforage from 'localforage'; import uuid from 'uuid'; const initialState = window.__INI...
src/svg-icons/maps/directions.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirections = (props) => ( <SvgIcon {...props}> <path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-....
app/components/cache/createCache.js
ritishgumber/dashboard-ui
import React from 'react'; import {Modal, Button, FormControl} from 'react-bootstrap'; import {createCache} from '../../actions'; import {connect} from 'react-redux'; import {RefreshIndicator} from 'material-ui'; const style = { refresh: { display: 'inline-block', position: 'relative', bac...
saga/seata-saga-statemachine-designer/ggeditor/components/DetailPanel/Panel.js
seata/seata
import React from 'react'; import { pick } from '@utils'; class Panel extends React.Component { static create = function (type) { return class TypedPanel extends Panel { constructor(props) { super(props, type); } }; } constructor(props, type) { super(props); this.type = type...
src/server.js
bernatixer/ConnectedCars
import path from 'path'; import { Server } from 'http'; import Express from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter as Router } from 'react-router-dom'; import { App } from './components/App'; const app = new Express(); const server = new Server(ap...
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/containers/HomePage/index.js
phiratio/Pluralsight-materials
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
js/components/loaders/ProgressBar.ios.js
acbde45/bookRead
/* @flow */ import React, { Component } from 'react'; import { ProgressViewIOS } from 'react-native'; export default class ProgressBarNB extends Component { render() { return ( <ProgressViewIOS {...this.props} progress={this.props.progress ? this.props.progress / 100 : 0.5} prog...
src/index.js
dzdrazil/mdnd-client
import React from 'react'; import DOM from 'react-dom'; import { Provider } from 'react-redux'; import {store} from './reducers/index'; import getActions from './actions/index'; // Import non-js files like this, with the extension and an exclamation point: import Board from './components/board/Board.jsx!'; import Sid...
docs/src/components/ComponentDoc/ComponentDocSee.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Link } from 'react-static' import { Header, List } from 'semantic-ui-react' import { docTypes } from 'docs/src/utils' const listStyle = { display: 'block' } const ComponentDocSee = ({ seeTags }) => ( <List horizontal link size='small' style={listStyle}> ...
src/components/posts_index.js
lcpunch/react-blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions/index'; import { Link } from 'react-router'; class PostsIndex extends Component { componentWillMount() { this.props.fetchPosts(); } renderPosts() { return this.props.posts.map((post) ...
src/svg-icons/maps/local-grocery-store.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
src/components/head.js
imelendez/imelendez.github.io
import React from 'react' import { Helmet } from 'react-helmet' import { useStaticQuery, graphql } from 'gatsby' const Head = ({title}) => { const data = useStaticQuery(graphql` query{ site{ siteMetadata{ title } } }`) return( <Helmet titl...
src/components/shared/TitleWithJSONButton.js
chatch/stellarexplorer
import PropTypes from 'prop-types' import React from 'react' import JSONButton from './JSONButton' const TitleWithJSONButton = ({title, url}) => ( <div> <span>{title}</span> <span className="pull-right"> <JSONButton url={url} /> </span> </div> ) TitleWithJSONButton.propTypes = { title: PropTyp...
src/www/js/character-sheet/ability-scores-sheet.js
nickolusroy/react_dnd
import React from 'react'; import raceData from '../../json/races.json'; import classData from '../../json/character-classes.json'; import backgroundData from '../../json/backgrounds.json'; import featsData from '../../json/feats.json'; import * as utilities from '../utilities.js'; /** * CharacterSheet * * Represe...
client/router.js
celsom3/Cosecha-SMS
import React, { Component } from 'react'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import LandingPage from './components/pages/LandingPage.js'; import NotFound from './components/pages/NotFound.js'; class AppRouter extends Component { render() { return ( <Router history={b...
src/documentation/Typography/Typography-story.js
wfp/ui
/* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Page from '../Page'; import Blockquote from '../../components/Blockquote'; import Link from '../../components/Link'; import { List, ListItem } from '../../components/List'; import { linkTo } from '@storybook...
packages/zensroom/lib/components/rooms/RoomsPage.js
SachaG/Zensroom
/* A single room's page. Wrapped with withDocument. http://docs.vulcanjs.org/data-loading.html#Single-Resolver */ import React from 'react'; import { Components, registerComponent, withCurrentUser, withDocument } from 'meteor/vulcan:core'; import mapProps from 'recompose/mapProps'; import compose from 'recompose/co...
node_modules/react-bootstrap/es/MediaList.js
newphew92/newphew92.github.io
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 ...
app/javascript/components/TypesDeChampEditor/components/TypeDeChampCarteOption.js
sgmap/tps
import React from 'react'; import PropTypes from 'prop-types'; function TypeDeChampCarteOption({ label, handler }) { return ( <label htmlFor={handler.id}> <input type="checkbox" id={handler.id} name={handler.name} checked={!!handler.value} onChange={handler.onChange}...
packages/veritone-react-common/src/components/DiscoverySideBar/SectionTree.js
veritone/veritone-sdk
import React from 'react'; import cx from 'classnames'; import { noop, initial, get } from 'lodash'; import { string, arrayOf, shape, func, number, objectOf, element, bool, any } from 'prop-types'; import Button from '@material-ui/core/Button'; import ArrowBackIcon from '@material-ui/icons/ArrowBack';...
examples/src/example3.js
jtassin/react-formatted-amount
import React from 'react'; import Playground from 'component-playground'; import ReactFormattedAmount from '../../src/I18nReactFormattedAmount'; export default function () { return ( <div style={{ backgroundColor: 'white' }}> <Playground codeText={"<ReactFormattedAmount amount={1337003658} currency...
node_modules/semantic-ui-react/dist/es/elements/List/ListDescription.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * A list item can contain a description. ...
hello world/1.7 - router/src/components/routerRoot.js
wumouren/react-demo
import React from 'react'; import ReactDom from 'react-dom'; import { Link,Route,HashRouter } from 'react-router-dom'; import IndexBody from './routerBody'; import IndexList from './routerList'; import IndexDetail from './routerDetail'; export default class IndexRoot extends React.Component{ render(){ ret...
admin/client/App/shared/Portal.js
xyzteam2016/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
newclient/scripts/components/admin/detail-view/action-buttons/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/svg-icons/notification/sms.js
pomerantsev/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...
tests/Formsy-spec.js
optiopay/optiopay-form
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import TestInput from './utils/TestInput'; import immediate from './utils/immediate'; import sinon from 'sinon'; export default { 'Setting up a form': { 'should render a for...
examples/src/components/CustomKeysField.js
jo-asakura/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 CustomKeysField = React.createClass({ displayName: 'CustomKeysField', propTypes: { label: React.PropTypes.string },...
js/react-native/the_auth_app/src/app.js
petarov/sandbox
// bootstrap import firebase from 'firebase'; import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { Header, Button, Spinner } from './components/common'; import LoginForm from './components/LoginForm'; class App extends Component { state = { loggedIn: null }; compone...
client/app/components/message/index.js
ilkkao/mas
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Icon from '@mdi/react'; import { mdiAppleKeyboardCommand } from '@mdi/js'; import { shortnameToUnicode } from 'emoji-toolkit'; const Wrapper = styled.div` display: flex; flex-direction: row; `; const Time...
src/dataTypes/Undefined.js
mrose/react-dump
import React from 'react'; import { Row, Table } from '../format'; export const Undefined = ( props ) => { const obj = props.obj || null const opts = props.opts || { expand:true , format:'html' , label:'Undefined' } let ...
src/lib/components/calendar/CalendarDay.js
lighter-cd/ezui_react_one
import React from 'react'; import PropTypes from 'prop-types'; import injectSheet from 'react-jss'; import classNames from 'classnames'; import { Row, Col } from '../../flexBoxGrid'; const styles = theme => ({ root: { padding: '.08rem .03rem', backgroundColor: '#6c4b2f', borderTop: '.02rem solid transpa...
src/modules/remindersListItem/RemindersListItemRenderer.js
kuzzmi/rmndrz
import React from 'react'; import { Datetime } from '../../app'; import './RemindersListItem.scss'; import { TimeProgress } from '../timeProgress'; export default function(props) { const { reminder } = props; const timeString = Datetime.getCalendar(reminder.time); return ( <div className="Remi...
src/app/app.js
sonnylazuardi/natal-ppl-app
import React from 'react'; import Router from 'react-router'; import axios from 'axios'; let { Route, Link, RouteHandler, DefaultRoute } = Router; // material ui theme depedency and setting import injectTapEventPlugin from "react-tap-event-plugin"; import ThemeManager from 'material-ui/lib/styles/theme-manager'; imp...
components/ListTitle.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { Dimensions, LayoutAnimation, StyleSheet, Text, TouchableOpacity, View, } from 'react-native' import { Icon } from 'react-native-elements' import PropTypes from 'prop-types' import { Colors } from 'constants' const { width } = Dimensions.get( 'window' ) const stylesList = ...
src/svg-icons/action/change-history.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChangeHistory = (props) => ( <SvgIcon {...props}> <path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/> </SvgIcon> ); ActionChangeHistory = pure(ActionChangeHistory); ActionChangeHistory.display...
app/javascript/mastodon/containers/media_gallery_container.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import MediaGallery from '../components/media_gallery'; import { fromJS } from 'immutable'; const { localeData, messages } = getLocale(); addLocaleData(locale...
src/node_modules/struct/containers/layout/index.js
react-store/react-store.ml
import React from 'react' import Sidebar from 'struct/components/sidebar' const Layout = ({ children }) => ( <div className='row'> <div className='col-md-3 hidden-xs hidden-sm'> <Sidebar /> </div> <div className='col-md-9'> {children} ...
js/setup.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './configureStore'; //noinspection JSAnnotator function setup():React.Component { class Root extends Component { constructor() { super(); this.state = { isLo...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandHashtagTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from...
react-demos/free-drawing/src/index.js
konvajs/site
import React from 'react'; import { createRoot } from 'react-dom/client'; import { Stage, Layer, Line, Text } from 'react-konva'; const App = () => { const [tool, setTool] = React.useState('pen'); const [lines, setLines] = React.useState([]); const isDrawing = React.useRef(false); const handleMouseDown = (e) ...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
zillachan/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
node_modules/semantic-ui-react/src/views/Item/ItemDescription.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * An item can contain a description with a single or multiple paragraphs. */ function ...
src/helpers/renderableChildren.js
sdjidjev/prop-types
import React from 'react'; export default function renderableChildren(childrenProp) { return React.Children.toArray(childrenProp).filter(child => child === 0 || child); }
src/components/App/menu_items.js
oknosoft/helloworld
import React from 'react'; import IconChart from '@material-ui/icons/InsertChart'; import IconDoc from '@material-ui/icons/EventNote'; import IconInfo from '@material-ui/icons/Info'; import IconHelp from '@material-ui/icons/Help'; import IconPerson from '@material-ui/icons/Person'; import IconSettings from '@material-u...
src/svg-icons/device/screen-lock-landscape.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
src/svg-icons/action/touch-app.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
tests/utils/TestInputHoc.js
christianalfoni/formsy-react
import React from 'react'; import { HOC as formsyHoc } from './../..'; const defaultProps = { methodOnWrappedInstance(param) { return param; }, render() { return (<input />); }, }; export default formsyHoc(React.createClass(defaultProps));
app/addons/documents/mangolayout.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
app/javascript/mastodon/components/avatar.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
docs/src/Anchor.js
apkiernan/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
app/jsx/assignments/ModerationHeader.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - 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/connection/new-connection.js
natronics/mission-control
import React from 'react'; class NewConnection extends React.Component { constructor() { super(); this.state = { complete: false, title: "Rocket Telemetry", index: 0, }; this.editTitle = this.editTitle.bind(this); this.choose = this.choose.bind(this); this.create = thi...
src/components/views/delegateProfile/components/CheckWrap.js
LiskHunt/LiskHunt
import React from 'react'; const CheckWrap = ({ label, check }) => { const checkClass = check ? 'active-check' : 'deactive-check'; return ( <div className="columns is-mobile"> <div className="column sidebar-label is-half-mobile">{label}</div> <div className={'column column-check is-half-mobile'}> ...
docs/app/Examples/elements/Header/Variations/HeaderExampleTextAlignment.js
clemensw/stardust
import React from 'react' import { Header, Segment } from 'semantic-ui-react' const HeaderExampleTextAlignment = () => ( <Segment> <Header as='h3' textAlign='right'> Float Right </Header> <Header as='h3' textAlign='left'> Float Left </Header> <Header as='h3' textAlign='justified'> ...
source/components/Checkbox.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { innerBorderRadius, Color, mobileMaxWidth } from 'constants/css'; import { css } from 'emotion'; Checkbox.propTypes = { backgroundColor: PropTypes.string, checked: PropTypes.bool, label: PropTypes.string...
src/components/Feedback/Feedback.js
tstangenberg/apitest-editor
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
src/components/Touchable/index.js
r1cebank/EventCore
import React from 'react'; import { TouchableHighlight, TouchableNativeFeedback, Platform } from 'react-native'; function F8TouchableIOS(props) { return ( <TouchableHighlight accessibilityTraits="button" underlayColor="#3C5EAE" {...props} /> ); } const F8Touchable = Pla...
app/components/NavBar.js
mikeluz/flock
import React from 'react'; import {Link} from 'react-router'; import axios from 'axios'; import RaisedButton from 'material-ui/RaisedButton'; import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar'; class NavBar extends React.Component { constructor(props) { super(props); ...
docs/src/pages/customization/breakpoints/MediaQuery.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import { green } from '@material-ui/core/colors'; const useStyles = makeStyles((theme) => ({ root: { padding: theme.spacing(1), [theme.breakpoints.down('sm')]: { back...
examples/js/column-filter/demo.js
opensourcegeek/react-bootstrap-table
import React from 'react'; import TextFilter from './text-filter'; import TextFilterWithDefaultValue from './text-filter-with-default-value'; import RegexFilter from './regex-filter'; import SelectFilter from './select-filter'; import SelectFilterWithDefaultValue from './select-filter-with-default-value'; import Number...
frontend/src/containers/CreateTarget.js
dimriou/rupture
import React from 'react'; import { ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from 'react-modal-bootstrap'; import { Form } from 'react-bootstrap'; import axios from 'axios'; export default class CreateTarget extends React.Component { handleSubmit = (event) => { let method; if...
app/javascript/mastodon/components/avatar_overlay.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
src/tux-scripts/template/new/src/app.js
aranja/tux
import React from 'react' import { createApp } from 'tux' import Home from './Home' import './index.css' // Create a Tux app. const app = createApp() // Add middlewares for functionality that needs special handling on client and server. // app.use(helmet()) // app.use(reactRouter()) // Lastly, serve a component on c...
04-MovieList/src/index.js
s-buss/ReactIntro
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import BondMovieList from './BondMovieList'; import movies from './Data.json'; ReactDOM.render(<BondMovieList movies={movies}/>, document.getElementById('root'));
boilerplates/project/pcWeb/src/components/PageNotFound/PageNotFound.js
FuluUE/vd-generator
import React from 'react'; import PropTypes from 'prop-types'; import Placeholder from '../Placeholder'; import './less/pageNotFound.less'; const PageNotFound = (props) => { return ( <Placeholder className='placeholder-404' slogan='蛇精出来捣乱啦! 快跑呀!!' extra={ <a href="/">返回首页</a> } /> ); }; ...
src/CalendarManager.js
LabPulse/walmart-labs
import React, { Component } from 'react'; import $ from 'jquery'; import 'moment/min/moment.min.js'; import 'fullcalendar/dist/fullcalendar.css'; import 'fullcalendar/dist/fullcalendar.js'; class Calendar extends Component { componentDidMount(){ const { calendar } = this.refs; $(calendar).fullCalendar({events...
src/components/Header/Header.js
djyaron/react5
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; // eslint-disable-line no-unused-vars import './Header.less'; import Navigation from '../Navigation'; class Header { render() { return ( <div className="Header"> <div className="Header-container"> ...
src/components/photography/more.js
twreporter/twreporter-react
import { fontWeight } from '@twreporter/core/lib/constants/font' import mq from '../../utils/media-query' import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' const Container = styled.div` cursor: pointer; width: 100%; height: 105px; background-color: black; tex...
src/parser/priest/discipline/modules/spells/Penance.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValue from 'interface/statistics/components/BoringSpellValue'; import EventGrouper from 'parser/core/EventGrouper'; import STATISTIC_ORDE...
ee/client/omnichannel/additionalForms/BusinessHoursTimeZone.stories.js
iiet/iiet-chat
import React from 'react'; import { Box } from '@rocket.chat/fuselage'; import BusinessHoursTimeZone from './BusinessHoursTimeZone'; export default { title: 'omnichannel/businessHours/ee/BusinessHoursTimeZone', component: BusinessHoursTimeZone, }; export const Default = () => <Box maxWidth='x600' alignSelf='center...
src/utils/dataTransform.js
antholord/poe-livesearch
import React from 'react' import items from './items.json'; import types from './item-types.json' const DataTransform = (props) => { const transformTypes= () =>{ let output = []; let topLevelCategories = []; let subCategories = []; let bases = []; types.itemTypes.map((top)...