path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
client/app/components/Settings.Vendors.js | jfanderson/KIM | import React from 'react';
import h from '../helpers.js';
import v from '../services/vendorService.js';
import sign from '../services/sign.js';
import AddVendorForm from './Form.AddVendor.js';
import Cell from './Cell.js';
import Column from './Column.js';
import Table from './Table.js';
class VendorSettings extends... |
src/app.js | gj262/my-react-redux-starter-kit | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import routes from './routes'
import Root from './containers/Root'
import { browserHistory } from 'react-router'
import { syncHistory, routeReducer } from 'redux-simple-router'
import thunkMiddleware from 'redux-thunk'
import reducers fr... |
packages/mcs-lite-landing-web/src/containers/Section1/Chart.js | MCS-Lite/mcs-lite | import React from 'react';
import styled from 'styled-components';
import rafThrottle from 'raf-throttle';
import TweenOne from 'rc-tween-one';
import Heading from 'mcs-lite-ui/lib/Heading';
import last from 'ramda/src/last';
import DataPointAreaChart from 'mcs-lite-ui/lib/DataPointAreaChart';
import localTimeFormat fr... |
fields/types/azurefile/AzureFileColumn.js | dvdcastro/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
src/router.js | DanielHabib/onboarding | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
client/src/components/CoursesPage.js | yegor-sytnyk/contoso-express | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as courseActions from '../actions/courseActions';
import {departmentSelectListItem} from '../formatters/entityFromatter';
import CoursesList from './courses/CoursesList';
import CourseSave from './courses/... |
admin/client/App/screens/Item/components/FormHeading.js | snowkeeper/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
src/components/Header/Header.js | FAN-CUK/official | import React from 'react';
import FontAwesome from 'react-fontawesome';
import classNames from 'classnames';
import { Link } from 'react-router';
import MenuItem from './MenuItem';
import css from './Header.css';
class Header extends React.Component {
render() {
const c = [
{ name : "김수연조", boardId : 1 },
{... |
src/base/ActionBar.js | WellerQu/rongcapital-ui | /* 一种另类的尝试 */
import React from 'react';
import clazz from 'classnames';
import PropTypes from 'prop-types';
import * as componentStyles from '../styles/base/actionBar.sass';
const ActionBar = ({ children }) =>
<ul className={ componentStyles['action-bar'] }>{ children }</ul>;
ActionBar.Item = ({ children, right... |
examples/dynamic-segments/app.js | brownbathrobe/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | odapplications/WebView-with-Lower-Tab-Menu | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/svg-icons/editor/border-color.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
src/parser/shared/modules/features/Checklist/PreparationRule.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import PropTypes from 'prop-types';
import React from 'react';
import Requirement from './Requirement';
import Rule from './Rule';
class PreparationRule extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
thresholds: PropTypes.object.isRequired... |
src/components/general/Error.js | OlivierVillequey/hackathon | /**
* Error Screen
*
<Error text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
// Consts and... |
src/svg-icons/action/watch-later.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWatchLater = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/>
</SvgIcon>
);
ActionWatchLater = pure(Ac... |
app/javascript/mastodon/components/missing_indicator.js | PlantsNetwork/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=... |
src/components/editor/TuningButton.js | calesce/tab-editor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { head, last } from 'lodash';
import Popover from 'react-popover';
import { StyleSheet, css } from 'aphrodite';
import { tuningSelector } from '../../util/selectors';
import HoverableText from './HoverableText';
import { changeTuni... |
app/javascript/components/borrow_booking_calendar/BorrowBookingCalendar.js | leihs/leihs_legacy | import React from 'react'
import createReactClass from 'create-react-class'
import CalendarControls from './CalendarControls'
import CalendarContent from './CalendarContent'
import DateInput from './DateInput'
const inspect = window.Tools.inspect
const BorrowBookingCalendar = createReactClass({
displayName: 'BorrowB... |
src/App.js | sadist007/aladon | import React, { Component } from 'react';
import './App.scss';
class App extends Component {
constructor (props) {
super(props);
this.state = this.getInitialState();
}
getInitialState () {
return {}
}
render () {
return (
<div className="container-... |
src/js/wpecp-bind-editors.js | kfwebdev/wp-editor-comments-plus | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
var $ = jQuery;
function bindCancelClick(editor, settings) {
editor.windowManager.windows[0].on('click', function(event){
const clickText = $(event.target).text().toLowerCase();
if (clickText === 'cancel') {
... |
src/List/ListItemIcon.spec.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import { assert } from 'chai';
import { createShallow, getClasses } from '../test-utils';
import ListItemIcon from './ListItemIcon';
describe('<ListItemIcon />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallow();
classes = getClasses(
<... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js | amido/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(limit) {
let i = 1;
while (i <= limit)... |
server/sonar-web/src/main/js/apps/settings/licenses/__tests__/LicensesList-test.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
new-lamassu-admin/src/pages/UserManagement/modals/FIDOModal.js | naconner/lamassu-server | import { makeStyles } from '@material-ui/core/styles'
import React from 'react'
import Modal from 'src/components/Modal'
import { Button } from 'src/components/buttons'
import { Info2, P } from 'src/components/typography'
import styles from '../UserManagement.styles'
const useStyles = makeStyles(styles)
const Chang... |
node_modules/react-native-svg/elements/Path.js | MisterZhouZhou/ReactNativeLearing | import React from 'react';
import PropTypes from 'prop-types';
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js';
import {PathAttributes} from '../lib/attributes';
import Shape from './Shape';
import {pathProps} from '../lib/props';
import extractProp... |
src/components/common/svg-icons/notification/airline-seat-legroom-extra.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
test/BackgroundImage.spec.js | itsolutions-dev/react-styled-ui | import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import 'styled-components-test-utils/lib/jest';
import theme from '../src/theme';
import BackgroundImage from '../src/BackgroundImage';
describe('BackgroundImage', () => {
test('should render a BackgroundImage', () => {
const compone... |
versions/v1/components/Debugger/Inspector/JSONInput/index.js | cerebral/cerebral-debugger-prototype | import React from 'react';
import styles from './styles.css';
import {connect} from 'cerebral-view-react';
import {
isObject,
isArray
} from 'common/utils';
@connect()
class JSONInput extends React.Component {
constructor(props) {
super(props);
this.state = {
isValid: true,
value: this.props.... |
React Native/Demos/nearby/Nearby/views/toilet.js | AngryLi/ResourceSummary | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
export default class Toilet extends React.Component {
render() {
return (
<View></View>
)
}
}
const styles= StyleSheet.create({
}) |
app/components/HorizonalBarChart/Bar.js | thuy616/react-d3-charts | import React from 'react';
import PropTypes from 'prop-types';
type Props = {
data: PropTypes.object.isRequired,
xScale: PropTypes.func.isRequired,
yScale: PropTypes.func.isRequired,
colorScale: PropTypes.func.isRequired
}
export default ({
data,
xScale,
yScale,
colorScale
}: Props) => {
return (
... |
src/Input.js | cat-react/form | import React from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import Form from './Form';
export default function (WrappedComponent) {
class Input extends React.Component {
constructor(props, context) {
super(props, context);
this.changeValueT... |
react/features/settings/components/web/audio/AudioSettingsPopup.js | gpolitis/jitsi-meet | // @flow
import InlineDialog from '@atlaskit/inline-dialog';
import React from 'react';
import { areAudioLevelsEnabled } from '../../../../base/config/functions';
import {
getAudioInputDeviceData,
getAudioOutputDeviceData,
setAudioInputDeviceAndUpdateSettings,
setAudioOutputDevice as setAudioOutputDev... |
src/svg-icons/device/signal-wifi-3-bar-lock.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3BarLock = (props) => (
<SvgIcon {...props}>
<path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-... |
__tests__/index.android.js | david1820/react-native-boilerplate | /* eslint-disable */
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 />
);
});
|
app/components/ImageComponent.js | fakob/electron-test-v003 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// import mpLogo from './../img/MoviePrint_Logo_v002_128.jpg';
// import base64ArrayBuffer from './../utils/base64ArrayBuffer'
let temp = [];
class ImageComponent extends Component {
componentDidMount() {
const { store } = this.contex... |
example_app/src/components/withViewport.js | blueberryapps/radium-bootstrap-grid | /**
* 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, { Component } from 'react'; // eslint-disabl... |
src/index.js | irla/react-cv | //import 'bootstrap/scss/bootstrap.scss'
//import 'font-awesome/scss/font-awesome.scss'
import 'bootstrap/dist/css/bootstrap.css'
import 'font-awesome/css/font-awesome.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Application from './containers/A... |
view/dva/src/routes/HomePage.js | xuzhenyang/ZeroCola | import React from 'react';
import { connect } from 'dva';
import MyLayout from '../components/MyLayout';
function HomePage({ children }) {
return (
<div>
<MyLayout>
{children}
</MyLayout>
</div>
);
}
function mapStateToProps() {
return {};
}
export default connect(mapStateToProps)... |
src/renderer/components/MapFilter/ObservationDialog/DateTimeField.js | digidem/ecuador-map-editor | // @flow
import React from 'react'
import { DateTimePicker } from '@material-ui/pickers'
type Props = {
value: Date | void,
onChange: (string | void) => any
}
const DateTimeField = ({ value, onChange, ...otherProps }: Props) => {
return (
<DateTimePicker
fullWidth
variant='inline'
inputVar... |
src/svg-icons/communication/chat-bubble-outline.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChatBubbleOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/>
</SvgIcon>
);
CommunicationChatBubbleOutl... |
src/app/App.js | crisu83/timebox | import React from 'react';
import store from './store';
import AppConstants from './constants';
import TimerConstants from '../timer/constants';
import Header from '../header/Header';
import Picker from '../picker/Picker';
import Timer from '../timer/Timer';
import Footer from '../footer/Footer';
class App extends Rea... |
src/parser/warlock/affliction/modules/talents/Haunt.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import SpellLink f... |
packages/node_modules/@webex/react-component-button/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '@webex/react-component-icon';
import styles from './styles.css';
const propTypes = {
accessibilityLabel: PropTypes.string,
buttonClassName: PropTypes.string,
children: PropTypes.node,
iconColo... |
src/components/RadioList.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Radio from './Radio';
import { FormattedMessage } from 'react-intl';
import { contains } from 'ramda';
import { InvisibleSpan } from './Invisible';
const Ul = styled.ul`
display: flex;
flex-flow: row w... |
src/pages/404.js | angeloocana/tic-tac-toe-ai | import React from 'react';
class FourOFour extends React.PureComponent {
render() {
return (
<div>
<h1>Page not found</h1>
</div>
);
}
}
export default FourOFour;
|
node_modules/react-native/local-cli/templates/HelloWorld/index.android.js | RahulDesai92/PHR | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
packages/icons/src/md/av/CallToAction.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCallToAction(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H6c-2.2 0-4-1.8-4-4V10c0-2.2 1.8-4 4-4h36zm0 32v-6H6v6h36z" />
</IconBase>
);
}
export default Md... |
public/src/components/Layout/Layout.react.js | hugonasciutti/Challenge | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FlatButton } from 'material-ui';
import AppBar from 'material-ui/AppBar';
import styles from './Layout.scss';
import Icon from '../../../icons/icons';
class _Layout extends React.Component {
render() {
... |
src/components/course/ManageCoursePage.spec.js | santiaro90/pluralsight-react-redux | import React from 'react';
import expect from 'expect';
import { mount, shallow } from 'enzyme';
import { ManageCoursePage } from './ManageCoursePage';
describe('ManageCoursePage Component', () => {
it('sets error message when trying to save empty title', () => {
const props = {
actions: {
... |
src/svg-icons/places/casino.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (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-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
src/app/page/order_detail.js | borgnix/solid-winner | /**
* Created by luoop on 16-7-14.
*/
import React from 'react'
import {Component} from 'react'
import call from '../api'
import update from 'immutability-helper';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
class OrderDetail extends Component {
... |
pages/less.js | rorz/a27-site | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | luoxiaoshenghustedu/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
examples/counter/containers/Root.js | phated/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
src/pages/about.js | stolinski/st2017 | import React from 'react';
import Link from 'gatsby-link';
import Layout from '../components/Layout';
import { Title, MainWrapper } from '../components/Headings';
import { Resume, FakeButtons } from '../components/AboutStyles';
export default class About extends React.Component {
render() {
return (
<Layo... |
app/components/common/nominationItem/index.js | liujia14/mayi | /*
name: listItem
desc: 提名团队列表组件
author: 俞雅菲
version:v1.0
*/
import React from 'react';
import ReactDOM from 'react-dom';
import './../commonCss/index.less';
import ajax from './../ajax/ajax.js';
import './index.less';
import { message,Modal } from 'antd';
import QueueAnim from 'rc-queue-anim'; //淡入淡出动画
const confirm ... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { countryOptions } from '../common'
// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]
const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple search sele... |
test/files/filelist.component.js | NebulousLabs/Sia-UI | import React from 'react'
import { shallow, mount } from 'enzyme'
import { List, OrderedSet } from 'immutable'
import { expect } from 'chai'
import { spy } from 'sinon'
import FileList from '../../plugins/Files/js/components/filelist.js'
const testFiles = List([
{size: '1337mb', available: true, redundancy: 1.0, uplo... |
client/src/js/components/Home.js | KevinBacas/TP2-Web-Semantique | import React from 'react';
import RequestList from './RequestList';
import DocumentActions from '../actions/DocumentActions';
import DocumentStore from '../stores/DocumentStore';
export default class Home extends React.Component {
constructor() {
super();
this.state = {
documents: false
}
}
h... |
src/svg-icons/device/usb.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.... |
frontend/components/home_show/home_show_container.js | qydchen/SafeHavn | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import HomeShow from './home_show';
import { fetchHome } from '../../actions/home_actions';
import { openModal } from '../../actions/modal_actions';
import { clearErrors } from '../../actions/session_actio... |
frontend/node_modules/recharts/demo/component/Sector.js | justdotJS/rowboat | import React, { Component } from 'react';
import { Surface, Sector } from 'recharts';
export default class Demo extends Component {
static displayName = 'SectorDemo';
render () {
return (
<Surface width={500} height={1000}>
<Sector fill="#ff7902" cx={200} cy={200} innerRadius={150} outerRadius=... |
webapp-src/src/Modal/Message.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
class Message extends Component {
constructor(props) {
super(props);
this.state = {
title: props.title,
label: props.label,
message: props.message
}
this.closeModal = this.closeModal.bind(this);
}
compon... |
01-basic-example/components/Home.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
<h2>Home</h2>
<p>Welcome To React Full Stack</p>
</div>
);
}
}
export default Home;
|
example/src/screens/types/tabs/TabTwo.js | junedomingo/react-native-navigation | import React from 'react';
import {View, Text} from 'react-native';
class TabOne extends React.Component {
render() {
return (
<View>
<Text>Tab Two</Text>
</View>
);
}
}
export default TabOne;
|
src/svg-icons/action/today.js | andrejunges/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... |
fields/types/cloudinaryimage/CloudinaryImageField.js | Pylipala/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
* - Remove dependency on underscore
*/
const SUPPORTED_TYP... |
docs/app/Examples/collections/Message/Types/MessageExampleList.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleList = () => (
<Message>
<Message.Header>New Site Features</Message.Header>
<Message.List>
<Message.Item>You can now have cover images on blog pages</Message.Item>
<Message.Item>Drafts will now auto-save whi... |
components/Forecast.js | s1hit/react-onsenui-redux-weather-edited | import React from 'react';
import WeatherIcon from '../components/WeatherIcon';
import {weatherCodeToColor} from '../util';
const WEEKDAYS = {
0: 'SUN',
1: 'MON',
2: 'TUE',
3: 'WED',
4: 'THU',
5: 'FRI',
6: 'SAT'
};
const styles = {
forecast: {
margin: '0 25px',
display: 'flex'
},
weekday:... |
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/Before/app/components/Login/index.js | phiratio/Pluralsight-materials | /**
*
* Login
*
*/
import React from 'react';
import styles from './styles.css';
import validator from 'email-validator';
import classNames from 'classnames';
class Login extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
login: React.PropTypes.func.isRequired... |
admin/client/components/FooterBar.js | andreufirefly/keystone | import React from 'react';
import blacklist from 'blacklist';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
height: 'auto',
top: 0,
};
},... |
packages/@vega/tracks-tool/src/components/TracksArticlesTable.js | VegaPublish/vega-studio | /* eslint-disable react/jsx-no-bind, complexity */
import React from 'react'
import PropTypes from 'prop-types'
import styles from './styles/TracksArticlesTable.css'
import Menu from 'part:@lyra/components/menus/default'
import ArrowDropDown from 'part:@lyra/base/arrow-drop-down'
import {filterArticles, stagesSuperset... |
src/ProjectBoard.js | mikadamsterdam/react_for_project | import React from 'react';
import jQuery from 'jquery';
import Project from './Project';
import AddProject from './AddProject';
class ProjectBoard extends React.Component {
constructor(){
super();
this.state = {
projects: [
]
};
}
reloadProjectBoard(){
let component = this;
... |
components/slider/Slider.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import styleShape from 'react-style-proptype';
import { themr } from 'react-css-themr';
import { round, range } from '../utils/utils';
import { SLIDER } from '../identifie... |
test/specs/collections/Table/TableFooter-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import TableFooter from 'src/collections/Table/TableFooter'
describe('TableFooter', () => {
common.isConformant(TableFooter)
it('renders as a tfoot by default', () => {
shallow(<TableFooter />).should.have.tagName('tfoot')
})
})
|
packages/wix-style-react/src/FunnelChart/test/FunnelChart.spec.js | wix/wix-style-react | import React from 'react';
import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit';
import FunnelChart from '../FunnelChart';
import { funnelChartPrivateDriverFactory } from './FunnelChart.private.uni.driver';
describe(FunnelChart.displayName, () => {
const render = createRendererWithUniDriv... |
pewview/index.js | matthewcodes/PewView | window.$ = window.jQuery = require("jquery");
window.Tether = require('tether');
require('bootstrap');
require('./scss/index.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import PewView from './components/PewView.jsx';
ReactDOM.render(<PewView />, document.getElementById('root'));
|
src/components/calendar/PersonalInfoSection.js | ChrisWhiten/react-rink | import React from 'react';
import {
HelpBlock,
FormGroup,
FormControl,
Col,
} from 'react-bootstrap';
import MaskedInput from 'react-text-mask';
import './styles/PersonalInfoSection.css';
function FieldGroup({ id, label, help, validationState, ...props }) {
return (
<FormGroup controlId={id} validationS... |
app/app.js | prajapati-parth/glitchy | import React from 'react'
import ReactDOM from 'react-dom'
//import application main component
import AppComponent from '../app/components/app_component'
class App extends React.Component {
render() {
return (
<AppComponent />
)
}
}
//render back to mark-up file
ReactDOM.render(
... |
client/src/app/routes.js | jhuntoo/starhackit | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import Login from 'views/login';
import Signup from 'views/signup';
import Forgot from 'views/forgot';
import Application from 'views/application';
import Logout from 'views/logout';
import MainLanding from 'views/mainLanding';
import Registra... |
examples/ModalWithBottomSheet.js | chris-gooley/react-materialize | import React from 'react';
import Modal from '../src/Modal';
import Button from '../src/Button';
export default
<Modal
header='Modal Header'
bottomSheet
trigger={<Button>MODAL BUTTOM SHEET STYLE</Button>}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do... |
app/javascript/mastodon/features/compose/components/poll_form.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from 'mastodon/components/icon_butt... |
docs/src/components/nav.js | optimizely/nuclear-js | import React from 'react'
import { BASE_URL } from '../globals'
function urlize(uri) {
return BASE_URL + uri
}
export default React.createClass({
render() {
const logo = this.props.includeLogo
? <a href={BASE_URL} className="brand-logo">NuclearJS</a>
: null
const homeLink = this.props.includeL... |
src/routes/About/components/Resume.js | mjchamoures/personalPortfolio | import React from 'react';
import { Panel } from 'react-bootstrap';
import ResumeImg from '../assets/Michael_Chamoures_Resume.png';
import ResumeImg2 from '../assets/Michael_Chamoures_Resume_2.png';
import './About.scss';
export const Resume = (props) => (
<Panel header="Resume">
<img
alt=''
class... |
frontend/test/app/containers/ExperimentPage-test.js | 6a68/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import moment from 'moment';
import ExperimentPage, { ExperimentDetail } from '../../../src/app/containers/ExperimentPage';
import { initialState as newsletterState } from '../../../src/app/red... |
node_modules/react-router/es6/Link.js | FrancoCotter/ReactWeatherApp | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
Console/app/node_modules/rc-trigger/es/index.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import createReactClass from 'create-react-class';
import contains from 'rc-util/es/Dom/contains';
import addEventListener from 'rc-util/lib/Dom/addEventListener'... |
client/src/components/FormWiget/KeywordSelect.js | Nonsoft/crdweb | import React from 'react';
import PropTypes from 'prop-types';
import { Form, Select} from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;
const KeywordSelect = (props) => (
<FormItem label="关键字">
{props.getFieldDecorator('keyword')(
<Select style={{width: '100%'}} size="default" allowCle... |
internals/templates/containers/NotFoundPage/index.js | projectcashmere/web-server | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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 necessity for you then you can refactor it... |
lib/shared/components/link/index.js | relax/relax | import Component from 'components/component';
import React from 'react';
import PropTypes from 'prop-types';
import {dataConnect} from 'relate-js';
import Link from './link';
@dataConnect(
(state) => ({
editing: state.pageBuilder && state.pageBuilder.editing
}),
(props) => {
const {link} = props;
le... |
test/client-tests/components/NavBar.js | RedCometLabs/hapi-react-couch | import React from 'react';
import { mount, describeWithDOM } from 'enzyme';
import NavBar from '../../../client/components/NavigationBar';
import {expect} from 'chai';
describeWithDOM('NavBar', () => {
it('renders the Navbar component correctly when the user is authenticated', () => {
const wrapper = mount(
... |
app/routes/index.js | rclai/redux-blog-example | import React from 'react';
import { Route } from 'react-router';
import App from './App';
import SignupRoute from './SignupRoute';
import LoginRoute from './LoginRoute';
import ProfileRoute from './ProfileRoute';
import NotFound from '../components/NotFound';
import redirectBackAfter from '../utils/redirectBackAfter';
... |
projects/twitch-ui/src/components/GridCell.js | unindented/twitch-x | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import ImageWithPlaceholder from './ImageWithPlaceholder'
import {truncate} from '../utils/css'
const GridCellRoot = styled.a`
display: block;
overflow: hidden;
flex: 1;
padding: ${props => props.theme.layout.ga... |
src/icons/AndroidPeople.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidPeople extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M337.454,232c33.599,0,61.092-27.002,61.092-60c0-32.997-27.493-60-61.092-60s-61.09,27.003-61.09,60
C276.364,204.998... |
src/components/login.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { compose } from 'redux';
import { connect } from 'react-redux';
import FieldGroup from './fieldgroup';
import Recaptcha from 'react-recaptcha';
import { verifyReCaptcha } from '../actions/index';
import _ from 'lodash';
import {
... |
src/plugins/position/components/SpacerRow.js | GriddleGriddle/Griddle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import withHandlers from 'recompose/withHandlers';
co... |
app/javascript/mastodon/features/account_gallery/index.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from 'mastodon/actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '... |
src/components/PlayerControls.js | jeremyfry/init-tracker | import React from 'react';
import PropTypes from 'prop-types';
const setColor = (color, led) => () => fetch(`/led/${led}/${color}`);
const PlayerControls = (props) =>{
return (
<div className="player-card__controls">
<button onClick={setColor('255/0/0', props.player.ledPosition)} className="pla... |
src/index.js | zacfukuda/universal-app-react-router | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import App from './App'
import './index.css'
render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root')) |
codes/chapter05/react-router-v4/basic/demo04/app/components/About.js | atlantis1024/react-step-by-step | import React from 'react';
class About extends React.PureComponent {
render() {
return <h2>关于</h2>
}
}
export default About;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.