path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
views/prompt.js | Ribeiro/black-screen | import _ from 'lodash';
import React from 'react';
import Autocomplete from './autocomplete';
import DecorationToggle from './decoration_toggle';
// TODO: Make sure we only update the view when the model changes.
export default React.createClass({
getInitialState() {
return {
suggestions: [],
... |
AwesomeProject/src/app.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View } from 'react-native';
import firebase from 'firebase';
import { Header, Button, CardSection } from './components/common';
import LoginForm from './components/LoginForm';
import SplashScreen from './components/SplashScreen';
class App extends Component {
state... |
src/media/js/addon/containers/versionListing.js | ziir/marketplace-content-tools | /*
Version listing as a smart component since it involves binding a lot of
actions.
*/
import classnames from 'classnames';
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {fetchVersions} from '../actions/addon';
import {del as deleteVersion} from '.... |
index.ios.js | tvedtorama/restdbNative | "use strict"
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableHighlight,
View
} from 'react-native';
import {Root} from './build/app/root' // See: ./app/root.tsx
import {createReduxStore} from './build/app/init'
var store = createReduxStore()
export default class ... |
client/node_modules/uu5g03/dist-node/bricks/iframe.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from '../common/common.js';
import Loading from './loading.js';
import './iframe.less';
export const Iframe = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | migolo/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js | viankakrisna/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.
*/
/* @flow */
import React from 'react';
import CodeBlock from '../components/CodeBlock';
import { applyStyles } from '../utils/dom/css';
... |
src/inner-slider.js | sanbornmedia/react-slick | 'use strict';
import React from 'react';
import EventHandlersMixin from './mixins/event-handlers';
import HelpersMixin from './mixins/helpers';
import initialState from './initial-state';
import defaultProps from './default-props';
import classnames from 'classnames';
import assign from 'object-assign';
import {Track... |
src/components/patternInfo.js | JohnDHamm/nog-web | import React, { Component } from 'react';
import values from '../styles/values';
class PatternInfo extends Component {
truncDesc(desc) {
if (!desc) return;
return (desc.length > 37) ? desc.slice(0, 36) + "..." : desc;
}
render() {
const { name, description, defaultSpeed } = this.props;
const styles = {
... |
test/regressions/site/src/tests/ListSubheader/InsetListSubheader.js | und3fined/material-ui | // @flow weak
import React from 'react';
import { ListSubheader } from 'material-ui/List';
export default function InsetListSubheader() {
return (
<ListSubheader inset>Title</ListSubheader>
);
}
|
src/components/OpenReportModal/OpenReportModal.js | OSBI/saiku-report-viewer-ui | /**
* Copyright 2017 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
packages/react-error-overlay/src/components/ErrorOverlay.js | matart15/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.
*/
/* @flow */
import React, { Component } from 'react';
import { black } from '../styles';
import type { Node as ReactNode } from 'react'... |
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | IsenrichO/mui-with-arrows | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
packages/expo-processing/index.js | exponent/exponent | import React from 'react';
import { GLView } from 'expo-gl';
const Browser = require('processing-js/lib/Browser');
Browser.window = window;
const Processing = require('processing-js/src')(Browser);
export class ProcessingView extends React.Component {
componentWillUnmount() {
if (this._p) {
this._p.exit()... |
src/index.js | caseyg1204/home | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
src/components/ExerciseForm.js | diegocasmo/workouter | import React from 'react'
import {Prompt} from 'react-router-dom'
import {Formik, Form} from 'formik'
import {Input} from './UI/Input'
import {ExerciseSchema} from '../api/exercise'
export const ExerciseForm = ({
exercise,
submitText,
history,
redirectTo,
validationSchema = ExerciseSchema,
handleSubmit
}) ... |
examples/async/index.js | tschaub/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/screen-share.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.67 2.11-5.33 6-5.87V7l4 3.73-4... |
app/javascript/mastodon/features/compose/index.js | tootcafe/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
web/src/components/MediaElementList/SearchField.js | kupec/kurento-monitor | import React from 'react';
import {TextField} from 'material-ui';
import SearchIcon from 'material-ui/svg-icons/action/search';
export default function SearchField(props) {
return (
<div className="searchBar">
<SearchIcon className="searchBarIcon"/>
<TextField className="searchBarFi... |
app/components/SplashScreen.js | Byte-Code/lm-digitalstore | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Link } from 'react-router';
import { Map } from 'immutable';
import glamorous from 'glamorous';
import ScreenSaver from './ScreenSaver';
const Wrapper = glamorous.div({
... |
packages/react-error-overlay/src/iframeScript.js | timlogemann/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-app-polyfill/ie9';
import React from 'react';
import ReactDOM from 'react-dom';
import CompileErrorContainer from './conta... |
client/containers/SystemContainer.js | axax/lunuc | import React from 'react'
import extensions from 'gen/extensions'
import BaseLayout from '../components/layout/BaseLayout'
import {Typography, ExpansionPanel, Button, SimpleSwitch, ContentBlock} from 'ui/admin'
import Hook from 'util/hook'
import {client} from '../middleware/graphql'
import styled from '@emotion/styled... |
node_modules/react-bootstrap/es/Glyphicon.js | nikhil-ahuja/Express-React | 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 ... |
techCurriculum/ui/solutions/5.1/src/components/CardForm.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/svg-icons/av/forward-10.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward10 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0... |
packages/bulkhead/example/Simple.js | nkbt/react-works | /* eslint no-console:0 */
import React from 'react';
import {ReactBulkhead} from '../src/Component';
const onCreate = ({element}) => {
console.log('Simple: onCreate', {element});
Object.assign(element, {
innerHTML: 'Gotcha! Mutable DOM here'
});
};
export const Simple = () => (
<ReactBulkhead onCreate=... |
src/pages/Publications.js | thibmaek/thibmaek.github.io | import React from 'react';
import { object } from 'prop-types';
import { PageHelmet } from '../components/helmet/';
const Publications = ({ data }) => {
const { title, body } = data.contentfulPage;
return (
<section>
<PageHelmet title={title} />
<header>
<h1>{title}</h1>
</header>
... |
client/components/Routes.js | jkettmann/relay-authentication | import React from 'react'
import { graphql } from 'react-relay'
import Route from 'found/lib/Route'
import makeRouteConfig from 'found/lib/makeRouteConfig'
import App from './App'
import HomePage from '../pages/home/Home'
import PostsPage, { POST_COUNT } from '../pages/post/Posts'
import PostDetailPage from '../pages/... |
src/components/color-palette/index.js | butterthemes/butterthemes.github.io | import React, { Component } from 'react';
import style from './style.css';
export default (props) => (
<ul className={style.palette + " " + props.theme}>
{
props.colors.map((a, b) => (
<li key={b} className={style.color} style={{backgroundColor: a}}></li>
... |
src/javascript/server/admin/index.js | realseanp/dolli-website | // Utils
import _ from 'lodash';
// Express
import express from 'express';
// React / App-level
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { provideContext } from 'fluxible-addons-react';
import app from '../../admin/app';
import Html from '../../admin/components/Html.jsx';
// R... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Navbar.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["expand", "className", "cssModule", "light", "dark", "fixed", "sticky", "color", "tag"];
import React from 'react';
import PropTypes from 'prop... |
client/src/components/dashboard/messaging/conversation.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import * as actions from '../../../actions/messaging';
import MessageList from './message-list';
import ReplyMessage from './reply-message';
const socket = actions.socket;
class Conversation extends ... |
src/interface/report/PatchChecker.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { Trans } from '@lingui/macro';
import PATCHES from 'common/PATCHES';
import Icon from 'common/Icon';
import Tooltip from 'common/Tooltip';
import DiscordButton from 'in... |
examples/create-react-app/src/index.js | jzhang300/carbon-components-react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/vid_detail.js | iamwithnail/react-redux | /**
* Created by chris on 04/03/2017.
*/
import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`
return (
<div className="video-detail col... |
node_modules/@material-ui/core/es/ButtonBase/ButtonBase.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import clsx from 'clsx';
import { elementTypeAcceptingRef } from '@mate... |
frontend/src/Calendar/Legend/Legend.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import { icons, kinds } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import LegendIconItem from './LegendIconItem';
import LegendItem from './LegendItem';
import styles from './Legend.css';
function Legend(props) {
const {
... |
src/snack-overflow/emcit/client/desktop/src/entry.js | civiclee/Hack4Cause2017 | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux';
import { Router, Route, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Immutable from 'seamless-immutable'
import configureRoutes from './routes'
import configur... |
docs/src/pages/component-demos/stepper/DotsMobileStepper.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import MobileStepper from 'material-ui/MobileStepper';
const styles = {
root: {
maxWidth: 400,
flexGrow: 1,
},
};
class DotsMobileStepper extends Component {
stat... |
packages/react-error-overlay/src/containers/RuntimeError.js | Bogala/create-react-app-awesome-ts | /**
* 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.
*/
/* @flow */
import React from 'react';
import Header from '../components/Header';
import StackTrace from './StackTrace';
import type { ... |
src/App.js | mtomcal/reactjs-hooligans-tv | import './css';
import React, { Component } from 'react';
import NavContainer from './NavContainer';
import { RouteHandler } from 'react-router';
export default React.createClass({
render() {
return (
<div>
<NavContainer />
<div>
<RouteHandler />
</div>... |
node_modules/react-error-overlay/lib/containers/StackFrameCodeBlock.js | lujinming1/hejicaoye | /**
* 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... |
app/addons/documents/index-results/components/results/IndexResults.js | apache/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/components/ui/atoms/Link/HomeLink.js | asukaleido/react-flux-example | import classNames from 'classnames';
import React from 'react';
import { Link as LinkComponent } from 'react-router';
import s from './HomeLink.css';
export default function HomeLink({ className }) {
return (
<LinkComponent className={classNames(className, s.container)} to="/">React</LinkComponent>
);
}
HomeL... |
internals/templates/languageProvider/languageProvider.js | elainewlin/Executive | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/components/organisms/education-section.js | raulfdm/cv | import React from 'react';
import { SectionTitle, SectionBody, Section } from 'atoms/section';
import FormalEducation from 'molecules/formal-education';
import LanguageEducation from 'molecules/language-education';
import ExtraCourses from 'organisms/extra-courses';
const EducationWrapper = () => {
return (
<S... |
js/jqwidgets/demos/react/app/navigationbar/fittocontainer/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js';
class App extends React.Component {
componentDidMount() {
// content for different pages
let Tolkien = '<div class="bookContainer"><div class="book"><img ... |
src/components/Gallery/Gallery.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
import { Progress } from '../Progress';
const Gallery = (props) => {
const { children, progress, header: headerContent } = props;
const progressBar = progress ? (
<div className="ui-gallery-progress">
<Progress progress={progress} />
</... |
src/components/RegistrationForm/RegistrationForm.js | alexcondorachi/ps-react-alexc | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '../TextInput';
import PasswordInput from '../PasswordInput';
/** Registration form with built-in validation. */
class RegistrationForm extends React.Component {
constructor(props) {
super(props);
this.state = {
user:... |
plugins/subschema-plugin-template-checkbox/src/index.js | subschema/subschema-devel | import React, { Component } from 'react';
import PropTypes from 'subschema-prop-types';
export class CheckboxTemplate extends Component {
static propTypes = {
label : PropTypes.node,
style : PropTypes.style,
checked: PropTypes.bool
};
static defaultProps = {
style ... |
test/integration/scss-fixtures/url-global-asset-prefix-2/pages/_app.js | azukaru/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.scss'
import '../styles/global2.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/smart/custom_field_editor/CustomFieldEditor.js | jeckhummer/wf-constructor | import React from 'react';
import {connect} from 'react-redux';
import {EditorModal} from "../../dumb/editor/EditorModal";
import {getCustomFieldEditorFormValidationResult, getCustomFieldEditorState, getTaskEditorState} from "../../selectors/ui";
import {CustomFieldEditorContent} from "./CustomFieldEditorContent";
impo... |
sb-admin-seed-react/src/vendor/recharts/demo/component/Curve.js | Gigasz/tropical-bears | import React from 'react';
import { Surface, Curve, Layer } from 'recharts';
import { curveBundle, curveCardinal, curveCardinalClosed, curveCardinalOpen,
curveCatmullRomOpen } from 'd3-shape';
import { scaleOrdinal, schemeCategory10 } from 'd3-scale';
export default React.createClass({
render () {
const point... |
src/js/components/ui/InputCheckbox.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export default class InputCheckbox extends Component {
static propTypes = {
value : PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
text : PropTypes.string.isRequired,
check... |
src/components/observable/view.stories.js | philpl/rxjs-diagrams | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { withKnobs, number, boolean } from '@kadira/storybook-addon-knobs';
import ObservableView from './view'
import EmissionsView from './emissionsView'
storiesOf('Observable', module)
.addDecorator(withKnobs)
.add('View', () => (
<Obs... |
src/components/FrequencyKnob.js | rsimmons/plinth | import React from 'react'
import Knob from './Knob'
function formatInternalValue(v) {
if (Math.abs(v) >= 1000) {
return Knob.formatWithMinimumDigits(0.001*v, 3) + ' kHz';
} else {
return Knob.formatWithMinimumDigits(v, 3) + ' Hz';
}
}
export default function FrequencyKnob(props) {
return (
<Knob ... |
app/containers/LanguageProvider/index.js | litdevelopers/tinder | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/svg-icons/notification/do-not-disturb-on.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOn = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
NotificationDoNotDisturbOn = pure(No... |
src/web/common/UI/HeroSection.js | whybug/whybug-server | import React from 'react';
import {Section} from '../UI';
/**
* A section for the main focus of the page.
*/
export default React.createClass({
render() {
return <Section type="hero">{this.props.children}</Section>;
}
});
|
app/src/client/components/assets/DockerImage.js | dvdschwrtz/DockDev | import React from 'react';
const DockerImage = ({ handler, style, logo }) => (
<div className="card-wrap" onClick={handler} style={style}>
<div className="card">
<img src={ logo } className="card-img" />
</div>
</div>
);
DockerImage.propTypes = {
logo: React.PropTypes.string,
handler: React... |
demo/public/component/Shuttle.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
import Tree from '__public/component/Tree'
import {Button} from 'antd'
const Root=styled.div`
border:1px solid #aaa;
max-width:500px;
&>.content{
display:flex;
flex-direction:row!important;
... |
src/js/all/stories/TypographyMedium.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, Heading, Paragraph, Text } from 'grommet';
import { grommet } from 'grommet/themes';
const paragraphFiller = `
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
`;
export const Medium = () => {... |
app/components/SectionSubHeader.js | RichAbrahams/electron-project | import React from 'react';
import H2 from './stc/H2';
import SectionSubHeaderWrapper from './stc/SectionSubHeaderWrapper';
import Icon from './stc/Icon';
import * as colors from '../colors';
function SectionSubHeader(props) {
const { text, icon } = props;
return (
<SectionSubHeaderWrapper className="SectionSub... |
app/components/icons/TrashIcon.js | codinglawyer/What-To-Cook-App | import React from 'react'
const TrashIcon = () => (
<svg
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
>
<path
style={{ fill: '#908BA1' }}
d='M3 6v18h18v-18h-18zm5 14c0 .552-.448 1-1 1s-1-.448-1-1v-10c0-.552.448-1 1-1s1 .448 1 1v10zm5 0c0 .552-.448 1-... |
src/shared/containers/change_password.js | foundersandcoders/sail-back | import React from 'react'
import { connect } from 'react-redux'
import { pick } from 'ramda'
import ChangePassword from '../components/change_password.js'
import { update_password } from '../redux/modules/change_password.js'
const ChangePasswordContainer = (props) => {
return (
<ChangePassword { ...props } />
... |
app/components/Header/index.js | fenderface66/spotify-smart-playlists | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
app/components/Routes.js | jimzhang93/machi-koro-nyc | import React from 'react';
import { connect } from 'react-redux';
import {Router, Route, IndexRedirect, browserHistory} from 'react-router';
import { updatePlayersArray, updateLastNumberRolled, updateNextPlayerIndexTurn, setFirstPlayerTurn, startGame, buy, receivingMoney, receiveMoney } from '../reducers/gameReducer';
... |
src/component/navbar.js | ftmatsumoto/crss | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar';
import Drawer from 'material-ui/Drawer';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import Divider from 'material-ui/Divider';
imp... |
app/components/ListingAgent/AgentInfoDisplayDiv.js | koofka/singleproperty_redux | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { media } from 'utils/style-utils';
import IconWrapper from './IconWrapper';
import InfoLink from './InfoLink';
import H3 from './H3';
import SVGIcon from '../SVGIcon';
const AgentInfoDisplayDiv = (props) => {... |
analysis/demonhunterhavoc/src/CONFIG.js | yajinni/WoWAnalyzer | import React from 'react';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a large part of the spec or contributed ... |
react_networking/MovieComponent.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Text,
View,
ListView,
ActivityIndicator,
} from 'react-native';
export default class MovieComponent extends Component {
constructor(props) {
super(pro... |
packages/react-scripts/template/src/index.js | Psychwire/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/viewControllers/Auth/Logout.js | Evyy/cffs-ui | 'use strict';
import React from 'react';
import CurrentUserStore from '../../stores/CurrentUserStore';
class Logout extends React.Component {
constructor (props) {
super(props);
// this.redirectToLogin = this
// .redirectToLogin
// .bind(this);
}
static propTypes... |
src/js/main.js | mosen/micromdm-ui | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import {syncHistoryWithStore, routerActions, routerMiddleware} from 'react-router-redux';
import {UserAuthWrapper} from 'red... |
src/js/components/MaskedInput/stories/Form.js | HewlettPackard/grommet | import React from 'react';
import { Box, Button, Form, FormField, Grommet, MaskedInput } from 'grommet';
import { grommet } from 'grommet/themes';
export const MaskedInputForm = () => {
const [value, setValue] = React.useState({ value: '' });
const onChange = nextValue => {
console.log('onChange', nextValue);... |
admin/client/components/Radio.js | stunjiturner/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
import Color from 'color';
import E from '../constants';
var Radio = React.createClass({
displayName: 'Radio',
propTypes: {
checked: React.PropTypes.bool,
onChange: React.PropTypes.func,
readonly: React.PropTypes... |
src/components/auth/require_auth.js | IvanMigov/ReactAuthenticationClient | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
};
componentWillMount() {
if (!this.props.authenticated) {
thi... |
src/client/react/admin/views/UsersView/UserPasswordReset.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { connect } from 'react-redux';
import { graphql, compose } from 'react-apollo';
import { Button, Dialog, Intent } from '@blueprintjs/core';
import { resetPassword } from '../../../../graphql/auth';... |
docs/src/examples/collections/Form/States/FormExampleWarning.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Form, Message } from 'semantic-ui-react'
const FormExampleWarning = () => (
<Form warning>
<Form.Input label='Email' placeholder='joe@schmoe.com' />
<Message
warning
header='Could you check something!'
list={[
'That e-mail has been subscrib... |
Website/src/pages/Static/home.js | ameyjain/WallE- | import React, { Component } from 'react';
import { HomeContent } from '../../components/Home';
export default class Home extends Component {
render() {
return (
<div>
<HomeContent/>
</div>
);
}
}
|
web/app/books/bookshelf.js | seanhess/serials | // @flow
import React from 'react'
import {Link} from 'react-router'
import {userBooks} from '../model/subscription'
import {SourceModel, isRecommended} from '../model/source'
import {SimpleGallery} from './gallery'
import {Suggestion} from '../books/support'
import {Routes, transitionTo} from '../router'
import {disp... |
src/js/components/OperatorSignIn.js | notfier/touristique-client | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
export class OperatorSignIn extends Component {
constructor( props ) {
super( props );
this.state = {
username: '',
password: '',
error: '',
};
this.signInOperator = this.signInOperator.bind( ... |
src/svg-icons/image/center-focus-strong.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusStrong = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V... |
src/components/Header/Header.js | sljuka/buzzler-ui | import React from 'react'
import './Header.scss'
export const Header = () => (
<div />
)
export default Header
|
server/web_server/client/js/components/Home.js | jjinking/pisangria | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
Home View
</div>
);
}
};
export default Home;
|
app/containers/FacturesDistributeur/index.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { push } from 'react-router-redux';
import { createStructuredSelector } from 'reselect';
import { List, ListItem, makeSelectable } from 'material-ui/Lis... |
examples/forms-bootstrap/src/components/dialogs-create-overlay/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default createReactClass({
displayName: 'Layout',
render: function() {
return (
<div className="example">
<h3>
Dialog: Create - Ove... |
test/test_helper.js | sadooghi/React_Blog | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
examples/polling/src/components/EditLink.js | lore/lore | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactClass({
displayName: 'EditLink',
propTypes: {
tweet: PropTypes.object.isRequired
},
onEdit: function() {
const { tweet } = this.props;
lore.dialog.show(func... |
src/client/auth/login.react.js | MartinPavlik/este | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter.react';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: Re... |
src/components/BookingsTable/Components/ColumnHeader.js | humancatfood/bat-fe-test | import React from 'react';
import PropTypes from 'prop-types';
import { useSelector, useDispatch } from 'react-redux';
import TableCell from '@material-ui/core/TableCell';
import TableSortLabel from '@material-ui/core/TableSortLabel';
import { sortBy } from 'data/actions';
const ColumnHeader = ({ sortValue, label,... |
src/events/Tile.js | lakshmikanthadn/bookMyShow | import React from 'react';
import {Link} from 'react-router';
var weekday = new Array(7);
weekday[0] = "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";
export default class Tile extends... |
src/components/study.js | onepiece8971/rememberNote | import React from 'react';
import {TouchableOpacity} from 'react-native';
import CS from '../css/convertSize';
import Svg, {Path} from 'react-native-svg';
import {
AppStatusBar,
MainView,
Occupied
} from '../css/styles';
import {
TopView,
TopText,
ContentView,
RowText,
TextView,
RememberImage,
Occup... |
src/svg-icons/action/view-quilt.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewQuilt = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/>
</SvgIcon>
);
ActionViewQuilt = pure(ActionViewQuilt);
ActionViewQuilt.displayN... |
src/templates/tag-template.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
docs/app/Examples/collections/Table/Variations/TableExampleStackable.js | shengnian/shengnian-ui-react | import React from 'react'
import { Table } from 'shengnian-ui-react'
const TableExampleStackable = () => (
<Table stackable>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell textAlign='right'>Notes</Ta... |
src/svg-icons/action/class.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionClass = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionClass = pure(ActionClass);... |
client/components/Navigation.js | horiaradu/twitter-challenge | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {hashHistory} from 'react-router';
import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from 'react-bootstrap';
class Dashboard extends React.Component {
constructor(props) {
super(props);
this.shouldComponentUpda... |
src/Well.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.