path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/ui/sidebar/component-selection/ButtonGroup.js
circuitsim/circuit-simulator
import React from 'react'; import R from 'ramda'; function styles({ STYLES }) { return { group: { margin: '10px 0px' }, buttons: { display: 'flex', justifyContent: 'flex-start', flexWrap: 'wrap', alignItems: 'baseline' }, title: R.merge(STYLES.title, {paddingLeft: '5...
src/components/book/BookPage.js
jjoyce24/book-store
import React from 'react'; class Book extends React.Component{ constructor(props){ // Pass props back to parent super(props); } // Submit book handler submitBook(input){ alert('Submitted') } render(){ // Title input tracker let titleInput; // return JSX return( <div> ...
app/js/components/map/BoundAllMarkersBtn.js
jayeeeeee/trip-planner
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import SelectAll from 'material-ui/svg-icons/content/select-all'; const BoundAllMarkersBtn = ({ onClick }) => ( <FloatingActionButton onTouchTap={onClick}> <SelectAll /> </FloatingActionButton> ) export default Bou...
packages/node_modules/@ciscospark/react-component-badge/src/index.js
bzang/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; /** * Badge is supplemental, non-clickable component used to help bring attention to an item or object. * @param {object} props * @returns {object} * @constructor */ const Badge =...
client/app/components/stack.js
dat2/hanabi-clone-web
import React from 'react' import Card from './card' function makeStyle({ colour, index }) { return ({ // colouring backgroundColor: colour, color: 'black', opacity: 0.8, // positioning zIndex: index, position: 'absolute', top: (index * 20) + 'px', left: 0, right: 0 }) } cl...
components/card/Card.js
jasonleibowitz/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { CARD } from '../identifiers.js'; const Card = ({children, className, raised, theme, ...other}) => { const classes = classnames(theme.card, { [theme.raised]: raised...
src/App.js
ororidotcom/react-todo
import React, { Component } from 'react'; import './App.css'; import Title from './components/Title' import Todos from './components/Todos' import Footers from './components/Footer' class App extends Component { render() { return ( <div className="App"> <Title /> <Todos /> <Footers ...
lib/js/Spacer.js
travelbird/react-native-navigation
import React from 'react'; import PropTypes from 'prop-types'; import { DeviceEventEmitter, View, LayoutAnimation, } from 'react-native'; class Spacer extends React.Component { constructor(props, context) { super(props, context); this.state = { height: context.nativeNavigationInitialBarHeight || ...
src/prisonBreak/Map.js
link1900/linkin-games
// @flow import React from 'react'; import { Layer, Rect, Stage, Group, Line } from 'react-konva'; import './commandLine.css'; export type CellBorder = { show: boolean, color: string }; export type Cell = { x: number, y: number, size: number, show: boolean, borderTop: CellBorder, borde...
src/message.js
Rakshay/InfiniteScroller
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import Swipeable from 'react-swipeable'; import classnames from 'classnames'; import PropTypes from 'prop-types'; /** * This react component renders the message to the user * @class */ class Message extends React.Component { ...
app/javascript/mastodon/features/standalone/public_timeline/index.js
honpya/taketodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshPublicTimeline, expandPublicTimeline, } from '../../../actions/timelines'; import Column from '../../../components/column...
src/client/AppConnector.js
terebentina/mongo-manager
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchDatabasesIfNeeded, hideMessage } from './actions'; import App from './App'; function AppConnector(props) { return <App {...props} />; } function mapStateToProps(state) { return { modalTo...
frontend/react/components/BlockGrid.js
Dishant15/TechIntrest
import React from 'react'; import $ from 'jquery'; import _ from 'lodash'; import Block from './Block'; export default class BlockGrid extends React.Component { constructor() { super(); this.setDefaults(); this.setContainerWidth = this.setContainerWidth.bind(this); this.handleWindowResize = this.handleWind...
src/website/app/demos/Grid/Grid/propsComment.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; export default ( <div> <p> In addition to the props above, Grid also accepts all props for{' '} <a href="/components/box">Box</a>. </p> <p> <em>Undocumented properties will be applied to the root element.</em> </p> </div> );
ki1st-xtqb/src/main/webapp/front/app/components/Footer.js
chosenki/chosenki-2016
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> 展示: {" "} <FilterLink filter="SHOW_ALL"> 全部 </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> 活跃的 </FilterLink> {", "} <FilterLink filter="SHOW_COMPLETED"> ...
lib/component/treeView.js
UniQLab/TreeView
import _ from 'lodash'; import React from 'react'; import BaseView from './baseView'; class TreeView extends BaseView { constructor(props) { super(props); } _onBind() { this._onDraw = this._onDraw.bind(this); this._onViewChanged = this._onViewChanged.bind(this); } _onSetup() { return { store: this.pr...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
tests/react/useRef_hook.js
facebook/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} class Bar extends React.Component<{}, void> {} { const stringValue: {current: string} = React.useRef("abc"); // Ok const numberValue: {current: number} = React.useRef(123); // Ok const booleanValue: {current: boolean} = React.us...
src/svg-icons/device/access-time.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessTime = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1...
app/containers/App.js
desktop-assistant/desktop-assistant
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; import AutoUpdate from '../components/AutoUpdate'; import styles from './App.css'; export default class App extends Component { props: { children: Children }; render() { return ( <div className={styles.app}>...
src/components/organisms/delete-button.js
raulfdm/cv
import React from 'react'; import { faTrash } from '@fortawesome/free-solid-svg-icons'; import ButtonIcon from 'molecules/button-icon'; const DeleteButton = props => { return <ButtonIcon icon={faTrash} type="button" variant="danger" {...props} />; }; export default DeleteButton;
src/components/Crawler/Jobs/index.js
saitodisse/scrap-cerebral-2
import React, { Component } from 'react'; import { connect } from 'cerebral/react'; import jobs_list from '../../../computed/jobs_list'; import JobItem from './JobItem/index'; import BigLoading from '../../BigLoading/index'; import { Table, Segment, Button } from 'semantic-ui-react'; require('./index.css'); export def...
packages/docs/components/Examples/video/SimpleVideoEditor/index.js
nikgraf/draft-js-plugin-editor
import React, { Component } from 'react'; import { EditorState, convertFromRaw } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createVideoPlugin from '@draft-js-plugins/video'; import editorStyles from './editorStyles.module.css'; const videoPlugin = createVideoPlugin(); const { types } = vide...
app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingText from 'flavours/glitch/components/setting_text'; import SettingToggle from 'flavours/glitch/features/not...
components/Knapsack.js
juhojo/WLO
import React, { Component } from 'react'; import { KnapsackTools } from './Tools/Tools.js'; import { KnapsackResultList } from './ResultList/ResultList.js'; import data from '../js/data.js'; import { knapsack, manda, valueToWeight } from '../js/algorithms.js'; export default class Knapsack extends Component { const...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
liamhu/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(id = 0) { return [ { id: id + 1, name...
node_modules/@material-ui/core/es/BottomNavigation/BottomNavigation.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import warning from 'warning'; import withStyles from '../styles/withStyles'; ex...
src/views/SecretView.js
AndrewTHuang/fear-the-repo
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import counterActions from 'actions/counter'; // import { RaisedButton } from 'material-ui/lib'; const mapStateToProps = (state) => ({ counter: state.counter, routerState: state.router }); const mapDispatc...
src/Manager.js
LabPulse/walmart-labs
import React, { Component } from 'react'; import Calendar from './CalendarManager.js'; import List from './ListManager.js'; class Manager extends Component { render() { const subs = [ { start: '2017-08-10', title: 'Tide', frequency: 5 ...
spec/components/github_icon.js
soyjavi/react-toolbox
import React from 'react'; const GithubIcon = () => ( <svg viewBox="0 0 284 277"> <g><path d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.724287 C106.726656,266.340838...
components/animals/ustricnikVelky.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/ustricnikVelky/01....
node_modules/eslint-config-airbnb/test/test-react-order.js
chuntielin/yeoman_react_fullstack
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import baseConfig from '../base'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: {indent: 0}, }); function...
components/input/demo/index.js
TDFE/td-ui
/** * @Author: GinaLu <ljq> * @Date: 2017-05-16 14:49:49 * @Last modified by: ljq * @Last modified time: 2017-05-16 18:33:09 */ /* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; const MOUNT_NODE = document.getElementById('app'); let render = () => { /* eslint-disable no-un...
step7-flux/node_modules/react-router/modules/Redirect.js
jintoppy/react-training
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should ...
src/Value.js
cmpis/react-select
import React from 'react'; import classNames from 'classnames'; const Value = React.createClass({ displayName: 'Value', propTypes: { children: React.PropTypes.node, disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect id: React.PropTypes.string, // Unique id ...
src/components/student_test.js
conniechu929/eSparkStudentData
import _ from 'lodash'; import React, { Component } from 'react'; import { csv } from 'd3-request'; import * as d3 from "d3"; import { csvParseRows } from 'd3-dsv'; import { CSVLink, CSVDownload } from 'react-csv'; class Node { constructor(val, priority) { this.value = val; this.priority = priority; ...
client/App.js
Danielbook/liftinglog
/** * Root Component */ import React from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import { browserHistory, Router } from 'react-router'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default function App(props) { retur...
docs/client/routes.js
draft-js-plugins/draft-js-plugins-v1
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/wrappers/App'; import Page from './components/wrappers/Page'; import NotFound from './components/pages/NotFound'; import Home from './components/pages/Home'; import Hashtag from './components/pages/Hashtag'; impo...
src/containers/SignupContainer.js
ello/webapp
import React from 'react' import { MainView } from '../components/views/MainView' import RegistrationRequestForm from '../components/forms/RegistrationRequestForm' export default props => (<MainView className="Authentication"> <div className="AuthenticationFormDialog"> <RegistrationRequestForm {...props} /...
src/components/Old.js
ltoddy/ltoddy.github.io
import React from 'react' import ReactTooltip from 'react-tooltip' import old from '../../assets/old.png' import css from './Old.css' class Old extends React.Component { constructor() { super() } shouldComponentUpdate() { return false } render() { return ( <div> <div className={...
packages/material-ui-icons/src/Storage.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z" /></g> , 'Storage');
src/components/charts/charts/table/index.js
noahehall/udacity-corporate-dashboard
import React from 'react'; import Thead from './thead.js'; import Tbody from './tbody.js'; export const Table = ({ className, data, id, filterable, sortable }) => { let thisClassName = className ? className : ''; if (sortable) thisClassName += ' sortable'; return ( <table className={thisClassName} i...
step7-flux/app/js/components/Main.js
jintoppy/react-training
import React from 'react'; import {Link} from 'react-router'; import UserCounter from './UserCounter'; class Main extends React.Component { constructor(props) { super(props); this.state = { name: "guest" }; } render() { return ( <div className="ma...
src/ctl/ui/src/components/RollupRulesTable.js
m3db/m3db
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
techCurriculum/ui/solutions/4.5/src/App.js
tadas412/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 in writ...
src/components/common/icons/X.js
goodjoblife/GoodJobShare
import React from 'react'; /* eslint-disable */ const X = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <path d="M145.29003,2.7097656 C143.570709,0.975547058 141.229771,1.49332653e-16 138.787634,0 C136.345497,-1.50064675e-16 134.004559,0.975547058 132.285237,2.7097656 L74,60.990601...
js/App/Components/TabViews/SubViews/ButtonLoadingIndicator.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 3 of the License, or *...
packages/wix-style-react/src/StyledNestableList/StyledNestableList.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { classes as theme } from './NestableListTheme.st.css'; import { classes, st } from './StyledNestableList.st.css'; import NestableList from '../NestableList'; import TableListItem from '../TableListItem'; import Box from '../Box'; import { Arrow } ...
modules/Route.js
yongxu/react-router
import React from 'react'; import warning from 'warning'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; var { string, bool, func, object } = React.PropTypes; /** * A <Route> is used to declare which components are r...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
liuzwei/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
UI/Buttons/ButtonPlus.js
Datasilk/Dedicate
import React from 'react'; import { View, TouchableOpacity} from 'react-native'; import {Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class ButtonPlus extends React.Component { constructor(props){ super(props); } render...
src/renderer/components/dialogs/Error.js
digidem/ecuador-map-editor
import React from 'react' import TextareaAutosize from '@material-ui/core/TextareaAutosize' import Dialog from '@material-ui/core/Dialog' import DialogContent from '@material-ui/core/DialogContent' import DialogActions from '@material-ui/core/DialogActions' import DialogTitle from '@material-ui/core/DialogTitle' import...
src/Parser/Paladin/Holy/Modules/Items/Tier21_2set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules/Comb...
frontend/index.js
tahosalodge/camping-guide
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import createHistory from 'history/createBrowserHistory'; import styled from 'styled-components'; import configureStore from './redux/configureStore'; import rou...
src/js/components/icons/base/Waypoint.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/containers/UGTourPage/newsfeedlist.js
perry-ugroop/ugroop-react-dup2
/** * Created by yunzhou on 26/11/2016. */ import React from 'react'; import { connect } from 'react-redux'; // import messages from './messages'; import NewsFeedAccountImg from './NewsFeedAccountImg'; import NewsFeedHead from './NewsFeedHead'; export function NewsFeedList(props) { const tourId = props.tourId; ...
src/client/components/AdminPanel/Venues/Edit/index.js
mweslander/veery
// Imports import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Components import VenueForm from '../../../Base/VenueForm'; import Button from '../../../Base/Button'; // CSS import './index.scss'; // Services import adminVenuesService from '../../../../services/admin/venues'; // Utils im...
src/components/BaseMapList/BaseMapList.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' const BaseMapList = ({baseMaps, onChangeActiveBaseMap}) => { function handleChangeActiveBaseMap(baseMap) { return onChangeActiveBaseMap(baseMap) } return ( <ul className="basemap-list"> { // Checks if baseMaps already exists in state ...
client/App.js
jeojoe/emplist
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet import './App.css'; browserHistory.listen(locati...
example/client.js
UntilNow/meridian
import React from 'react'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import App from './components/app'; import configureStore from './store'; const store = configureStore(); const context = ( <Provider store={store}> <App /> </Provider> ); render(context, document.getElement...
packages/material-ui-icons/src/ImportantDevices.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ImportantDevices = props => <SvgIcon {...props}> <path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2...
src/scenes/Layout/components/Representation/components/Month/components/DayRows/MonthDayCell/MonthDayCell.js
czonios/schedule-maker-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, } from 'semantic-ui-react'; import { Link } from 'react-router-dom' import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { displayEventModal } from '../../../../../../../../.././data/actions...
app/components/Project.js
GongDexing/work-board
/*jshint esversion:6*/ import '../less/NewProject.less'; import React, { Component } from 'react'; import { Modal, Button, Form, Input, DatePicker, Col, Transfer } from 'antd'; import AlertMsg from './AlertMsg'; import { ProjectNameRule, DateRule, TextareaRule } from '../validate/rules'; import { updateProject } from '...
packages/icons/src/md/image/RemoveRedEye.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdRemoveRedEye(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 9c10.01 0 18.54 6.22 22 15-3.46 8.78-12 15-22 15S5.46 32.78 2 24C5.46 15.22 14 9 24 9zm0 25c5.52 0 10-4.48 10-10s-4.48-10-10-10-10 4.48-10 1...
src/PageHeader.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
src/pages/uncategorized/Floodfill/Floodfill.js
hyy1115/react-redux-webpack2
import React from 'react' class Floodfill extends React.Component { render() { return ( <div> Floodfill </div> ) } } export default Floodfill
node_modules/react-bootstrap/es/MediaHeading.js
Crisa221/Lista-Giocatori
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 ...
packages/wix-style-react/src/ColorPicker/ColorPickerConverterHex.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Input from '../Input'; import { st, classes } from './ColorPickerConverter.st.css'; import ColorPickerConverterViewer from './ColorPickerConverterViewer'; import { safeColor, getHexOrEmpty } from './utils'; export default class ColorPickerConverter...
app/packs/src/components/generic/TableRecord.js
ComPlat/chemotion_ELN
/* eslint-disable no-empty */ /* eslint-disable react/forbid-prop-types */ import PropTypes from 'prop-types'; import React from 'react'; import Numeral from 'numeral'; import GenericSubField from '../models/GenericSubField'; import { AddRowBtn, DelRowBtn, DnDRowBtn, NullRowBtn } from './GridBtn'; import { ColumnHeader...
examples/todomvc/containers/TodoApp.js
ngokevin/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
containers/medicineList.js
s1hit/react-onsenui-redux-weather-edited
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {List, Button} from 'react-onsenui'; import Medicine from './Medicine'; import * as Actions from '../actions'; const MedicineList = ({medicines, navigator, actions}) => { const changeVisibility = (isVi...
slides/the-speaker/components/Polygon.js
javivelasco/scaffolding-react-apps-slides
import React from 'react'; const Polygon = (props) => ( <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" {...props}> <polygon className="polygon" points="50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25 50,0" fill="#99E2DB"> <animate id="shape01" begin="0;shape02.end + 1s" attributeName="points" dur=...
src/js/containers/SearchBar.js
nicksp/react-geo-weather
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; // Context bindings thi...
packages/@lyra/form-builder/src/inputs/ObjectInput/ObjectInput.js
VegaPublish/vega-studio
//@flow import PropTypes from 'prop-types' import React from 'react' import FormBuilderPropTypes from '../../FormBuilderPropTypes' import Field from './Field' import Fieldset from 'part:@lyra/components/fieldsets/default' import PatchEvent, {set, setIfMissing, unset} from '../../PatchEvent' import isEmpty from '../../u...
pkg/users/dialog-utils.js
cockpit-project/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
scripts/intl-helper.js
vallacodec/react-scaff
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
react/features/base/components/buttons/QuickActionButton.js
gpolitis/jitsi-meet
// @flow import { makeStyles } from '@material-ui/styles'; import React from 'react'; type Props = { /** * Label used for accessibility. */ accessibilityLabel: string, /** * Additional class name for custom styles. */ className: string, /** * Children of the component. ...
pages/api/text-field.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './text-field.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
client/src/components/Session/withAuthorization.js
stanographer/aloft
import React from 'react'; import { withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import { withFirebase } from '../Firebase'; import AuthUserContext from './context'; import * as ROUTES from '../../constants/routes'; import * as ROLES from '../../constants/roles'; const withAuthorization ...
src/js/components/OwnUser/EditProfileCategory.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './EditProfileCategory.scss'; import FrameCollapsible from "../ui/FrameCollapsible/FrameCollapsible"; export default class EditProfileCategory extends Component { static propTypes = { onToggleCollapse: PropTyp...
modules/lazy/client/components/lazy.client.splitFetchHOC.js
dimitriaguera/playlist-app
/** * Created by Dimitri on 22/10/2017. */ import React, { Component } from 'react'; import debounce from 'lodash/debounce'; function splitFetchHOC(params, fetchActions) { return function(WrappedComponent) { return class splitFetchWrapped extends Component { constructor(props) { super(props); ...
docs/app/Examples/collections/Message/Types/MessageExampleMessage.js
mohammed88/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessage = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </...
tp-2/marisol/src/sovos-reactivo/componentes/new/NewFooter.js
solp/sovos-reactivo-2017
import React from 'react'; class NewFooter extends React.Component{ render(){ return( <div className="post_info"> {this.props.New.date}| Posted by <a href="#">{this.props.New.creator}</a>| <a href="#">{this.props.New.quantityOfComments}</a> </div> ); } } ...
common/containers/ModalNormalContainer/ModalNormalContainer.js
sauleddy/HomePortal
import React from 'react'; import { connect } from 'react-redux'; import ModelNormal from '../../components/Modal'; import { ActionModalNormal } from '../../actions'; export default connect( (state) => ({ title: state['modalNormal'].getIn(['title']), content: state['modalNormal'].getIn(['content']), ...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/CarouselItem.js
OpenKGB/webcode
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/containers/user-list-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Button, AutoComplete ,DatePicker } from 'antd'; import './user-list-container.css'; import UserListTable from '../views/user-list-view.js'; import SearchInput from '../views/SearchInput.js'; import store from '../../store'; import { connect } from 'react-redux'; import { updateUserLi...
client/modules/App/components/Footer/Footer.js
CODEINAE/todoy
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
examples/todos-with-undo/index.js
okmttdhr/redux-with-comment
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import todoApp from './reducers' const store = createStore(todoApp) const rootElement = document.getElementById('root') render( <Provider store={...
src/Main/PlayerSelectionList.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import ReactTooltip from 'react-tooltip'; import SPECS from 'common/SPECS'; import ROLES from 'common/ROLES'; import { getFightId } from 'selectors/url/report'; import { getRep...
javascripts/components/Edit.js
undefinerds/libris
import React, { Component } from 'react'; class Edit extends Component { constructor(props) { super(props); const { book } = this.props; this.state = { title: book.title || '', author: book.author || '', subject: book.subject || '', description: book.description || '', editi...
src/common/components/build-request-row/index.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import { Row, Data } from '../vanilla/table-interactive'; import { BuildStatusColours } from '../../helpers/snap-builds.js'; import BuildStatus from '../build-status'; import * as buildAnnotation from '../../helpers/build_annotation'; const getBuildTrigg...
app/javascript/app/pages/my-climate-watch/my-cw-editor/plugins/side-toolbar-plugin/draft-js-side-toolbar-plugin/components/Toolbar/index.js
Vizzuality/climate-watch
/* eslint-disable */ import React from 'react'; import DraftOffsetKey from 'draft-js/lib/DraftOffsetKey'; export default class Toolbar extends React.Component { state = { position: { transform: 'scale(0)' } }; componentDidMount() { this.props.store.subscribeToItem('editorState', this.onEditorS...
node_modules/react-bootstrap/es/DropdownToggle.js
okristian1/react-info
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 ...
addons/graphql/src/preview.js
jribeiro/storybook
import React from 'react'; import GraphiQL from 'graphiql'; import { fetch } from 'global'; import 'graphiql/graphiql.css'; import FullScreen from './components/FullScreen'; const FETCH_OPTIONS = { method: 'post', headers: { 'Content-Type': 'application/json' }, }; function getDefautlFetcher(url) { return para...
server/sonar-web/src/main/js/components/ui/IssueTypeIcon.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...
app/containers/AdminNouvelleCommande/components/NouvelleCommandeDistribution.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DatePicker from 'material-ui/DatePicker'; import TimePicker from 'material-ui/TimePicker'; import RaisedButton from 'material-ui/RaisedButton'; import IconButton from 'material-ui/IconButton'; import ClearIcon from 'material-ui/svg-ico...
src/svg-icons/navigation/arrow-drop-up.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropUp = (props) => ( <SvgIcon {...props}> <path d="M7 14l5-5 5 5z"/> </SvgIcon> ); NavigationArrowDropUp = pure(NavigationArrowDropUp); NavigationArrowDropUp.displayName = 'NavigationArrowDrop...
client/index.js
itaywaisman/blog
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import configureStore from './store'; const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getElementById('root') render( <AppContainer> <App stor...
src/interface/others/Cooldown.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatThousands, formatNumber, formatPercentage, formatDuration } from 'common/format'; import { TooltipElement } from 'common/Tooltip'; ...
src/svg-icons/image/photo-library.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>...