path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/app/entry.js | jimmed/spankhbot | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/App';
import configureStore from './store/configureStore';
import { connectStore } from '../plugins';
import 'foundation-sites/dist/css/foundation.css';
import './styles/index.css';
imp... |
src/components/VmDetails/BaseCard.js | oVirt/ovirt-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import {
Badge,
Button,
Card,
CardHeading,
CardTitle,
CardBody,
CardFooter,
Icon,
noop,
excludeKeys,
} from 'patternfly-react'
import style from './style.css'
import CardEditButton from './CardEditButton'
import { Tooltip } from '_/compon... |
docs/app/Examples/elements/Button/Types/ButtonBasicExample.js | jcarbo/stardust | import React from 'react'
import { Button } from 'stardust'
const ButtonBasicExample = () => (
<div>
<Button basic>Standard</Button>
<Button basic color='red'>Red</Button>
<Button basic color='orange'>Orange</Button>
<Button basic color='yellow'>Yellow</Button>
<Button basic color='olive'>Olive</... |
src/svg-icons/content/flag.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFlag = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ContentFlag = pure(ContentFlag);
ContentFlag.displayName = 'ContentFlag';
ContentFlag.muiName = '... |
editor/app/js/components/InfoBar.js | GlassOceanos/nubomedia-graphedit | /*
* (C) Copyright 2016 NUBOMEDIA (http://www.nubomedia.eu)
*
* 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 ap... |
js/components/tab/index.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon, Left, Right, Body, List, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
src/QuickInput.js | mazlix/react-form-simple-schema | import _ from 'lodash';
import React from 'react';
//import Formsy from 'formsy-react';
import FRC from 'formsy-react-components';
const { Checkbox, CheckboxGroup, Input, RadioGroup, Row, Select, File, Textarea } = FRC;
import SchemaTranslator from './schema-translator';
export default class QuickInput extends React.C... |
modules/RouteUtils.js | mattkrick/react-router | import React from 'react'
import warning from './warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName,... |
imports/ui/components/HelloWorld.js | gmahota/AGNUS_CRM | import React from 'react';
export default class HelloWorld extends React.Component {
render() {
return (
<h1>Hello World</h1>
);
}
} |
node_modules/react-virtualized/dist/es/Table/defaultHeaderRenderer.js | ivanhristov92/bookingCalendar | import React from 'react';
import SortIndicator from './SortIndicator';
/**
* Default table header renderer.
*/
export default function defaultHeaderRenderer(_ref) {
var columnData = _ref.columnData;
var dataKey = _ref.dataKey;
var disableSort = _ref.disableSort;
var label = _ref.label;
var sortBy = _ref.... |
src/Grid.js | zerkms/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
fluid... |
packages/mineral-ui-icons/src/IconSignalCellular2Bar.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSignalCellular2Bar(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {..... |
imports/ui/components/Orders/Invoices/NotInvoiced/index.js | haraneesh/mydev | import React from 'react';
import { Row, Col, Panel, PanelGroup } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { formatMoney } from 'accounting-js';
import { accountSettings } from '../../../../../modules/settings';
import { displayUnitOfSale } from '../../../../../modules/helpers';
const NotInvo... |
src/svg-icons/navigation/cancel.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCancel = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7... |
src/App.js | dylanbathurst/bacon-mobile | import React, { Component } from 'react';
import { AppRegistry, Text } from 'react-native';
import WalletApp from './Components/WalletApp.js';
import HeaderStyle from './Styles/HeaderStyle.js';
import { FormattedWrapper } from 'react-native-globalize';
export default class App extends Component {
static navigationOp... |
src/client/app/components/dashboard.js | JuMBoSLICE/JuMBo | import React, { Component } from 'react';
import Header from './header';
import {Link} from 'react-router';
import PdListItems from './pdListItems';
class Dashboard extends Component {
constructor(props){
super(props);
this.state = {
projects: []
}
}
componentDidMount(){
//make ajax data... |
components/animals/paovceHrivnata.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/paovceHrivnata/01.... |
spec/components/github_icon.js | rahultaglr/taglr-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... |
app/components/BattleBlock.js | DeividasK/click-or-be-clicked | import React from 'react';
export function BattleBlock(props) {
return (
<div className="col-xs-2">
<div className={ 'box ' + props.color } onClick={ () => props.handleClick(props.blockId) }>{ props.blockId }</div>
</div>
)
}; |
src/Info/Help/index.js | NERC-CEH/irecord-app | import React from 'react';
import CONFIG from 'config';
import Collapse from 'Components/Collapse';
import AppHeader from 'Components/Header';
import {
IonList,
IonItemDivider,
IonIcon,
IonItem,
IonPage,
} from '@ionic/react';
import {
settings,
undo,
person,
personAdd,
menu,
create,
add,
tras... |
components/work.js | solsort/bogapp | import React from 'react';
export default function({bib}) {
return (
<div>
<h1>{bib.title}</h1>
</div>
);
}
|
pkg/interface/groups/src/index.js | jfranklin9000/urbit | import React from 'react';
import ReactDOM from 'react-dom';
import { Root } from '/components/root';
import { api } from '/api';
import { store } from '/store';
import { subscription } from "/subscription";
api.setAuthTokens({
ship: window.ship
});
subscription.start();
ReactDOM.render((
<Root />
), document.qu... |
assets/search-view/components/MyOrdersContainer.js | janta-devs/nyumbani | import React, { Component } from 'react';
import MyOrdersTableCells from './MyOrdersTableCells';
class MyOrdersContainer extends Component{
render() {
const tableStyle = {
width: '80%',
margin:'auto',
};
var populate = this.props.data.map( x =>
<MyOrdersTableCells key = { x.order_id } order_id = {x.o... |
src/components/Main.js | chickencyj/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// let yeomanImage = require('../images/yeoman.png');
//获取图片相关数据
var imageDatas = require('../data/imageDatas.json');
//只执行一次的函数,利用自执行函数,将图片名信息转成图片路径信息
imageDatas = (function genImageURL(i... |
examples/jest-snapshot-testing/src/components/AppHeader.js | ericf/react-intl | import React from 'react';
import { FormattedMessage, defineMessages } from 'react-intl';
const messages = defineMessages({
title: {
id: 'app-header__title',
defaultMessage: 'React Intl + Jest Snapshot Testing Example',
},
});
export default () => (
<header className="app-header">
... |
src/svg-icons/image/assistant-photo.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistantPhoto = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ImageAssistantPhoto = pure(ImageAssistantPhoto);
ImageAssistantPhoto.displayName = 'Image... |
src/index.js | catalinmiron/PeopleInTheOffice | import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import AppRouter from './containers/AppRouter';
import configureStore from './configureStore';
const store = configureStore();
const PeopleInTheOffice = () => (
<Provider store={store}>
<AppRouter />
... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | Rogerlin2013/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
src/components/FooterList/FooterList.js | auth0/web-header | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames/bind';
import styles from './FooterList.styl';
import PricingSVG from '../../svg/PricingSVG';
import ProductsSVG from '../../svg/ProductsSVG';
import BlogSVG from '../../svg/BlogSVG';
import ExtendSVG from ... |
src/parser/rogue/shared/resources/EnergyDetails.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import ResourceBreakdown from 'parser/shar... |
android/source/component/postList.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
View,
ListView
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import * as PostAction from '../action/post';
import PostRow from '../component/pos... |
components/IconsBackground.js | alonsogodinez/AlamedaWebPageGatsby | import React from 'react'
import styles from '../css/panel.module.css'
import cx from 'classnames'
export default class IconsBackground extends React.Component{
render(){
return (
<div className={styles["intro__icons"]}
>
<div className={styles["intro__line"]}></div>
<div className=... |
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/After/app/containers/HomePage/index.js | phiratio/Pluralsight-materials | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
packages/bonde-admin/src/components/navigation/browsable-list/browsable-list-item.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { Link } from 'react-router-dom'
import classnames from 'classnames'
if (require('exenv').canUseDOM) {
require('./browsable-list-item.scss')
}
const BrowsableListItem = ({ className, style, leftIcon, title, subtitle, rightIcon, path, onClick }) => ... |
client-src/components/p404/P404.js | minimus/final-task | import React from 'react'
import { NavLink } from 'react-router-dom'
import './p404.css'
import page404 from './page404.png'
export default function P404() {
return (
<section className="p404 container">
<img src={page404} alt="Not Found" />
<div className="p404-content">
<h1>Страница не найд... |
src/client/components/PopoverMenu/PopoverMenuItem.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './PopoverMenuItem.less';
const PopoverMenuItem = ({ itemKey, children, onClick, bold, disabled, fullScreenHidden }) => (
<li
className={classNames('PopoverMenuItem', {
'PopoverMenuItem--bold': bold,
... |
app/components/profile/editProfile/EditProfile.js | JoeKarlsson1/post-stream | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import EditForm from './editForm/EditForm';
import styles from './EditProfile.scss';
class EditProfile extends React.Component {
render() {
const {
profile,
dispatch,
} = this.props;
const {... |
packages/forms/.storybook/preview.js | Talend/ui | import React from 'react';
import { namespaces as dsNamespaces } from '@talend/locales-design-system/namespaces';
import { namespaces as componentsNamespaces } from '@talend/locales-tui-components/namespaces';
import { namespaces as formsNamespaces } from '@talend/locales-tui-forms/namespaces';
export const i18n = {
... |
ajax/libs/react-instantsearch/3.3.0/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 3.3.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
frontend/src/components/select-date/select-date.js | desihub/qlf | import React from 'react';
import Proptypes from 'prop-types';
import TextField from '@material-ui/core/TextField';
import moment from 'moment';
import { withStyles } from '@material-ui/core/styles';
const styles = {
rowContainer: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'left',
},
ro... |
newclient/scripts/components/admin/done-with-filter-button/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
app/features/reviews/Notes/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { reduxForm, Field, propTypes as formPropTypes } from 'redux-form';
import styled from 'styled-components';
import review from 'features/reviews/actions';
import { selectNotes }... |
desktop-application/node_modules/react-router/es6/Link.js | santosh-surya/pcb-cnc-machine | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
client/layout/Header.js | mpsoftware/experiments | import React from 'react'
import AppBar from 'react-toolbox/lib/app_bar';
import Navigation from 'react-toolbox/lib/navigation';
import Link from 'react-toolbox/lib/link';
import { Button } from 'react-toolbox/lib/button';
const actions = [
{ label: 'Alarm', raised: true, icon: 'access_alarm'},
{ label: 'Location'... |
force_dir/node_modules/react-bootstrap/es/ButtonGroup.js | wolfiex/VisACC | 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/reactor-kitchensink/src/examples/Grid/AdvancedFeatures/StockTicker/StockTicker.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Grid, Toolbar, Label, SliderField, CheckBoxField, Column, RendererCell, SparkLineLine, Container } from '@extjs/ext-react';
import model from '../../CompanyModel';
import './Ticker.css';
export default class StockTickerGridExample extends Component {
state = {
... |
lib/components/notifications.js | MartyGentillon/hyper | import React from 'react';
import Component from '../component';
import {decorate} from '../utils/plugins';
import Notification_ from './notification';
const Notification = decorate(Notification_);
export default class Notifications extends Component {
template(css) {
return (<div className={css('view')}>
... |
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js | extend1994/cdnjs | /*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/svg-icons/action/settings-input-hdmi.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHd... |
src/FadeMixin.js | tannewt/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
src/assets/js/react/components/Template/TemplateButton.js | GravityPDF/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
/**
* Render the button used to option our Fancy PDF template selector
*
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 4.1
... |
admin/client/App/components/Navigation/Primary/NavItem.js | joerter/keystone | /**
* A item in the primary navigation. If it has a "to" prop it'll render a
* react-router "Link", if it has a "href" prop it'll render a simple "a" tag
*/
import React from 'react';
import { Link } from 'react-router';
var PrimaryNavItem = React.createClass({
displayName: 'PrimaryNavItem',
propTypes: {
childr... |
app/components/Dialog.js | qinfuji/vpt | import Component , {bindProp} from './Component';
import {createAction} from 'redux-act';
import {bindAction ,bundle , selectState , store} from '../store';
import {defaultReduce , $register, $view} from './utils';
import RDialog from './RDialog';
import ReactDom from "react-dom";
import React from 'react';
import R f... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js | TondaHack/create-react-app | /**
* 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.
*/
import Rea... |
assets/jqwidgets/jqwidgets-react/react_jqxvalidator.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxValidator extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.crea... |
modules/gui/src/widget/split/splitHandle.js | openforis/sepal | import {animationFrameScheduler, distinctUntilChanged, filter, fromEvent, interval, map, mapTo, merge, scan, switchMap} from 'rxjs'
import {compose} from 'compose'
import {getLogger} from 'log'
import Hammer from 'hammerjs'
import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
import withS... |
docs/src/pages/components/grid/CenteredGrid.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
},
paper: {
padding: theme.spacing(2),
textAlign: 'center',
col... |
common/routes/Main/containers/ControlsContainer.js | kuguarpwnz/musix | import React from 'react';
import { connect } from 'react-redux';
import { setState } from '../actions/player';
import { getPlayer } from '../reducers/player';
import { getCurrentTrack } from '../reducers/tracks';
import Controls from '../containers/Controls';
const mapStateToProps = (state) => ({
currentTrack: get... |
src/App/App.js | apiaryio/console-proxy | import React, { Component } from 'react';
import classNames from 'classnames';
import axios from 'axios';
import Seed from '../Seed/Seed';
import logo from './logo.svg';
import './App.css';
const getBaseUrl = () => {
let baseUrl = 'http://localhost:3001';
if (process.env.NODE_ENV === 'production') {
baseUrl = ... |
src/containers/FilterLink.js | siemiatj/idiomatic-redux-app | import React from 'react';
import { Link } from 'react-router';
const FilterLink = ({ filter, children }) => (
<Link
to={filter === 'all' ? '' : filter}
activeStyle={{
textDecoration: 'none',
color: 'black'
}}
>
{children}
</Link>
);
export default FilterLink;
|
components/clubList.js | marincelo/xczld-app | import { secondaryColor } from '../constants';
import { load } from '../fetchHelper';
import React from 'react';
import { FlatList, View } from 'react-native';
import { ListItem } from 'react-native-elements';
export default class ClubList extends React.PureComponent {
state = {
clubs: [],
refreshing: false... |
js/components/record_type_switch.js | monetario/web | import React from 'react';
import Formsy from 'formsy-react';
var RecordTypeSwitchField = React.createClass({
mixins: [Formsy.Mixin],
componentWillReceiveProps(nextProps) {
if (this.props.value !== nextProps.value) {
this.setValue(nextProps.value);
let marginLeft = (nextProps.value == 'income') ?... |
triton/src/components/Graph.js | Penson122/Third-Year-Project | import React from 'react';
import PropTypes from 'prop-types';
import stylePropType from 'react-style-proptype';
import {
ResponsiveContainer,
ComposedChart,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend } from 'recharts';
import {
Card,
CardActions,
CardMedia,
CardTitle,
CardText } from 'materia... |
App/ui/views/place/Place.preview.js | nathb2b/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. You can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
... |
spec/components/menu.js | soyjavi/react-toolbox | import React from 'react';
import { Menu, MenuItem, MenuDivider } from '../../components/menu';
class MenuTest extends React.Component {
state = {
value: undefined
};
handleSelect = (item) => {
console.log('Menu selection changed!!, now its', item);
this.setState({value: item});
};
handleItemCl... |
src/components/JobList.js | ScientificAnalysisLaboratories/RecJobs | import React from 'react'
import moment from 'moment/moment'
export default class JobList extends React.Component {
rowCssClass (job) {
const now = moment().endOf('day')
const deadline = job.deadlineDate.endOf('day')
if (deadline <= now)
return 'overdue'
else if (deadline <= now.add(3,'days'))... |
application/components/shared/paymentMethodsView/cardsListItem/index.js | ronanamsterdam/squaredcoffee | import React, { Component } from 'react';
import { StyleSheet, Text, TextInput, View, WebView, ScrollView } from 'react-native';
import Button from 'react-native-button';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppActions from '../../../../actions';
import AwesomeIco... |
src/divider/Divider.js | kosiakMD/react-native-elements | import React from 'react';
import { View, StyleSheet } from 'react-native';
import colors from '../config/colors';
import ViewPropTypes from '../config/ViewPropTypes';
let styles = {};
const Divider = ({ style }) =>
<View style={[styles.container, style && style]} />;
Divider.propTypes = {
style: ViewPropTypes.s... |
wp-content/themes/ryanoosterling/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | JustinLek/ryanoosterling | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
modal.js | mybigday/react-native-call-modal | import _ from 'lodash';
import React, { Component } from 'react';
import {
Modal,
View,
TouchableWithoutFeedback,
StyleSheet,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
modalBackground: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},... |
src/constants/fieldInference.js | Aloomaio/netlify-cms | import React from 'react';
/* eslint-disable */
export const INFERABLE_FIELDS = {
title: {
type: 'string',
secondaryTypes: [],
synonyms: ['title', 'name', 'label', 'headline', 'header'],
defaultPreview: value => <h1>{ value }</h1>,
fallbackToFirstField: true,
showError: true,
},
shortTitl... |
components/Layout/MainHeader.js | a76/eric | import React from 'react'
import Link from '../Link'
import s from './MainHeader.css'
const MainHeader = ({feed}) => {
const title = feed.get('title')
return (
<header className={s.header}>
<div>
<div className={s.breadcrumbs}>
<Link to="/">Home</Link> ∙ {title}
</di... |
tests/api-react/user/3-User.js | keystonejs/keystone-test-project | import blacklist from 'blacklist';
import Domify from 'react-domify';
import React from 'react';
import api from '../../../client/lib/api';
import styles from '../../../client/lib/styles';
const Test = React.createClass({
displayName: 'Update User',
getInitialState () {
return {
data: {
name: { first: 'Tes... |
components/Footer/Footer.js | Mrancois/barduino | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/svg-icons/image/looks-6.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks6 = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v-2h-2v2zm8-12H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2h-2c-1.1 0-2-.... |
src/components/Navbar.js | jasongforbes/dorian-js | import React from 'react';
import { NavLink } from 'react-router-dom';
function generateLink(key, path, text) {
return <li key={`${key}`}><NavLink to={`${path}`} exact>{`${text}`}</NavLink></li>;
}
const Navbar = function render(props) {
const links = [generateLink('Home', '/', 'Home')]
.concat(props.pages.map(... |
src/components/todo/TodoInput.js | chipnin/React-TodoApp | import React from 'react';
export default class TodoInput extends React.Component {
constructor(props) {
super(props);
this.handleKeyPress = this.handleKeyPress.bind(this);
}
handleKeyPress(e) {
this.props.onInputKeyPress(e);
}
render() {
return (
<inpu... |
docs/app/Examples/collections/Grid/Variations/GridExampleFloated.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleFloated = () => (
<Grid>
<Grid.Column floated='left' width={5}>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column floated='right' width={5}>
<Image src='h... |
client/modules/Blog/components/BlogList/BlogList.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FormControl, Button, Table, Checkbox, Glyphicon, OverlayTrigger, Tooltip, DropdownButton, MenuItem } from 'react-bootstrap';
import { fetchBlog, toggleBlog } from '../../BlogActions';
import { g... |
index.ios.js | BALEHOK/motodo | import React from 'react'
import { AppRegistry } from 'react-native'
import Root from './App/Root'
import './App/Config/ReactotronConfig'
import configureStore from './App/Store/Store'
// Handling store here to avoid hot-reloading issues
const store = configureStore()
class RNBase extends React.Component {
render ()... |
src/components/Wrap.js | Journey316/resume | import React, { Component } from 'react';
import Header from './Header';
import { Footer } from './Footer';
class Wrap extends React.Component {
render() {
return (
<div>
<Header
title={'Odd Skillz'}
sub={'Rate your skills'}
/>
<div className="page-wrap">
... |
node_modules/react-router/es6/IndexLink.js | victor335882/ReduxSimpleStarter-4 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
client/components/App/index.js | vcu-lcc/nomad | /*
Copyright (C) 2017 Darren Chan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distribut... |
src/components/Setup/index.js | varatep/anax-ui | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import Setup from './presenter';
// takes as input the state from a reducer
function mapStateToProps(state) {
// no need to do any translation here
return state;
}... |
gui/src/app/views/api-docs.js | mbonvini/LambdaSim | import axios from 'axios';
import React from 'react';
import log from 'loglevel';
import ReactMarkdown from 'react-markdown';
import store from '../store';
import { setLoadingMessage, resetLoadingMessage } from '../actions/loading-actions';
import { setErrorMessage } from '../actions/error-message-actions';
const con... |
lib/containers/ModificationIndicator.js | sgleung/autumn | import React from 'react'
import {connect} from 'react-redux'
const indicatorHidden = {
display: 'none',
position: 'absolute',
bottom: '30px',
left: '40px',
zIndex: '5',
color: '#424242',
fontFamily: 'Fira Mono, Inconsolata, monospace',
fontSize: '22px',
select: 'none'
}
const ModificationIndicator ... |
src/components/login/icons/GoogleIcon.js | juanda99/arasaac | import React from 'react'
import Google from 'svg-icons/google'
import {white} from 'material-ui/styles/colors'
const style = {
top: 7,
position: 'relative',
width: 30,
marginLeft: 25
}
const GoogleIcon = () => (
<Google style={style} color={white} />
)
export default GoogleIcon
|
app/javascript/mastodon/components/skeleton.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
Skeleton.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
};
export default Skeleton;
|
examples/src/components/CustomRenderField.js | showoffer/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 CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
actor-apps/app-web/src/app/components/Install.react.js | jamesbond12/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
app/jsx/external_apps/components/ExternalToolsTableRow.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/app/keyring/components/DefaultKeyButton.js | mailvelope/mailvelope | /**
* Copyright (C) 2016 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import * as l10n from '../../../lib/l10n';
import React from 'react';
import PropTypes from 'prop-types';
l10n.register([
'keygrid_default_label',
'key_set_as_default',
'key_default_active_btn_title',... |
examples/components/MultiCheckboxSet.js | optiopay/optiopay-form | import React from 'react';
import Formsy from 'formsy-react';
function contains(container, item, cmp) {
for (const it of container) {
if (cmp(it, item)) {
return true;
}
}
return false;
}
const MyRadioGroup = React.createClass({
mixins: [Formsy.Mixin],
getInitialState() {
return { value: [... |
App/Components/FullButton.js | oreofish/v2exClient | // @flow
import React from 'react'
import { TouchableOpacity, Text } from 'react-native'
import styles from './Styles/FullButtonStyle'
/*
import ExamplesRegistry from '../Services/ExamplesRegistry'
// Example
ExamplesRegistry.add('Full Button', () =>
<FullButton
text='Hey there'
onPress={() => window.alert(... |
src/esm/components/graphics/logos/lendopolis-logo/on-dark/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["width", "height"];
import React from 'react';
import PropTypes from 'prop-types';
import { computeFromRatio } from '../../../../../helpers/utils/ratio... |
docs/src/app/components/pages/components/GridList/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import Subheader from 'material-ui/Subheader';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
... |
src/containers/Home.container.js | callmeaatrey/cleopatra | // Home Container Component
import React, { Component } from 'react';
import { connect } from 'react-redux';
import store from '../store';
import { loaderInit } from '../actions/user.actions';
import { loaderToggle, togglePostLoader } from '../actions/app.actions';
import { readProfileViaGoogle, searchUserAPI, getSugg... |
src/react/index.js | OpenToolbox/MuLetter | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import Module from './components/module';
ReactDOM.render(
React.createFactory(Module)(),
document.querySelector('#root')
);
|
web/components/screens/onboarding/FlatrisIntro/index.fixture.js | skidding/flatris | // @flow
import React from 'react';
import FlatrisIntro from '.';
export default <FlatrisIntro onNext={() => console.log('Next')} />;
|
examples/dynamic-segments/app.js | Dodelkin/react-router | import React from 'react'
import { Router, Route, Link, Redirect } from 'react-router'
import { createHistory, useBasename } from 'history'
const history = useBasename(createHistory)({
basename: '/dynamic-segments'
})
class App extends React.Component {
render() {
return (
<div>
<ul>
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.