path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/flavours/glitch/features/ui/components/image_loader.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { LoadingBar } from 'react-redux-loading-bar'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, s...
senic_hub/setup_app/components/BootScreen.js
grunskis/senic-hub
import React from 'react'; import { ActivityIndicator, Button, StyleSheet, Text, View, } from 'react-native'; import Screen from './Screen.js'; import Settings from '../Settings' export default class BootScreen extends Screen { constructor(props) { super(props) this.state = { hubUnreachable:...
docs/src/app/components/pages/components/LinearProgress/Page.js
mmrtnz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import linearProgressReadmeText from './README'; import LinearProgressExampleSim...
ios/versioned-react-native/ABI9_0_0/Libraries/Components/TextInput/TextInput.js
jolicloud/exponent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
webapp/js/components/display/empty/EmptyToolbar.js
Stevenah/INF5750
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import { Toolbar, ToolbarTitle } from 'material-ui/Toolbar'; class EmptyToolbar extends Component { render() { return ( <Paper style={{ zIndex: 5 }}> <Toolbar> <ToolbarTitle text...
packages/material-ui-icons/src/SubdirectoryArrowLeft.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z" /></g> , 'SubdirectoryArrowLeft');
src/components/Footer/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Logo from '../Logo'; import randomArray from '../../utilities/randomNumberArray.js'; import Address from '../Static/Address'; import PhoneEmail from '../Static/PhoneEmail'; import SocialIcons from '../Elements/SocialIcons'; impor...
src/svg-icons/communication/portable-wifi-off.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
stories/Navbar.stories.js
reactstrap/reactstrap
import React from 'react'; export default { title: 'Components/Navbar', parameters: { docs: { description: { component: ` [Bootstrap Navbar](https://getbootstrap.com/docs/5.1/components/navbar/) Bootstrap’s powerful, responsive navigation header. Includes support for branding, navigation, ...
docs/src/sections/ResponsiveEmbedSection.js
dozoisch/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ResponsiveEmbedSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
app/javascript/mastodon/features/ui/components/zoomable_image.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
bradparks/actor-platform___im_client_cross_platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/containers/App.js
qandobooking/booking-frontend
import React from 'react' import classNames from 'classnames'; import { connect } from 'react-redux'; import NavBar from './NavBar'; import ErrorPage from '../components/ErrorPage'; import ModalLogin from './ModalLogin'; class App extends React.Component { render() { const { options } = this.props; // Remo...
packages/material-ui-icons/legacy/PlayCircleFilledWhiteRounded.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 13.5v-7c0-.41.47-.65.8-.4l4.67 3.5c.27.2.27.6 0 .8l-4.67 3.5c-.33.25-.8.01-.8-.4z" /> , 'PlayCircleFilledWhiteRounded');
src/components/ProgressByDate/ProgressByDate.js
bigwaterconsulting/to_dash_live
/** * 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. */ /* eslint no-underscore-dangle: ["error", { "allow": [...
src/Parser/Warlock/Destruction/Modules/Talents/EmpoweredLifeTap.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 SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import { formatNumber, formatPe...
src/challenges/react/React_12.js
bonham000/fcc-react-tests-module
/* eslint-disable */ import React from 'react' import assert from 'assert' import { transform } from 'babel-standalone' import Enzyme from '../Enzyme'; const shallow = Enzyme.shallow; const mount = Enzyme.mount; const render = Enzyme.render; export const QA = true; // ---------------------------- define challenge t...
src/svg-icons/image/brightness-2.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness2 = (props) => ( <SvgIcon {...props}> <path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/> </SvgIcon> ); I...
src/Parser/RetributionPaladin/Modules/Talents/DivinePurpose.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants from 'Par...
src/universal/pages/Login/index.js
sanchitgangwar/remind-plus
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Paper from 'material-ui/Paper'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import api from 'Universal/u...
admin/client/App/screens/Home/components/Section.js
Pop-Code/keystone
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-section-label={this.props.label}> <div class...
ReactNativeLIFE/Pages/JYListDetails.js
YotrolZ/React-Native-LIFE
/** * Created by Sunshine on 2017/3/15. * 清单详情页面 */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, WebView, Text, ListView, Dimensions, Image, ScrollView } from 'react-native'; let {width, height} = Dimensions.get('window') // 导航条 import NavBar from '../Componen...
examples/complex/index.js
chentsulin/sweetalert-react
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root') );
blueprints/smart/files/__root__/containers/__name__.js
josedab/react-redux-i18n-starter-kit
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
src/components/MultiSelect/MultiSelect-story.js
carbon-design-system/carbon-components-react
/** * 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 { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKn...
application/components/shared/checkoutWebView/saveCardOptionBox/index.js
ronanamsterdam/squaredcoffee
import React, { Component } from 'react'; import { StyleSheet, Text, TextInput, View, WebView, ScrollView } from 'react-native'; import CheckBox from 'react-native-check-box'; import Button from 'react-native-button'; import { Card, CardImage, CardTitle, CardContent, CardAction } from 'react-native-card-vi...
src/pages/reference/states.js
inkdropapp/docs
import React from 'react' import { StaticQuery, graphql, Link } from 'gatsby' import ReferenceLayout from '../../components/reference-layout' export default function StatesIndex() { return ( <ReferenceLayout currentPageTitle="App States"> <h1>App States</h1> <StaticQuery query={menuQuery} ...
src/svg-icons/image/audiotrack.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...
example/index.js
mmmoli/react-morphine
import React from 'react'; import ReactDOM from 'react-dom'; import Card from './Card'; ReactDOM.render(<Card />, document.querySelector('#root'));
src/svg-icons/radio-button-unchecked.js
und3fined/material-ui
/* eslint-disable */ import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; let RadioButtonUnchecked = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"...
src/svg-icons/social/location-city.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
src/utils/bundle.js
likun7981/react-redux-boilerplate
// @flow /** * @author: likun, * @from: https://reacttraining.com/react-router/web/guides/code-splitting * @description: split code with router; */ import React from 'react'; type props = { load: () => Promise<any>, renderRealComponent: ( param: ?React$Component<any, any, any> ) => React$Element<any> }; ...
packages/mineral-ui-icons/src/IconFormatAlignLeft.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 IconFormatAlignLeft(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
src/widgets/TextInput.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import { View, StyleSheet, TextInput as RNTextInput, ViewPropTypes } from 'react-native'; /** * Renders a View containing a RN TextInput. For allowing changing underline * color of the TextInput in both Android and iOS, wh...
js/components/loaders/ProgressBar.ios.js
bavuongco10/react-native-school-board
/* @flow */ import React from 'react'; import { ProgressViewIOS } from 'react-native'; import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; export default class ProgressBarNB extends NativeBaseComponent { render() { const getColor = () => { if (this.props.color) { r...
client/src/Functions/index.js
MalgAmoe/t9ers
import React, { Component } from 'react'; import { connect } from 'react-redux'; import './style.css'; import { changeWord, eraseNumber, sendNumbers } from '../store/actions'; const styles = { functionsContainer: { width: 160, height: '100%', display: 'flex', flexDirection: 'row', justifyC...
dev/react-subjects/subjects/ChatApp/exercise.js
AlanWarren/dotfiles
//////////////////////////////////////////////////////////////////////////////// // Exercise: // // - Create a chat application using the utility methods we give you // // Need some ideas? // // - Cause the message list to automatically scroll as new // messages come in // - Highlight messages from you to make them e...
classic/src/scenes/wbui/ULinkOR/ULinkORAccountSection/MailboxListItem/MailboxListItem.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { Collapse, ListItemSecondaryAction, IconButton, Tooltip } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' import ACAvatarCircle2 from '../../../ACAvatarCircle2' i...
blueocean-material-icons/src/js/components/svg-icons/places/child-care.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesChildCare = (props) => ( <SvgIcon {...props}> <circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2.81-3.17-.53-1.12-1.28-2.1-2.19-2....
docs/index.js
revolunet/algolia-react-input
/* eslint-disable global-require, import/no-unresolved, react/no-multi-comp */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Fork from 'react-ghfork'; import { Catalog, CodeSpecimen, ReactSpecimen } from 'catalog'; import AlgoliaExample from './AlgoliaExample'; import 'purecss/buil...
packages/cf-component-icon/src/reactsvgs/Happy.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; const Happy = ({ className, label }) => ( <svg className={className} aria-label={label} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > <path d="M8,12.643a4.638,4.638,0,0,0,4.167-2.606l-.943-.461a3.587,3.587,0,0,1-6.449,0l-...
src/App.js
alexcavalli/chroma-tiles
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actionCreators } from './appRedux'; import Cell from './Cell.js'; import Settings from './Settings.js'; import Instructions from './Instructions.js'; import './App.css'; const mapStateToProps = state => ({ settings: state.sett...
components/Navigation/Navigation.js
jacobhamblin/drew
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import './Navigation.scss'; import Link from '../Link'; export default class extends Component { render() { return ( ...
src/server.js
mkuipers/terra-mystica
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; impo...
src/components/NotFoundPage.js
easymac/alttp-map-tracker
import React from 'react'; import Image from './Image'; import { Link } from 'react-router'; const NotFoundPage = () => { const sahanames = [ 'sahasralah', 'sabotaging', 'sacahuista', 'sacahuiste', 'saccharase', 'saccharide', 'saccharify', 'saccharine', 'saccharins', 'sacerdotal', 'sackcloths', 'salmonella'...
src/parser/warrior/arms/CHANGELOG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Aelexe, Zerotorescue, Sharrq, Matardarix, Korebian, Torothin } from 'CONTRIBUTORS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { change, date } from 'common/changelog'; export default [ change(date(2020, 3, 30), <>Added <SpellLink id={SP...
meteor/imports/startup/client/routes.js
globeandmail/chart-tool
import React, { Component } from 'react'; import { Router, Route, Switch, Redirect } from 'react-router'; import pathToRegexp from 'path-to-regexp'; import createBrowserHistory from 'history/createBrowserHistory'; import NewChart from '../../ui/pages/NewChart'; import Status from '../../ui/pages/Status'; import Archive...
react/src/app/screens/Welcome/screens/Login/screens/AdminCreatedAccountCompletion/index.js
JasonKDarby/listopolis
import React from 'react'; import { Form, FormGroup, FormControl, Button, Col, Row } from 'react-bootstrap' import { observer } from 'mobx-react' import MobxReactForm from 'mobx-react-form' import validatorjs from 'validatorjs' import { hashHistory } from 'react-router' const plugins = { dvr: validatorjs }; const fie...
src/Table/components/TableRowCell.js
Pearson-Higher-Ed/compounds
import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../../Icon'; const TableRowCell = ({ children, inputId, containerId, cellId, labelledbyCellId, alignCell }, { selectable }) => { const columnAlignment = alignCell === 'center' ? ' pe-table__center' : alignCell ...
src/scenes/home/codeSchools/onlineSchools/onlineSchools.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Section from 'shared/components/section/section'; import SchoolCard from 'shared/components/schoolCard/schoolCard'; import styles from './onlineSchools.css'; class OnlineSchools extends Component { render() { const eSchools = th...
src/components/app.js
arjunkhode/Colors
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setColors, setColorName, addCol, setCurrent } from '../actions/index'; import ColorLib from './colorlib'; // import base from '../base'; // ####### NOTE: PAY VERY CLOSE ATTENTION TO THE SPELLING 'COLOR' AND 'COLOUR' ########## ...
src/components/posts_new.js
lukebergen/react-redux-reference
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { createPost } from '../actions/index'; import { Link } from 'react-router'; class PostsNew extends Component { static contextTypes = { router: React.PropTypes.object }; onSubmit(props) { this.props.createPost(props...
examples/js/sort/sort-hook-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; prod...
frontend/Comments/Container.js
fdemian/Morpheus
import React from 'react'; import { connect } from 'react-redux'; import Comment from './Comment'; import {updateCommentText} from '../CommentBox/Actions'; const mapStateToProps = (state) => { return { commentText: state.comments.text, insertQuoteFn: state.comments.insertQuoteFn } } const mapDispatchToPro...
app/javascript/mastodon/features/compose/components/upload_form.js
rekif/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; export default class U...
client/components/common/TodoList.js
jabhishek/react-express-webpack-boilerplate
import React from 'react'; import TodoItem from './TodoItem'; export default class TodoList extends React.Component { render() { let todoList; if (this.props.todos && this.props.todos.length > 0) { const todos = this.props.todos.map((todo) => { return ( <TodoItem key={todo.id} todo={todo}/> ); ...
src/articles/2018-04-14-Battle-For-Azeroth/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Zerotorescue } from 'CONTRIBUTORS'; import ImageArticle from 'interface/news/ImageArticle'; import BackgroundImage from './Background.jpg'; export default ( <ImageArticle title="Battle for Azeroth" publishedAt="2018-04-14" publishedBy={Zerotorescue} image={BackgroundImage} style...
fields/types/select/SelectField.js
cermati/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValu...
src/components/Root.js
Liz303/Flight
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import App from './App'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <...
src/svg-icons/alert/error.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
lib/navigator/Scene.js
gigjs/uikit
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { StatusBar, Animated, } from 'react-native'; import Type from '@gigjs/type'; const NavigationBar = require('../navbar/NavigationBar'); /** * * <Screen * route={{ * translucent: boolean * }} * /> */ class Scene...
geonode/contrib/monitoring/frontend/src/components/cels/cpu/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import styles from './styles'; class CPU extends React.Component { static propTypes = { data: PropTypes.array.isRequired, } render() { return ( ...
level2/client/components/Count.js
vulcan-estudios/react-examples
import React from 'react'; export default function Counter (props = {}) { const { onCount, toCount = 0 } = props; const handleCount = () => onCount ? onCount(toCount) : null; const text = toCount < 0 ? toCount : `+${toCount}`; return ( <button className="button" onClick={handleCount}>{text}</button> );...
app/javascript/mastodon/features/ui/components/modal_root.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { getScrollbarWidth } from 'mastodon/utils/scrollbar'; import Base from 'mastodon/components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './m...
packages/material-ui-icons/src/Image.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Image = props => <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" /> </SvgIcon>; Image = pure(Imag...
imports/client/ui/pages/NewDocument.js
mgscreativa/base
import React from 'react'; import DocumentEditor from '../components/DocumentEditor.js'; const NewDocument = () => ( <div className="NewDocument"> <h4 className="page-header">New Document</h4> <DocumentEditor /> </div> ); export default NewDocument;
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch07/07_02/finish/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' // import routes from './routes' import MemberList from './components/ui/MemberList' window.React = React render( <MemberList />, document.getElementById('react-container'))
src/server.js
Cspeisman/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
js/components/App.react.js
jsphdnl/Dreamers
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Logo from '../../img/logo.png'; class App extends Com...
app/javascript/flavours/glitch/features/ui/index.js
glitch-soc/mastodon
import React from 'react'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import ModalContainer from './containers/modal_container'; import { connect } from 'react-redux'; import { Redir...
packages/docs/components/Examples/linkify/CustomComponentLinkifyEditor/index.js
nikgraf/draft-js-plugin-editor
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createLinkifyPlugin from '@draft-js-plugins/linkify'; import linkifyIt from 'linkify-it'; import tlds from 'tlds'; import editorStyles from './editorStyles.module.css'; const linkifyP...
react-native-kit/login.js
fromatlantis/nojs
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, Image, Button, View, TouchableHighlight, AlertIOS, Dimensions } from 'react-native'; import { StackNavigator } from 'r...
src/components/nit-list/nit.js
WHCIBoys/nitpik-web
import React from 'react'; import * as C from '../../constants'; function Nit({ content }) { return ( <div className="flex items-center mt2 p2 rounded" style={{width: '100%', borderRadius: '2px', boxShadow: 'rgba(0, 0, 0, 0.2) 1px 1px 3px'}}> <span className="h4" style={{color: C.grey600}}>{ co...
core/nicobar.js
jeffersonmourak/nicobar
import _ from 'lodash'; import CSS from 'Core/CSS.helper'; import Component from 'Core/Component'; import ContextComponent from 'Core/ContextComponent'; import domElements from 'Utils/domElements'; import React from 'react'; import { render } from 'react-dom'; /** Nicobar */ class Nicobar { /** * Constructor ...
src/parser/shared/modules/spells/bfa/azeritetraits/Gutripper.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import HIT_TYPES from 'game/HIT_TYPES'; /** * Your ...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupLabeledIcon.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleGroupLabeledIcon = () => ( <Button.Group vertical labeled icon> <Button icon='play' content='Play' /> <Button icon='pause' content='Pause' /> <Button icon='shuffle' content='Shuffle' /> </Button.Group> ) export de...
src/svg-icons/notification/wc.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWc = (props) => ( <SvgIcon {...props}> <path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
RobzDoom/frame_trap
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/index.js
blankPen/blank-ui
import 'core-js/fn/object/assign'; import 'babel-polyfill'; import 'font-awesome-webpack'; import injectTapEventPlugin from 'react-tap-event-plugin'; import React from 'react'; import ReactDOM from 'react-dom'; // Render the App component into the dom import { Provider } from 'react-redux'; // import { createStore, ...
src/shipit/frontend/src/components/NotFound/index.js
La0/mozilla-relengapi
import React from 'react'; import ErrorStatus from '../Error'; export default class NotFound extends React.PureComponent { render() { const ex = Object.assign( new Error(`The requested route ${this.props.location.pathname} was not found.`), { response: { status: 404, }, ...
src/slides/semantics-creation.js
philpl/talk-observe-the-future
import React from 'react' import CodeSlide from 'spectacle-code-slide' import observableCreation from '~/assets/observable-creation.example' export default ( <CodeSlide transition={[ 'slide' ]} lang='javascript' code={observableCreation} ranges={[ { loc: [ 0, 10 ], title: 'Observable Creation'...
src/svg-icons/hardware/tablet.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTablet = (props) => ( <SvgIcon {...props}> <path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z"/> </SvgIcon> ); HardwareTablet = pure(Hardwa...
test/helpers/shallowRenderHelper.js
jerrywei17/gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
techCurriculum/ui/solutions/4.3/src/components/User.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/components/loading/LoadingView.js
sysbet/sysbet-mobile
import React, { Component } from 'react'; import { View, StyleSheet, Text, } from 'react-native'; class LoadingView extends Component { constructor() { super(); } render() { return ( <View style={styles.container}> <Text>Carregando...</Text> ...
app/redux-tools/root.prod.js
developer-townhall-fy17/react-router-redux
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import store from '../store'; import router from '../router' render( <Provider store={store}> {router} </Provider>, document.getElementById('root') );
imports/client/utils/uniforms-custom/NumberField.js
focallocal/fl-maps
import React from 'react' import connectField from 'uniforms/connectField' import { FormGroup, Label, Input } from 'reactstrap' const Number_ = ({ id, label, name, onChange, placeholder, type, value, max, min, customType, defaultValue, error, field, ...props }) => { return ( <FormGrou...
modules/RouteUtils.js
zenlambda/react-router
import React from 'react' import warning from './warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName,...
src/index.js
kristoferjoseph/react-transition-manager
'use strict'; import React from 'react'; import filter from 'lodash/collection/filter'; import remove from 'lodash/array/remove'; import findIndex from 'lodash/array/findIndex'; import cloneWithClasses from './clone-with-classes'; import isIn from './is-in'; import mergeChildren from './merge-children'; const Transi...
example/index.js
goldenyz/react-perfect-scrollbar
import React from 'react'; import ReactDOM from 'react-dom'; import Example from './example'; ReactDOM.render(<Example />, document.getElementById('root'));
koa-boilerplate/node_modules/eslint-config-airbnb/test/test-react-order.js
thoughtbit/node-web-starter
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/components/Category/AllIdea.js
partneran/partneran
import React from 'react' // import { connect } from 'react-redux' import IdeaCard from './IdeaCard' import Auth from '../../helpers/token' export const AllIdea = ({category, ideas}) => { console.log(ideas) const allIdeas = ideas.map(i => <IdeaCard props={i} user={Auth.getUser().sub} key={i.id}/>) const filtered...
src/ProgressBar/index.js
narqo/react-islands
import React from 'react'; import Component from '../Component'; class ProgressBar extends Component { render() { const value = `${this.props.value}%`; return ( <div className={this.className()} role="progressbar" aria-valuenow={`${value}`}> <div className="progressbar_...
src/components/WakeUpByNameView.js
IShin00biI/Ktulu
import React from 'react' import { Text, View } from 'react-native' import { Top } from './index' import { NextFooter } from './Buttons' export const WakeUpByNameView = ({text, onMenu, statueHolder, onSubmit, who}) => { return ( <View> <Top statueHolder={statueHolder} onMenu={onMenu} /> <Text> {t...
src/Stories/EventList.stories.js
sashasushko/moira-front
// @flow import React from 'react'; import { storiesOf } from '@storybook/react'; import EventList from '../Components/EventList/EventList'; const items = [ { timestamp: 1504166060, metric: 'vm-billy-3err2', state: 'NODATA', trigger_id: 'e3ab7290-0c5f-42df-965f-ff4bd160d704', ...
src/index.js
nik149/react_test
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import SearchBar from './components/search_bar'; import YTSearch from 'youtube-api-search'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; import _ from 'lodash'; const API_KEY = "AIzaSyC4...
src/TypeAhead/SelectTrigger.js
selvagsz/react-power-select
import React, { Component } from 'react'; import TriggerWrapper from '../TriggerWrapper'; import AutoResizeInput from '../AutoResizeInput'; export default class SelectTrigger extends Component { state = {}; componentWillMount() { let value = this.getValueFromSelectedOption(this.props); this.setState({ val...
src/client/User/Result.js
KleeGroup/interactive-box
import React from 'react'; const GOOD_ANSWER = "good"; const WRONG_ANSWER = "wrong"; const NO_ANSWER = "no"; const NEUTRAL = "neutral"; import "./result.css"; var Result = React.createClass({ chooseFromStatus: function(list){ var a = this.props.answerState; if(a==GOOD_ANSWER){ return ...
imports/ui/components/spinkit/LoadingCirclesChase/LoadingCirclesChase.js
pletcher/cltk_frontend
import React from 'react'; export default class LoadingCirclesChase extends React.Component { render() { return ( <div className="loading-spinner loading-spinner-circles-chase"> <div className="dot1"></div> <div className="dot2"></div> </div> ); } }
src/routes/login/index.js
zjr/zjrio
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Login from './Login'; e...