path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
packages/react/components/actions.js | iamxiaoma/Framework7 | import React from 'react';
import Mixins from '../utils/mixins';
import Utils from '../utils/utils';
import __reactComponentWatch from '../runtime-helpers/react-component-watch.js';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../ru... |
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js | pradel/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import {fullWhite} from 'material-ui/styles/colors';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const style = {
margin: 12,
};
const RaisedButtonExampleIcon = () => (
... |
src/mongostick/frontend/src/screens/DatabaseOverview.js | RockingRolli/mongostick | import React from 'react'
import { Col, Row, Table } from 'antd'
import { connect } from 'react-redux'
import { formatBytes } from '../lib/mongodb'
import { Link } from 'react-router-dom'
class Databases extends React.Component {
getColumns = () => {
return [
{
title: 'Name',
dataIndex: 's... |
app/addons/documents/routes-mango.js | apache/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the 'License'); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/Row.js | westonplatter/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/Layer/Layer.js | nambawan/g-old | // from : https://github.com/grommet/grommet/blob/master/src/js/components/Layer.js
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import withStyles from 'isomorphic-style-loader/withStyles';
import StyleContext from 'isomorphic-style-loader/StyleContext';
import { Pro... |
src/components/AppRoutes.js | trda/seslisozluk-simple-ui-project | import React from 'react';
import { Router, browserHistory } from 'react-router';
import routes from '../routes';
export default class AppRoutes extends React.Component {
render() {
return (
<Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/>
);
}
} |
src/navigators/ReduxNavigation.js | jfilter/frag-den-staat-app | import { BackHandler, Linking, Platform } from 'react-native';
import { NavigationActions } from 'react-navigation';
import { connect } from 'react-redux';
import {
createReactNavigationReduxMiddleware,
createReduxContainer,
} from 'react-navigation-redux-helpers';
import React from 'react';
import BackgroundFetch ... |
node_modules/react-bootstrap/es/Popover.js | darklilium/Factigis_2 | 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 ... |
admin/client/App/components/Navigation/Mobile/SectionItem.js | benkroeger/keystone | /**
* A mobile section
*/
import React from 'react';
import MobileListItem from './ListItem';
import { Link } from 'react-router';
const MobileSectionItem = React.createClass({
displayName: 'MobileSectionItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
curren... |
client/components/ui/label.js | bnjbvr/kresus | import React from 'react';
import PropTypes from 'prop-types';
import { translate as $t } from '../../helpers';
class LabelComponent extends React.Component {
state = {
value: null
};
handleChange = e => {
this.setState({
value: e.target.value
});
};
handleFoc... |
src/svg-icons/av/explicit.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvExplicit = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-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-4v2h4v2h-4v2h4v2H9V7h6v2z"/>
</SvgIcon>
);
AvExplicit = pure(AvExplic... |
src/components/ExplanationSelection.js | quintel/etmobile | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import offSvg from '../images/explanations/off.svg';
import onSvg from '../images/explanations/on.svg';
import offSelectedSvg from '../images/explanations/off-selected.sv... |
test/OverlayDeprecationSpec.js | sheep902/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Position from '../src/Position';
import Transition from '../src/Transition';
import Portal from '../src/Portal';
import { shouldWarn } from './helpers';
describe('Components moved to react-overlays', () => {
it('should warn ab... |
src/views/Components/NavigationTree.js | pranked/cs2-web | /**
* Created by dom on 9/15/16.
*/
import React from 'react';
import { Link } from 'react-router';
const NavigationTree = React.createClass({
propTypes: {
items: React.PropTypes.array.isRequired
},
render() {
const flatten = (item) => {
return (
<li key={item.name}>
<Link to={... |
app/javascript/mastodon/features/compose/components/warning.js | SerCom-KC/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
stalk-messenger/app/components/tabs/chats/index.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
} from 'react-native';
import ChatCell from './ChatCell';
import { loadChats, leaveChat } from 's5-action';
import { S5Header, S5SwipeListView } from 's5-components';
import { connec... |
lib/editor/components/question_editors/parts/BulkAddItemsEditorPart.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import S from 'string';
import * as EditorActions from '../../../actions';
class BulkAddItemsEditorPart extends Component {
constructor(props) {
super(props);
this.state = { inputText: '' };
}
/** 一... |
test/integration/image-component/default/pages/missing-src.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<Image width={200}></Image>
</div>
)
}
export default Page
|
src/js/components/icons/base/ShieldSecurity.js | odedre/grommet-final | /**
* @description ShieldSecurity SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.... |
actor-apps/app-web/src/app/components/common/Fold.React.js | luwei2012/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
src/propTypes/TextStylePropTypes.js | lelandrichardson/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Text/TextStylePropTypes.js
*/
import React from 'react';
import ColorPropType from './ColorPropType';
import ViewStylePropTypes from './ViewStylePropTypes';
const { PropTypes } = React;
// TODO: use spread instead of Object.assign/create after #65... |
components/DefaultHTMLLayout.js | slidewiki/slidewiki-platform | import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
//import ga from '../plugins/googleAnalytics/ga';
import { Microservices } from '../configs/microservices';
let hook = require('css-modules-require-hook');
hook({
generateScopedName: '[hash:base64:5]',
});
class DefaultHTMLLayo... |
dashboard-ui/app/components/usageAnalytics/usageAnalytics.js | CloudBoost/cloudboost | /**
* Created by Jignesh on 28-06-2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { resetAnalytics } from '../../actions';
export class AppAnalytics extends React.Component {
static propTypes = {
appData: PropTypes.any,
resetAnalytics: P... |
recipe-server/client/control/tests/components/test_ActiveFilters.js | Osmose/normandy | /* eslint-disable react/prop-types */
import React from 'react';
import { mount, shallow } from 'enzyme';
import ActiveFilters from 'control/components/ActiveFilters';
const noop = () => {};
const propFactory = props => ({
selectedFilters: [],
onResetFilters: noop,
onFilterSelect: noop,
className: null,
...... |
examples/parcel/src/withRoot.js | cherniavskii/material-ui | import React from 'react';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import purple from 'material-ui/colors/purple';
import green from 'material-ui/colors/green';
import CssBaseline from 'material-ui/CssBaseline';
// A theme with custom primary and secondary color.
// It's optional.
const ... |
docs/app/Examples/elements/Image/Types/index.js | clemensw/stardust | 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 ImageTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
examples/counter/test/components/Counter.spec.js | dieface/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Counter from '../../components/Counter'
function setup() {
const actions = {
increment: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync: expect.createSpy(),
decrement: e... |
router_tutorial/06-params/modules/About.js | Muzietto/react-playground | import React from 'react'
export default React.createClass({
render() {
return <div>About</div>
}
})
|
code/workspaces/web-app/src/pages/Page.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import { Typography, withStyles } from '@material-ui/core';
import Footer from '../components/app/Footer';
const style = theme => ({
pageTemplate: {
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
padding: `0 ${theme.spacing(4)}px`... |
src/components/routes/animal/AnimalForm.js | fredmarques/petshop | import './Animal.css';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form';
import { Link } from 'react-router-dom';
import { registerAnimal } from '../../../actions/animals';
class AnimalForm extends Component {
renderField(field) {
cons... |
src/icons/BorderClearIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BorderClearIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M14 10h4V6h-4v4zm0 16h4v-4h-4v4zm0 16h4v-4h-4v4zm8-8h4v-4h-4v4zm0 8h4v-4h-4v4zM6 42h4v-4H6v4zm0-8h4v-4... |
packages/base-shell/src/components/AuthorizedRoute.js | TarikHuber/react-most-wanted | import React from 'react'
import { Navigate, useLocation } from 'react-router-dom'
import { useAuth } from '../providers/Auth'
import { useConfig } from '../providers/Config'
function AuthorizedRoute({ children }) {
const { appConfig } = useConfig()
const { auth: authConfig } = appConfig || {}
const { signInURL ... |
examples/js/sort/sort-style-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
lib/components/tabs.js | whitelynx/hyperterm | import React from 'react';
import Component from '../component';
import {decorate, getTabProps} from '../utils/plugins';
import Tab_ from './tab';
const Tab = decorate(Tab_, 'Tab');
const isMac = /Mac/.test(navigator.userAgent);
export default class Tabs extends Component {
template(css) {
const {
tabs... |
src/js/components/icons/base/Note.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/parser/paladin/holy/modules/beacons/BeaconHealingDone.js | sMteX/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import Panel from 'interface/statistics/Panel';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import HealingValue from 'parser/shared/modules/HealingValue';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
imp... |
src/components/Auth/signin.js | gperl27/liftr-v2 | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class Signin extends Component {
handleFormSubmit({email, password}){
console.log(email, password);
// need to do something to log user in
this.props.signinUser({ email, password })... |
src/components/MenuAside.js | Leobuaa/online-disk | import React, { Component } from 'react';
class MenuAside extends Component {
constructor(props) {
super(props);
}
isActiveButton(index) {
if (index === this.props.menuAside.buttonActiveIndex) {
return 'item-active';
}
return '';
}
render() {
const lists = [
{
index:... |
src/svg-icons/editor/drag-handle.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
src/js/components/icons/base/DocumentVideo.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/svg-icons/image/crop-free.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropFree = (props) => (
<SvgIcon {...props}>
<path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/>
</SvgIco... |
client/views/admin/federationDashboard/FederationDashboardPage.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import FederationDashboardPage from './FederationDashboardPage';
export default {
title: 'admin/federationDashboard/FederationDashboardPage',
component: FederationDashboardPage,
};
export const Default = () => <FederationDashboardPage />;
|
frontend/src/components/dialog/list-repo-drafts-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext, siteRoot } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import moment from 'moment';
import editorUtilities from '../..... |
wrappers/html.js | pcm-ca/pcm-ca.github.io | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div>
<Helmet
ti... |
src/other/DescriptionTeaser.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import createReactClass from 'create-react-class'
const DescriptionTeaser = createReactClass({
displayName: 'Teaser Text',
propTypes: {
description: PropTypes.string,
},
style: function () {
return {
overflow: 'hidden',
textOver... |
app/server.js | nurogenic/universal-react-boilerplate | import path from 'path';
import React from 'react';
import Router from 'react-router';
import Hapi from 'hapi';
import _merge from 'lodash.merge';
import routes from './routes.jsx';
import component from './components/Html.jsx';
const server = new Hapi.Server();
server.connection({port: 8000});
server.route({
meth... |
packages/mineral-ui-icons/src/IconHealing.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 IconHealing(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
code/schritte/2-hierarchy/src/GreetingMaster.js | st-he/react-workshop | import React from 'react';
const GreetingMaster = (props) => {
const {greetings, onAdd} = props;
const body = greetings.map(greeting => <tr key={greeting.id}><td>{greeting.name}</td><td>{greeting.greeting}</td></tr>);
return (
<div>
<table>
<thead>
<tr><t... |
assets/jqwidgets/demos/react/app/tabs/mapinsidetab/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
class App extends React.Component {
render() {
let initialize = () => {
let mapCanvas = document.getElementById('map-canvas');
let mapOptions = {
... |
src/svg-icons/av/radio.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3... |
src/components/shared/top-bar/logo/logo.spec.js | david-mart/react-boilerplate-edited | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Logo from './index';
describe('<Logo />', () => {
it('should have read "dotmaps" text', () => {
const expected = 'dotmaps';
const wrapper = shallow(<Logo />);
const actual = wrapper.text();
... |
test/components/Todo/Form.spec.js | elemus/react-redux-todo-example | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Form from '../../../src/components/Todo/Form';
const setup = (props = { onTaskAdd() {} }) => shallow(<Form {...props} />);
describe('Component | Todo | Form', () => {
it('renders', () => {
... |
imports/ui/pages/Index.js | KyneSilverhide/expense-manager | import React from 'react';
import Grid from 'material-ui/Grid';
import EventsListDashboard from '../containers/events/EventsListDashboard';
import Debts from '../containers/debts/Debts';
const Index = () =>
<Grid container direction="row">
<Grid item xs={12} lg={9}>
<EventsListDashboard />
</Grid>
... |
examples/js/style/tr-class-function-table.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
assets/react/source/grid_offset.js | theroyalstudent/unsemantic-100-grid | // Dependencies.
import React from 'react'
import PropTypes from 'prop-types'
// Define class.
class GridOffset extends React.Component {
// Render method.
render () {
// Expose UI.
return (
<div className='grid-offset'>
{this.props.children}
</div>
)
}
}
// Validation.
GridOffse... |
src/mui/detail/Create.js | azureReact/AzureReact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Card } from 'material-ui/Card';
import compose from 'recompose/compose';
import inflection from 'inflection';
import ViewTitle from '../layout/ViewTitle';
import Title from '../layout/Title';
im... |
src/js/components/Projects/TableRow.js | appdev-academy/appdev.academy-react | import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'
import { Link } from 'react-router'
import { DragSource, DropTarget } from 'react-dnd'
import GreenButton from '../Buttons/Green'
import OrangeButton from '../Buttons/Orange'
const style = {
border: '1px dashed gray... |
src/components/Showcase/ShowcaseEndingCard.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import createReactClass from 'create-react-class'
import { Paper } from '@material-ui/core'
import SitePathCard from '../Collection/SitePathCard'
const ShowcaseEndingCard = createReactClass({
displayName: 'Showcase Ending',
propTypes: {
siteObject: P... |
src/components/post-header.js | Dmidify/mlblog | import React, { Component } from 'react';
import { postsData } from '../sample-data.js';
class PostHeader extends Component {
state = {
posts: postsData
}
render() {
return (
<header className="intro-header post">
<div className="container">
<div className="row">
... |
src/svg-icons/navigation/arrow-upward.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowUpward = (props) => (
<SvgIcon {...props}>
<path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/>
</SvgIcon>
);
NavigationArrowUpward = pure(NavigationArrowUpward);
NavigationA... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | maxipad37/maxipad37.github.io | 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'));
|
scripts/dashboard/components/ProjectForm/ProjectFormServiceList/view.js | vedranjukic/dockerino | import React from 'react'
import { Link } from 'react-router'
import { Table } from 'react-bootstrap';
function view (props, state) {
if (!props.project.services || !props.project.services.length) {
return (
<div>
No services added.
<Link to="/project/addservice">Add service to project</Li... |
src/svg-icons/communication/swap-calls.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
src/components/store_types/store-types-edit.js | Xabadu/VendOS | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';
import { getStoreType, updateStoreType } from '../../actions/store-types';
class StoreTypesEdit extends Component {
constructor(props) {
super(props);
... |
ui/js/components/ItemContext.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loadCategory, unloadCategory } from '../actions';
import PageItem from '../pages/page/PageItem';
import EventItem from '../pages/event/EventItem';
class ItemContext extends Component {
comp... |
lib-module-modern-browsers-dev/layout/DefaultLayout.js | turacojs/fody | var _jsxFileName = 'layout/DefaultLayout.jsx',
_this = this;
import React from 'react';
import { ReactElementType as _ReactElementType, LayoutPropsType as _LayoutPropsType } from '../types';
import { Html, Head, Body } from './index';
import t from 'flow-runtime';
const ReactElementType = t.tdz(function () {
re... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | joenmarz/joenmarz-yii2-advanced-with-gulp-bootstrap-sass | 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'));
|
src/Components/Featured.js | jsmankoo/SPATemplate | import React from 'react';
import {connect} from 'react-redux';
import MediaQuery from 'react-responsive';
import OwlCarousel from './OwlCarousel';
const Featured = ({Properties,Search})=>{
return (
<div className='Featured'>
<MediaQuery maxDeviceWidth={767}>
<Mobile
Properties={Proper... |
app/layouts/authenticated.js | meddle0x53/react-webpack-koa-postgres-passport-example | import React, { Component } from 'react';
import { Link, RouteHandler } from 'react-router';
import { Jumbotron, Nav, Row, Col } from 'react-bootstrap';
import { NavItemLink } from 'react-router-bootstrap';
import AuthStore from '../stores/auth';
import SignIn from '../pages/signin';
export default class MainLayout... |
src/svg-icons/editor/strikethrough-s.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
src/articles/2018-09-30-Suggestions/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Link } from 'react-router-dom';
import { Zerotorescue } from 'CONTRIBUTORS';
import RegularArticle from 'interface/news/RegularArticle';
import RandomImageToMakeThisArticleLessBland from './weirdnelfandherfriend.png';
export default (
<RegularArticle title={<>What are <i>YOUR</i... |
src/components/Header/Header.js | HereIsJohnny/issuetracker | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/interface/report/EventParser.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ExtendableError from 'es6-error';
import { connect } from 'react-redux';
import { getBuild } from 'interface/selectors/url/report';
import sleep from 'common/sleep';
import { captureException } from 'common/errorLogger';
import EventEmitter from 'pa... |
examples/async/containers/Root.js | leeluolee/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/components/iconButton.js | Andrey11/golfmanager | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TouchableHighlight,
Image
} from 'react-native';
import styles from '../styles/basestyles.js';
export default class iconButton extends Component {
render () {
return (
<TouchableHighlight
style={this... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | shrynx/react-super-scripts | /**
* 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... |
example/src/other/SuperButton.js | b6pzeusbc54tvhw5jgpyw8pwz2x6gs/rix-loader | import React from 'react';
import StyleSheet from 'react-inline';
require('requirish')._(module);
var appUtil = require('src/appUtil');
//import appUtil from 'src/appUtil';
console.log('SuperButton');
const { oneOf, bool } = React.PropTypes;
class SuperButton extends React.Component {
render() {
return <div cl... |
public/components/tehtPage/tabsComponents/pohjapiirrokset/Pelastussuunnitelma.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import SubitemWrapper from './subcontent/SubitemWrapper';
import { connect } from 'react-redux';
const Pelastussuunnitelma = (props) =>
<SubitemWrapper {...props} />;
const mapStateToProps = ({ pelastussuunnitelmatab }) => ({
pelastussuunnitelmatab
});
export default connect(mapSta... |
docs/src/PageFooter.js | AlexKVal/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
example/common/components/Counter.js | modosc/react-responsive-redux | import React from 'react'
import PropTypes from 'prop-types'
const Counter = ({
increment, incrementIfOdd, incrementAsync, decrement, counter,
}) => (
<p>
Clicked: {counter} times
{' '}
<button onClick={increment}>+</button>
{' '}
<button onClick={decrement}>-</button>
{' '}
<button onC... |
src/components/Charts/MiniBar/index.js | wu-sheng/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
src/components/Dialog/Container.js | STMU1320/dedao-demo | import React from 'react'
import { VelocityComponent } from 'velocity-react'
import classnames from 'classnames'
import styles from './style.less'
const dialogMask = 'dialog_mask'
class Container extends React.PureComponent {
static defaultProps = {
maskClosable: true,
placement: 'center',
className: ''... |
examples/server/store.js | rackt/redux-simple-router | import React from 'react'
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { routerReducer, routerMiddleware } from 'react-rout... |
src/components/icons/DragHandle.js | niekert/soundify | import React from 'react';
import { string } from 'prop-types';
const DragHandle = ({ fill, ...props }) =>
<svg
fill={fill}
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<defs>
<path d="M0 0h24v24H0V0z" id="a" />
</defs>
<clipPa... |
src/02-Properties.js | sericaia/react-msf-demos | import React from 'react';
class MyPropertiesExample extends React.Component {
render() {
return (
<div>
<h1>Properties</h1>
My favourite dish is {this.props.dish}.
</div>
);
}
}
MyPropertiesExample.defaultProps = {
dish: 'shrimp with pasta'
};
MyPropertiesExample.propTypes ... |
test/specs/views/Item/ItemDescription-test.js | vageeshb/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import ItemDescription from 'src/views/Item/ItemDescription'
describe('ItemDescription', () => {
common.isConformant(ItemDescription)
common.rendersChildren(ItemDescription)
describe('content prop', () => {
... |
frontend/src/Components/Table/TableRowButton.js | geogolem/Radarr | import React from 'react';
import Link from 'Components/Link/Link';
import TableRow from './TableRow';
import styles from './TableRowButton.css';
function TableRowButton(props) {
return (
<Link
className={styles.row}
component={TableRow}
{...props}
/>
);
}
export default TableRowButton;
|
src/svg-icons/communication/contact-mail.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactMail = (props) => (
<SvgIcon {...props}>
<path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3... |
src/pages/repos.js | geekydatamonkey/hjs-gittagger | 'use strict';
import React from 'react';
export default React.createClass({
displayName: 'ReposePage',
render() {
return (
<main class="container">
<h1>Repos Page</h1>
<a href="/"> ← back to Public</a>
</main>
)
}
}); |
node_modules/react-native-svg/elements/Rect.js | MisterZhouZhou/ReactNativeLearing | import React from 'react';
import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined`
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
import {pathProps,... |
components/AddIngredient.ios.js | kkwokwai22/snacktime | import React, { Component } from 'react';
import { Text, View, Image, TextInput, ListView, TouchableHighlight, TouchableOpacity, Switch } from 'react-native';
import helpers from '../helpers/helpers.js';
import styles from '../styles.ios.js';
import FoodpairResults from './FoodpairResults.ios.js';
import AddIngredientC... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js | benkroeger/keystone | import React from 'react';
import classnames from 'classnames';
import ListControl from '../ListControl';
import { Columns } from 'FieldTypes';
import { DropTarget, DragSource } from 'react-dnd';
import {
setDragBase,
resetItems,
reorderItems,
setRowAlert,
moveItem,
} from '../../actions';
const ItemsRow = Rea... |
Example/components/Launch.js | gectorat/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "transp... |
docs/src/examples/modules/Accordion/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import Advanced from './Advanced'
import Types from './Types'
import Variations from './Variations'
import Usage from './Usage'
const AccordionExamples = () => (
<div>
<Types />
<Variations />
<Usage />
<Advanced />
</div>
)
export default AccordionExamples
|
app/main.js | henrikra/gym-diary | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promise from 'redux-promise';
import { Router } from 'react-router';
import createHistory from 'history/lib/createHashHistory';
import reducers from './reduc... |
ui/src/main/js/components/UpdateConfig.js | thinker0/aurora | import React from 'react';
import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout';
import TaskConfig from 'components/TaskConfig';
import UpdateDiff from 'components/UpdateDiff';
import { isNully } from 'utils/Common';
export default function UpdateConfig({ update }) {
if (isNully(update.upd... |
mlflow/server/js/src/model-registry/components/ModelVersionPage.js | mlflow/mlflow | import React from 'react';
import { connect } from 'react-redux';
import {
getModelVersionApi,
updateModelVersionApi,
deleteModelVersionApi,
transitionModelVersionStageApi,
getModelVersionArtifactApi,
parseMlModelFile,
} from '../actions';
import { getRunApi } from '../../experiment-tracking/actions';
impor... |
src/NavbarBrand.js | egauci/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import tbsUtils from './utils/bootstrapUtils';
class NavbarBrand extends React.Component {
render() {
const {className, children, ...props} = this.props;
let { $bs_navbar_bsClass: bsClass = 'navbar' } = this.context;
let brandClasses = tbsU... |
admin/client/App/shared/CreateForm.js | brianjd/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 '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.