path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/scenes/home/informationForm/formComponents/militaryInfo.js | miaket/operationcode_frontend | import React, { Component } from 'react';
import { Line } from 'rc-progress';
import Form from 'shared/components/form/form';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { MILSTATUS, BRANCH, BRANCH_PROMPT } from 'shared/constants/status';
import styl... |
docs/components/Docs/Content/index.js | enjoylife/storybook | import React from 'react';
import PropTypes from 'prop-types';
import 'highlight.js/styles/github-gist.css';
import Highlight from '../../Highlight';
import './style.css';
const DocsContent = ({ title, content, editUrl }) =>
<div id="docs-content">
<div className="content">
<h2 className="title">{title}</... |
archimate-frontend/src/main/javascript/components/view/nodes/model_b/businessFunction.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='businessFunction';
export class BusinessFunctionWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_b businessFunction'; }
}
|
admin/client/App/shared/CreateForm.js | Adam14Four/keystone | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
step7-unittest/node_modules/react-router/modules/IndexRedirect.js | jintoppy/react-training | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createCla... |
src/components/keyshortcuts/TableFilterContextShortcuts.js | metasfresh/metasfresh-webui-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { updateKeymap, updateHotkeys } from '../../actions/AppActions';
import { Shortcut } from '../keyshortcuts';
class TableFilterContextShortcuts extends Component {
constructor() {
super();
... |
examples/js/components/GettingStarted.js | powerhome/react-bootstrap-table | import React from 'react';
class GettingStarted extends React.Component {
render() {
return (
<div>
<h1>Getting started</h1>
<code>npm i react-bootstrap-table --save</code>
</div>
);
}
}
export default GettingStarted;
|
src/svg-icons/notification/personal-video.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
src/routes/error/ErrorPage.js | langpavel/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/svg-icons/action/perm-phone-msg.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
src/svg-icons/communication/speaker-phone.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
client/src/components/OptionsetField/OptionsetField.js | silverstripe/silverstripe-admin | import React, { Component } from 'react';
import OptionField from 'components/OptionsetField/OptionField';
import fieldHolder from 'components/FieldHolder/FieldHolder';
import PropTypes from 'prop-types';
class OptionsetField extends Component {
constructor(props) {
super(props);
this.getItemKey = this.getI... |
frontend/src/MovieFile/Edit/FileEditModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Bu... |
src/interface/icons/Scroll.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=scroll&i=1219367
// Created by jngll from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path d="M80.64,11.87l-.52,0-.26,0H30.64A10.24,10.24,0,0,0,20.4... |
packages/icons/src/md/alert/Error.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdError(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 4c11.04 0 20 8.95 20 20s-8.96 20-20 20S4 35.05 4 24 12.96 4 24 4zm2 30v-4h-4v4h4zm0-8V14h-4v12h4z" />
</IconBase>
);
}
export default MdErro... |
examples/dyno/app.js | orokos/react-tabs | import React from 'react';
import Modal from 'react-modal';
import { Tab, Tabs, TabList, TabPanel } from '../../lib/main';
Modal.setAppElement(document.getElementById('example'));
Modal.injectCSS();
const App = React.createClass({
getInitialState() {
return {
isModalOpen: false,
tabs: [
{lab... |
src/containers/Home/Home.js | leifdalan/vega-june | import React, { Component } from 'react';
import throttle from 'lodash/throttle';
import { Post } from 'components';
import Infinite from 'react-infinite';
import { connect } from 'react-redux';
import { asyncConnect } from 'redux-async-connect';
import Helmet from 'react-helmet';
import reduce from 'lodash/reduce';
im... |
components/common/nav.js | dbow/89-steps | import React from 'react';
import { NavLink } from 'fluxible-router';
if (process.env.BROWSER) {
require('./nav.scss');
}
class Nav extends React.Component {
render() {
const selected = this.props.selected;
const links = this.props.links;
const linkHTML = Object.keys(links).map((name) => {
va... |
project/src/components/App/App.js | boldr/boldr | /* eslint-disable no-unused-vars, import/max-dependencies */
/* @flow */
import React from 'react';
import type { Element } from 'react';
import Helmet from 'react-helmet';
// internal
import '../../styles/main.scss';
// Start routes
import boldrNotificationsFactory, { Notif } from '../Notifications';
import Root from ... |
react_components/BreakView.js | AdeleD/react-paginate | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
const BreakView = (props) => {
const {
breakLabel,
breakClassName,
breakLinkClassName,
breakHandler,
getEventListener,
} = props;
const className = breakClassName || 'break';
return (
<li className={className... |
voting-client/src/components/Voting.js | mrwizard82d1/full-stack-redux-tutorial | /**
* Created by larryjones on 6/17/17.
*/
import React from 'react';
import { connect } from 'react-redux';
import Vote from './Vote';
import Winner from './Winner';
export function Voting(props) {
return (
<div>
{
props.winner ?
<Winner winner={props.winner} /> :
<Vote {...prop... |
src/server.js | keshavnandan/react-starter-kit | /*! 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 './stores/AppStore';
import db from './core/Database';
imp... |
src/svg-icons/image/crop-3-2.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop32 = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/>
</SvgIcon>
);
ImageCrop32 = pure(ImageCrop32);
ImageCro... |
examples/website/src/components/LoadingIndicator.js | w-y/ecma262-jison | import PropTypes from 'prop-types';
import React from 'react';
export default function LoadingIndicator(props) {
return props.visible ?
<div
className="loadingIndicator cover">
<div>
<i className="fa fa-lg fa-spinner fa-pulse"></i>
</div>
</div> :
null;
}
LoadingIndicator.propT... |
app/components/Console.js | shaunstanislaus/fil | import _ from 'underscore';
import React from 'react';
import OutputLine from 'components/OutputLine';
import ConsoleToolbar from 'components/ConsoleToolbar';
import ErrorLine from 'components/ErrorLine';
export default class Console extends React.Component {
renderLine(line, i) {
return <OutputLine
... |
client/src/components/PasswordForget/index.js | stanographer/aloft | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { withFirebase } from '../Firebase';
import * as ROUTES from '../../constants/routes';
const PasswordForgetPage = () => (
<div>
<h1>PasswordForget</h1>
<PasswordForgetForm />
</div>
);
const INITIAL_STATE = {
emai... |
apps/marketplace/components/BuyerATM/BuyerATMIntroductionStage.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Form } from 'react-redux-form'
import AUheadings from '@gov.au/headings/lib/js/react.js'
import { AUcallout } from '@gov.au/callout/lib/js/react.js'
import { rootPath } from 'marketplace/routes'
import styles from './BuyerATMIntroductionStage.scss'
... |
app/javascript/mastodon/features/notifications/components/column_settings.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
fields/types/geopoint/GeoPointField.js | naustudio/keystone | import Field from '../Field';
import React from 'react';
import {
FormInput,
Grid,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = ... |
src/components/demo/DemoMenuIntroduction.js | cismet/wupp-geoportal3-powerboats | import React from 'react';
import { Link } from 'react-scroll';
const DemoMenuIntroduction = ({ uiStateActions }) => {
return (
<span>
Über{' '}
<Link
to="settings"
containerId="myMenu"
smooth={true}
delay={100}
onClick={() => uiStateActions.setApplicationMenuActiveKey('settings')}
>
... |
cerberus-dashboard/src/components/AddButton/AddButton.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/util/localizers.js | thuringia/react-widgets | import invariant from 'invariant';
import { has } from './_';
import React from 'react';
const localePropType = React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.func
])
const REQUIRED_NUMBER_FORMATS = [ 'default' ];
const REQUIRED_DATE_FORMATS = [
'default',
'date... |
client/containers/Index/index.js | juliandavidmr/FE-Visibilidad | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import IndexComponent from '../../components/Index';
import * as SemilleroActions from '../../actions/semilleros';
import * as NoticiasActions from '../../actions/noticia';
import './style.css';
... |
ui/src/components/table/row/row.js | gchatterjee/cit-gened-finder | import React from 'react'
import PropTypes from 'prop-types'
import { format } from '../table.action'
export default class Row extends React.Component {
render() {
const { row, order, columns } = this.props
return (
<tr key={row}>
{order.map(index => {
const column = columns[index]
... |
src/js/pages/GiftDetailsPage.js | vbence86/giftassistant-client | import React, { Component } from 'react';
import { StyleSheet, View, Linking } from 'react-native';
import { Button, Text } from 'react-native-elements';
import Favourites from '../helpers/Favourites';
import GiftDetailsView from '../components/GiftDetailsView';
const styles = StyleSheet.create({
container: {
ba... |
src/components/FileDetail.js | msalem07/LectureRecorder | import React from 'react';
import { Image, Text, View, Linking } from 'react-native';
import Card from './common/Card';
import CardSection from './common/CardSection';
import Button from './common/Button';
export default function FileDetail(props){
const { title, artist, thumbnail_image, image, url } = props.file... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | lolaent/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 from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
Pioneer/Setting.js | Hank860502/Pioneer | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Navigator,
TouchableOpacity,
TextInput,
Picker,
} from 'react-native';
class Setting extends Component {
constructor(props){
super(props);
this.state = {
category: "",
radius: "",
newPlace: ... |
app/javascript/mastodon/components/column_back_button.js | abcang/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
import { createPortal } from 'react-dom';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.objec... |
src/client/app/page_list_sidebar/sub_components/AutoSuggestPage.js | raghuveerkancherla/yata | import Autosuggest from 'react-autosuggest';
import React from 'react';
import dateUtils from '../../utils/dateUtils';
import _ from 'lodash';
import AutoSuggestionStyles from './autosugestionstyles.less';
const AutoSuggestPageInput = React.createClass({
propTypes: {
customPages: React.PropTypes.array,
},
g... |
examples/todomvc/index.js | koistya/redux | import 'babel/polyfill';
import React from 'react';
import Root from './containers/Root';
import 'todomvc-app-css/index.css';
React.render(
<Root />,
document.getElementById('root')
);
|
RNTester/js/ActivityIndicatorExample.js | mironiasty/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
client/src/AlertDialog.js | jghibiki/Doc | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import D... |
app/javascript/mastodon/features/compose/components/upload_form.js | pinfort/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
import SensitiveButtonC... |
src/components/ListItem.js | leonardoelias/social-media-profile | import React from 'react';
import { Box, Media, MediaLeft, MediaContent, Content, Image } from 're-bulma';
const ListItem = ({ user, picture, text }) => {
return (
<Box>
<Media>
<MediaLeft>
<Image src={ picture } size='is48X48' />
</MediaLeft>
<MediaContent>
<Co... |
src/widgets/PrescriptionCartRow.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import currency from '../localization/currency';
import ... |
src/js/components/search/app-search.js | TheFixers/node-honeypot-client | /**
* Filename: 'app-search.js'
* Author: JMW <rabbitfighter@cryptolab.net>
* App search area component
*/
import React from 'react'
import AppStore from '../../stores/app-store'
import AppActions from '../../actions/app-actions'
import StoreWatchMixin from '../../mixins/StoreWatchMixin'
import SearchTypes from '..... |
dev/react-subjects/subjects/JSONTable/solution.js | AlanWarren/dotfiles | ////////////////////////////////////////////////////////////////////////////////
// Requirements
//
// - fetch the src with getJSON((error, payload) => {})
// - render the content of the th's from the field names (hint: use
// the field names from the first record)
// - render each result as a row in <tbody>
import '... |
mobile/src/index.js | lnmx/goread | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'material-design-lite/dist/material.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/communication/present-to-all.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
Realization/frontend/czechidm-core/src/components/basic/Loading/Loading.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import $ from 'jquery';
import ReactResizeDetector from 'react-resize-detector';
//
import { withStyles } from '@material-ui/core/styles';
//
import AbstractComponent from '../AbstractComponent/AbstractComponent';
import... |
docs/src/sections/LabelSection.js | egauci/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function LabelSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/utils/InterfaceSelection.js | guardicore/monkey | import React from 'react';
import InlineSelection from '../../../ui-components/inline-selection/InlineSelection';
import LocalManualRunOptions from '../RunManually/LocalManualRunOptions';
function InterfaceSelection(props) {
return InlineSelection(getContents, props, LocalManualRunOptions)
}
const getContents = (pr... |
examples/with-segment-analytics/components/Page.js | BlancheXu/test | import React from 'react'
import Router from 'next/router'
import Header from './Header'
// Track client-side page views with Segment
Router.events.on('routeChangeComplete', url => {
window.analytics.page(url)
})
const Page = ({ children }) => (
<div>
<Header />
{children}
</div>
)
export default Page
|
src/fields/select.js | fermuch/simple-react-form-bootstrap | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
// import TextField from 'material-ui/TextField';
import {FormControl, FormGroup, ControlLabel, HelpBlock} from 'react-bootstrap';
const propTypes = {
/**
* The options for the select input. Each item must have label and va... |
src/app/internal/pcard_compliance/PCardDaysTable.js | cityofasheville/simplicity2 | import React from 'react';
import AccessibleReactTable from 'accessible-react-table';
import expandingRows from '../../../shared/react_table_hoc/ExpandingRows';
const mainDataColumns = [
{
Header: 'Division',
accessor: 'name',
width: 250,
}, {
Header: '0-30',
accessor: 'under30',
width: 80,... |
react-chat/src/components/ChatBox/ChatBox.js | renesansz/presentations | import React from 'react';
import ChatBoxControls from './ChatBoxControls/ChatBoxControls';
import ChatBoxCard from './ChatBoxCard/ChatBoxCard';
import './ChatBox.css';
class ChatBox extends React.Component {
render() {
const messages = this.props.messages.map((message) =>
<ChatBoxCard key={ ... |
src/svg-icons/action/perm-device-information.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
packages/components/src/HeaderBar/HeaderBar.stories.js | Talend/ui | import React from 'react';
import { action } from '@storybook/addon-actions';
import { makeDecorator } from '@storybook/addons';
import Immutable from 'immutable'; // eslint-disable-line import/no-extraneous-dependencies
import Icon from '../Icon';
import HeaderBar from './HeaderBar.component';
import AppSwitcher fro... |
src/components/form.js | dbyers24/randomize-students | import React from 'react'
class Form extends React.Component {
constructor(props) {
super(props);
this.state = {
output: 'student output will appear here',
studentInput : '',
}
}
handleSubmit(e) {
console.log('Hit HandleSubmit, ', )
}
handleAddStudent(e) {
console.log('... |
src/Administrator.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import axios from 'axios';
import { get } from 'lodash';
import IdManager from './helpers/IdManager';
import server from './helpers/Server';
import Button from './helpers/Button';
import Spinner from './helpers/Spinner';
import MessageIcons from './helpers/... |
src/interface/icons/UpArrow.js | fyruna/WoWAnalyzer | import React from 'react';
const Icon = ({ ...other }) => (
<svg viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" className="icon" {...other}><path d="M0 25L25 0l25 25H37.4v25h-25V25H0z" /></svg>
);
export default Icon;
|
Realization/frontend/czechidm-core/src/content/audit/event/EntityStates.js | bcvsolutions/CzechIdMng | import React from 'react';
import {connect} from 'react-redux';
import * as Basic from '../../../components/basic';
import EntityStateTable from './EntityStateTable';
/**
* Audit of entity events state.
*
* @author artem
* @author Radek Tomiška
*/
class EntityStates extends Basic.AbstractContent {
getNavigatio... |
client/result_set.js | golmansax/funnel | import React from 'react';
import FilterList from './filter_list';
import styles from './result_set.css';
import Link from './link';
export default class ResultSet extends React.Component {
constructor(props) {
super(props);
this._renderParentResult = this._renderParentResult.bind(this);
this._renderChil... |
app/components/ToggleOption/index.js | Frai/Events | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
src/galaxy/store/hover.js | ryanwsmith/pm | import React from 'react';
import eventify from 'ngraph.events';
import appEvents from '../service/appEvents.js';
import scene from './scene.js';
import getBaseNodeViewModel from './baseNodeViewModel.js';
export default hoverStore();
function hoverStore() {
var store = {};
eventify(store);
appEvents.nodeHover... |
src/index.js | andreiamlm/ReactVideoPlayer | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar'
import VideoList from './components/video_list'
import VideoDetail from './components/video_detail'
const API_KEY = 'AIzaSyAV7gzA... |
react/features/chat/components/web/ChatPrivacyDialog.js | jitsi/jitsi-meet | /* @flow */
import React from 'react';
import { Dialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { AbstractChatPrivacyDialog, _mapDispatchToProps, _mapStateToProps } from '../AbstractChatPrivacyDialog';
/**
* Implements a com... |
modules/IndexLink.js | mozillo/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/layout/sliderBar/index.js | SmiletoSUN/react-redux-demo | import React from 'react';
import { Layout, Menu, Icon } from 'antd';
import { Link } from 'react-router-dom';
const { Sider } = Layout;
const { SubMenu } = Menu;
export default class SiderCustomer extends React.Component {
state = {
collapsed: false,
mode: 'inline',
openKey: 'key',
selectedKey: '',
... |
src/svg-icons/av/video-label.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLabel = (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 13H3V5h18v11z"/>
</SvgIcon>
);
AvVideoLabel = pure(AvVideoLabel);
AvVid... |
demo/src/components/button-views/flat-button-view.js | tuantle/hypertoxin | 'use strict'; // eslint-disable-line
import { Ht } from 'hypertoxin';
import React from 'react';
import ReactNative from 'react-native'; // eslint-disable-line
import PropTypes from 'prop-types';
import DefaultTheme from '../../themes/default-theme';
const {
RowLayout,
ColumnLayout,
HeadlineText,
... |
clients/components/ProSettings/ProFreeTrial/ProFreeTrial.js | Desertsnowman/Caldera-Forms | import React from 'react';
import propTypes from 'prop-types';
import classNames from 'classnames';
import {Button} from 'react';
/**
* Create the ProFreeTrial UI
* @param {Object} props
* @return {*}
* @constructor
*/
export const ProFreeTrial = (props) => {
const documentationHref = `https://calderaforms.com/d... |
src/packages/@ncigdc/components/Modals/ControlledAccess/CAIconMessage.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
const CAIconMessage = ({
children,
faClass,
}) => (
<span>
<i className={`fa ${faClass}`} style={{ color: '#773388' }} />
{' '}
{children}
</span>
);
export default CAIconMessage;
|
app/javascript/mastodon/features/compose/components/autosuggest_account.js | Arukas/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
src/svg-icons/av/playlist-add-check.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
src/components/PaperComponents/sections/Work.js | tuomotlaine/portfolio | import React, { Component } from 'react';
import TypeWriter from '../../TypeWriter';
import RenderComputer from '../../RenderComputer';
import Prompt from '../Prompt';
class Work extends Component {
constructor(props){
super(props);
this.state = {
renderComputerCounter: 0
}
}
renderComputer()... |
src/svg-icons/editor/format-shapes.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatShapes = (props) => (
<SvgIcon {...props}>
<path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-... |
.core/app/routes.js | suranartnc/graphql-blogs-app | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from 'core/app/pages/App'
import Homepage from 'core/app/pages/Homepage'
import ErrorPage from 'core/app/pages/ErrorPage'
import getCustomRoutes from 'app/routes'
export default function getRoutes (store = null) {
return (
<R... |
src/client/moderator.js | davidbstein/moderator | import React from 'react'
import {connect} from 'react-redux'
import Question from './client-views/question'
import Event from './client-views/event'
import Org from './client-views/org'
export default connect(
storeState => storeState
)(
class Moderator extends React.Component {
render() {
switch (this.... |
web/src/js/components/General/withUser.js | gladly-team/tab | import React from 'react'
import { onAuthStateChanged } from 'js/authentication/user'
import {
createAnonymousUserIfPossible,
redirectToAuthIfNeeded,
} from 'js/authentication/helpers'
import logger from 'js/utils/logger'
import { makePromiseCancelable } from 'js/utils/utils'
import { SEARCH_APP, TAB_APP } from 'js... |
src/images/Icons/bag.js | sourabh-garg/react-starter-kit | import React from 'react';
export default function bag(props) {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enableBackground="new 0 0 48 48" xmlSpace="preserve" {...props}>
<g transfo... |
src/svg-icons/notification/ondemand-video.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIc... |
pages/index.js | whatever555/countries | import React, { Component } from 'react';
import dynamic from 'next/dynamic';
import HomeScreen from '../components/HomeScreen';
import data from '../static/json/data';
import info from '../static/json/info';
import { urlBase64ToUint8Array, makeid } from '../helpers/utils';
import Timer from '../components/Timer';
impo... |
docs/app/Examples/elements/Header/Variations/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const HeaderVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compone... |
src/svg-icons/alert/warning.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
exp... |
examples/todos/src/components/TodoList.js | DreamAndDead/redux-copier | import React from 'react'
import PropTypes from 'prop-types'
import Todo from './Todo'
const TodoList = ({ todos, onTodoClick }) => (
<ul>
{todos.map(todo =>
<Todo
key={todo.id}
{...todo}
onClick={() => onTodoClick(todo.id)}
/>
)}
</ul>
)
TodoList.propTypes = {
todos:... |
fields/types/number/NumberFilter.js | dvdcastro/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' ... |
client/src/App.js | kaushiksahoo2000/react-apollo-graphql-rethinkdb-starter | import React, { Component } from 'react';
import {
BrowserRouter,
Link,
Route,
Switch,
} from 'react-router-dom';
import './App.css';
import PeopleList from './components/PeopleList'
import NotFound from './components/NotFound';
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
toIdValue,
... |
docs/app/Examples/collections/Menu/States/MenuExampleDisabled.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Menu } from 'semantic-ui-react'
const MenuExampleDisabled = () => {
return (
<Menu compact>
<Menu.Item disabled>
Link
</Menu.Item>
</Menu>
)
}
export default MenuExampleDisabled
|
docs/index.js | tiseny/rt-tree | import React from 'react';
import { render } from 'react-dom';
import TreeExample from './src/TreeExample';
import TreeSelectExample from './src/TreeSelectExample';
import '../src/less/rt-select.less'
import './app.less'
class App extends React.Component {
render() {
return (
<main className="main">
<sec... |
src/svg-icons/maps/streetview.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
app/javascript/mastodon/components/status_content.js | hyuki0000/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permalink';
import classnames from 'classnames';
export default class StatusContent extends ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/phone-locked.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationPhoneLocked = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 ... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | tsdl2013/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import GroupStore from 'stores/GroupStore';
import InviteUserActions from 'actions/InviteUserA... |
components/Tabs/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { withState } from 'recompose'
import { storiesOf } from '@kadira/storybook'
import Tabs from './'
const items = [
{
icon: 'fa-th-large',
label: 'Grid',
},
{
icon: 'fa-table',
label: 'Table',
},
{
icon: 'fa-list',
label: 'List',
},
]
const... |
NavBar.js | harish2704/react-native-simple-redux-router | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
/**
* NavBar
*
* NavBar component
* Can have any no of childrens also
*
* @param {Style} style - Style of container View Component
* @param {Component} t... |
packages/material-ui-icons/src/Settings.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Settings = props =>
<SvgIcon {...props}>
<path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38... |
src/progress-bar/index.js | aruberto/react-foundation-components | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import cxBinder from 'classnames/bind';
import includes from 'lodash/includes';
import { COMPONENT_COLORS } from '../util/constants';
import styles from './_styles.scss';
const cxStyles = cxBinder.bind(styles);
export const P... |
src/ListItem/ListItem.js | react-fabric/react-fabric | import React from 'react'
import elementType from 'react-prop-types/lib/elementType'
import cx from 'classnames'
import isFunction from 'lodash.isfunction'
import ListItemAction from './ListItemAction.js'
import fabricComponent from '../fabricComponent'
import style from './ListItem.scss'
const handleSelectionTarget... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.