path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/Column.js | jpdelatorre/react-dtable | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Column extends Component {
render() {
return null;
}
}
Column.propTypes = {
label: PropTypes.any,
field: PropTypes.string,
filter: PropTypes.any,
};
export default Column;
|
frontend/src/components/editor/attachments/attachment/error.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import escapeHtml from 'misago/utils/escape-html';
const STRONG = '<strong>%(name)s</strong>';
export default class extends React.Component {
onClick = () => {
const filteredAttachments = this.props.attachments.filter((item) => {
return item.key !== this.p... |
src/components/MachineList.js | blockchain-IoT/blockchain-IoT-core | /* eslint-disable react/prop-types,react/jsx-key */
import React from 'react';
const machineList = (props) => {
const vins = [];
const addresses = [];
props.machines.forEach((machine) => {
vins.push(<li key={machine.vin}> {machine.vin} </li>);
addresses.push(<li key={machine.vin}> {machine.address} </li... |
example/RNApp/app/components/GenericTextInput/GenericTextInput.js | DesignmanIO/react-native-meteor-offline | import React from 'react';
import { View, TextInput } from 'react-native';
import styles from './styles';
const GenericTextInput = (props) => {
return (
<View>
{props.borderTop ? <View style={styles.divider} /> : null}
<TextInput
style={styles.input}
autoCapitalize="none"
auto... |
docs/app/Examples/views/Statistic/Types/BottomLabel.js | jamiehill/stardust | import React from 'react'
import { Statistic } from 'stardust'
const BottomLabel = () => (
<div>
<Statistic>
<Statistic.Value>5,550</Statistic.Value>
<Statistic.Label>Downloads</Statistic.Label>
</Statistic>
<Statistic value='5,500' label='Downloads' />
</div>
)
export default BottomLabel... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleRemoveNoResultsMessage.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleRemoveNoResultsMessage = () => (
<Dropdown
options={[]}
search
selection
placeholder='No message...'
noResultsMessage={null}
/>
)
export default DropdownExampleRemoveNoResultsMessage
|
src/index.js | taiwoabegunde/developersmap | /**
* Created by Taiwo on 5/24/2017.
*/
'use strict';
import React, { Component } from 'react';
import { render } from 'react-dom';
import Main from './components/landing/Main';
import Landing from './components/landing/Index';
import SignUp from './components/SignUp/Index';
import Login from './components/Login/In... |
app/components/AddUser.js | iankit3/not-yet-decided | import React from 'react';
class AddUser extends React.Component{
render(){
return(
<form className="input-group"
onSubmit={this.props.addToList.bind(this)}>
<input name="newuser" type="text" className="form-control" placeholder="Add user..." />
... |
docs/app/Examples/collections/Table/States/TableExampleActive.js | shengnian/shengnian-ui-react | import React from 'react'
import { Table } from 'shengnian-ui-react'
const TableExampleActive = () => (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
</... |
src/components/video_list.js | nbreath/react-practice | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});
return (
<ul cl... |
app/jsx/gradebook/default_gradebook/components/SubmissionStatus/Message.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
www/index.js | jben94/centreon | import React from 'react'
import ReactDOM from 'react-dom'
import TopHeader from './frontSrc/Header/TopHeaderContainer'
ReactDOM.hydrate(
<TopHeader />,
document.getElementById('header-react')
);
|
src/components/JobsList/__tests__/index-test.js | apedyashev/react-universal-jobs-aggregator | import React from 'react';
import {shallow} from 'enzyme';
import InfiniteList from 'components/Infinite/List';
import JobsList from '../index.js';
describe('JobsList', () => {
it('renders InfiniteList', () => {
const jobs = [{id: '1', title: 'a title', shortDescription: 'job description'}];
const loadNextPa... |
src/containers/Thesis/ThesisList.spec.js | OhtuGrappa2/front-grappa2 | import React from 'react'
import test from 'ava'
import { shallow } from 'enzyme'
import { ThesisList } from './ThesisList'
const theses = [
{
authorFirstname: 'Teppo',
authorLastname: 'Testaaja',
thesisTitle: 'Gradu yksi',
grade: '5',
thesisId: 1,
printDone: false... |
frontend/js/components/pages/splash.js | skeswa/equitize | import React from 'react';
import {Navigation, Link} from 'react-router';
const Splash = React.createClass({
render: function() {
return (
<div>
<h1>splash</h1>
</div>
);
}
});
export default Splash;
|
common/components/ide/panels/EventDatesClusterChart.js | ebertmi/webbox | import React from 'react';
import PropTypes from 'prop-types';
import {
XYPlot,
XAxis,
YAxis,
DiscreteColorLegend,
HorizontalGridLines,
Hint,
VerticalGridLines,
makeWidthFlexible,
LineMarkSeries} from 'react-vis';
const FlexibleXYPlot = makeWidthFlexible(XYPlot);
import DatePicker from 'react-datep... |
src/js/components/Form/stories/CustomThemed/Themed.js | grommet/grommet | import React from 'react';
import { css } from 'styled-components';
import { Alert, StatusInfo } from 'grommet-icons';
import {
Box,
Form,
FormField,
Grommet,
Heading,
Text,
TextInput,
} from 'grommet';
import { grommet } from 'grommet/themes';
import { deepMerge } from '../../../../utils';
const custom... |
src/javascript/components/tooltip-decorator.js | openfin/Hyperblotter | import React, { Component } from 'react';
class TooltipDecorator extends Component{
constructor(props){
super(props);
this.state = {
showing: false
}
}
onRollOver = () => {
this.setState({
showing: true
});
}
onRollOut = () => {
... |
src/docs/examples/ProgressBar/Example80Percent.js | dryzhkov/ps-react-dr | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
/** An example showing a progress bar of 80 percent */
const Example80Percent = () => {
return <ProgressBar percent={80} width={200} height={20} />
};
export default Example80Percent; |
src/components/Common/List/Components/Authors/Views/Mobile/tpl.js | LifeSourceUA/lifesource.ua | import React from 'react';
import PropTypes from 'prop-types';
import Styles from './Styles/main.scss';
import Sort from 'components/Assets/SortBy';
import Palette from 'theme/Palette';
import BP from 'lib/breakpoints';
function Mobile(props) {
const { mediaType } = props;
const description = BP.isPhoneLan... |
client/index.js | dfuruya/BuoyCheck | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRouter, hashHistory } from 'react-router';
import App from './App/App';
import Main from './Main/Main';
import Favorites from './Favorites/Favorites';
// import Bootstrap from 'bootstrap/dist/css/bootstrap.css';
render((
<Rou... |
src/App.js | NirBenita/usability-rover-client | import React from 'react';
import { render } from 'react-dom';
import SessionPage from './pages/session-page';
import HomePage from './pages/home-page';
import { injectGlobal } from 'styled-components';
import { Router, Route, IndexRoute, Link, hashHistory } from 'react-router';
// Simulating Slack Data
import { mock ... |
src/components/Track/Track.js | xiCO2k/react-scroll-area | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import className from 'classnames';
import Handler from './Handler/Handler';
import style from './Track.css';
import DOMHelper from '../../helpers/DOMHelper';
export { style };
export default class Track extends Component {
static propTy... |
src/svg-icons/action/view-headline.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
app/components/hourlyPieGroup.component.js | bryantwang1/react-weather | import React from 'react';
import HourlyPieChart from './hourlyPieChart.component';
class HourlyPieGroup extends React.Component {
render() {
return(
<div className="hourly-pie-group">
<div className="row">
<HourlyPieChart data={this.props.data[0]} day={1} />
<HourlyPieChart da... |
node_modules/alt/test/alt-iso-test.js | Lahne/favor | import React from 'react'
import Alt from '../'
import AltContainer from '../AltContainer'
import AltIso from '../utils/AltIso'
import { assert } from 'chai'
const alt = new Alt()
const UserActions = alt.generateActions('receivedUser', 'failed')
const UserSource = {
fetchUser() {
return {
remote(state, i... |
client/component/schema/replace/types/member.js | johngodley/search-regex | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import ModifyMember from '../../modify/types/member';
/**
* Display a column modification form
* @param {object} props - Component props
* @param {boolean} props.disabled -... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | scyankai/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... |
src/components/Header/Header.js | Bogdaan/react-auth-kit |
import React, { Component } from 'react';
import { Link } from 'react-router';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.scss';
class Header extends Component {
render() {
return (
<div className={s.container}>
<Link to="/" className={s.brand}>
... |
examples/counter/containers/App.js | jarsbe/redux-devtools | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import thunk from 'redux-... |
src/containers/MenuView/Forms.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... |
client/app/components/A/index.js | Kielan/onDemanager | import React from 'react';
import styles from './styles.css';
class A extends React.Component {
render() {
return (
<a
className={
this.props.className || styles.link
}
href={ this.props.href }
target={ this.props.target }
>
{ this.props.children }
... |
src/svg-icons/device/brightness-low.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
Paths/React/05.Building Scalable React Apps/4-react-boilerplate-building-scalable-apps-m4-exercise-files/Before/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 ... |
src/wrapper/ReactDataGridExtensionsWrapper.js | diogofcunha/react-data-grid-extensions | import ReactDataGrid from'react-data-grid';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connectHeader } from '../headers/columnActionHeader';
import ModalContainer from '../modals/ModalContainer';
import { handleGridRowsUpdated, handleModalClose } from './defaultHandlers';
imp... |
_gatsby/src/components/Photos/Photos.js | YannickDot/yannickdot.github.io | import React from 'react'
// import { config } from 'config'
import { rhythm } from '../../utils/typography'
const pictures = [
{
url:
'https://scontent-frx5-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/c0.135.1080.1080/18445085_122642668303774_3605036071831732224_n.jpg',
alt: ''
},
{
url... |
app/src/components/SearchInput.js | wtfil/google-music-unofficial-client | import React from 'react';
import classnames from 'classnames';
const MAX_SUGGEST = 5;
export default class SearchInput extends React.Component {
constructor () {
super();
this.state = {
suggestSelected: -1,
open: false
};
}
selectSuggest(suggestSelected) {
const text = this.props.suggest.items[sugges... |
src/svg-icons/action/flip-to-back.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToBack = (props) => (
<SvgIcon {...props}>
<path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2... |
docs/src/Anchor.js | brentertz/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.string
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className='anchor'>
<span className='anchor-icon'>#</span>
{this.props.children}
</a>
);
}
});
e... |
node_modules/react-bootstrap/es/MenuItem.js | superKaigon/TheCave | 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 ... |
examples/add-progress-bar/Navigation.js | americanexpress/react-albus | import React from 'react';
import { WithWizard } from 'react-albus';
const Navigation = () => (
<WithWizard
render={({ next, previous, step, steps }) => (
<div className="example-buttons">
{steps.indexOf(step) < steps.length - 1 && (
<button className="btn-fluid margin-1-b" onClick={next}... |
src/parser/shared/modules/spells/bfa/azeritetraits/BloodRite.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
const blo... |
test/test_helper.js | stewarea/React-Youtube | 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... |
packages/material-ui-icons/src/PhotoAlbum.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z" /></g>
, 'PhotoAlbum');
|
src/svg-icons/image/burst-mode.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
src/example/legends/vertical-discrete-color.js | jameskraus/react-vis | // Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
examples/pinterest/app.js | 9618211/react-router | import React from 'react';
import { Router, Link } from 'react-router';
import HashHistory from 'react-router/lib/HashHistory';
var history = new HashHistory({ queryKey: 'k' });
var pictures = [
{id: 0, src: 'http://placekitten.com/601/601'},
{id: 1, src: 'http://placekitten.com/610/610'},
{id: 2, src: 'http://p... |
client/src/app-components/articles-list.js | ivandiazwm/opensupports | import React from 'react';
import {connect} from 'react-redux';
import i18n from 'lib-app/i18n';
import ArticlesActions from 'actions/articles-actions';
import TopicViewer from 'app-components/topic-viewer';
import ModalContainer from 'app-components/modal-container';
import TopicEditModal from 'app-components/topic... |
ios/versioned-react-native/ABI8_0_0/Libraries/Components/TextInput/TextInput.js | jolicloud/exponent | /**
* 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/client.js | szwork2013/router-experiments | import React from 'react';
import Router from 'react-router';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import routes from './views/routes';
import createRedux from './redux/create';
import { Provider } from 'redux/react';
import ApiClient from './ApiClient';
const history = new BrowserHistory();
c... |
src/components/header.js | liuyuanquan/kankan | import React from 'react';
import Logo from './common/logo.js';
import SearchForm from './common/searchform.js';
import UserArea from './common/userarea.js';
class Header extends React.Component {
render() {
return (
<header id={this.props.id}>
<div className='wrapper'>
<Logo href='https://liuyuanquan.g... |
src/svg-icons/device/bluetooth-connected.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothConnected = (props) => (
<SvgIcon {...props}>
<path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.... |
src/routes/about/index.js | DiroKate/SysuhikerCC | import React from 'react';
import { connect } from 'dva';
import { Tabs } from 'antd';
import { About } from '../../components';
const TabPane = Tabs.TabPane;
const { SysuhikerDescription, DevelopTabPane, ContactUs } = About;
function aboutPage({ mode }) {
const tabPosition = mode
? 'top'
: 'left';
retur... |
client/tests/documentComponents/documents.spec.js | FlevianK/cp2-document-management-system | import expect from 'expect';
import React from 'react';
import { Documents } from '../../src/components/document/Documents';
import { shallow, mount } from 'enzyme';
describe('All documents component', () => {
const props = {
actions: {
loadDocuments: () => Promise.resolve(),
loadDocumentsPage: () =>... |
tests/Formsy-spec.js | sdemjanenko/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import TestInput from './utils/TestInput';
import immediate from './utils/immediate';
import sinon from 'sinon';
export default {
'Setting up a form': {
'should render a for... |
src/containers/home/HelpUs.js | phodal/growth-ng | import React, { Component } from 'react';
import { Linking, Text, View } from 'react-native';
import { ListItem } from 'react-native-elements';
class HelpUs extends Component {
static componentName = 'HelpUs';
render() {
return (
<View style={{ backgroundColor: '#fff' }}>
<Text style={{ padding:... |
server.js | zacfukuda/universal-app-react-router | import fs from 'fs';
import path from 'path'
import express from 'express'
import React from 'react'
import ReactDOMServer, { renderToString } from 'react-dom/server'
import { StaticRouter } from 'react-router-dom'
import { matchRoutes } from 'react-router-config'
import App from './src/App'
import routes from './src/r... |
app/screens/findPassword.js | yiyinsong/react-native-example-jdh | /**
* component FindPassword
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
TextInput,
TouchableOpacity
} from 'react-native';
import styles from '../css/styles';
import UIToast from './common/ui-toast';
import Config from '../config/config';
import md5 from "../j... |
src/svg-icons/social/public.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
src/components/App/App.js | amberleyromo/cboard | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { injectIntl, intlShape } from 'react-intl';
import registerServiceWorker from '../../registerServiceWorker';
import { showNotification } from '../Notifications... |
common/components/ide/panels/SubmissionView.js | ebertmi/webbox | import React from 'react';
import PropTypes from 'prop-types';
import { Time } from '../../Time';
export default class SubmissionView extends React.Component {
constructor(props) {
super(props);
this.state = {
submissions: []
};
this.onChange = this.onChange.bind(this);
this.onToggleSubmi... |
src/Popover/Popover.spec.js | matthewoates/material-ui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import Popover from './Popover';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Popover />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {conte... |
static/node_modules/recompose/renderComponent.js | unmeshpro/easyPost | 'use strict';
exports.__esModule = true;
var _createHelper = require('./createHelper');
var _createHelper2 = _interopRequireDefault(_createHelper);
var _createEagerFactory = require('./createEagerFactory');
var _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);
function _interopRequireDefault(obj... |
src/client/tests/dashboardPage.spec.js | kingisaac95/docmanager | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import { DashboardPage } from '../../client/components/DashboardPage';
const props = {
documents: {
totalCount: ''
},
quote: {
quote: '',
author: ''
},
loadUserDocuments: (() => {}),
loadQuote: (() => {}),... |
docs/Documentation/AppBarPage.js | reactivers/react-material-design | /**
* Created by muratguney on 29/03/2017.
*/
import React from 'react'
import {Card, CardHeader, CardActions, CardBody} from '../../lib';
export default class CheckBoxPage extends React.Component{
render(){
return(
<Card style={{height:300}}>
<CardHeader title="Title" />
... |
src/js/components/icons/base/Duplicate.js | odedre/grommet-final | /**
* @description Duplicate 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.
* @... |
_gatsby/src/templates/post.js | YannickDot/yannickdot.github.io | import React from 'react'
import Helmet from 'react-helmet'
import UserInfo from '../components/UserInfo/UserInfo'
import Disqus from '../components/Disqus/Disqus'
import PostTags from '../components/PostTags/PostTags'
import SocialLinks from '../components/SocialLinks/SocialLinks'
import SEO from '../components/SEO/SE... |
admin/client/components/Popout/PopoutListHeading.js | suryagh/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
render () {
const className = classnam... |
src/Write.js | yigitusta9/React_Blog_App | import React, { Component } from 'react';
import './Write.css';
export default class Write extends Component {
constructor(props) {
super(props);
this.getID = this.getID.bind(this);
this.addPost = this.addPost.bind(this);
}
getID() {
for (let i = 0; i < 10000; i++) {
if (this.isUnique(i)) ... |
src/containers/Thesis/components/ThesisCouncilmeetingPicker.spec.js | OhtuGrappa2/front-grappa2 | import React from 'react'
import test from 'ava'
import sinon from 'sinon'
import { shallow } from 'enzyme'
import ThesisCouncilmeetingPicker from './ThesisCouncilmeetingPicker'
const meetings = [
{
date: '2025-11-29T22:00:00.000Z',
instructorDeadline: '2025-11-20T22:00:00.000Z',
studentDea... |
src/svg-icons/av/video-library.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>... |
app/components/Navigation/Tabs/__tests__/Tab.spec.js | igr-santos/hub-client | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { Tab } from '../'
describe('app/components/Navigation/Tab', () => {
let wrapper
const context = { router: {} }
const props = {
text: 'Foo Text'
}
describe('#render', () => {
before(() => {
wrapper... |
native/app/components/ListPanelEmpty.js | cedricium/notes | import React from 'react';
import { View, Text, StyleSheet, Image } from 'react-native';
import browser from '../browser';
const noNotesMessage = browser.i18n.getMessage('noNotesMessage');
class ListPanelEmpty extends React.Component {
render() {
return (
<View style={styles.noNotes}>
<Image
... |
exercise-06/src/components/PokemonCard.js | learnapollo/pokedex-react | import React from 'react'
import { propType } from 'graphql-anywhere'
import gql from 'graphql-tag'
import { graphql } from 'react-apollo'
import styled from 'styled-components'
const Button = styled.div`
background-color: ${props => props.save ? '#2BC3A1' : ''};
color: ${props => props.save ? 'white' : props.dele... |
app/javascript/mastodon/components/missing_indicator.js | kibousoft/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
local-cli/templates/HelloWorld/__tests__/index.android.js | Swaagie/react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
examples/tree-view/index.js | mikekidder/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import Node from './containers/Node'
import configureStore from './store/configureStore'
import generateTree from './generateTree'
const tree = generateTree()
const store = configureStore(tree)
... |
src/core/components/FooterItem.js | erlanglab/erlangpl-ui | // @flow
import React from 'react';
import { OverlayTrigger, Popover } from 'react-bootstrap';
type Props = {
title: string,
id: string,
item: ?React$Element<any>,
popover: ?React$Element<any>
};
const FooterItem = ({ title, item, popover, id }: Props) => {
return (
<div className="Footer-item">
... |
springboot-react-standalone/frontend/src/main/frontend/src/App.js | wefine/reactjs-guide | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | maletor/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id = 0, ...rest }) {
return [
{ id:... |
lib/form/SelectField.js | rodrigocipriani/br-react-utils | 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; };
var _createClass = function () { function defineProperties(ta... |
frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Modal from 'Components/Modal/Modal';
import SelectReleaseGroupModalContentConnector from './SelectReleaseGroupModalContentConnector';
class SelectReleaseGroupModal extends Component {
//
// Render
render() {
const {
... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
js/src/App.js | syslo/file_publisher | import React from 'react'
import Toolbar from './Toolbar'
import Folder from './Folder'
import File from './File'
import Loading from './Loading'
import NoAccess from './NoAccess'
import generate_actions from './actions'
import {renderDialogs, getDialogsState} from './dialogs'
export default class App extends React... |
src/parser/shared/modules/items/bfa/dungeons/LadyWaycrestsMusicBox.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'parser/core/Analyzer';
import ItemHealingDone from 'interface/ItemHealingDone';
import ItemDamageDone from 'interface/ItemDamageDone';
import ItemStatistic from 'interface/statistics/ItemStatistic';
i... |
src/svg-icons/action/subject.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSubject = (props) => (
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/>
</SvgIcon>
);
ActionSubject = pure(ActionSubject);
ActionSubject.displayName = 'Acti... |
src/quote.js | lv10/quote_machine | import React from 'react';
import axios from 'axios';
import TheButton from './button.js';
let quotesPerPage = 25;
let URL = 'https://quotesondesign.com/wp-json/posts';
let twitterLogo = 'https://goo.gl/eb4yeX';
class Quote extends React.Component {
constructor () {
super();
this.state = {
... |
react-flux-mui/js/material-ui/src/svg-icons/maps/add-location.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
src/Table.js | aabenoja/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
render() {
let c... |
gadget-system-teamwork/src/components/gadgets/CreateCommentPage.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import CreateCommentForm from './CreateCommentForm'
import FormHelpers from '../common/forms/FormHelpers'
import ValidateHelpers from '../common/ValidateHelpers'
import commentActions from '../../actions/CommentActions'
import commentStore from '../../stores/CommentStore'
import toastr... |
modules/users/client/components/InterfaceLanguagePanel.component.js | Trustroots/trustroots | import React from 'react';
import LanguageSwitch from '@/modules/core/client/components/LanguageSwitch';
import '@/config/client/i18n';
import { useTranslation } from 'react-i18next';
export default function InterfaceLanguagePanel() {
const { t } = useTranslation('users');
return (
<div className="panel panel... |
src/components/Company/CompanyPageProvider.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import { createStructuredSelector } from 'reselect';
import { withProps, lifecycle, compose, setStatic } from 'recompose';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Switch, Route, Redi... |
packages/cf-component-input/src/Input.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme }) => ({
zIndex: theme.zIndex,
width: theme.width,
height: theme.height,
margin: theme.margin,
padding: theme.padding,
border: theme.border,
borderRadius: theme.bor... |
src/components/appStructure/additionalInfo/newBlogs.js | Jguardado/ComponentBase | import React from 'react';
const NewBlogs = () => {
return (
<div className='newcomp two'>
<div className="box-heading">New Blog Posts</div>
<h4>
<ul className="list-items"><a href='https://medium.com/@juanguardado/redux-single-source-of-truth-e1fe1fb6ffec#.k7bgyf2uu'>Redux: Art of the State<... |
frontend/src/System/Events/LogsTableDetailsModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import Modal from 'Components/Modal/Modal';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
im... |
components/fields/forked-react-dates/src/components/DayPicker.js | Mudano/m-dash-ui | import React from 'react';
import PropTypes from 'prop-types';
import shallowCompare from 'react-addons-shallow-compare';
import ReactDOM from 'react-dom';
import { forbidExtraProps, nonNegativeInteger } from 'airbnb-prop-types';
import moment from 'moment';
import cx from 'classnames';
import throttle from 'lodash/thr... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/Welcome/WaveboxWelcome/WelcomePane.js | wavebox/waveboxapp | import React from 'react'
import { userStore, userActions } from 'stores/user'
import { withStyles } from '@material-ui/core/styles'
import { Button, IconButton, Tooltip } from '@material-ui/core'
import WaveboxSigninButton from 'wbui/SigninButtons/WaveboxSigninButton'
import GoogleSigninButton from 'wbui/SigninButtons... |
src/routes/ResourceState/components/mainContent/Filters.js | shinja/react-redux-c3 | import React from 'react'
import applyEachSeries from 'async/applyEachSeries'
import CSSModules from 'react-css-modules'
import Select from 'components/Common/Select'
import ResourceCheckBox from 'components/Common/ResourceCheckBox'
import {
FETCH_PERIODS_ASYNC,
FETCH_RESOURCE_STATE_DATA_ASYNC,
FILTER_PERIODS_ST... |
nailgun/static/views/root.js | eayunstack/fuel-web | /*
* Copyright 2015 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
public/src/containers/transMotion/transMotion.js | white87332/react-redux | import React from 'react';
import { TransitionMotion, spring } from 'react-motion';
class TransMotion extends React.Component
{
constructor()
{
super();
this.state = {
items: [
{ key: 'a', width: 100, height: 100, opacity: 1 },
{ key: 'b', width: 100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.