path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/react-native-calendars/src/calendar/header/index.js
airingursb/two-life
import React, { Component } from 'react'; import { ActivityIndicator } from 'react-native'; import { View, Text, TouchableOpacity, Image } from 'react-native'; import XDate from 'xdate'; import PropTypes from 'prop-types'; import styleConstructor from './style'; import { weekDayNames } from '../../dateutils'; class Ca...
app/react-icons/fa/street-view.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStreetView extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m35.9 34.3q0 1.4-1.3 2.5t-3.7 1.8-5 1.1-5.7 0.3-5.6-0.3-5.1-1.1-3.6-1.8-1...
docs/src/@primer/gatsby-theme-doctocat/components/live-preview-wrapper.js
primer/primer-css
import primerStyles from '!!raw-loader!postcss-loader!../../../../../src/docs.scss' import {Flex} from '@primer/components' import {Frame} from '@primer/gatsby-theme-doctocat' import {MoonIcon, SunIcon} from '@primer/octicons-react' import React from 'react' function LivePreviewWrapper({children}) { const [colorMode...
js/components/Player/Player.js
remypar5/mtg-lifecounter
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import styles from './styles'; import NumberSpinner from '../NumberSpinner'; import Text from '../Text'; import { flattenStyles } from '../../utils'; import { PlayerPropType } from '../../types'; export default class P...
imports/client/ui/pages/Home/FirstSection/index.js
mordka/fl-events
import React from 'react' import { Meteor } from 'meteor/meteor' import { withTracker } from 'meteor/react-meteor-data' import { Container } from 'reactstrap' import Find from './Find' import i18n from '/imports/both/i18n/en' import './styles.scss' const { Home } = i18n let color let titleColor = {color: color} con...
src/containers/DevTools/DevTools.js
golgistudio/website
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
lib/containers/hyper.js
KunalKene1797/hyper
/* eslint-disable react/no-danger */ import React from 'react'; import Mousetrap from 'mousetrap'; import {PureComponent} from '../base-components'; import {connect} from '../utils/plugins'; import * as uiActions from '../actions/ui'; import {getRegisteredKeys, getCommandHandler, shouldPreventDefault} from '../comman...
src/svg-icons/action/account-circle.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountCircle = (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 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1....
ui/src/stories/MapView.stories.js
damianmoore/photo-manager
import React from 'react' import MapView from '../components/MapView' export default { title: 'Photonix/Photo List/Map', component: MapView, } const Template = (args) => ( <div style={{ position: 'absolute', top: 0, left: 0, width: '100%' }}> <MapView {...args} /> </div> ) export const DefaultMap = Temp...
generators/app/templates/src/components/Search/Search.js
chenkaixia/generator-zcy-front-starter-kit
import React from 'react'; import { Form, Row, Col, Input, Button, Icon } from 'antd'; const FormItem = Form.Item; class AdvancedSearchForm extends React.Component { state = { expand: false, }; handleSearch = (e) => { e.preventDefault(); this.props.form.validateFields((err, values) => { consol...
pages/sass.js
karolklp/slonecznikowe2
import React from 'react' import './example.scss' import Helmet from 'react-helmet' import { config } from 'config' export default class Sass extends React.Component { render () { return ( <div> <Helmet title={`${config.siteTitle} | Hi sassy friends`} /> <h1 cla...
test/integration/scss-fixtures/multi-global/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.scss' import '../styles/global2.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
stories/decorator/invert.js
all3dp/printing-engine-client
import React from 'react' export default story => ( <div className="u-invert" style={{width: '100%', minHeight: '100vh'}}> {story()} </div> )
src/svg-icons/action/pets.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPets = (props) => ( <SvgIcon {...props}> <circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.8...
app/javascript/mastodon/features/ui/components/navigation_panel.js
koba-lab/mastodon
import React from 'react'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; import { showTrends } from 'mastodon/initial_state'; import NotificationsCounterIcon from './notifications_counter_icon'; import FollowRequestsNa...
examples/parent.js
threepointone/glamor
import React from 'react' import { css, parent } from 'glamor' const styles = { root: css({ backgroundColor: '#fff', ':hover': { backgroundColor: '#000' } }), child: css( { color: '#000' }, parent(':hover >', { color: '#fff' }) ) } export function App() { return ( <d...
src/widgets/FormInputs/FormDateInput.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import { StyleSheet, TextInput } from 'react-native'; import moment from 'moment'; import DateTimePicker from '@react-native-community/datetimepicker'; import PropTypes from 'prop-t...
src/main/resources/public/js/pages/organization-search.js
ozwillo/ozwillo-portal
import React from 'react'; import {Link} from 'react-router-dom'; import { i18n } from "../config/i18n-config" import { t } from "@lingui/macro" import UpdateTitle from '../components/update-title'; import OrganizationAutoSuggest from "../components/autosuggests/organization-autosuggest"; import OrganizationCard from "...
templates/rubix/laravel/laravel-example/src/components/Todo.js
jeffthemaximum/jeffline
import React from 'react'; import { withRouter } from 'react-router'; import { Col, Row, Grid, Icon, Button, Checkbox, ButtonGroup, } from '@sketchpixy/rubix'; import client from '@sketchpixy/rubix/lib/utils/HttpClient'; @withRouter export default class Todo extends React.Component { constructor(prop...
Console/app/node_modules/rc-form/es/createBaseForm.js
RisenEsports/RisenEsports.github.io
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import React from 'react'; import crea...
src/@ui/Icon/icons/Share.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Svg } from '../../Svg'; import makeIcon from './makeIcon'; const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => ( <Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}> <Svg.Path d="M12.8 3.621v8.6568h-1.6V3...
src/mui/form/SimpleForm.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import getDefaultValues from './getDefaultValues'; import FormField from './FormField'; import Toolbar from './Toolbar'; const noop = ()...
lib/shared/screens/admin/shared/components/page-builder-menu/tabs/style/style-picker/editing/index.js
relax/relax
import * as pageBuilderActions from 'actions/page-builder'; import bind from 'decorators/bind'; import forEach from 'lodash/forEach'; import getElementStyleValues from 'helpers/element/get-style-values'; import union from 'lodash/union'; import Component from 'components/component'; import React from 'react'; import P...
public/app/components/app.js
threepears/react_todo
import React from 'react'; import ToDoHeader from './header'; import EntryForm from './entryform'; import Notes from './notes'; export default class App extends React.Component { constructor(props) { super(props); this.state = {todos: []}; } componentDidMount() { console.log("MOUNTING"); this...
modules/IndexLink.js
chunwei/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/app/components/App.js
itimai/react-try
import Debug from 'debug'; import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import MomentsStore from '../stores/MomentsStore'; import UserStore from '../stores/UserStore'; import MomentsList from './MomentsList'; import Actions from '../actions/Actions'; import config from '../../../...
packages/vx-grid/src/grids/Rows.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import { Line } from '@vx/shape'; import { Group } from '@vx/group'; import { Point } from '@vx/point'; export default function Rows({ top = 0, left = 0, scale, width, stroke = '#eaf0f6', strokeWidth = 1, strokeDasharray, className, numTicks = 1...
src/shared/components/clipPathImage/clipPathImage.js
alexspence/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './clipPathImage.css'; const ClipPathImage = (props) => { const { image, altText, title, theme, className, link, ...otherProps } = props; return ( <a href={link} className={`${styles.cpContainer} ${s...
client/decorators/Link.js
springload/wagtaildraftail
import PropTypes from 'prop-types'; import React from 'react'; import { Icon } from 'draftail'; const Link = ({ entityKey, contentState, children }) => { const { url } = contentState.getEntity(entityKey).getData(); return ( <span data-tooltip={entityKey} className="RichEditor-link"> <Icon name={`icon-${...
src/server.js
unboundfire/example-react-dashboard
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import App from './components/App'; import bodyParser from 'body-...
assets/javascript/view/operation/sandbox.js
benhu/RestApiTester
'use strict'; import React from 'react'; import Button from '../button'; export default class Sandbox extends React.Component { constructor(props) { super(props); this.bind('send'); } bind(...methods) { methods.forEach((method) => this[method] = this[method].bind(this)); ...
src/svg-icons/image/picture-as-pdf.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePictureAsPdf = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ...
node_modules/@material-ui/core/esm/NoSsr/NoSsr.js
pcclarke/civ-techs
import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import React from 'react'; import PropTypes from 'prop-types'; import { exactProp } from '@material-ui/utils'; var useEnhancedEffect = typeof window !== 'undefined' && process.env.NODE_ENV !== 'test' ? React.useLayoutEffect : React.useEffect; /** * NoS...
client/src/app/containers/header/TasksMenu.js
mtiger2k/graphql-tutorial
import React from 'react'; import TasksMenu from '../../../lib/header/TasksMenu'; const tasks = [ { key: 1, id: 1, color: 'aqua', progress: 20, text: 'Design some buttons', }, { key: 2, id: 2, color: 'green', progress: 40, text: 'Create a nice theme', }, { key: 3,...
code/web/node_modules/react-bootstrap/es/ModalHeader.js
zyxcambridge/RecordExistence
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/GridColumnHeader.js
shaneosullivan/spotlist
import React, { Component } from 'react'; import cancelEvt from './cancelEvt'; export default class GridColumnHeader extends Component { render() { let artist = this.props.artist; return ( <div className="grid-col"> <a href="#" onClick={this._toggleArtist} className="grid-artist-name"> ...
app/components/AddEditExerciseFormContainer/AddEditExerciseFormContainer.js
sunnymis/Swoleciety
import React from 'react'; import PropTypes from 'prop-types'; import AddEditExerciseForm from '../AddEditExerciseForm/AddEditExerciseForm'; import UserService from '../../services/users.service'; import AuthService from '../../services/auth.service'; import DateService from '../../services/date.service'; require('./A...
Native/Learn_Navigation/index.ios.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import { StackNavigator } from 'react-navigation' class HomeScreen extends React.Component { static ...
app/javascript/mastodon/features/standalone/public_timeline/index.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleInput.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' const DropdownExampleInput = () => ( <Dropdown text='Filter' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Dropdown.Header content='Search Issues' /> <Input icon='search'...
packages/core/stories/tokens/colors/ColorDisplay.js
massgov/mayflower
import React from 'react'; import PropTypes from 'prop-types'; import ButtonCopy from '@massds/mayflower-react/dist/ButtonCopy'; import './_color-display.scss'; const ColorSwatch = ({ name, value, variable, width = '200px', height = '4rem', copiable = true, inline = false }) => { const hexValue = value.toUpperCase...
docs/app/Examples/views/Statistic/Variations/StatisticExampleInverted.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment, Statistic } from 'semantic-ui-react' const StatisticExampleInverted = () => ( <Segment inverted> <Statistic inverted value='54' label='inverted' /> <Statistic inverted color='red' value='27' label='red' /> <Statistic inverted color='orange' value='8' label='ora...
lib/src/game/stopwatch.js
Hezko/MineBlown-GameUI
import React from 'react'; const interval = 200; class Stopwatch extends React.Component { constructor(props) { super(props); this.initialState = { isRunning: false, timeElapsed: props.initialTime, }; if (props.runOnStart) { this.state = { isRunning: true, timeEla...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
keathley/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
docs-js/VoteShareByYear.js
esonderegger/us-house-if-proportional
import React from 'react'; import {LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; import fec from './fec.json'; function percent(dec) { return (dec * 100).toFixed(2); } export default class VoteShareByYear extends React.Component { render() { const data = [2004, 2006, 2008, ...
src/svg-icons/action/watch-later.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
imports/ui/components/NestedCategoriesWidget/NestedCategoriesWidget.js
hwillson/meteor-solr-demo
/* eslint-disable react/prefer-es6-class */ /* global window */ import React from 'react'; import { _ } from 'meteor/underscore'; import NestedCategories from './NestedCategories'; const NestedCategoriesWidget = React.createClass({ propTypes: { field: React.PropTypes.string.isRequired, name: React.PropTyp...
packages/core/admin/admin/src/components/UpgradePlanModal/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { useIntl } from 'react-intl'; import { Portal } from '@strapi/design-system/Portal'; import { FocusTrap } from '@strapi/design-system/FocusTrap'; import { IconButton } from '@strapi/design-system/IconButton'; ...
src/pages/Charts/Nasdaq.js
chaitanya1375/Myprojects
import React from 'react'; import ReactChartist from 'react-chartist'; import Chartist from 'chartist'; const dataStock = { labels: ['\'07','\'08','\'09', '\'10', '\'11', '\'12', '\'13', '\'14', '\'15'], series: [ [22.20, 34.90, 42.28, 51.93, 62.21, 80.23, 62.21, 82.12, 102.50, 107.23] ] }; const optionsSto...
src/index.js
timmathews/react-digital-gauge
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/capture/capture-modal/DatePicker.js
sebpearce/cycad-react
import React from 'react'; import styles from './CaptureModal.scss'; import { formatLongDate } from '../../../helpers/date-helpers'; const getDayOfWeek = isoDate => { const dateObj = new Date(isoDate); return dateObj.getDay(); }; const Picker = ({ selected, adjustDate }) => { const isSelected = day => { ret...
src/components/Search/ResultList.js
honeypotio/techmap
import React from 'react'; import { Link } from 'react-router'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Icon from '../Icon'; const Item = styled(Link)` color: #1f2228; display: flex; align-items: center; font-weight: 500; padding: 15px 10px; text-decoration: none;...
src/modules/feedback/Feedback.js
rllc/llc-archives-react
import React from 'react' class Feedback extends React.Component { render() { // TODO return <div>Feedback</div> } } export default Feedback
frontend/sections/info/about.js
apostolidhs/wiregoose
import React from 'react'; import tr from '../../components/localization/localization.js'; import { publish } from '../../components/events/events.js'; import Info from './info.js'; import headerImage from '../../assets/img/option-menu-about-bg.png'; import headerFooterImage from '../../assets/img/option-menu-about-bg...
app/javascript/mastodon/features/lists/index.js
increments/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
src/components/view/index.js
sergeyruskov/sergeyruskov.github.io
//@flow import React from 'react'; import {compose} from 'redux'; import {connect} from "react-redux"; import {Redirect} from "react-router-dom"; import ViewInput from './view-input'; import type { Cards } from '../../types/cards'; /** * Конечное представление настроенной формы * */ function ViewForm({view}: { vie...
src/icons/GlyphSmallArrow.js
ipfs/webui
import React from 'react' const GlyphSmallArrows = props => ( <svg viewBox="0 0 32 21" {...props}> <path d="M16 20.2L0.5 4.7L4.4 0.800003L16 12.4L27.6 0.800003L31.5 4.7C26.3 9.8 21.2 15 16 20.2Z" /> </svg> ) export default GlyphSmallArrows
information/blendle-frontend-react-source/app/components/navigation/LogoLink/index.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { pure } from 'recompose'; import classNames from 'classnames'; import { BlendleLogo } from '@blendle/lego'; import Link from 'components/Link'; import CSS from './LogoLink.scss'; const LogoLink = ({ className, ...props }) => { const linkClassName...
app/containers/NotFoundPage/index.js
sulthan16/awesome-jr-frontend-sulthan
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
examples/counter/index.js
leoasis/redux
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') function render() { ReactDOM.render( <Counter value={...
node_modules/react-select/examples/src/components/CustomComponents.js
maty21/statistisc
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
src/elements/Reveal/Reveal.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, } from '../../lib' import RevealContent from './RevealContent' /** * A reveal displays additional content in place of previous content when...
App/node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
Dagers/React-Native-Differential-Updater
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
node_modules/@material-ui/core/es/RadioGroup/RadioGroupContext.js
pcclarke/civ-techs
import React from 'react'; /** * @ignore - internal component. */ const RadioGroupContext = React.createContext(); export default RadioGroupContext;
app/javascript/plugins/email_pension/EmailRepresentativeView.js
SumOfUs/Champaign
import React, { Component } from 'react'; import { isEmpty, find, template, merge, each, pick } from 'lodash'; import Input from '../../components/SweetInput/SweetInput'; import Button from '../../components/Button/Button'; import FormGroup from '../../components/Form/FormGroup'; import EmailEditor from '../../compone...
src/layouts/ErrorLayout.js
vijayasankar/ML2.0
import React from 'react' import Col from 'react-bootstrap/lib/Col' import Grid from 'react-bootstrap/lib/Grid' import Row from 'react-bootstrap/lib/Row' import Footer from './Footer' import logo from 'components/Header/assets/nibFirstChoice.svg' const cssName = 'error-layout' export const ErrorLayout = ({ main }) =>...
src/svg-icons/image/camera-roll.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h...
app/components/icons/Check/index.js
yasserhennawi/yasserhennawi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; const StyledCheckCircle = styled.svg` fill: ${(props) => props.fill}; `; export default function CheckCircle({ onClick, fill, ...props }) { return ( <StyledCheckCircle {...props} fill={fill}...
src/client/chat/threadlistitem.react.js
Zycon42/este-chat
import PureComponent from '../components/purecomponent.react'; import React from 'react'; import {Link} from 'react-router'; import {Thread} from './store'; export default class ThreadListItem extends PureComponent { render() { const thread = this.props.thread; const lastMessage = thread.lastMessage; co...
docs/src/components/Playground/Atoms/IconButton/IconButton.js
seek-oss/seek-style-guide
import styles from './IconButton.less'; import React from 'react'; import PropTypes from 'prop-types'; import { PlusIcon, DeleteIcon } from 'seek-style-guide/react'; export default function IconButton({ children, icon }) { return ( <button className={styles.root}> {icon === 'plus' ? <PlusIcon /> : null} ...
frontend/js/components/gallery.js
mcallistersean/b2-issue-tracker
import React from 'react' import Lightbox from 'react-images' class Gallery extends React.Component { constructor () { super(); this.state = { lightboxIsOpen: false, currentImage: 0, }; this.closeLightbox = this.closeLightbox.bind(this); this.gotoNext = this.gotoNext.bind(this); this.gotoPrevious ...
app/containers/LanguageProvider/index.js
rodrigoTrespalacios/project-bank
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
packages/node_modules/@ciscospark/react-component-new-messages-separator/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import ListSeparator from '@ciscospark/react-component-list-separator'; function NewMessageSeparator({message}) { return ( <div> <ListSeparator isInformative primaryText={message} /> </div> ); } NewMessageSeparator.propTypes = { messa...
src/ModalHeader.js
asiniy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
packages/mineral-ui-icons/src/IconLocalCafe.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 IconLocalCafe(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
Nedomas/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
packages/wix-style-react/src/FloatingNotification/test/FloatingNotification.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import StatusComplete from 'wix-ui-icons-common/StatusComplete'; import { TYPES } from '../constants'; import FloatingNotification from '..'; const LONG_TEXT = 'all work and no play makes jack a dull boy '.repeat(2); const defaultProps = { te...
src/svg-icons/communication/ring-volume.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
app/static/scripts/user/authView/main.js
joshleeb/WordpressPylon
import UserLoginForm from './loginForm/main.js'; import UserSignupForm from './signupForm/main.js'; import React from 'react'; require('./styles.scss'); export default class UserAuthView extends React.Component { constructor(props) { super(props); this.state = { mode: props.mode || 'signup' }; ...
app/app.js
theJian/hn-FrontPage
import $ from 'jquery'; import React from 'react'; import { render } from 'react-dom'; import NewsList from './NewsList.js'; import './app.css'; function get(url) { return Promise.resolve($.ajax(url)); } get('https://hacker-news.firebaseio.com/v0/topstories.json').then( function(stories) { return Promise.all(stor...
src/js/pages/Sobre.js
diegovilarinho/wp-react-portfolio-site
import React from 'react'; export default class Sobre extends React.Component { render() { return ( <h1 className="title">Quem Somos</h1> ); } }
src/components/game/board/drop-zone.js
aautem/aa
import React from 'react'; import PropTypes from 'prop-types'; import { Row } from 'react-native-easy-grid'; import DropButton from './drop-button'; export default class DropZone extends React.Component { render() { if (!this.props.game.roomName) { return null; } const dropButtons = []; for (l...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/HarbingersInscrutableWill.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/...
src/with-theme.js
paypal/glamorous
import React from 'react' import {CHANNEL} from './constants' import {PropTypes} from './react-compat' function generateWarningMessage(Comp) { const componentName = Comp.displayName || Comp.name || 'FunctionComponent' // eslint-disable-next-line max-len return `glamorous warning: Expected component called "${co...
src/svg-icons/communication/location-on.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12...
assets/jqwidgets/demos/react/app/maskedinput/events/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMaskedInput from '../../../jqwidgets-react/react_jqxmaskedinput.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount() { this.refs.myMaskedInput.on('change', (eve...
src/components/ProposalInput/Navigation.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { WizardContext } from '../Wizard/wizard-context'; import Button from '../Button'; import Box from '../Box'; const Navigation = ({ onSubmit }) => ( <WizardContext.Consumer> {({ next, previous, step, steps }) => { const onNextClick = () =...
src/components/Header/Header.js
tarixgit/test
/** * 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 withStyles from 'isomorp...
Gallery-in-React/test/helpers/shallowRenderHelper.js
brilliantyy/React-Native
/** * 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'...
static/src/components/DetermineAuth.js
dternyak/React-Redux-Flask
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.userName, isAuthenticated: state.auth.isA...
examples/universal/server/server.js
naoishii/ohk2016C
/* eslint-disable no-console, no-use-before-define */ import path from 'path' import Express from 'express' import qs from 'qs' import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import webpackConfig from '../webpack.config...
frontend/src/Settings/Profiles/Profiles.js
lidarr/Lidarr
import React, { Component } from 'react'; import { DndProvider } from 'react-dnd-multi-backend'; import HTML5toTouch from 'react-dnd-multi-backend/dist/esm/HTML5toTouch'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; import SettingsToolbarConnector...
common/components/Search.js
alexdvance/the-watcher
import { provideHooks } from 'redial' import React from 'react' import { connect } from 'react-redux' import { searchMedia } from '../routes/Home/actions' import { displaySearchResults } from '../routes/Home/reducer' import axios from 'axios'; import { StyleSheet, css } from 'aphrodite' var searchResults = []; functi...
app/components/presentation/BookingDetails.js
PHPiotr/phpiotr4
import React from 'react'; import PropTypes from 'prop-types'; import {TableCell, TableRow} from 'material-ui/Table'; import List, {ListItem, ListItemText} from 'material-ui/List'; import {withRouter} from 'react-router-dom'; import formatDate from '../../utils/formatDateUtil'; import getPrice from '../../utils/formatP...
src/Main/PlayerSelectorHeader.js
enragednuke/WoWAnalyzer
// Note: Based on PlayerSelecter import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getPlayerName } from 'selectors/url/report'; import SelectorBase from './SelectorBase'; import PlayerSelectionList from './PlayerSelectionList'; class PlayerSelectorHeader e...
node_modules/rc-trigger/es/Popup.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/js/components/ContentBlocks/BlockCarousel/BlockCarouselWireframe.js
grommet/grommet-cms-boilerplate
import React from 'react'; import Box from 'grommet/components/Box'; export default function BlockCarouselWireframe() { return ( <Box pad={{ between: 'small' }} direction="row"> <Box basis="1/4" colorIndex="accent-3" pad={{ horizontal: 'small', vertical: 'large' }} /> <Box basis="1/2" colorIn...
client/scripts/index.react.js
nevillegallimore/weekend-countdown
// import external dependencies import React from 'react'; import { render } from 'react-dom'; // import internal dependencies import WeekendCountdown from './containers/weekend-countdown'; //////////////////////////////////////////////////////////////////////////////////////////////////// const container = document...
client/src/index.js
tiagofabre/koa2-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.querySelector('#root'));
src/components/google_map.js
yihan940211/WTFSIGTP
/* * @Author: guangled * @Date: 2017-03-25 13:43:16 * @Last Modified by: guangled * @Last Modified time: 2017-03-26 08:51:30 */ import React, { Component } from 'react'; import MainButton from './main_button'; class GoogleMap extends Component { constructor() { super(); this.state = { lat: 0, lng: 0,...