path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
frontend/modules/list/components/ListItem.js | RyanNoelk/OpenEats | "use strict";
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { injectIntl, defineMessages } from 'react-intl'
import {
ENTER_KEY,
ESCAPE_KEY
} from '../constants/ListStatus'
import { Checkbox } from '../../common/components/FormComponents'
class ListItem e... |
examples/sidebar/app.js | brandonlilly/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
test/test-stress.js | wkh237/react-native-fetch-blob-dev | import RNTest from './react-native-testkit/'
import React from 'react'
import RNFetchBlob from 'react-native-fetch-blob'
import Timer from 'react-timer-mixin'
import {
StyleSheet,
Text,
View,
ScrollView,
CameraRoll,
Platform,
Dimensions,
Image,
} from 'react-native';
const fs = RNFetchBlob.fs
const { ... |
src/modules/Accordion/Accordion.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
import AccordionAccordion from './AccordionAccordion'
import AccordionContent from './AccordionContent'
import AccordionTitle from './AccordionTitle'
/**
* A... |
JavaScript/React/LMap/src/app/pages/App/App.js | batazor/MyExampleAndExperiments | import React from 'react' // eslint-disable-line no-unused-vars
import './flexboxgrid.css'
import './App.scss'
export default function App({ children }) {
return (
<div>
{ children }
</div>
)
}
|
src/containers/views/tests/drafts.spec.js | jekyll/jekyll-admin | import React from 'react';
import { mount } from 'enzyme';
import { Drafts } from '../Drafts';
import { draft, directory } from './fixtures';
function setup(drafts = [directory, draft]) {
const actions = {
fetchDrafts: jest.fn(),
deleteDraft: jest.fn(),
search: jest.fn(),
};
const props = {
dra... |
site/pages/ExamplePage.js | pairyo/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import SideBar from '../components/SideBar';
import { ExamplePages } from '../Constants';
export default class ExamplesPage {
render() {
return (
<div>
<Header/>
<PageBody ha... |
src/behaviours/scrollable.js | codaco/Network-Canvas | import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
export const scrollable = (WrappedComponent) => {
const Scrollable = props => (
<div className={`scrollable ${(props.showScollbars && 'scrollable--show-scrollbars')}`} onScroll={props.onScroll}>
<WrappedCompo... |
src/scenes/Layout/components/Representation/components/Day/Day.js | czonios/schedule-maker-app | import React from 'react';
// import PropTypes from 'prop-types'
import { Grid, Header, Segment } from 'semantic-ui-react';
import dateService from '../../../../../../services/dates/dateService';
import './day.css';
// const propTypes = {};
// const defaultProps = {};
const Day = props => (
<Grid columns={3} celle... |
manager/src/components/EmployeeEdit.js | diegopoli/sample-react-native-projects | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Communications from 'react-native-communications';
import { Card, CardSection, Button, Confirm } from './common';
import { employeeUpdate, employeeSave, employeeDelete } from '../actions';
import EmployeeForm... |
docs/src/components/Demo/EditorStyledToolbar/index.js | michalko/draft-wyswig | /* @flow */
import React from 'react';
import { Editor } from 'react-draft-wysiwyg';
import Codemirror from 'react-codemirror';
import bold from '../../../../images/demo/bold.gif';
import italic from '../../../../images/demo/italic.gif';
import underline from '../../../../images/demo/underline.gif';
import strikethro... |
examples/transitions/app.js | frankleng/react-router | import React from 'react';
import { Router, Route, Link, History, Lifecycle } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/form">Form</Link></li>
</ul>
{this.props... |
examples/counter/index.js | hartzis/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
docs/src/PageHeader.js | laran/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className="bs-docs-header" id="content">
<div className="container">
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
src/components/Error/index.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {Icon} from 'antd';
import './index.less';
/**
* 显示错误信息
* 可以当404页来用
*/
class Error extends React.PureComponent {
render() {
return (
<div className="not-found">
<div style={{ fontSize:32 }}><Icon type="frown-o"/></div>
<h1>{this.props.errorMsg || '404 N... |
src/js/components/SkipLinks/__tests__/SkipLink-test.js | grommet/grommet | import React from 'react';
import 'jest-styled-components';
import { act, render, fireEvent } from '@testing-library/react';
import { Grommet, SkipLinks, SkipLink, SkipLinkTarget } from '../..';
describe('SkipLink', () => {
test('basic', () => {
jest.useFakeTimers('modern');
const { container } = render(
... |
src/panels/AuthRoute/index.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Redirect } from 'react-router-dom';
import client from '../../network';
// ----------------------------------------------------------------------------
function isLoggedIn() {
return !!client.getLoggedInUser();
}
// ------------------... |
stories/MessageBox/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import TabbedView from '../utils/Components/TabbedView';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import Readme from '../../src/MessageBox/README.md';
import ReadmeTestKit from '... |
src/React/CollapsibleControls/QueryDataModelControl/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import jsonData from 'paraviewweb/src/React/Widgets/QueryDataModelWidget/example/info';
import QueryDataModel from 'paraviewweb/src/IO/Core/QueryDataModel';
import QueryDataModelControl from 'paraviewweb/src/React/CollapsibleControls... |
src/challenge-templates/React_Redux_Challenge_Template.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { mount } from 'enzyme'
import { transform } from 'babel-standalone'
// SET TO TRUE WHEN QA IS COMPLETE:
export const QA = false;
// ---------------------------- define challenge title ----------------------------
export const challenge... |
src/components/app.js | stefuhnee/moments | 'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { PageHeader } from 'react-bootstrap';
import firebase from 'firebase';
import Galleries from '../containers/galleries';
import Gallery from './gallery';
import NavBar from './nav-bar';
import AuthModal from '../container... |
app/js/components/Tuner.js | raulalgo/helmantica | 'use strict';
import React from 'react';
var LinkedStateMixin = require('react-addons-linked-state-mixin');
class Tuner extends React.Component{
valueField
valueRange
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
componentWillMount() {
this.valueField = ... |
app/chat.js | hakeemsyd/chatclient_react_native | import React, { Component } from 'react';
import { View, StyleSheet, TextInput, Text, TouchableHighlight } from 'react-native';
export default class chat extends Component {
static navigationOptions = {
title: 'Chatroom'
}
constructor(props) {
super(props);
this.state = { msg: ''};
}
onPress() {
console... |
Js/Core/Lib/I18n/index.js | Webiny/Webiny | import _ from 'lodash';
import md5 from 'blueimp-md5';
import Webiny from 'webiny';
import React from 'react';
import I18nComponent from './I18n';
import fecha from 'fecha';
import accounting from 'accounting';
import modifiers from './Modifiers';
import PhpJsMap from './PhpJsMap';
/**
* Main class used for all I18n... |
src/svg-icons/av/subtitles.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubtitles = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/>
</SvgIcon... |
app/jsx/account_course_user_search/AccountsTreeStore.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/ComicSeriesInstance.js | AndrewCMartin/idb | import React from 'react'
import { Link } from 'react-router-dom'
import {Row, Col} from 'react-bootstrap'
import './instance.css'
var axios = require('axios');
class ComicSeriesInstance extends React.Component {
constructor(props) {
super(props);
this.state = {
comic_series: {}
... |
app/components/App.js | kenwilcox/fil | import _ from 'underscore';
import React from 'react';
import {connect} from 'react-redux';
import Header from 'components/Header';
import CodeEditor from 'components/CodeEditor';
import Console from 'components/Console';
import FileList from 'components/FileList'
import {openFile, saveFile} from 'actions/files';
imp... |
src/component/landing/index.js | sheridp2/triviapp | import React from 'react';
import {Link} from 'react-router-dom';
class Landing extends React.Component {
render() {
return (
<div>
<h1>Welcome to Guess Work!</h1>
<h2>Gather your friends and have fun answering trivia!</h2>
<Link id="start-button" to='/play'>Start Game</Link>
... |
packages/react-ui-components/src/Dialog/dialog.js | dimaip/neos-ui | import React from 'react';
import PropTypes from 'prop-types';
import mergeClassNames from 'classnames';
import omit from 'lodash.omit';
import Portal from 'react-portal';
const validStyleKeys = ['wide', 'narrow'];
const Dialog = props => {
const {
className,
title,
style,
children... |
examples/complex/src/components/weather/error.js | vgno/roc-web-react | import React, { Component } from 'react';
export default class WeatherError extends Component {
static propTypes = {
error: React.PropTypes.string
};
render() {
return (
<div>
<h4>Error loading weather data.</h4>
{ this.props.error }
... |
src/app/containers/Weather/Weather.js | ericvandevprod/redux-d3 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import { Tab, Tabs } from 'react-toolbox';
import IconComponent from '../../components/Icon/Icon';
import ListComponent from '../../components/List/List';
import SpinnerComponent from '../../components/Spinner... |
src/app.js | SaintEmbers/relationplex | import React from 'react'
import ReactDom from 'react-dom'
require ('bootstrap/dist/css/bootstrap.css')
require('./styles/main.css')
import InputAwesome from './submit.js'
import Jar from './components/eventsjar.js'
import InputFocus from './components/focusApp.js'
import Goals from './components/goals.js'
require('./... |
src/components/DeveloperMenu.android.js | Kortelainen/Softala3SuperAda | import React from 'react';
import * as snapshot from '../utils/snapshot';
import {
View,
Text,
TouchableOpacity,
StyleSheet
} from 'react-native';
/**
* Simple developer menu, which allows e.g. to clear the app state.
* It can be accessed through a tiny button in the bottom right corner of the screen.
* ON... |
blueocean-material-icons/src/js/components/svg-icons/image/crop.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop.displayName = 'ImageCrop';
ImageCrop.muiName = 'SvgIcon';
export defaul... |
templates/rubix/rails/rails-seed/src/common/header.js | jeffthemaximum/jeffline | import React from 'react';
import classNames from 'classnames';
import { SidebarBtn, Navbar, Nav, NavItem, Icon, Grid, Row, Col } from '@sketchpixy/rubix';
class Brand extends React.Component {
render() {
return (
<Navbar.Header {...this.props}>
<Navbar.Brand tabIndex='-1'>
<a href='#'>
... |
blueocean-material-icons/src/js/components/svg-icons/device/network-wifi.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.01.01-.01 8.46-10.54C20.04 10.62 1... |
react/features/polls/components/native/PollAnswer.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { Switch, Text, View } from 'react-native';
import { Button } from 'react-native-paper';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
import { BUTTON_MODES } from '../../../chat/constants';
import { isSubmitAnswerDisabled } from '../../functions';
im... |
src/components/generics/need_login.js | bombe-software/demos | import React, { Component } from 'react';
import { Link } from "react-router-dom";
class NeedLogin extends Component {
constructor(props) {
super(props);
}
/**
* Es una forma de capturar cualquier error en la clase
* y que este no crashe el programa, ayuda con la depuracion
* de errores
* @m... |
node_modules/rc-select/es/SelectTrigger.js | yhx0634/foodshopfront | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
packages/material-ui-icons/src/SettingsPower.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsPower = props =>
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12... |
react-flux-mui/js/material-ui/src/svg-icons/notification/sms.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
NotificationSm... |
client/src/__tests__/components/SignupForm.spec.js | Billmike/More-Recipes | import React from 'react';
import { shallow } from 'enzyme';
import toJSON from 'enzyme-to-json';
import { SignupForm, mapStateToProps } from '../../components/SignupForm';
import { auth } from '../fixtures/authUser';
import state from '../fixtures/state';
describe('<SignupForm component />', () => {
it('Should rend... |
src/routes.js | patrickkillalea/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
docs/src/components/browser-dev-panel.js | adrianleb/nuclear-js | import React from 'react'
export default React.createClass({
render() {
return <div className="browser-component--dev-panel">
{this.props.children}
</div>
}
})
|
src/routes/catalog/threeGallery/ThreeGallery.js | LeraSavchenko/Maysternia | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './ThreeGallery.css';
import arch1Url from '../images/arch1.png';
import arch2Url from '../images/arch2.png';
import arch3Url from '../images/arch3.png';
class ThreeGallery ext... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | tsdl2013/actor-platform | import React from 'react';
import { Styles, Tabs, Tab } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
import ContactsSection from 'components/sidebar/ContactsSec... |
aaf-enrollment/src/ux/Toast.js | MicroFocus/CX | import './Toast.scss';
import PropTypes from 'prop-types';
import React from 'react';
import * as ReactDOM from 'react-dom';
import StatusIndicator, {STATUS_TYPE} from './StatusIndicator';
const TOAST_DISPLAY_LENGTH = 4000;
const TOAST_FADE_OUT_LENGTH = 100;
const TOAST_LOAD_STATUS = { // Use states in order t... |
app/javascript/mastodon/components/missing_indicator.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='missing-indicator'>
<div>
<FormattedMessage id='missing_indicator.label' defaultMessage='Not found' />
</div>
</div>
);
export default MissingIndicator;
|
fields/types/select/SelectField.js | snowkeeper/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
statics: {
type: 'Select',
},
valueChanged (newValue) {
// TODO: This shoul... |
js/src/containers/AppContainer.js | outeredge/edge-magento-module-menu | import App from './../App';
import React from 'react';
import { Container } from 'flux/utils';
import ItemStore from './../data/ItemStore';
class AppContainer extends React.Component {
static getStores() {
return [ItemStore];
}
static calculateState() {
return {
items: ItemStor... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleHeader.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleHeader = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Item... |
src/components/__tests__/Column.js | gakimball/react-inky | import React from 'react';
import {renderToStaticMarkup} from 'react-dom/server';
import {expect} from 'chai';
import Column from '../Column';
import Container from '../Container';
describe('<Column />', () => {
it('creates a basic column', () => {
const wrapper = renderToStaticMarkup(<Column/>);
expect(wrap... |
src/svg-icons/action/credit-card.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCreditCard = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
</SvgIcon>
);
Action... |
src/svg-icons/editor/insert-invitation.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertInvitation = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-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-2h-1V1h-2zm3 18H5V8h14v11z"/>
... |
src/app/Menu/MenuHelp.js | Sekhmet/busy | import React from 'react';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
import Icon from '../../widgets/Icon';
export default () =>
<ul className="app-nav">
<li>
<Link to="/about" activeClassName="active">
<Icon name="info_outline" />
<span className="... |
src/components/Notes/NoteModal.js | kesean/Dashboard-Frontend | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
const customContentStyle = {
width: '75%',
maxWidth: 'none',
height: '5em'
};
/**
* The dialog width has been set to occupy the full width of b... |
app/js/components/Modal.js | liuyan5258/reactjs-hotcss-flexbox | import React from 'react';
export default class Modal extends React.Component {
render(){
let className = this.props.className || '' + ' modal'
let style = {display: 'none'}
if(this.props.show){
style.display = 'block'
className += ' active'
}else{
className += ' hide'
}
if... |
src/OneRMCalc.js | gary5wang/react-native-OneRMCalc | import React, { Component } from 'react';
import Button from 'react-native-button';
import Style from './Style';
import {
Alert,
Text,
TextInput,
TouchableHighlight,
View,
AppRegistry
} from 'react-native';
const inputButtons = [2,3,4,5,6,7,8,9,10];
const onHelpButtonPress = () => {
Alert.alert(... |
src/components/entity.js | MicheleBertoli/react-gmaps | import React from 'react';
import createReactClass from 'create-react-class';
import Listener from '../mixins/listener';
import compareProps from '../utils/compare-props';
export default (name, latLngProp, events) => {
return createReactClass({
mixins: [Listener],
entity: null,
componentDidMount() {
... |
client/modules/core/components/navigation.js | LikeJasper/mantra-plus | import React from 'react';
import { AppBar, IconMenu, IconButton, MenuItem } from 'material-ui';
import { NavigationMenu as MenuIcon } from 'material-ui/svg-icons';
export const NavigationMenu = () => (
<IconMenu
iconButtonElement={
<IconButton><MenuIcon /></IconButton>
}
targetOrigin={ { horizonta... |
src/views/app/index.js | raycent/ARWM_Exercise_Redux | import React from 'react';
import GithubCorner from 'react-github-corner';
import { SearchBar } from 'views/components/searchBar';
const App = ({children}) => (
<div>
<GithubCorner href="//github.com/raycent/ARWM_Exercise_Redux" />
<div className="searchBar">
<SearchBar />
</div>
<main>{chil... |
client/admin/oauthApps/OAuthAppsRoute.js | subesokun/Rocket.Chat | import React from 'react';
import { usePermission } from '../../contexts/AuthorizationContext';
import NotAuthorizedPage from '../NotAuthorizedPage';
import OAuthAppsPage from './OAuthAppsPage';
export default function MailerRoute() {
const canAccessOAuthApps = usePermission('manage-oauth-apps');
if (!canAccessOAu... |
generators/js-framework/modules/react/components/App.js | sahat/boilerplate | import React from 'react';
import Header from './Header';
import Footer from './Footer';
class App extends React.Component {
render() {
return (
<div>
<Header/>
{this.props.children}
<Footer/>
</div>
);
}
}
export default App;
|
examples/with-material-ui/src/server.js | jaredpalmer/react-production-starter | import App from './App';
import React from 'react';
import express from 'express';
import theme from './theme';
import jss from './styles';
import { SheetsRegistry } from 'react-jss';
import { JssProvider } from 'react-jss';
import { MuiThemeProvider } from 'material-ui/styles';
import { renderToString } from 'react-do... |
client/components/Dynamic/Scheduler/Index.js | Treeeater/expresshome | /* eslint-disable max-len */
/**
* Created by Yuchen on 6/6/2017.
*/
import React from 'react';
import { Link } from 'react-router-dom';
import { Card, CardTitle, CardMedia } from '@material-ui/core/Card';
import { Grid, Row, Col } from 'react-styled-flexboxgrid';
import { LocalStorage } from '../LocalStorage';
expo... |
src/components/SignupPage.js | Kinectsit/kinects-it | import React from 'react';
import SignupForm from '../containers/SignupForm';
import { Card, CardTitle } from 'material-ui/Card';
export const SignupPage = () => (
<div className="medium-10 columns medium-centered">
<Card
style={{
boxShadow: 'none',
textAlign: 'center',
backgroundCo... |
src/svg-icons/image/straighten.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
assets/jqwidgets/demos/react/app/grid/percentagewidthforcolumns/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'json',
datafields: [
{ name: 'name', type: ... |
src/SplitButton.js | dozoisch/react-bootstrap | import React from 'react';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
import splitComponentProps from './utils/splitComponentProps';
const propTypes = {
...Dropdown.propTypes,
// Toggle props.
bsStyle: React.PropTypes.string,
bsSize: React.PropT... |
internals/templates/notFoundPage.js | jasoncyu/always-be-bulking | /**
* 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 neccessity for you then you can refactor i... |
Example/__tests__/App-test.js | poberwong/react-native-switch-pro | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
examples/basic/src/js/app.js | cpsubrian/hipley | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
ReactDOM.render(<App />, document.getElementById('root'))
|
resources/js/components/Pagination/PageLink.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { InertiaLink } from '@inertiajs/inertia-react';
const PageLink = ({ link, index }) => {
return link.url === null ? (
<li
className="cursor-not-allowed p-4 text-gray-500"
dangerouslySetInnerHTML... |
src/components/RenderWithTimeout.js | stefan-moraru/please | import React, { Component } from 'react';
class RenderWithTimeout extends Component {
state = {
visible: false,
timeout: null
};
setTimeout() {
if (this.state.timeout) {
clearTimeout(this.state.timeout);
}
this.setState({
timeout: setTimeout(() => {
this.setState({
... |
frontend/src/Movie/Index/Menus/MovieIndexFilterMenu.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import FilterMenu from 'Components/Menu/FilterMenu';
import { align } from 'Helpers/Props';
import MovieIndexFilterModalConnector from 'Movie/Index/MovieIndexFilterModalConnector';
function MovieIndexFilterMenu(props) {
const {
selectedFilterKey,
... |
src/www/js/components/color-form.js | training4developers/react_05092016 | import React from 'react';
export default class ColorForm extends React.Component {
constructor(props) {
super(props);
this.state = {
newColor: ''
};
this.onChange = this.onChange.bind(this);
this.addColor = this.addColor.bind(this);
}
onChange(e) {
this.setState({
[e.target.name]: e.target.val... |
docs/src/app/components/pages/components/Menu/Page.js | manchesergit/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import menuReadmeText from './README';
import MenuExampleSimple from './ExampleS... |
src/parser/paladin/retribution/modules/core/Retribution.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } fr... |
app/javascript/mastodon/components/autosuggest_input.js | yi0713/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
examples/counter/index.js | hccampos/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
src/index.js | ishgroup/lightbook | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Route } from 'react-router';
import { HashRouter } from 'react-router-dom';
ReactDOM.render((
<HashRouter>
<Route name="Lightbook" path="/" component={App} />
</HashRouter>
), document.getElementById('page-cont... |
src/mention/test-pages/promise.js | damassi/react-tinymce-mention | import React from 'react'
import axios from 'axios'
import Editor from './components/Editor'
import Mention from '../Mention'
React.render(
<div>
<Editor />
<Mention
showDebugger={true}
delimiter={'@'}
dataSource={axios.get('/public/api/complex.json')}
transformFn={dataSource => {
... |
packages/components/src/Layout/Layout.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { ThemeProvider } from '@talend/design-system';
import Inject from '../Inject';
import TabBar from '../TabBar';
import OneColumn from './OneColumn';
import TwoColumns from './TwoColumns';
import SkipLinks from './... |
packages/material-ui-icons/src/KeyboardTab.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let KeyboardTab = props =>
<SvgIcon {...props}>
<path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z" />
</SvgIcon>;
KeyboardTab = pure(KeyboardTab);
KeyboardTab.muiN... |
src/components/Footer/Footer.js | sadayuki-matsuno/pdf | import React from 'react'
import { Link } from 'react-router'
export const Footer = () => (
<div className='container text-center'>
<hr />
</div>
)
export default Footer
|
app/jsx/shared/components/ConversationStatusFilter.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... |
src/svg-icons/av/skip-next.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipNext = (props) => (
<SvgIcon {...props}>
<path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/>
</SvgIcon>
);
AvSkipNext = pure(AvSkipNext);
AvSkipNext.displayName = 'AvSkipNext';
AvSkipNext.muiName = 'SvgIcon... |
reactNativeDebugging/__tests__/index.android.js | micahrye/LearnByDoing | 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 />
);
});
|
cm19/ReactJS/your-first-react-app-exercises-master/exercise-10/App.js | Brandon-J-Campbell/codemash | import React, { Component } from 'react';
import './App.css';
import Exercise from './complete/Exercise';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<h1 className="App-title">Exercise 10</h1>
<h2 className="sub-title">... |
src/esm/components/graphics/icons/file-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var FileIcon = function FileIcon(_ref) {
var color = _ref.co... |
docs-ui/components/splitLayout.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
// import {action} from '@storybook/addon-actions';
import SplitLayout from 'app/components/splitLayout';
storiesOf('ComponentLayouts/SplitLayout', module).add(
'default',
withInfo('Children elem... |
lib/util/state.js | opentripplanner/otp-react-redux | // REMOVE THIS LINE BEFORE EDITING THIS FILE
/* eslint-disable */
import { createSelector } from 'reselect'
import { FormattedList, FormattedMessage } from 'react-intl'
import { isTransit } from '@opentripplanner/core-utils/lib/itinerary'
import coreUtils from '@opentripplanner/core-utils'
import hash from 'object-has... |
client/src/templates/Challenges/components/Side-Panel.js | pahosler/freecodecamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDom from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ChallengeTitle from './Challenge-Title';
import ChallengeDescription from './Challenge-Description';
import ToolPanel... |
test/ButtonToolbarSpec.js | simonliubo/react-ui | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', function () {
it('Should output a button toolbar', function () {
let inst... |
modules/__tests__/History-test.js | whouses/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import History from '../History'
import Router from '../Router'
import Route from '../Route'
import createHistory from 'history/lib/createMemoryHistory'
describe('History Mixin', function () {
let node
beforeEach(function () {
node = ... |
__tests__/DisplaySelectedFieldDay-test.js | nathanjameshill/ReefWatchPrototype | /* eslint-disable */
jest
.unmock('../js/components/DisplaySelectedFieldDay')
.unmock('jquery');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import $ from 'jquery'
import DisplaySelectedFieldDay from '../js/components/DisplaySelectedFieldDay';
... |
node_modules/react-bootstrap/es/ButtonGroup.js | caughtclean/but-thats-wrong-blog | 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 ... |
AwesomeProject/components/Login.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { Button } from 'react-native-material-design';
import HeaderIQMail from './Faixa';
export default class Login extends Component {
constructor() {
super();
}
render() {
return (
<View>
<Hea... |
src/svg-icons/av/web.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWeb = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb = pur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.