path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/views/room/contextualBar/RoomFiles/components/FileItemIcon.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import FileItemIcon from './FileItemIcon';
export default {
title: 'room/contextualBar/RoomFiles/FileItemIcon',
component: FileItemIcon,
};
const options = [
'',
'application/vnd.ms-excel',
'audio',
'video',
'application/msword',
'application/x-zip-compressed',
'application/pdf',
... |
redux/js/todo/containers/RouteVisibleTodoList.js | quiaro/js-playground | import React, { Component } from 'react';
import { connect } from 'react-redux'
import { withRouter } from 'react-router';
import * as actions from '../actions/todo'
import TodoList from '../components/TodoList'
import FetchTodosError from '../components/errors/FetchTodosError'
import { getVisibleServerTodos, getIsFet... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | rhaedes/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
client/router.js | bmathews/menubar-calendar | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, hashHistory } from 'react-router';
import App from './app.js';
render((
<Router history={hashHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('react-root'));
|
js/jqwidgets/demos/react/app/scheduler/resourceswithcustomcolumnwidths/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount () {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render () {
let appointments = new Arr... |
packages/cf-component-label/example/basic/component.js | jroyal/cf-ui | import React from 'react';
import { Label } from 'cf-component-label';
const LabelComponent = () => (
<p>
<Label type="default">Default</Label>
<Label type="info">Info</Label>
<Label type="success">Success</Label>
<Label type="warning">Warning</Label>
<Label type="error">Error</Label>
</p>
);
... |
src/client/story_box.js | xieyunzi/hacker-menu | import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... |
client/src/javascript/components/general/SortableList.js | stephdewit/flood | import classnames from 'classnames';
import {DragDropContext} from 'react-dnd';
import {injectIntl} from 'react-intl';
import HTML5Backend from 'react-dnd-html5-backend';
import React from 'react';
import SortableListItemDragLayer from './SortableListItemDragLayer';
import SortableListItem from './SortableListItem';
... |
demo/src/DataTables.js | kiloe/ui | import React from 'react';
import Doc from './Doc';
import View from '../../package/View';
export default class DataTables extends React.Component {
//[ { id: 232, dessert: 'Bakewell tart', type: 'pastry' }, { id: 111, dessert: 'Chocolate Sundae', type: 'ice cream' }, { id: 9, dessert: 'Soggy biscuit', type: 'past... |
frontend/app/js/components/rules_v2/edit/addnode.js | serverboards/serverboards | import React from 'react'
import i18n from 'app/utils/i18n'
function AddNode(props){
const {AddNode, gotoStep, onUpdate, id, section, addNode} = props
console.log(props)
let input_id="AddNode_"+id.join("_")
return (
<div className="ui extend with padding">
<h2 className="ui centered header">
... |
packages/react-scripts/fixtures/kitchensink/src/index.js | gutenye/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
examples/with-webpack-bundle-analyzer/pages/index.js | giacomorebonato/next.js | import React from 'react'
import Link from 'next/link'
export default class Index extends React.Component {
static getInitialProps ({ req }) {
if (req) {
// Runs only in the server
const faker = require('faker')
const name = faker.name.findName()
return { name }
}
// Runs only in... |
examples/todomvc/containers/Root.dev.js | calesce/redux-slider-monitor | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import TodoApp from './TodoApp';
import DevTools from './DevTools';
const Root = ({ store }) => (
<Provider store={store}>
<div>
<TodoApp />
<DevTools />
</div>
</Provider>
);
Root.propTypes ... |
src/app/containers/SubmitButton.js | pingwing/travel-guide-las-palmas | import React from 'react';
import {Component} from 'react';
export default class SubmitButton extends Component {
render() {
return (
<button className="submit">Submit</button>
)
}
}
|
app/containers/PartnerPage/index.js | openactive/open-sessions | import React from 'react';
import Banner from '../../components/Banner';
import Button from '../../components/Button';
import styles from './styles.css';
export default class PartnerPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (<div className={styles.p... |
src/containers/Home/index.js | hasibsahibzada/quran.com-frontend | import React, { Component } from 'react';
import * as customPropTypes from 'customPropTypes';
import styled from 'styled-components';
import Helmet from 'react-helmet';
import IndexHeader from 'components/IndexHeader';
import cookie from 'react-cookie';
import { asyncConnect } from 'redux-connect';
import { connect } f... |
src/components/Feedback/Feedback.js | lycandjava/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
node_modules/react-bootstrap/es/Checkbox.js | cmccandless/SolRFrontEnd | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/icons/GlyphCalendar.js | ipfs/webui | import React from 'react'
const GlyphCalendar = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M73.09 22.24h-5.43v-1.69a3.8 3.8 0 0 0-7.59 0v1.69H39.93v-1.69a3.8 3.8 0 0 0-7.59 0v1.69h-5.43a6.65 6.65 0 0 0-6.64 6.64v47.71a6.66 6.66 0 0 0 6.64 6.65h46.18a6.66 6.66 0 0 0 6.64-6.65V28.88a6.65 6.65 0 0 0... |
Libraries/Image/ImageBackground.js | Guardiannw/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/docs/components/chart/MarkerDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Chart, { Base, Marker, Layers } from 'grommet/components/chart/Chart';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArticle';
import BackControl from... |
src/components/common/alert.js | lq782655835/ReactDemo | import React from 'react';
import { Modal, Alert } from 'antd';
import OrderDetail from '../isdbooking/components/orderdetail';
let QRCode = require('qrcode.react');
class CtripAlert {
constructor(){
}
show(title='this is title', content='this is content'){
this.showModelLayer(title, content);
}
showWinXi... |
src/svg-icons/content/clear.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
src/svg-icons/action/flight-takeoff.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightTakeoff = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.... |
examples/todomvc-react/src/index.js | Anaphalis/ds | import React from 'react'
import { render } from 'react-dom'
import App from './containers/App'
import 'todomvc-app-css/index.css'
render(
<App />,
document.getElementById('root')
)
|
src/@ui/RelatedContent/RelatedContentWithoutData.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { compose, pure, setPropTypes, defaultProps, branch, withProps } from 'recompose';
import { times } from 'lodash';
import { Link } from '@ui/NativeWebRouter';
import { getLinkPath, getItemImages } from '@utils/co... |
src/index.js | tobias2801/app_gestoria | import './sass/main.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import Main from './MainComposition';
let elemToRender = document.querySelector('#main-container');
ReactDOM.render(
<Main />,
elemToRender
); |
source/containers/Accounts.js | mpalmer685/DebtPayoffCalculator | import React from 'react'
import { Grid, Row, Col } from 'react-bootstrap'
import { connect } from 'react-redux'
import Account from 'models/Account'
import validateAccount from 'models/AccountFormValidation'
import { updateForm, resetForm, addAccount, deleteAccount } from 'actions/AccountActionCreators'
import { Accou... |
examples/star-wars/js/app.js | SBUtltmedia/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/app/components/forms/editors/Summernote.js | backpackcoder/world-in-flames | import React from 'react'
import 'script-loader!summernote/dist/summernote.min.js'
export default class Summernote extends React.Component {
componentDidMount() {
$(this.refs.editor).summernote({
height: this.props.height || 270
})
}
componentWillUnmount() {
$(this.refs.editor).summernote('de... |
src/js/About.js | vincentleung1/PersonalPage | import React, { Component } from 'react';
import '../css/ContentStyle.css';
class About extends Component {
render() {
return (
<div className="content-body">
<h1 className="title"> About me </h1>
<div className="about">
<p>
I am a new Software Engineering (B... |
src/layouts/CoreLayout/CoreLayout.js | weixing2014/iTodo | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className={classes.mainContainer}>
{children}
</div>
... |
blueocean-material-icons/src/js/components/svg-icons/device/battery-charging-full.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBatteryChargingFull = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H9L13 7v5.5h2L11 20z"/>
</SvgIco... |
test/helpers/shallowRenderHelper.js | harrydu2014/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
js/components/App/index.js | mxstbr/postcss.parts | import React, { Component } from 'react';
import withRouter from 'react-router/lib/withRouter';
import { connect } from 'react-redux';
import Wrapper from './Wrapper';
import Header from '../Header';
import PluginList from '../PluginList';
import SearchField from '../SearchField';
import ListHeading from '../ListHeadi... |
node_modules/npm/docs/src/components/seo.js | giovannic/giovannic.github.com | /**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { useStaticQuery, graphql } from 'gatsby'
function SEO ({ descript... |
code/fluxible-isomorphic/components/ResetButton.js | DJCordhose/react-playground | import React from 'react';
export default class ResetButton extends React.Component {
render() {
return (
<button
onClick={this.props.resetHandler}>Clear
</button>
);
}
}
|
pootle/static/js/admin/components/Project/ProjectEdit.js | Finntack/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import ProjectForm from './Pro... |
node_modules/react-router/es/Router.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
src/layouts/CoreLayout/CoreLayout.js | Lily418/Realtime-News-Client | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className='core-layout__viewport'>
{children}
</div>
</div>
)
Co... |
src/Components/ShowParkingDetailsModal.js | gourie/ParkingPlaza | /*
* Author: Joeri Nicolaes
* version: alpha
*/
import React from 'react';
import { Button, Modal } from 'react-bootstrap';
/**
* React Component: ShowParkingDetailsModal
*/
export default class ShowParkingDetailsModal extends React.Component {
/**
* Standard ES6 method
*/
constructor(props) ... |
src/views/components/RoomsScreen.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {compose} from 'redux';
import {Switch, Redirect} from 'react-router-dom';
import {Route, withRoute} from './Route.js';
import NavigationScreen from './NavigationScreen.js';
import List from './List.js';
import Bl... |
src/main/app/src/component/DetailView/DetailView.js | p632-sp-2017/microservice-catalog-frontend | import React from 'react';
import './DetailView.css';
import ServiceTable from './ServiceTable'
/**
* Component to display all fields of a microservice
* @param {[type]} serviceDetails [description]
*/
const DetailView = (serviceDetails) => {
let detailHtml = [];
let data = serviceDetails;
let keys = Object.... |
examples/huge-apps/app.js | levjj/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
src/DetailsSection/CardList/TableBody.js | conferenceradar/list | import React from 'react';
import { ListWrapper } from './styles';
import NoResults from '../NoResults';
const CustomTableBody = ({ rowIds, Row, className }) => (
<ListWrapper>
{ (!rowIds || rowIds.size === 0) && <NoResults /> }
{ rowIds && rowIds.map(r => <Row key={r} griddleKey={r} />) }
</ListWrapper>
)... |
docs/app/Examples/elements/Segment/Groups/SegmentExamplePiledSegments.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExamplePiledSegments = () => (
<Segment.Group piled>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentExamplePiledSegments
|
src/components/Home/Banner.js | tilgram/tilgram-frontend | import React from 'react';
const Banner = ({ appName, token }) => {
if (token) {
return null;
}
return (
<div className="banner">
<div className="container">
<h1 className="logo-font">
{appName.toLowerCase()}
</h1>
<p>A place to share your knowledge.</p>
</di... |
src/svg-icons/image/vignette.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
src/svg-icons/device/bluetooth-disabled.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
docs/src/pages/premium-themes/onepirate/modules/withRoot.js | lgollut/material-ui | import React from 'react';
import { ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import theme from './theme';
export default function withRoot(Component) {
function WithRoot(props) {
return (
<ThemeProvider theme={theme}>
{/* CssBaseline ... |
src/components/Footer/index.js | sioked/ecomchicago | import React from 'react';
import {
Footer as BFooter,
Container,
Columns,
Column,
Title,
Content,
} from 'bloomer';
import content from '../../constants/content';
function Footer() {
return (
<BFooter>
<Container>
<Columns>
<Column isSize="1/2">
<Title isSize="6"... |
src/svg-icons/maps/local-bar.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalBar = (props) => (
<SvgIcon {...props}>
<path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/>
</SvgIcon>
);
MapsLocalBar = pure(MapsLocalBar);
MapsLocalBar.displayName ... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | zipongo/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
src/components/SubtitleHeading/SubtitleHeading.js | scottdj92/t7-chicken-native | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
export default class SubtitleHeading extends Component {
constructor() {
super();
}
render() {
return (
<View style={Styles.background}>
<Text style={Styles.text}>{this.props.subtitle}<... |
src/svg-icons/content/font-download.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFontDownload = (props) => (
<SvgIcon {...props}>
<path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13... |
packages/reactor-kitchensink/src/examples/FormFields/Validation/Validation.js | dbuhrman/extjs-reactor | import React from 'react';
import { Container, Panel, FormPanel, TextField, UrlField, EmailField, NumberField, DatePickerField } from '@extjs/ext-react';
Ext.require("Ext.data.validator.*");
export default function ValidationExample() {
return (
<Container
scrollable
platformConfig... |
src/Flags/Monaco.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const red = '#CF0821';
const white = '#FFFFFF';
export default function Monaco() {
return (
<LinearFlag
gradient={`${gradient([red, white])}`}
/>
);
}
|
test/test_helper.js | Albinovich/youtubish | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client/src/components/Header/components/MenuButton.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
const MenuButton = props => (
<button
aria-expanded={props.displayMenu}
className={
'toggle-button-nav' + (props.displayMenu ? ' reverse-toggle-color' : '')
}
onClick={props.onClick}
ref={props.innerRef}
>
Menu
</button>... |
geonode/contrib/monitoring/frontend/src/components/cels/table-row/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { TableRow } from 'material-ui/Table';
import styles from './styles';
class MyTableRow extends React.Component {
static propTypes = {
children: PropTypes.node,
}
render() {
return (
<TableRow>{this.props.children}</TableRow>
... |
frontend/src/components/sidebar.js | b1naryth1ef/rowboat | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import {globalState} from '../state';
import {STATS_ENABLED} from 'config';
class SidebarLink extends Component {
render () {
const iconClass = `fa fa-${this.props.icon} fa-fw`;
return (
<li>
<Link to={this.props... |
src/modules/pages/feeds/js/FeedListWidget.js | lenxeon/react | import React from 'react';
import { Link } from 'react-router';
import store from './feedStore';
import TagBox from './TagBox';
class FeedListWidget extends React.Component {
constructor(props) {
super(props);
this.state={
'erro':'网络加载失败',
'list':[],
'loaded':false,
}
// console.lo... |
src/js/methodReact.js | majofeechiou/drawing-board | 'use strict';
/* *** 這部份用 ReactJs + redux 做 *** */
import MethodOption from './MethodOption';
import MethodControl from './MethodControl';
import React from 'react';
import ReactDOM from 'react-dom';
import Settings from './Settings';
import MethodSettings from './MethodSettings';
import GloablData from './GloablData... |
src/containers/search_bar.js | RolandoArroyos/weather | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
// the onChange function in the <input> tag in the render method is a
//call back function which needs to be bound. We accomplish this by bind... |
webclient/src/edit/EditTimeline.js | jadiego/bloom | import React, { Component } from 'react';
import { Icon, Form, Input, Segment, Label, Button } from 'semantic-ui-react'
import PropTypes from 'prop-types';
import TimelineItem from '../TimelineItem'
class EditTimelineItem extends Component {
constructor(props) {
super(props);
this.state = {
... |
form/RadioField.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {change} from 'redux-form';
import {types, view} from 'components';
class RadioField extends React.Component {
static propTypes = {
metaItem: PropTypes.object.isRequired,
input: PropTypes.sh... |
src/js/components/character-list/character-dashboard.js | trwalker/marvel-react | import React from 'react';
import LoadingProgress from './../shared/loading-progress';
import CharacterListItem from './character-list-item';
import ReloadError from './../shared/reload-error';
class CharacterDashboard extends React.Component {
constructor(props) {
super(props);
this.characterList... |
renderer/components/preferences/item/switch.js | wulkano/kap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {SpinnerIcon} from '../../../vectors';
import {handleKeyboardActivation} from '../../../utils/inputs';
class Switch extends React.Component {
render() {
const {checked, onClick, disabled, loading, onTransi... |
src/ContentBlocks/BlockHeading/BlockHeading.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Headline from 'grommet/components/Headline';
import unescape from 'unescape';
export default function BlockHeading({ content, strong, size }) {
const strongProp = strong ? strong === 'True' : false;
const sizeProp = size ? size.toLowerCase() : '... |
src/routes/login/index.js | peeyush1234/react-nodejs-skeleton | /**
* 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 Layout from '../../co... |
demo/react/js/index.js | tmdautov/tmdautov.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/client/app/components/projectSummary.js | JuMBoSLICE/JuMBo | import React, { Component } from 'react';
class ProjectSummary extends Component {
constructor(props){
super(props);
}
render(){
return (
<div id="project-summary">
<h3>Project Summary</h3>
<p>{this.props.summary}</p>
</div>
)
}
}
export default ProjectSummar... |
src/routes.js | polinazolotukhina/redux-movieDB | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import Popular from './containers/Popular/Popular';
import Drama from './containers/Drama/Drama';
import Kids from './containers/Kids/Kids';
import Cinema from ... |
src/svg-icons/hardware/cast-connected.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
app/javascript/mastodon/features/compose/components/compose_form.js | rainyday/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
Quiz/React/quiz/src/game.js | ChrL73/Diaphnea | /* --------------------------------------------------------------------
*
* Copyright (C) 2018
*
* This file is part of the Diaphnea project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License
* version 3 as published by the Fre... |
src/components/Template/Navigation.js | karajrish/karajrish.github.io | import React from 'react';
import { Link } from 'react-router-dom';
import Hamburger from './Hamburger';
import routes from '../../data/routes';
// Websites Navbar, displays routes defined in 'src/data/routes'
const Navigation = () => (
<header id="header">
<h1 className="index-link">
{routes.filter((l) =... |
src/components/chatrooms/chatroomsList/ChatroomLi.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
const ChatroomLi = ({ title, id }) => {
const handleClick = () => {
document.body.scrollTop = document.body.scrollHeight
}
return (
<li>
<Link to={`/chatrooms/${id}`} onClick={handleClick} activeClassN... |
src/components/Common/Categorybar.js | MattMcFarland/tw-client | import React, { Component } from 'react';
import getCategory from '../../utils/getCategory';
let pathCategory = getCategory();
let categories = [
{
id: 'apps',
label: 'Apps'
},
{
id: 'gaming',
label: 'Gaming'
},
{
id: 'gamedev',
label: 'Game Development'
},
{
id: 'webdev',
... |
src/components/login_modal.js | 17Q4MX2hmktmpuUKHFuoRmS5MfB5XPbhod/dropzone | import React from 'react'
import { Input, Modal } from 'react-bootstrap'
import Mnemonic from 'bitcore-mnemonic'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
const LoginModal = React.createClass({
getInitialState() {
return { isCreatingWallet: false, newWalletMnemonic: null,
isL... |
app/routesConfig.js | ritishgumber/dashboard-ui | /**
* Created by Darkstar on 11/30/2016.
*/
import React from 'react';
import {Route, IndexRoute} from 'react-router'
// custom comps
import App from './components/app';
import AppSelected from './components/appSelected';
import Dashboardproject from './components/dashboardproject/dashboardproject.jsx';
import Tabl... |
responsive-visualizations-with-react/examples/demo1.js | okonet/slides | import React from 'react'
import { VictoryChart, VictoryLine } from 'victory/dist/victory'
export default <VictoryChart width={800} height={400}>
<VictoryLine y={(data) => Math.sin(1.5 * Math.PI * data.x)} />
</VictoryChart>
|
src/components/Notes/NoteCard.js | kesean/Dashboard-Frontend | import React from 'react'
import Note from './Note'
import NoteModal from './NoteModal'
import Paper from 'material-ui/Paper'
import Divider from 'material-ui/Divider'
import CircularProgress from 'material-ui/CircularProgress'
import {CardTitle} from 'material-ui/Card'
import FlatButton from 'material-ui/FlatButton'
i... |
client/components/gainloss/GainLoss.js | kanehara/yostock | import React from 'react';
export function GainLoss(props) {
return (
<div>
<div>${ props.gainLossDollar }</div>
<div>%{ (props.gainLossPercentage * 100).toFixed(2) }</div>
</div>
)
} |
client/modules/comments/components/.stories/comment_list.js | luki21213/tripIdeas | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import CommentList from '../comment_list';
storiesOf('comments.CommentList', module)
.add('no comments', () => {
return (
<CommentList comments={[]}/>
);
})
.add('with comments', () => {
const comments = [
{... |
lib/ui/components/Mocks/MultiSelectView.js | 500tech/bdsm | import PropTypes from 'prop-types';
import React from 'react';
import OutlineButton from 'ui/components/common/OutlineButton';
import API from 'api';
import omit from 'lodash/omit';
import { Group } from 'api/models/group';
import { MultiSelectContainer, MultiSelectContainerText } from 'ui/components/Mocks/styled';
imp... |
src/components/antd/form/FormItem.js | hyd378008136/olymComponents | import React from 'react';
import { findDOMNode } from 'react-dom';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import Row from '../grid/row';
import Col from '../grid/col';
import { FIELD_META_PROP } from './constants';
import warn... |
fields/types/number/NumberFilter.js | frontyard/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
Form,
FormField,
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ ... |
src/components/Vote.js | jsfeb26/voting-client | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
mixins: [PureRenderMixin],
getPair: function() {
return this.props.pair || [];
},
isDisabled: function() {
return this.props.hasVoted;
},
hasVotedFor: function(entry) {
r... |
frontend/app/js/containers/service/logs.js | serverboards/serverboards | import connect from 'app/containers/connect'
import View from 'app/containers/logs'
import React from 'react'
const Logs = function(props){
return (
<View filter={{service: props.service.uuid}}/>
)
}
export default Logs
|
src/svg-icons/communication/phonelink-ring.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkRing = (props) => (
<SvgIcon {...props}>
<path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2... |
src/components/select/Option.js | heifade/quark-ui | /**
* Select Component
* @author heifade
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './Select.css';
export default class Option extends Component {
static displayName = 'Option';
static defaultProps = {
value: ''... |
src/App.js | clessg/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
common/views/Components/Tabs/Tabs.js | sauleddy/HomePortal | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap';
import classnames from 'classnames';
class Tabs extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '1'
};
}
... |
src/svg-icons/notification/airline-seat-flat-angled.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlatAngled = (props) => (
<SvgIcon {...props}>
<path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19.... |
src/routes/register/index.js | momomods/momomods | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Register from './Registe... |
fields/types/relationship/RelationshipFilter.js | belafontestudio/keystone | import React from 'react';
var { Button, FormField, FormInput, InputGroup, SegmentedControl } = require('elemental');
import PopoutList from '../../../admin/src/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Linked To', value: true },
{ label: 'NOT Linked To', value: false }
];
const RELATED_ITEMS = [
... |
src/components/about/About.js | jackson-/hireblack.io | import React from 'react'
import { Row, Col } from 'react-bootstrap'
import './About.css'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
const About = ({animated}) => {
return (
<Row className={`About fadeIn ${animated}`}>
<Col xs={12} sm={12} md={12} lg={12}>
<Row>
... |
src/svg-icons/action/today.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
hello world/1.6 - style/src/components/footer.js | wumouren/react-demo | import React from 'react';
export default class Footer extends React.Component {
// props 演示
render() {
let footer = ['2017','10','28'];
return (
<footer>
<hr/>
<h1>这里是页脚</h1>
<h2>从父组件传递过来的数据是: {this.props.info}<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.