path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/routes.js | kmcarter/karaoke-song-lister | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './containers/HomePage';
import LookupPage from './containers/LookupPage'; // eslint-disable-line import/no-named-as-default
import SearchResultsPage from './containers/SearchResultsPag... |
app/containers/HomePage/index.js | jbarabander/game-site | /*
* 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 necessity for you then you can refactor it and remove
* the l... |
frontend/src/Settings/ImportLists/ImportLists/AddImportListModalContent.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import FieldSet from 'Components/FieldSet';
import Button from 'Components/Link/Button';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ModalBody from 'Components/Modal/ModalBo... |
index.js | ForrestSutton/gowebapp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App.jsx';
ReactDOM.render(
<App />,
document.getElementById('root')
); |
src/routes/index.js | llukasxx/school-organizer-front | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
bunbunbakeshop/src/Menu.js | jzheng13/SSUI-Homework-4 | import React, { Component } from 'react';
import './styles/index.css';
import './styles/font-awesome.min.css';
import products from './rolls.json';
import productPic1 from './resources/images/default1.jpg';
import productPic2 from './resources/images/default2.jpg';
import productPic3 from './resources/images/default3.... |
src/components/TopicDetailRow.js | ztplz/CNode-react-native | /**
* React Native App
* https://github.com/ztplz/CNode-react-native
* email: mysticzt@gmail.com
*/
import React from 'react';
import {
View,
Text,
Alert,
Image,
TouchableWithoutFeedback,
TouchableHighlight,
StyleSheet
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
impo... |
src/parser/paladin/retribution/modules/talents/Inquisition.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 SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Statisti... |
app/components/ToggleOption/index.js | talal7860/punch-assignment-react | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
app/javascript/mastodon/features/status/index.js | masarakki/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '..... |
dva/wd2/src/components/RecommendPro.js | imuntil/React | import React from 'react'
import ProGrid from './ProGrid'
import { SA } from '@/services'
import './RecommendPro.scss'
const RecommendPro = ({ title, pros, className = '', gridClass = '' }) => {
return (
<section className={`recommend-29sdj ${className}`}>
<h2 className="section-titles">{title}</h2>
... |
src/svg-icons/editor/pie-chart.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
example/app/index.js | cornedor/react-native-video-player | import React, { Component } from 'react';
import { View, Text, Button } from 'react-native';
import VideoPlayer from 'react-native-video-player';
const VIMEO_ID = '179859217';
export default class App extends Component {
constructor() {
super();
this.state = {
video: { width: undefined, height: undef... |
src/scenes/App/scenes/PlayerOverview/components/Stats/index.js | jsza/tempus-website | import React from 'react'
import P from 'prop-types'
import './styles.styl'
export default class Stats extends React.Component {
render() {
const ri = this.props.rankInfo
const cri = this.props.countryRankInfo
const pi = this.props.playerInfo
return (
<div className="App-PlayerOverview-Stats"... |
examples/05 Customize/Handles and Previews/index.js | pairyo/react-dnd | import React from 'react';
import Container from './Container';
export default class CustomizeHandlesAndPreviews {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>Browse the Source</a></b>
... |
src/pages/404.js | evandromacedo/evandromacedo.com | import React from 'react'
import * as S from '../components/NotFound/styled'
import SEO from '../components/SEO'
import Me from '../components/Me'
import GlobalStyles from '../styles/global'
const NotFoundPage = () => (
<S.NotFoundWrapper>
<SEO title="404: Not found" />
<GlobalStyles />
<S.NotFoundRotate... |
src/components/BetaAlert/BetaAlert.js | moje-skoly/web-app | import React, { Component } from 'react';
import { Grid, Row, Col, Alert } from 'react-bootstrap';
export default class BetaAlert extends Component {
render() {
return (
<Grid>
<Row>
<Col xs={12}>
<Alert bsStyle="warning">
Aplikaci jsme právě spustili. Budeme pr... |
fields/types/url/UrlField.js | pr1ntr/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
statics: {
type: 'Url',
},
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = '... |
client/pages/examples/threejs/fractals/elements/fractal-picker.js | fdesjardins/webgl | import React from 'react'
const fractals = ['mandelbrot', 'julia']
export const FractalPicker = ({ fractal, setFractal }) => (
<select
value={fractal}
className="ui dropdown"
onChange={({ target }) => setFractal(target.value)}
>
{fractals.map((f) => (
<option key={f} value={f}>
{f}
... |
assets/js/components/ErrorWrapper.js | tdfischer/organizer | import React from 'react'
import Raven from 'raven-js'
import { withStyles } from '@material-ui/styles'
import importedComponent from 'react-imported-component'
const Button = importedComponent(() => import('@material-ui/core/Button'))
export class ErrorWrapper extends React.Component {
constructor(props) {
... |
artifact/components/admin/log/summary/index.js | uinika/saga | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as actionCreators from '../../../../fluxes/admin/log/summary/action'
import Main from './main'
function mapStateToProps(state) {
return {
state: state.log.summary
}
}
function mapDispatchToProps... |
src/app/keyring/components/KeyUsers.js | mailvelope/mailvelope | /**
* Copyright (C) 2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import {Redirect, Link} from 'react-router-dom';
import PropTypes from 'prop-types';
import * as l10n from '../../../lib/l10n';
import KeyStatus from './KeyStatus';
import {Keyring... |
src/esm/components/graphics/icons/cross-circle-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "bgColor", "circleColor", "crossColor", "width", "height", "title", "className"];
import React from 'react';
import PropTypes from 'prop-types... |
src/components/Quote.js | DaLancelot/tinyQuotes | import React from 'react';
const Quote = (props) => {
const { cite, meta: { size } } = props.quote;
return (
<cite id='quote' style={{ fontSize: size }}>{cite}</cite>
)
}
export default Quote; |
src/index.js | yigitusta9/React_Blog_App | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
var global = window; // eslint-disable-line
ReactDOM.render(
<App />,
global.document.getElementById('root'),
);
|
static/src/routes.js | agelarry/online_quiz | /* eslint new-cap: 0 */
import React from 'react';
import { Route } from 'react-router';
/* containers */
import { App } from './containers/App';
import { HomeContainer } from './containers/HomeContainer';
import LoginView from './components/LoginView';
import RegisterView from './components/RegisterView';
import Pro... |
Rosa_Madeira/Revendedor/src/components/common/card_produto/Input.js | victorditadi/IQApp | import React, { Component } from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, value, onChangeText, placeholder, secure }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>{label}</Te... |
src/components/common/Block/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { P } from 'common/base';
import styles from './Block.module.css';
const Block = ({ heading, requiredText, children, className, style }) => (
<section className={className} style={style}>
<div className={cn(styles.... |
app/containers/SignUp/index.js | Blacksage959/Michael.McCann | /*
*
* SignUp
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Header from 'components/Header';
import HeaderMobile from 'components/HeaderMobile';
import Footer from 'components/Footer';
import Responsive from 'react-responsive';
import DeforestationGallery from 'components/DeforestationG... |
src/svg-icons/image/crop-landscape.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape = pure(ImageCro... |
src/routes.js | arjunkhode/EvenOdd-React | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { Switch} from 'react-router-dom';
import App from './components/app';
import Vehicle from './components/vehicle';
export default(
<Route path="/" component={App} />
); |
src/server.js | bdefore/react-redux-universal-hot-example | // node modules dependencies
import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import PrettyError from 'pretty-error';
import http fro... |
examples/counter/index.js | zalmoxisus/redux-remote-monitor | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | RobzDoom/frame_trap | /**
* 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... |
packages/react/src/components/organisms/UtilityNav/UtilityNav.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import { HeaderUtilityNav } from 'MayflowerReactMolecules/HeaderNav';
import { LoginItem, TranslateItem, StateItem } from 'MayflowerReactOrganisms/Header/utility-items';
// eslint-disable-next-line import/no-unresolved
import IconBuilding f... |
src/view/AddStaffView.js | kokokele/reactjs-demo | import React from 'react';
var AddStaffView = React.createClass({
render : function(){
return (
<div className="container">
<div className="row">
<div className="span12">
<table className="table table-bordered">
... |
src/configs/maps.js | margox/braft-editor | import React from 'react';
export const getHeadings = (lang) => [
{
key: 'header-one',
title: `${lang.controls.header} 1`,
text: <h1>{lang.controls.header} 1</h1>,
type: 'block-type',
command: 'header-one',
},
{
key: 'header-two',
title: `${lang.controls.header} 2`,
text: <h2>{lan... |
app/src/routes/Home.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import Splash from '../components/Splash';
import TurkeyMap from '../components/TurkeyMap';
import UserSearch from '../components/UserSearch';
import YearRange from '../compone... |
src/interface/icons/UpArrow.js | ronaldpereira/WoWAnalyzer | import React from 'react';
const Icon = ({ ...other }) => (
<svg viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" className="icon" {...other}><path d="M0 25L25 0l25 25H37.4v25h-25V25H0z" /></svg>
);
export default Icon;
|
app/jsx/gradebook/default_gradebook/GradebookGrid/headers/CustomColumnHeader.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - 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... |
examples/route-no-match/app.js | tylermcginnis/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
class User extends React.Component {
render() {
let { userID } = this.props.params
let { query } = this.props.location
... |
src/svg-icons/hardware/gamepad.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
assets/components/githubCorner/index.js | le0pard/pgtune | import React from 'react'
import {useSelector} from 'react-redux'
import {APP_THEMES_LIGHT, APP_THEMES_DARK} from 'reducers/settings/constants'
import './github-corner.css'
const GithubCorner = () => {
const theme = useSelector(({settings}) => (
APP_THEMES_LIGHT === settings.theme ? APP_THEMES_DARK : APP_THEMES... |
pkg/ui/src/components/access/SubjectsTab.js | matt-deboer/kuill | import React from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { routerActions } from 'react-router-redux'
import queryString from 'query-string'
import FilterBox from '../FilterBox'
import PermissionsPane from '../configuration-pane/PermissionsPane'
const mapState... |
components/Footer.js | nickroberts404/meadowlab | import React, { Component } from 'react';
import { prefixLink } from 'gatsby-helpers'
import { Link, IndexLink } from 'react-router';
export default class Footer extends Component {
render() {
return (
<footer className="site-footer">
<p>
crafted with <span className="footer-heart">♥</span> by <L... |
docs/pages/api-docs/tree-view.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/tree-view';
const requireRaw = require.context('!raw-loader!./', false, /\/tree-view\.md$/);
export default function Page({ ... |
src/auth/Signout.js | petertrotman/critrolemoments | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { push as pushAction } from 'react-router-redux';
import { userLogout as userLogoutAction } from './actions';
import { withFirebase, firebaseAppType } from '../firebase';
const... |
frontend/src/Components/Form/TagInputConnector.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { addTag } from 'Store/Actions/tagActions';
import createTagsSelector from 'Store/Selectors/createTagsSelector';
import TagInput ... |
blueocean-material-icons/src/js/components/svg-icons/image/brightness-4.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness4 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C1... |
src/client/app/App.js | tonybdesign/test-task | import React from 'react';
import {render} from 'react-dom';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import {Provider} from 'react-redux';
import store from './store/store';
import Main from './containers/Main/Main';
import Home from 'views/Home/Home';
render (
<Provider ... |
imports/containers/ChatroomContainer.js | adderpositive/chat-app | /*================================================
ChatRoomContainer
=================
- is container takes control about data
and functionality
@imports - react, Chatroom
================================================ */
// imports
import React, { Component } from 'react';
import Chatroom from '../componen... |
Realization/frontend/czechidm-core/src/content/generatevalues/GenerateValues.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
import * as Basic from '../../components/basic';
import { GenerateValueManager } from '../../redux';
import GenerateValueTable from './GenerateValueTable';
const TABLE_UIKEY = 'generate-values-table-ui-key';
/**
* Content with all generate values.
*
* ... |
src/containers/Thesis/CreatePage.spec.js | OhtuGrappa2/front-grappa2 | import React from 'react'
import test from 'ava'
import sinon from 'sinon'
import { mount } from 'enzyme'
import { ThesisCreatePage } from './CreatePage'
// TODO: Fix this test. Broken after loading indicator added
test.skip('New thesis can be created', (t) => {
const save = sinon.spy()
const persons = [{ pe... |
.history/src/components/GKM/EtsyProduct_20170624114327.js | oded-soffrin/gkm_viewer | import React from 'react'
import '../../styles/gkm-item.scss';
import ProductItem from './ProductItem'
import Input from '../Common/Input'
import SearchBar from '../SearchBar';
import _ from 'lodash'
class EtsyProduct extends React.Component {
constructor(props, context) {
super(props, context);
this.edit... |
app/javascript/mastodon/features/ui/components/embed_modal.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | hukezhu/React-Native-demo | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
docs/src/app/components/pages/components/CircularProgress/Page.js | barakmitz/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 circleProgressReadmeText from './README';
import circleProgressCode from ... |
src/svg-icons/action/visibility.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
src/index.js | skaipio/five-straight | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import gameApp from './reducer';
import { resetGame, clickCell } from './action';
import VisibleArena from './container/VisibleArena';
import Ai from './Ai';
import './index.css';
con... |
src/pages/community/section/greenstreet/GreenStreet.js | HeliumLau/Hoop-react | import React from 'react';
import Part from 'components/Part'
export default class GreenStreet extends React.Component {
render() {
const list = [
{
icon: 'icon-rocket',
name: '休斯顿火箭队',
num: 12212,
route: '/news'
},
... |
src/BootstrapMixin.js | azmenak/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/index.js | TeamOculus/theater | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import {Router, browserHistory} from 'react-router';
import reducers from './reducers';
import routes from './routes';
const createStoreWithMiddleware = applyMid... |
client/src/inventory/vendors.js | brandiqa/open-lims | import React from 'react';
import { inject } from 'mobx-react';
import { INVENTORY_ROUTE } from '../config/routes';
import DomainPage from '../templates/domain-page';
import DomainRoutes from '../templates/domain-routes';
import DomainSchema from '../templates/domain-schema';
@inject("stores")
class Vendors extends Re... |
src/common/app/common.js | reedlaw/read-it | // @flow
import type { State } from '../../common/types';
import React from 'react';
import { IntlProvider } from 'react-intl';
import { ThemeProvider } from 'react-fela';
import { connect } from 'react-redux';
const common = ({ themes }: { themes: Object }) =>
(WrappedComponent: Function) => {
const Common = (
... |
src/Phase1.js | qiubit/wason-selection-parallel | import _ from 'lodash';
import React, { Component } from 'react';
import './Phase1.css';
import GILExercise from './GILExcercise';
class Phase1 extends Component {
constructor(props) {
super(props);
this.state = {
exerciseShown: true,
}
this.onExperimentEnd = this.onExperimentEnd.bind(this);
... |
simon-game/src/SimonGame.js | florinpop17/chingu-speedrun-may | import React, { Component } from 'react';
class SimonGame extends Component {
constructor() {
super();
this.state = {
total_games: 20,
started: false,
level: 1,
strict: false,
running: false,
game: [],
player: [],
... |
docs/src/app/components/pages/components/TextField/ExampleError.js | verdan/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleError = () => (
<div>
<TextField
hintText="Hint Text"
errorText="This field is required"
/><br />
<TextField
hintText="Hint Text"
errorText="The error text can be as long as you want, i... |
example/src/screens/types/DummyScreen.js | iotize/react-native-navigation | import _ from 'lodash';
import React, { Component } from 'react';
import {
View,
ScrollView,
Dimensions,
Text,
StyleSheet,
Button,
PixelRatio
} from 'react-native';
import {NavigationToolBarIOS} from 'react-native-navigation';
const {width} = Dimensions.get('window');
class DummyScreen extends Componen... |
src/components/Icon/Icon.Skeleton.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import { settings } from 'carbon-components';
const { prefix } = settings;
c... |
admin/client/components/ItemsTableValue.js | nickhsine/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var ItemsTableValue = React.createClass({
displayName: 'ItemsTableValue',
propTypes: {
className: React.PropTypes.string,
exterior: React.PropTypes.bool,
field: React.PropTypes.string,
href: React.PropTypes.str... |
app/index.js | ZhydraBook/zhydrabook | import React from 'react';
import { render } from 'react-dom';
import { hashHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import { syncHistoryWithStore } from 'react-router-redux';
import 'semantic-ui-css/semantic.css';
import Root from './containers/Root';
import configureStore from ... |
modules/Route.js | wmyers/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './PropTypes';
import warning from 'warning';
var { string, bool, func } = React.PropTypes;
/**
* A <Route> is used to declare which components are rendered ... |
src/scenes/home/chapterLeader/chapterLeader.js | sethbergman/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
const chapterLeaders = () => (
<div>
<Section title="Chapter Leaders" theme="white">
<div>
<p>
Operation Code is looking for volunteer Chapter Leaders to build local communities
nationwide! Tell ... |
src/containers/edm/components/propertytype/PropertyType.js | dataloom/gallery | import React from 'react';
import PropTypes from 'prop-types';
import { Map, fromJS } from 'immutable';
import { connect } from 'react-redux';
import PropertyTypePermissions from './PropertyTypePermissions';
import PropertyTypeTitle from './PropertyTypeTitle';
import PropertyTypeDescription from './PropertyTypeDescri... |
Web/src/models/GuitarPropTypes.js | CMITInternational/Guitars | import React from 'react';
const GuitarPropTypes = {
Id: React.PropTypes.string.isRequired,
Title: React.PropTypes.string.isRequired,
SubTitle: React.PropTypes.string.isRequired,
Description: React.PropTypes.string.isRequired,
Date: React.PropTypes.string.isRequired,
Client: React.PropTypes.string.isRequir... |
app/client/components/PageBodyWrapper.js | jmdesiderio/swan-cms | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const Wrapper = styled.div`
${p => (p.hasSidebar ? 'display: flex;' : null)}
`
const Content = styled.div`
background-color: ${p => p.theme.colors.white};
flex-grow: 1;
padding: 1rem;
`
const PageBodyWrapper =... |
src/ExcelContacts.js | sumurthy/xlcontacts | import React, { Component } from 'react';
import hello from 'hellojs/dist/hello.all.js'
import Graph from './Graph'
import Processing from './Processing'
import ErrorPage from './ErrorPage'
export class ExcelContacts extends Component {
constructor (props) {
super(props)
this.state = {
status: 'start',
m... |
client/acp/components/ClientIdForm.js | NicolasSiver/nodebb-plugin-ns-twitch-monitor | import classNames from 'classnames';
import React from 'react';
import Validation from '../models/Validation';
export default class ClientIdForm extends React.Component {
constructor(props) {
super(props);
}
render() {
const groupClass = classNames({
'form-group' : tr... |
client/app/components/Auth/LoginForm.js | maekks/menu-plus | import React from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButtonSm from 'components/Button/FlatButtonSm';
import { login } from 'actions/AuthActions';
import LoginFormUI from 'components/Auth/LoginFormUI';
import validateInput from 'compone... |
react-fundamentals-es6/lessons/00-setup/main.js | wandarkaf/React-Bible | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'))
|
app/containers/ProcessClassify/EditForm/index.js | bruceli1986/react-qdp | /*
*
* ProcessClassifyEditForm
*
*/
import React from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import selectProcessClassifyEditForm from './selectors';
import { Modal, Form, Input, Row, Col, Select, InputNumber } from 'antd';
import {
initEditFormAction,
setSubmitAction,
s... |
mla_game/front-end/javascript/components/partials/user_form.js | WGBH/FixIt | import React from 'react'
import { patchData } from '../../helpers'
class UserForm extends React.Component {
constructor(){
super()
this.changeName = this.changeName.bind(this)
this.state = {
saved:false,
usernameError:false
}
}
changeName(event){
event.preventDefault();
// c... |
src/app/components/pages/ContactPage/ContactPage.js | tvarner/PortfolioApp | import React from 'react';
import './styles.css';
// Since this component is simple and static, there's no parent container for it.
const ContactPage = React.createClass({
render: function() {
return (
<div style={{ height: '100%', width: '100%' }}>
<div className={'contact-page'}>
<div className={'pag... |
modules/client.js | mattrei/ghostbike.wien | import "babel-polyfill"
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import routes from '../modules/routes'
render(
<Router history={browserHistory} routes={routes}/>,
document.getElementById('app')
)
|
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-router-dom/4.1.1/es/HashRouter.js | Akkuma/npm-cache-benchmark | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/mui/input/NumberInput.js | matteolc/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import FieldTitle from '../../util/FieldTitle';
/**
* An Input component for a number
*
* @example
* <NumberInput source="nb_views" />
*
* You can customize the `step` props (which default... |
src/components/AddCombatant.js | kristyjy/battleplan | import React from 'react';
import AddCombatantForm from '../components/AddCombatantForm';
import MonsterManualList from '../components/MonsterManualList';
class AddCombatant extends React.Component {
render() {
return (
<div className="add-combatant">
<h1>Add Combatant</h1>
<div className=... |
src/docs/apiExamples/Legend.js | recharts/recharts.org | import React from 'react';
import { LineChart, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Line } from 'recharts';
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
amt: 2400,
},
{
name: 'Page B',
uv: 3000,
pv: 1398,
amt: 2210,
},
{
name: 'Page C',
uv: 2000,
p... |
src/components/like-tag-button.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
src/app/components/team/Statuses/StatusMessage.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Box from '@material-ui/core/Box';
import CommentIcon from '@material-ui/icons/Comment';
import { black32 } from '../../../styles/js/shared';
const useStyles = makeStyles(() => ({
statusMessage... |
src/svg-icons/image/lens.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
ex... |
web/node_modules/react-router/es6/Link.js | Jorginho211/TFG | 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) { var target = {... |
packages/material-ui-icons/src/Pause.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Pause = props =>
<SvgIcon {...props}>
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z" />
</SvgIcon>;
Pause = pure(Pause);
Pause.muiName = 'SvgIcon';
export default Pause;
|
app/features/quiz/QuizSession/QuizInfo/AddSynonymModal.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Fixed, Absolute, Overlay, Flex } from 'rebass';
import quiz from 'features/quiz/actions';
import { selectCurrentId, selectSynonymModalOpen } from 'features/quiz/QuizSession/selectors';
import { selectAnswer }... |
app/components/Footer/index.js | samanshahmohamadi/react-boilerplate-ballyhoo | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper style={{background:'#000'}}>
<section>
... |
demo/redux.js | developit/preact | import { createElement } from 'preact';
import React from 'react';
import { createStore } from 'redux';
import { connect, Provider } from 'react-redux';
const store = createStore((state = { value: 0 }, action) => {
switch (action.type) {
case 'increment':
return { value: state.value + 1 };
case 'decrement':
... |
app/main.js | christianalfoni/reactive-router | import controller from './controller.js';
import {Mixin} from 'cerebral-react-immutable-store';
import React from 'react';
import Router from './../index.js';
const Messages = React.createClass({
mixins: [Mixin],
getStatePaths() {
return {
url: ['url'],
messageId: ['messageId']
};
},
render... |
app/javascript/mastodon/features/direct_timeline/index.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
packages/ringcentral-widgets-docs/src/app/pages/Components/CallsPanel/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import CallsPanel from 'ringcentral-widgets/components/CallsPanel';
const props = {};
props.currentLocale = 'en-US';
props.calls = [{
id: '1234',
direction: 'Outbound',
from: {
phoneNumber: '+16507654321'
},
to: {
phoneNumber: '+12055435432'
},... |
src/app/component/select-menu/select-menu.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import SelectMenu from '.'
import {selectMenuValues, selectMenuValuesWithPrices} from '../../../../stories/util/data'
storiesOf('SelectMenu', module)
.add('default', () => (
<SelectMenu values={... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.