path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
envkey-react/src/containers/app_collaborators_container.js | envkey/envkey-app | import React from 'react'
import { connect } from 'react-redux'
import h from "lib/ui/hyperscript_with_helpers"
import R from 'ramda'
import moment from 'moment'
import { getColumnsFlattened } from "lib/assoc/helpers"
import { getIsOnboarding, getDecryptedAll, getInvitingUser, getGeneratedInviteLink, getIsDemo } from '... |
examples/universal-counter/src/server/index.js | jas-chen/redux-core | import express from 'express';
import path from 'path';
import { createStore } from 'redux-core';
import { reducer, applyRxMiddleware } from '../shared';
import getIntentStream from './utils/getIntentStream';
import render from './utils/render';
import Counter from '../shared/view/components/Counter';
import React from... |
docs/src/components/Layout/Layout.js | bmatthews/haze-lea | /**
* 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-... |
packages/@sanity/studio-hints/src/components/LinksList.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import {Card, Text, Stack, Flex, Box, Label} from '@sanity/ui'
import {LaunchIcon} from '@sanity/icons'
import HintCard from './HintCard'
function CardLinks(props) {
const {type, links, title, repoId} = props
if (!links) {
return null
}
if (type... |
src/app/component/form-row/form-row.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
const FormRow = ({classNames, layout, children}) => {
const mappedChildren = React.Children.map(children, child => (
<div className="FormRow__column">{child}</div>
))
... |
ajax/libs/recompose/0.20.1/Recompose.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
app/src/components/Project/index.js | AlexandreBourdeaudhui/abourdeaudhui.fr | /*
* Package Import
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { Link } from 'react-scroll';
/*
* Local Import
*/
import Description from 'src/components/Description';
import Screen from './Screen';
/*
* Component
*/
clas... |
react/Autosuggest/Autosuggest.js | seek-oss/seek-style-guide | import styles from './Autosuggest.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ReactAutosuggest from '../private/react-autosuggest';
import IsolatedScroll from 'react-isolated-scroll';
import omit from 'lodash/omit';
import TextField fr... |
ui/src/frontend/component/App.js | Virtustream-OSS/packrat | import React from 'react';
import { Layout, NavDrawer, Panel, Sidebar, Chip, FontIcon, AppBar, Navigation, Button } from 'react-toolbox';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Packrat from './Packrat';
import ServerError from './ServerError';
import Home from './Home';
import P... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | sc4599/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
blueocean-material-icons/src/js/components/svg-icons/action/report-problem.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem.displayName = 'ActionReportProblem';
ActionReportProblem.muiName = 'SvgIcon';
export de... |
client/src/components/Draftail/Tooltip/Tooltip.js | zerolab/wagtail | import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
... |
src/svg-icons/notification/drive-eta.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
client/components/ModalPostman/index.js | YMFE/yapi | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import { Alert, Modal, Row, Col, Icon, Collapse, Input, Tooltip } from 'antd';
import MockList from './MockList.js';
import MethodsList from './MethodsList.js';
import VariablesSelect from './VariablesSelect.js';
import... |
packages/ringcentral-widgets-test/test/unit-test/LogIcon.unit.spec.js | ringcentral/ringcentral-js-widget | import { shallow } from 'enzyme';
import React, { Component } from 'react';
import LogIcon from 'ringcentral-widgets/components/LogIcon';
const setup = (props) => {
const wrapper = shallow(<LogIcon currentLocale="en-US" {...props} />);
return wrapper;
};
describe('Log Icon:', () => {
it('Should display logged b... |
app/javascript/mastodon/features/getting_started/components/announcements.js | dunn/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import Icon f... |
admin/client/App/shared/Popout/PopoutFooter.js | alobodig/keystone | /**
* Render a footer for a popout
*/
import React from 'react';
const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--';
const PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
pri... |
examples/fiber/debugger/src/App.js | aaron-goshine/react | import React, { Component } from 'react';
import Draggable from 'react-draggable';
import ReactNoop from '../../../../build/packages/react-noop-renderer';
import ReactFiberInstrumentation from '../../../../build/packages/react-noop-renderer/lib/ReactFiberInstrumentation';
import Editor from './Editor';
import Fibers fr... |
client/app/components/mainApp.js | dat2/hanabi-clone-web | import React from 'react'
import redux from '../constants/redux'
import { Provider } from 'redux/react'
import { bindActionCreators } from 'redux'
import * as GameActions from '../actions/gameActions'
import App from './app'
class MainApp extends React.Component {
render() {
return (
<Provider redux={re... |
src/index.js | capusta/simplegolf | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import Routes from './routes';
ReactDOM.render(
<Routes history={browserHistory} />,
document.getElementById('root')
);
|
src/components/RoutineTimerListItem.js | snsavage/timer-react | import React, { Component } from 'react';
import { displayTime } from './../utils/displayTime';
export class RoutineTimerListItem extends Component {
handleClick = (event) => {
const { routine, loadCurrentRoutine } = this.props;
loadCurrentRoutine(routine.id);
}
render() {
const { routine } = this.p... |
src/app.js | CiriousJoker/LegacyManager | //import './assets/css/App.css';
import React, { Component } from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
// Animations
//import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
// Components
import MenuBar fro... |
Libraries/Modal/Modal.js | imDangerous/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.
*
* @provides... |
src/components/NotebookListItem/index.js | anibali/showoff | import React from 'react';
import _ from 'lodash';
import { assocIn, merge } from 'icepick';
import { connect } from 'react-redux';
import NotebookListItemView from './NotebookListItemView';
import NotebookListItemEdit from './NotebookListItemEdit';
import complexActionCreators from '../../redux/complexActionCreators'... |
client/src/components/GalleryItem/droppable.js | open-sausages/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
export default function droppable(types) {
const spec = {
drop(props, monitor) {
if (monitor.canDrop()) {
const item = monitor.getItem();
props.onDropFiles(props.item.id, it... |
react-ui/src/components/Location.js | the-oem/happy-hour-power | import React from 'react';
import '../styles/List.css';
import { Link } from 'react-router-dom'
const Location = props => {
const link = props.inTable
? `/detail/${props.location.id}`
: `/new-location`;
return (
<div className="location">
<div className="location-container">
<h2 classNa... |
src/withTheme.js | klarna/higher-order-components | import React from 'react'
import wrapDisplayName from 'recompose/wrapDisplayName'
import { withPropsFromContext } from 'react-context-props'
const withTheme = adapter => Target => {
const WithTheme = withPropsFromContext(['theme'])(({ theme, ...props }) =>
<Target
{...{
...props,
...(theme ... |
app/react-icons/fa/sort-numeric-desc.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSortNumericDesc extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m33 6.5q0-1.5-0.9-2.6t-2.3-1.2q-1.2 0-1.9 0.8t-0.7 2.1 0.8 2.1 2.4 0... |
src/interface/home/ReportHistory/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Trans } from '@lingui/macro';
import makeCharacterPageUrl from 'common/makeCharacterPageUrl';
import { makePlainUrl } from 'interface/common/makeAnalyzerUrl';
import REPORT_HISTORY_TYPES from 'interface/hom... |
src/svg-icons/action/g-translate.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... |
src/js/components/n-text-area.js | bradwoo8621/parrot2 | import React from 'react'
import ReactDOM from 'react-dom'
import jQuery from 'jquery'
import classnames from 'classnames'
let $ = jQuery;
import {Envs} from '../envs'
import {NComponent} from './n-component'
class NTextArea extends NComponent {
// lifecycle
postDidUpdate() {
if (this.getComponentText() != this.ge... |
app/scripts/Widget/plugins/DraftWidget/_DraftWidget.js | igr-santos/hub-client | import React from 'react'
import * as WidgetComponents from './'
const DraftWidget = ({ widget, setWidget }) => {
// Remove draft to simulate render menu
const components = Object.assign({}, WidgetComponents)
delete components['draft']
return (
<div className="draft-widget widget border center p2">
... |
modern/src/App.js | tananaev/traccar-web | import React from 'react';
import { ThemeProvider } from '@material-ui/core/styles';
import { Switch, Route } from 'react-router-dom';
import CssBaseline from '@material-ui/core/CssBaseline';
import { useSelector } from 'react-redux';
import { LinearProgress } from '@material-ui/core';
import MainPage from './MainPage'... |
src/smif/app/test/components/ConfigForm/ModelRunConfigForm.js | nismod/smif | import React from 'react'
import {expect} from 'chai'
import {mount, shallow} from 'enzyme'
import {describe, it} from 'mocha'
import ModelRunConfigForm from '../../../src/components/ConfigForm/ModelRunConfigForm.js'
import {sos_model_run, sos_models, scenarios, narratives} from '../../helpers.js'
import {empty_objec... |
example/pages/searchbar/index.js | n7best/react-weui | import React from 'react';
import Page from '../../component/page';
import SampleData from './nameDB';
import {
//main component
SearchBar,
//for display data
Panel,
PanelHeader,
PanelBody,
PanelFooter,
MediaBox,
MediaBoxHeader,
MediaBoxBody,
MediaBoxTitle,
MediaBoxDescr... |
start.js | qiwenmin/HamExam | import React, { Component } from 'react';
import {
StyleSheet,
TouchableHighlight,
Text,
View,
Alert
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import DeviceInfo from 'react-native-device-info';
import LevelStart from './levelstart';
import Libs from './libs';
import quizImgs f... |
docs/src/pages/system/typography/LetterSpacing.js | lgollut/material-ui | import React from 'react';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
export default function LetterSpacing() {
return (
<Typography component="div">
<Box letterSpacing={6} m={1}>
Letter Spacing 6px.
</Box>
<Box letterSpacing={10} m={... |
app/results/Results.js | ccfcheng/recommendation-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setPath } from '../appReducer';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import DetailContainer from '../detail/Detail';
class ResultsContainer extends Component {
componentWillMount() {
this.props.dispa... |
main.js | Pearson-Higher-Ed/o-upcomingAssignments | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './src/js/containers/App'
import configureStore from './src/js/stores/configureStore'
export { default } from './src/js/components/dynamicList/DynamicList';
const store = configureStore()
render(
<Pro... |
admin/client/App/shared/Popout/PopoutBody.js | naustudio/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
shopping-cart-app/src/components/StoreCard/StoreCard.js | JCFlores/shoppingCart | import React from 'react';
import './StoreCard.css';
const StoreCard = props => (
<div className="card" onClick={props.onClick} data-id={props.id}>
<div className="card-header" data-id={props.id}>
<div className="card-image" data-id={props.id}>
<img className="image1" alt={props.name} src={props.image1}... |
frontend/src/idPortal/users/list/userStatusCell.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import SvgIcon from 'material-ui/SvgIcon';
import { TableCell } from 'material-ui/Tab... |
src/Chip.js | mattBlackDesign/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
const Chip = ({ children, close }) => {
return (
<div className='chip'>
{children}
{close ? <i className='close material-icons'>close</i> : null}
</div>
);
};
Chip.propTypes = {
children: PropTypes.node,
/**
* If show a clos... |
templates/rubix/demo/src/routes/Knobs.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelHeader,
FormControl,
PanelContainer,
} from '@sketchpixy/rubix';
export default class Knobs extends React.Component {
componentDidMount() {
$('.dial').knob();
$('.knob').knob({
draw: function() {
// 'tro... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | TootCat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
public_long: { id: 'privacy.pub... |
app/store/markupMiddleware.js | Aurora0001/Aether | import React from 'react';
import emoji from 'react-easy-emoji';
const twemojiImages = require.context('file!../static/72x72', true, /\.png$/);
import { NEW_PRIVMSG, NEW_SELF_PRIVMSG, NEW_ACTION } from '../actions/client.js';
export const markup = (text) => {
const splitText = text.split('\n');
let linedText = [];... |
test/fixtures/case8/input.js | kadirahq/babel-plugin-react-docgen | import React from 'react';
export const wrapComopnent = (Component) => {
const WrappedComponent = props => (
<Wrapper>
<Component/>
</Wrapper>
);
return WrappedComponent;
};
export class Wrapper extends React.Component {
render() {
const { children } = this.props;
return (
<div ... |
example/examples/FilteringExample.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Checkbox} from 'react-bootstrap';
import {Typeahead} from '../../src/';
const options = [
'Warsaw',
'Kraków',
'Łódź',
'Wrocław',
'Poznań',
'Gdańsk',
'Szczecin',
'Bydgoszcz',
'Lublin',
'Katowice',
'Białystok',
'Gdynia',
'Częstochowa',
'Radom',
'Sosnowiec... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/blocks/modulator/block.js | rsimmons/plinth | import React from 'react'
import ReactDOM from 'react-dom';
import BlockRoot from '../../components/BlockRoot';
import Knob from '../../components/Knob';
class View extends React.Component {
constructor(props) {
super(props);
}
render() {
const {offset, setOffset} = this.props;
return (
<Block... |
manager/__tests__/index.android.js | victorditadi/IQApp | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
docs/src/examples/elements/Label/Types/LabelExampleHorizontal.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Label, List } from 'semantic-ui-react'
const LabelExampleHorizontal = () => (
<List divided selection>
<List.Item>
<Label color='red' horizontal>
Fruit
</Label>
Kumquats
</List.Item>
<List.Item>
<Label color='purple' horizontal>
C... |
src/components/FileButton.js | colouroscope/colouroscope | import React from 'react'
import classNames from 'classnames'
let FileButton = ({ onFileSelect, id, className, children }) => {
const onChange = (e) => {
const path = e.target.files[0]
onFileSelect(path)
}
return (
<div className={classNames('d-inline-block', className)}>
<label htmlFor={id} c... |
docs/app/Examples/elements/Step/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Groups from './Groups'
import States from './States'
import Types from './Types'
import Variations from './Variations'
const StepExamples = () => (
<div>
<Types />
<Groups />
<Content />
<States />
<Variations />
</div>
)
export... |
src/interface/news/Page.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import articles from 'articles';
import DocumentTitle from 'interface/common/DocumentTitle';
import ArticleLoader from './ArticleLoader';
import './News.css';
class Page extends React.PureComponent {
static prop... |
modules/gui/src/app/home/body/process/recipe/remapping/remapping.js | openforis/sepal | import {Aoi} from '../aoi'
import {Map} from 'app/home/map/map'
import {compose} from 'compose'
import {getAvailableBands} from './bands'
import {getDefaultModel} from './remappingRecipe'
import {getPreSetVisualizations} from './visualizations'
import {initializeLayers} from '../recipeImageLayerSource'
import {msg} fro... |
rojak-ui-web/src/app/media/Media.js | CodeRiderz/rojak | import React from 'react'
import { connect } from 'react-redux'
import { fetchMedia } from './actions'
import Card from '../kit/Card'
import SocialMedia from '../kit/SocialMedia'
import PairingSentiments from './PairingSentiments'
import LatestNews from './LatestNews'
class Media extends React.Component {
static pro... |
src/containers/views/tests/datafilenew.spec.js | bunto/bunto-admin | import React from 'react';
import { shallow } from 'enzyme';
import { DataFileNew } from '../DataFileNew';
import Button from '../../../components/Button';
import Editor from '../../../components/Editor';
import Errors from '../../../components/Errors';
import DataGUI from '../../../containers/MetaFields';
const defau... |
src/svg-icons/av/replay.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/>
</SvgIcon>
);
AvReplay = pure(AvReplay);
AvReplay... |
src/components/decorators/scroll-into-view.spec.js | Intai/bdux-timetravel | /* eslint-env mocha */
import chai from 'chai'
import sinon from 'sinon'
import * as R from 'ramda'
import React from 'react'
import { JSDOM } from 'jsdom'
import { fireEvent, render } from '@testing-library/react'
import { useScrollIntoView } from './scroll-into-view'
describe('useScrollIntoView Hook', () => {
be... |
testdata/anothersnippetsfolder/onlyinsecondsnippetsfolder.js | findmypast-oss/scoosh | import React, { Component } from 'react';
import Relay from 'react-relay';
class <%- ComponentName %> extends Component {
constructor() {
super();
}
render() {
return (
<div></div>
);
}
}
|
react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js | react-component/rn-packager | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | ONode/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
src/Navigation/Tabs/tabSix/views/TabSixNavigation.js | Ezeebube5/Nairasense | // React
import React from 'react';
// Redux
import { connect } from 'react-redux';
// Icon
import Icon from 'react-native-vector-icons/FontAwesome';
// Navigation
import { addNavigationHelpers } from 'react-navigation';
import { NavigatorTabSix } from '../navigationConfiguration';
class TabSixNavigation extends Reac... |
client/src/app/components/forms/inputs/Colorpicker.js | zraees/sms-project | import React from 'react'
import 'bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js'
import './Colorpicker.css'
export default class Colorpicker extends React.Component {
componentDidMount() {
$(this.refs.input).colorpicker({});
}
render() {
return (
<input type="text" ref="input" {...this... |
docs/app/Examples/collections/Message/Variations/MessageExampleError.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleError = () => (
<Message
error
header='There was some errors with your submission'
list={[
'You must include both a upper and lower case letters in your password.',
'You need to select your home country.... |
public/js/components/suggestions/Suggestion.react.js | TRomesh/Coupley | import React from 'react';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Paper from 'material-ui/lib/paper';
import GridList from 'material-ui/lib/grid-list/grid-list';
import GridTile from 'material-ui/lib/... |
src/GraphQLWebClientWrapper.js | tmc/graphql-web-client | import React from 'react';
import GraphQLWebClient from './GraphQLWebClient';
import ExtraHeaders from './ExtraHeaders';
var styles = {
clear: {clear: "both"}
};
export default class GraphQLWebClientWrapper extends React.Component {
constructor(props) {
super(props);
var endpoint = this.props.endpoint;... |
src/sentry/static/sentry/app/icons/icon-file-generic.js | looker/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconFileGeneric(props) {
return (
<Icon viewBox="0 0 15 15" {...props}>
<g stroke="currentColor" fill="none">
<path
d="M13.5,3.5 L13.5,12.9968907 C13.5,13.827035 12.8204455,14.5 12.0044548,14.5 L2.99554521,14.5 C2.169... |
src/core/display/App/Component/Dependencies.js | JulienPradet/pigment-store | import React from 'react'
import {Link} from 'react-router'
import * as StackedList from '../util/View/StackedList'
import * as LinkList from '../util/View/LinkList'
const makePath = (prefix, type, path) => {
return `${prefix}/${type}-${path}`
}
const stackDependencies = (dependencies = []) => {
const firstLevelS... |
src/components/ProjectMarker.js | njosieb/ecocentrixco | import React from 'react'
import { InfoWindow, Marker } from 'react-google-maps'
import { Link } from 'gatsby'
const ProjectMarker = ({ project, windowOpen, toggleWindow }) => (
<Marker position={project.position} onClick={() => toggleWindow(project.id)}>
{windowOpen && (
<InfoWindow onCloseClick={() => to... |
src/components/SimplePanelLayout/SimplePanelLayout.js | wavicles/fossasia-pslab-apps | import React from 'react';
import {
ThickBar,
LayoutWrapper,
LayoutContainer,
} from './SimplePanelLayout.styles';
const SimplePanelLayout = props => {
const { panel } = props;
return (
<LayoutContainer>
{/* <ThickBar /> */}
<LayoutWrapper>{panel}</LayoutWrapper>
</LayoutContainer>
);
... |
src/components/datePicker/FormDatePicker.spec.js | mariusespejo/semantic-redux-form-fields | import React from 'react';
import { shallow } from 'enzyme';
import FormDatePicker from './FormDatePicker';
import { Form } from 'semantic-ui-react';
import DatePicker from 'react-datepicker';
import moment from 'moment';
let props;
beforeEach(() => {
props = {
input: {
onChange: jest.fn(),
name: 'n... |
client/src/components/Connections/components/Statuses.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {compose} from 'redux'
import {branch, renderNothing} from 'recompose'
import EntitySearchWrapper, {type EntitySearchProps} from '../dataWrappers/EntitySearchWrapper'
import EntityWrapper, {type EntityProps} from '../dataWrappers/EntityWrapper'
import ConnectionWrapper, {type C... |
blueocean-material-icons/src/js/components/svg-icons/editor/insert-comment.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertComment.displayName = 'EditorInsertC... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | greatdinosaur/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
examples/src/components/ValuesAsNumbersField.js | iLikeKoffee/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
tests/js/routes/Counter/components/Counter.spec.js | vladiibine/trust-network | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'routes/Counter/components/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter : 5,
...bindA... |
src/containers/settings/InviteScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Invite from '../../components/auth/Invite';
import ErrorBoundary from '../../components/util/ErrorBoundary';
export default @inject('stores', 'actions') @observer class InviteScreen exte... |
src/app.js | zlargon/invoice | import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import Dialog from 'material-ui/Dialog';
import Checkbox from 'material-ui/Checkbox';
import IconButton from 'material-ui/IconButton';
import RaisedButton from 'material-ui/RaisedButton';
import {List, ListItem}... |
src/svg-icons/action/label-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
src/index.js | milangupta511/react-todo-list | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import ReduxPromise from'redux-promise'; // for AJAX calls
import App from './components/app';
import reducers from './reducers';
import 'react-mdl/extra/m... |
web/themes/custom/spa/src/components/Application.story.js | TallerWebSolutions/drupal-react-boilerplate | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { withKnobs } from '@kadira/storybook-addon-knobs'
import { withSmartKnobs } from 'storybook-addon-smart-knobs'
import Application from './Application'
storiesOf('Application')
.addDecorator(withSmartKnobs)
.addDecorator(withKnobs)
.... |
02-simple-contacts/src/components/App.js | posquit0/react-tutorial | import React, { Component } from 'react';
import ContactList from './ContactList';
import './App.css';
const contacts = [{
id: 1,
name: '박병진',
img: 'https://avatars0.githubusercontent.com/u/1484002?v=3&s=460',
tel: '010-9999-1411',
email: 'posquit0.bj@gmail.com'
}, {
id: 2,
name: '홍길동',
tel: '010-1234... |
src/routes/User/routes/Dashboard/index.js | weedz/reactcms | import React from 'react';
import { Route, Link } from 'react-router-dom';
import {ReduxWrapper} from '../../../../wrappers';
import { logout } from '../../../../actions/authActions';
// Routes
import DashboardIndex from './components/index';
import DashboardSettings from './components/Settings';
class Dashboard exte... |
client/component/table/column.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import { isEnabled } from './utils';
const Column = ( { enabled = true, className = null, children, selected } ) => {
if ( isEnabled( selected, enabled ) ) {
return (
<td className={ className }>{ children }</td>
);
... |
src/Row.js | roadmanfong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
src/components/LinkButton.js | kid0809/react-draft-editor | import React from 'react'
class LinkButton extends React.Component {
constructor() {
super();
}
renderLinkWarp() {
const { showURLInput, onURLChange, urlValue, onLinkInputKeyDown, closeUrlInput } = this.props
if (showURLInput) {
return (
<div>
<div className="url-warpper">
... |
local-cli/templates/HelloWorld/index.android.js | esauter5/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
modules/react-router-2.5.2/modules/Redirect.js | nanyou-environment/enBackEnd | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './InternalPropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client ... |
src/client/components/General/spinner.component.js | DBCDK/tanterne | import React from 'react';
/**
* Generates a spinner with a size based on given size parameter.
* Currently sizes are
* small = 30px
*
* @param {string} size
* @return {XML}
*/
export const Spinner = ({size}) => {
const className = `spinner-container--${size}`;
return (
<div className={className}>
... |
docs/src/examples/views/Comment/Variations/CommentExampleMinimal.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Comment, Form, Header } from 'semantic-ui-react'
const CommentExampleMinimal = () => (
<Comment.Group minimal>
<Header as='h3' dividing>
Comments
</Header>
<Comment>
<Comment.Avatar as='a' src='/images/avatar/small/matt.jpg' />
<Comment.Conten... |
frontend/components/trip/trip_index_container.js | qydchen/SafeHavn | import React from 'react';
import { connect } from 'react-redux';
import TripIndex from './trip_index.jsx';
import { withRouter } from 'react-router-dom';
import { fetchTrips, deleteTrip } from '../../actions/trip_actions';
import { openModal } from '../../actions/modal_actions';
import { selectAll } from '../../reduce... |
client/src/component/common/stage-edit-modal.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import * as UU5 from 'uu5g03';
const StageEditModal = React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
UU5.Layout.FlcMixin,
UU5.Common.CcrWriterMixin
],
//@@viewOff:mixins
//@@viewOn:static... |
src/App/Navigation/index.js | pulse-opensource/pulselabs-homepage | import style from './style.css';
import React from 'react';
import { Link } from 'react-router';
export default function Navigation() {
return (
<nav className={style.pulseNavContainer}>
<b>
<svg xmlns="http://www.w3.org/2000/svg" width="31.7" height="31.7">
<path d="M11.6 26c-.5 0-1-.4-1-1L9 17.6l-1 1.... |
techstack/src/components/ListItem.js | diegopoli/sample-react-native-projects | import React, { Component } from 'react';
import {
Text,
TouchableWithoutFeedback,
View,
LayoutAnimation,
UIManager
} from 'react-native';
import { connect } from 'react-redux';
import { CardSection } from './common';
import * as actions from '../actions';
class ListItem extends Component {
// This lifecy... |
src/index.js | nienkebos/ExhibitionPlanner | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router';
import App from './App';
import Exhibitions from './ExhibitionsContainer/Exhibitions'
import Artworks from './ArtworksContainer/Artworks'
// STYLES //
import injectTapEventPlugi... |
examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.js | storybooks/react-storybook | /* eslint-disable react/no-unused-prop-types */
/* eslint-disable react/require-default-props */
/* eslint-disable react/prop-types */
import React from 'react';
import PropTypes from 'prop-types';
export const ButtonTooManyProps = ({ onClick, children }) => (
<button type="button" onClick={onClick}>
{children}
... |
__test__/components/dashboard.spec.js | Hector101/headlines | import React from 'react';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import Dashboard from '../../src/components/Dashboard';
import Actions from '../../src/flux/actions/Actions';
import localStorageMock from '../../src/__mock__/localStorage';
import store from '../../src/flux/store/store';
window.lo... |
src/routes/dashboard/components/sales.js | hhj679/mybition-web | import React from 'react'
import PropTypes from 'prop-types'
import styles from './sales.less'
import classnames from 'classnames'
import { color } from '../../../utils'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
function Sales ({ data }) {
return (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.