path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/remove-red-eye.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRemoveRedEye = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
packages/nausicaa/.storybook/config.js
accosine/poltergeist
import React from 'react'; import { configure, addDecorator } from '@storybook/react'; import Styletron from 'styletron-client'; import { withInfo, setDefaults } from '@storybook/addon-info'; import { StyletronProvider } from 'styletron-react'; import ThemeProvider from '../src/util/ThemeProvider'; import theme from '...
server/sonar-web/src/main/js/apps/component-measures/app/App.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
internals/templates/containers/NotFoundPage/index.js
Dattaya/react-boilerplate-object
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a 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 necessity for you then you can refactor it...
docs/src/app/pages/components/PanelGroup/ExamplePanelGroupNode.js
GetAmbassador/react-ions
import React from 'react' import {PanelGroup, Panel, PanelHeader, PanelContent} from 'react-ions/lib/components/PanelGroup' import ProgressBar from 'react-ions/lib/components/ProgressBar' import Button from 'react-ions/lib/components/Button' import Chip from 'react-ions/lib/components/Chip' import style from './style.s...
hello-team/src/App.js
spaceraccoon/code4good-crash-course
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <AppBar position="static" co...
lib/button-outline/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, } from 'react-native'; import { gutter } from '../variables'; const styles = StyleSheet.create({ text: { fontSize: 18, fontWeight: '600', textAlign: 'center', }, }); const ButtonOutline = ({ children, radius, backgroundCo...
src/svg-icons/action/account-balance.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalance = (props) => ( <SvgIcon {...props}> <path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/> </SvgIcon> ); ActionAccountBalance = pure(ActionA...
src/Radio/Radio.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import type { Element } from 'react'; import withStyles from '../styles/withStyles'; import createSwitch from '../internal/SwitchBase'; import RadioButtonCheckedIcon from '../svg-icons/radio-button-checked'; import RadioButtonUncheckedIcon from '../svg-icons/radio-button-unchec...
client/components/nav-link.js
thebearingedge/inqur
import React from 'react' import Link from 'next/link' import styled from 'styled-components' const Anchor = styled.a` vertical-align: middle; font-size: 0.938em; cursor: pointer; text-decoration: none; &:hover { border-radius: 50px; background-color: #50545c; } &:visited { color: inherit; ...
src/app/components/tag/TagMenu.js
meedan/check-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { FormattedMessage, injectIntl } from 'react-intl'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/core/IconButton'; import Popover from '@material-ui/core/P...
example/with-mock-auth/template.js
iansinnott/react-static-webpack-plugin
import React from 'react'; const getRedirect = ({ reactStaticCompilation }) => { return reactStaticCompilation && reactStaticCompilation.redirectLocation; }; const Html = (props) => ( <html lang='en'> <head> <meta charSet='utf-8' /> <meta httpEquiv='X-UA-Compatible' content='IE=edge' /> <met...
examples/index.ios.js
mayuur/react-native-callout
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableHighlight, Animated, View, Dimensions, } from 'react-native'; let { screenWidth, screenHeight } = Dimensions.get('window'); v...
test/helpers/shallowRenderHelper.js
igor-popov/react-demo
import React from 'react'; //import TestUtils from 'react-addons-test-utils'; import {shallow} from 'enzyme'; export function renderShallow(component) { return shallow(component); }
city-forecast/src/components/weather_list_item.js
alexkovalenko/react-redux-learn
import React from 'react'; import Chart from './chart'; import GoogleMap from './google_map'; export default ({city, list}) => { const temps = list.map(weather => weather.main.temp); const pressures = list.map(weather => weather.main.pressure); const humidities = list.map(weather => weather.main.humidity);...
app/javascript/mastodon/components/autosuggest_textarea.js
yukimochi/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
appier/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
blueocean-material-icons/src/js/components/svg-icons/action/settings-voice.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5...
src/parser/warrior/arms/modules/core/Dots/DeepWoundsUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS/index'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticL...
src/todo/TodoGrid.js
carlodicelico/reify
import React from 'react'; const TodoGrid = (props) => { return ( <section className='todo-grid'> <p className='notification is-warning'>Grid of todo lists</p> </section> ); }; export default TodoGrid;
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedTablet.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedTablet = () => ( <Grid reversed='tablet' columns='equal'> <Grid.Column>Tablet Fourth</Grid.Column> <Grid.Column>Tablet Third</Grid.Column> <Grid.Column>Tablet Second</Grid.Column> <Grid.Column>Tablet First</Gr...
src/svg-icons/action/question-answer.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionQuestionAnswer = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); ...
src/components/Icons.js
Hum4n01d/Amango
import React from 'react' const LoadingIcon = props => ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0, 0, 32, 32"> <g id="Layer_1"> <path d="M32,12 L20,12 L24.485,7.515 C22.218,5.249 19.205,4 16,4 C12.795,4 9.781,5.248 7.515,7.515 C5...
src/svg-icons/image/looks.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
src-changed/containers/app.js
aryalprakash/omgyoutube
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browserHistory, Link } from 'react-router' import {getVideoData, getChannelVideos} from '../actions/video.js' import Header from './Header.js' //import Loader from './Loader.js' //import App from './App.js' export default class ...
packages/react/src/components/DataTable/TableSelectRow.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...
src/templates/not-found-template.js
apalhu/website
// @flow strict import React from 'react'; import Sidebar from '../components/Sidebar'; import Layout from '../components/Layout'; import Page from '../components/Page'; import { useSiteMetadata } from '../hooks'; const NotFoundTemplate = () => { const { title, subtitle } = useSiteMetadata(); return ( <Layout...
src/containers/addition.js
cyranosky/rrtimes_hlj
import React from 'react' import { connect } from 'react-redux' import { additionAChange, additionBChange } from '../actions' import Addition from '../components/addition' import { push } from 'react-router-redux' const mapStateToProps = (state) => ({ ...state.reducer.addition }) const mapDispatchToProps = { ...
client/src/app/components/ui/UiDialogLauncher.js
zraees/sms-project
import React from 'react' import ReactDOM from 'react-dom' $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { _title: function (title) { if (!this.options.title) { title.html("&#160;"); } else { title.html(this.options.title); } } })); let UiDialogLaunc...
src/components/ComboBox/ComboBox.js
jzhang300/carbon-components-react
import cx from 'classnames'; import Downshift from 'downshift'; import PropTypes from 'prop-types'; import React from 'react'; import ListBox, { PropTypes as ListBoxPropTypes } from '../ListBox'; const defaultItemToString = item => item && item.label; const defaultShouldFilterItem = ({ inputValue, item, itemToString }...
app/javascript/mastodon/features/ui/components/modal_root.js
robotstart/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import MediaModal from './media_modal'; import OnboardingModal from './onboarding_modal'; import VideoModal from './video_modal'; import BoostModal from './boost_modal'; import ConfirmationModal from './confirmation_modal'; import { TransitionMotion, spring...
pootle/static/js/admin/components/ItemDelete.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const ItemDelete = React.crea...
src/parser/monk/windwalker/modules/spells/azeritetraits/SwiftRoundhouse.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; class SwiftRoundhouse extends Analyzer { totalStacks = 0; stacksUse...
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/HomeScreen.js
Zephyrrus/ubb
import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import { WebBrowser } from 'expo'; import { MonoText } from '../components/StyledText'; export default class HomeScreen extends React.Component { render() { return ( ...
src/components/DataTable/AnimTableBody.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
src/pages/404.js
sqrthree/MyBlog
import React from 'react' import Link from 'gatsby-link' export default () => ( <div style={{ position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, zIndex: 1, background: '#fff', }} > <div style={{ position: 'absolute', top: 0, ...
newclient/scripts/components/user/travel-log/travel-log/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...
app/components/Left/Title.js
SpotifiyOrganization/spotifyHack
import React from 'react'; import { Row, Col } from 'react-materialize'; const Title = () => { return ( <div> <Row style={{marginTop: '20px'}}> <Col s={12} style={{margin: 'auto', textAlign: 'center'}}> <h style={{color: 'white', fontSize: '30px'}}>Song It</h> </Col> </Row> <Row> <Col s={1...
src/client/assets/js/features/help/components/Schema/Schema.js
me-box/platform-sdk
import React, { Component } from 'react'; const _oneof = function(schema, id, selectedid){ return schema.map((item, i)=>{ let tail = null; if (item.type === "object"){ if (item.properties){ tail = _oneofpayload(item, id, selectedid) } } else if (item.type === "oneof"){ if (item.oneOf){ ...
app/react-icons/fa/twitch.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTwitch extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20 9.7v9.7h-3.2v-9.7h3.2z m8.9 0v9.7h-3.3v-9.7h3.3z m0 17l5.6-5.7v-17.8h-26....
public/js/components/searchButton.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; const rp = require('request-promise'); import axios from 'axios'; // '../../../db/isbndb' // '../../../db/isbndb' // const isbndb_fns = require('../../../db/isbndb'); //pg-native error similar to components/user/login. i'm guessing i can't import stuff fr...
src/routes/Reviews/components/CreateReviewBody.js
johnthedesigner/review-ui
//import React, { PropTypes } from 'react' import React from 'react' import { browserHistory } from 'react-router' import { noAuthRedirect } from '../../../utils/utils' import AddReview from './AddReview' class CreateReviewBody extends React.Component { componentWillReceiveProps(nextProps) { noAuthRedirect(next...
examples/basic-server/src/server.js
jaredpalmer/razzle
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; export const renderApp = (req, res) => { const markup = renderToString(<App />); const html = // prettier-ignore `<!doctype html> <html lang=""> <head> <meta htt...
src/svg-icons/editor/format-line-spacing.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
kit/entry/browser.js
MoosemanStudios/app.moosecraft.us
// Browser entry point, for Webpack. We'll grab the browser-flavoured // versions of React mounting, routing etc to hook into the DOM // ---------------------- // IMPORTS /* NPM */ // Enable async/await and generators, cross-browser import 'regenerator-runtime/runtime'; // Patch global.`fetch` so that Apollo calls...
classic/src/scenes/wbui/ACAvatarCircle2/ACAvatarCircle2Background.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' const styles = { root: { position: 'absolute', top: 1, left: 1, right: 1, bottom: 1, ...
fusion/Avatar.js
pagesource/fusion
import { css } from 'emotion'; import React from 'react'; import { withTheme } from 'theming'; import PropTypes from 'prop-types'; const avatarStyle = css` width: 96px; height: 96px; border-radius: 50%; `; const Avatar = ({ src, alt }) => ( <img src={src} className={avatarStyle} alt={alt} /> ); Avatar.propTy...
docs/app/Examples/elements/Rail/Variations/RailExampleClose.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image, Rail, Segment } from 'shengnian-ui-react' const RailExampleClose = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='/assets/images/wireframe/paragraph.png' /> <Rail close position='left'> <Segment>Left Rail Co...
src/svg-icons/action/launch.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLaunch = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> ); Ac...
DemoApp/src/containers/all-components.js
andyfen/react-native-UIKit
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView } from 'react-native'; import { AlertMessage, ArticleText, ArticleList, Avatar, AvatarHeader, Button, ButtonOutline, Card, Carousel, Close, DateItem, Divider, FieldError, Grid, GalleryOffset, Heading, ImageCustom, InputFi...
node_modules/react-bootstrap/es/Popover.js
Technaesthetic/ua-tools
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/components/VmDetails/cards/UtilizationCard/UtilizationCharts/DonutChart.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { ChartDonut, ChartLabel } from '@patternfly/react-charts' import style from '../style.css' const DonutChart = ({ data, title, subTitle, id }) => { return ( <div id={id} className={style['donut-container']}> <ChartDonut width={300...
src/images/SsSearchAvancedLiturgicalInitial.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react' import screenShot from './graphics/ScreenShotLiturgicalOptions.jpg' export default React.createClass({ render() { return <img role="presentation" src={screenShot} height="100%" width="100%"/> } })
src/components/GovernmentMember.js
wearespindle/quickly.press
import React, { Component } from 'react'; import { observer } from 'mobx-react'; class GovernmentMember extends Component { constructor(props) { super(props); const { member } = props this.state = { edit: false, name: member.get('name'), phone_number: member.get('phone_number') } ...
packages/my-package/lib/components/movies/MoviesItem.js
bshenk/projectIterate
import React from 'react' import { registerComponent, ModalTrigger } from 'meteor/vulcan:core' const MoviesItem = ({ movie, currentUser }) => <div style={{ paddingBottom: '15px', marginBottom: '15px', borderBottom: '1px solid #ccc' }}> <h4>{movie.name} ({movie.year})</h4> <p>{movie.review} – {movie.user &&...
src/DropdownLayout/DropdownLayout.driver.js
nirhart/wix-style-react
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import find from 'lodash.find'; const dropdownLayoutDriverFactory = ({element, wrapper, component}) => { const isClassExists = (element, className) => !!(element.className.match(new RegExp('\\b' + clas...
src/components/trail_steward.js
JohnDHamm/trail-tracker-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Avatar from 'material-ui/Avatar'; class TrailSteward extends Component { render () { const { stewardName, style, stewardImgUrl, values } = this.props; const styles = { root: { padding: '5px 10px 10px 10px', backgro...
examples/website/src/components/buttons/NewButton.js
w-y/ecma262-jison
import PropTypes from 'prop-types'; import React from 'react'; export default function SaveButton({saving, forking, onNew}) { return ( <button type="button" disabled={saving || forking} onClick={onNew}> <i className="fa fa-file-o fa-fw" />&nbsp;New </button> ); } SaveButton.propTyp...
app/react-icons/fa/arrows.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaArrows extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m40 20q0 0.6-0.4 1l-5.7 5.7q-0.5 0.4-1 0.4t-1-0.4-0.5-1v-2.8h-8.5v8.5h2.8q0.6...
webapp/src/Congratulation.js
mathieu-pousse/go-dart
import React from 'react'; const Congratulation = ({game, player}) => { if (game.Ongoing == 4) { return ( <div className="card horizontal"> <div className="card-stacked"> <div className="card-content"> Congratulations {player.Name} ...
examples/src/components/Contributors.js
paulmillr/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
Realization/frontend/czechidm-core/src/components/advanced/ScriptArea/ScriptArea.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import { withStyles } from '@material-ui/core/styles'; // import * as Basic from '../../basic'; import { ScriptArea } from '../../basic/ScriptArea/ScriptArea'; import ScriptOptionDecorator from './ScriptOptionDecorator'; import ScriptValueDecorator from ...
app/javascript/mastodon/components/intersection_observer_article.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; // Diff these props in the "unrendered" state const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'c...
stories/checkBoxGroup.js
azl397985856/ltcrm-components
import React from 'react'; import { render } from 'react-dom' import {Table, Icon, Checkbox, Input, Row, Col, Form, Button, message, InputNumber } from 'antd'; import CheckboxGroup from '../components/CheckboxGroup/index' import { storiesOf, action } from '@kadira/storybook'; import R from 'ramda'; import mixin from '....
fields/types/Field.js
efernandesng/keystone
import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import blacklist from 'blacklist'; function isObject(arg) { return Object.prototype.toString.call...
example/WithMousePosition.js
wuct/react-dom-utils
import React from 'react' import throttle from 'raf-throttle' import withMousePosition from '../src/withMousePosition' const style = { width: 400, height: 400, backgroundColor: '#ECBDBB', } const component = ({ mousePosition }) => ( <div style={style}> {JSON.stringify(mousePosition)} </div> ) export de...
src/components/FooterIcon.js
blwoosky/DigCSS-Theme-v4-Redesign
import React, { Component } from 'react'; export default class FooterIcon extends Component { render() { return ( <svg style={{display:'none'}} version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink"> <defs> ...
public/components/settings/api/api-is-down.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for the adding an API entry form. * * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licens...
src/route/Home.js
rageboom/React_Study
import React, { Component } from 'react'; class Home extends Component { render() { return( <h1>HOME</h1> ); } } export default Home;
src/svg-icons/content/inbox.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
app/javascript/mastodon/components/avatar.js
Craftodon/Craftodon
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...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
chf2/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
client/components/pageNotFound/PageNotFound.js
subesokun/Rocket.Chat
import { Box, Button, ButtonGroup, Flex, Margins } from '@rocket.chat/fuselage'; import React from 'react'; import { useRoute } from '../../contexts/RouterContext'; import { useWipeInitialPageLoading } from '../../hooks/useWipeInitialPageLoading'; import { ConnectionStatusAlert } from '../connectionStatus/ConnectionSt...
app/javascript/mastodon/components/check.js
cobodo/mastodon
import React from 'react'; const Check = () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='currentColor' fillRule='evenodd' /> </svg> ); export default Check;
frontend/src/Components/Form/EnhancedSelectInputOption.js
geogolem/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons } from 'Helpers/Props'; import CheckInput from './CheckInput'; import styles from './EnhancedSelectInputOption.cs...
docs/examples/RadioGroup/Example1.js
romagny13/react-form-validation
import React from 'react'; import { RadioGroup, Label } from 'romagny13-react-form-validation'; class Example1 extends React.Component { constructor(props) { super(props); this.state = { model: { likes: 'Cakes' }, touched: {} }; ...
src/components/DatePicker/Component.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import ReactDOM from 'react-dom'...
fannie/batches/EndCapper/src/EndCap.js
CORE-POS/IS4C
import React, { Component } from 'react'; import Shelf from './Shelf.js'; class EndCap extends Component { render() { let all = this.props.shelves.map((s, i) => <Shelf items={s} pos={i} manageItem={this.props.manageItem} /> ); return (<p><div>{all}</div></p>); ...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/components/Link/index.js
phiratio/Pluralsight-materials
/** * * Link * */ import React from 'react'; import styles from './styles.css'; function Link({ link }) { return ( <div className={styles.link}> <div className={styles.votingContainer} > <div className={styles.votingCount} > {link.voteCount} </di...
lib/components/tab.js
ppot/hyper
import React from 'react'; export default class Tab extends React.PureComponent { constructor() { super(); this.handleHover = this.handleHover.bind(this); this.handleBlur = this.handleBlur.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { hovered: false }; }...
src/svg-icons/action/tab.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTab = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/> </SvgIcon> ); ActionTab = pure(ActionTab); ActionTab....
app/containers/Production/SectionPotPlant.js
frascata/vivaifrappi
import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import H1 from '../../components/H1/index'; import Text from '../../components/Text/index'; import PotPlantGallery from './PotPlantGallery'; const Div = styled.div` `;...
main.js
dmrd/org_squared
/** In order for logging to stream to XDE or the exp CLI you must import the * exponent module at some point in your app */ import React from 'react'; import Exponent from 'exponent'; import { AppRegistry, Platform, StatusBar, StyleSheet, View, } from 'react-native'; import { withNavigation, Navigation...
src/svg-icons/action/perm-scan-wifi.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi = pure(A...
src/client/components/Story/HiddenStoryPreviewMessage.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const HiddenStoryPreviewMessage = ({ onClick }) => ( <div className="Story__warning__message"> <h4> <FormattedMessage id="post_preview_hidden_for_low_ratings" defaultMessage="This p...
src/index.js
kokengthecoder/github-user-search
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import { browserHistory, Router, Route, IndexRoute } from 'react-router'; import App from './containers/app'; import HomeS...
client/src/scenes/SignInPage/index.js
RudthMael/chatx
import React from 'react'; import './index.css'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { login } from '../../actions'; import { getAuth } from '../../selectors'; class SignInPage extends React.Component { static propTypes = { auth: React.PropTypes.object }; cons...
app/components/default-settings/PlainContext.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './settings.css'; export default class PlainContext extends Component { static propTypes = { children: PropTypes.string }; static defaultProps = { children: '' }; render() { const { children } = thi...
server/sonar-web/src/main/js/apps/overview/gate/gate.js
vamsirajendra/sonarqube
import React from 'react'; import GateConditions from './gate-conditions'; import GateEmpty from './gate-empty'; export default React.createClass({ renderGateConditions () { return <GateConditions gate={this.props.gate} component={this.props.component}/>; }, renderGateText () { let text = ''; if (...
src/addons/Select/Select.js
mohammed88/Semantic-UI-React
import React from 'react' import { META } from '../../lib' import Dropdown from '../../modules/Dropdown' /** * A Select is sugar for <Dropdown selection />. * @see Dropdown * @see Form */ function Select(props) { return <Dropdown {...props} selection /> } Select._meta = { name: 'Select', type: META.TYPES.A...
app/components/SearchField/index.js
nathanhood/mmdb
import React from 'react'; import styled, { css } from 'styled-components'; import PropTypes from 'prop-types'; import { transitionOpacity } from '../../mixins'; import HeaderButton from '../HeaderButton'; import theme from 'theme'; import { LIBRARY_SEARCH_TYPE, STANDARD_SEARCH_TYPE } from 'containers/SearchResults/con...
packages/material-ui-icons/src/CardTravel.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CardTravel = props => <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2...
docs/app/Examples/modules/Rating/Types/RatingExampleRating.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleRating = () => ( <Rating /> ) export default RatingExampleRating
src/components/cid/Cid.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { checkA11y } from '@storybook/addon-a11y' import Cid from './Cid' storiesOf('CID', module) .addDecorator(checkA11y) .add('CID v0', () => ( <Cid className='db ma2 monospace' value={'Q...
actor-apps/app-web/src/app/components/ActivitySection.react.js
hzy87email/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
src/components/wrapper/index.js
timludikar/component-library
import React from 'react'; import styles from './stylesheet/wrapper.styl'; const Wrapper = ({ children, className }) => { const cssClass = `${styles[className]} ${styles.wrapper}`; return ( <div className={cssClass} > {children} </div> ); }; Wrapper.propTypes = { className: React.Pro...
example/CountryAutocomplete.js
iegik/react-autocomplete
import React from 'react'; import AutocompleteSelect from '../src/Select'; import AutocompleteList from '../src/List'; import AutocompleteListItem from '../src/ListItem'; import AutocompleteInput from '../Input'; // FIXME: Returns Promise with object `{suggestions: [{value: String}]}` import {getCountrySuggestions} fr...
frontend/src/components/partners/partnerProfileDetailItem.js
unicef/un-partner-portal
import R from 'ramda'; import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import ItemColumnCell from '../common/cell/itemColumnCell'; import GridColumn from '../common/grid/gridColumn'; import GridRow from '../common/grid/gridRow'; import ItemWorkingLanguages...
archimate-frontend/src/main/javascript/components/view/nodes/model_t/technologyProcess.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='technologyProcess'; export class TechnologyProcessWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_t technologyProcess'; } }
admin/client/App/shared/Popout/index.js
everisARQ/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const sizes = { arrowHeight: 12, }; var Popou...