path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/src/BasicExample/BasicExample.js | brennanerbz/react-autosuggest | import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function getSuggestions(input, callback) {
const escapedInput = utils.escapeRegexChara... |
src/components/Touchable/ButtonHOC.js | wkozyra95/react-boilerplate | /* @flow */
import React from 'react';
const ButtonHOC = (WrapedComponent: any) => {
return class extends React.Component {
props: {
onTouchTap?: Function,
payload?: any,
}
onTouchTap = (event: any) => {
if (this.props.onTouchTap) {
this.props.onTouchTap(event, this.props.paylo... |
client/index/components/pop/index.js | sliwei/react16-koa2 | import React from 'react';
import {Popup, Modal} from 'Public'
import css from './pop.scss'
export default class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
sta: false,
sta1: false,
open: false,
time: new Date()
... |
src/Parser/Monk/Windwalker/Modules/Spells/TouchOfKarma.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import HealingDone from 'Parser/Core/Modules/HealingDone';
import StatisticBox... |
src/components/PastDecisionsModal/PastDecisionsModal.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import Modal from 'react-bootstrap/lib/Modal';
import ModalBody from 'react-bootstrap/lib/ModalBody';
import ModalHeader from 'react-bootstrap/lib/ModalHeader';
import ModalFooter fro... |
resources/js/Admin/Campaigns/Create.js | DoSomething/northstar | import React from 'react';
import Layout from '../components/Layout';
import TextField from '../components/Form/TextField';
import AdminForm from '../components/Form/AdminForm';
import DateField from '../components/Form/DateField';
import NoteCard from '../../components/Card/NoteCard';
import SelectField from '../comp... |
src/containers/register-form.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import RegisterForm from 'Theme/register-form'
import RegisterFormMaterial from '../components/theme-giraffe/create-petition/register-form'
import Config from '../config'
import { register, devLocalRegister } from '../a... |
src/svg-icons/action/assignment-turned-in.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
app/containers/ExplainScreen/index.js | nypl-spacetime/where | import React from 'react'
import { Images, ComponentTable } from './styles'
export class ExplainScreen extends React.Component {
constructor (props) {
super(props)
this.state = {
selectedIndex: 0,
intervalDuration: 2500
}
}
componentDidMount () {
this.startAnimation()
}
compo... |
docs/pages/blog/2020-q2-update.js | lgollut/material-ui | import React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'blog/2020-q2-update';
const requireRaw = require.context('!raw-loader!./', false, /2020-q2-update\.md$/);
export default funct... |
docs/app/Examples/elements/Rail/index.js | koenvg/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Variations from './Variations'
const RailExamples = () => (
<div>
<Types />
<Variations />
</div>
)
export default RailExamples
|
src/components/ui/StatusBarTargetUrl.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import Appear from './effects/Appear';
export default @observer class StatusBarTargetUrl extends Component {
static propTypes = {
className: PropTypes.string,... |
Rate.UI/app/components/Categories.js | jcnavarro/rateflicks | import React from 'react';
import { Link } from 'react-router';
import styled from 'styled-components';
const StyledLink = styled(Link)`
color: tomato;
display: block;
margin: 0.5em 0;
font-family: Helvetica, Arial, sans-serif;
&:hover {
text-decoration: underline;... |
ui/src/frontend/component/Package.js | Virtustream-OSS/packrat | import React from 'react';
import CInP from './cinp';
import AddPackageDialog from './AddPackageDialog';
import PackageFile from './PackageFile';
import { Table, TableHead, TableRow, TableCell } from 'react-toolbox';
import { Link } from 'react-router-dom';
class Package extends React.Component
{
state = {
pa... |
src/components/Aside/Aside.js | corbinpage/react-play | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Progress } from 'reactstrap';
import classnames from 'classnames';
class Aside extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '1'
... |
fields/types/boolean/BooleanFilter.js | pswoodworth/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const VALUE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false },
];
function getDefaultValue () {
return {
value: true,
};
}
var BooleanFilter = React.createClass({
propTypes: {
filter: React.Pro... |
pathfinder/vtables/globalapplicationportfolio/src/index.js | leanix/leanix-custom-reports | // 3rd party css files
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/bootstrap-theme.min.css';
import '../node_modules/react-bootstrap-table/dist/react-bootstrap-table.min.css';
// Import css declarations for the report
import './assets/main.css';
import '@l... |
client/canx-client/src/views/LogoutModal.js | uros-stegic/canx | import React from 'react'
import Modal from 'react-modal'
import {modalStyle} from '../style/modalStyle'
import {bindActionCreators} from 'redux'
import { connect } from 'react-redux'
import * as authActions from '../actions/userActions'
class LogoutModal extends React.Component {
constructor(...args) {
super(..... |
src/components/Page/Page.js | 0xcdc/rfb-client-app | import useStyles from 'isomorphic-style-loader/useStyles';
import React from 'react';
import PropTypes from 'prop-types';
import s from './Page.css';
export default function Page({ title, html }) {
useStyles(s);
return (
<div>
<h1>{title}</h1>
<div
// eslint-disable-next-line react/no-dange... |
themes/frontend/assets/reactjs/process/js/SearchCarRow.js | fonea/velon | import React from 'react';
import SearchCarRowImage from './SearchCarRowImage';
export default class SearchCarRow extends React.Component {
constructor(props) {
super(props);
this.createMarkup = this.createMarkup.bind(this);
}
createMarkup(markup) {
return {__html: markup};
}
render() {
... |
app/js/components/Footer.js | raulalgo/button_rr | 'use strict';
import React from 'react';
import CountItem from '../components/level_counter/CountItem'
class Footer extends React.Component{
constructor(props) {
super(props);
}
render() {
return (
<footer>
</footer>
);
}
}
export default Footer;
|
app/components/common/snackbar/SnackbarContent.js | rvpanoz/luna | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import green from '@material-ui/core/colors/green';
import IconButton from '@material-ui/core/IconButton';
import SnackbarContent from '@material-ui/core/SnackbarContent';
import Typography from '@material-ui/core/Typogr... |
7-css-modules/src/TodoItem.js | mariusz-malinowski/tutorial-react | import React from 'react';
import styles from './todo.css'
export default (props) => {
return (
<li className={props.todo.completed ? styles.todo_done : styles.todo_pending} onClick={props.onTodoClicked}>{props.todo.name}</li>
);
};
|
src/components/searchbar.js | tgundavelli/React_Udemy | import React, { Component } from 'react';
//const SearchBar = () => {
// return <input />;
//};
// each class based object has a state object
// if state of search bar is changed then the render function is reran
class SearchBar extends Component{
// this is how we initialize state in a class based component
// ... |
src/interface/statistics/components/PlayerHits/index.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import char1 from './images/char1.png';
import char2 from './images/char2.png';
import char3 from './images/char3.png';
import char4 from './images/char4.png';
import char5 from './images/char5.png';
import char1Active from './images/char1-active.png';
imp... |
src/svg-icons/editor/border-left.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z... |
src/components/common/ImageUpload.js | bharney/YogaMarieMills | import React from 'react';
const ImageUpload = ({uploadImage}) => {
return (
<div className="previewComponent">
<label for="upload-photo" className="btn btn-info btn-circle-lg" title="Change Image">
<i className="p-t-3 glyphicon glyphicon-camera"></i>
... |
fields/types/markdown/MarkdownField.js | frontyard/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from '../../../admin/client/App/elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remo... |
docs/app/Examples/views/Card/Types/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Card'
description='A card displays sit... |
src-client/admin/components/layout-sidebar/index2.js | helinjiang/xman-admin | import React from 'react';
import {Link} from 'react-router';
import classnames from 'classnames';
class Sidebar extends React.Component {
constructor(props, context) {
super(props, context);
console.log('==sidebar.js== constructor');
this.state = {
routes: [
{url: '/index', icon: 'home... |
src/music/Player/MiniControls/index.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import Color from 'color';
import { compose, setPropTypes } from 'recompose';
import { View, StyleSheet } from 'react-native';
import SafeAreaView from '@ui/SafeAreaView';
import Icon from '@ui/Icon';
import Touchable from '@ui/Touchable';
import ConnectedI... |
src/frontend/routes/index.js | PiTeam/garage-pi | import React from 'react';
import {
browserHistory,
Router,
Route,
IndexRoute,
} from 'react-router';
import Main from 'components/main';
import Login from 'containers/login';
import Logout from 'containers/logout';
import Door from 'containers/door/list';
import AddUser from 'containers/user/admin/add';
impor... |
app/components/Chart.js | paul-uu/weather | import React from 'react';
import d3 from 'd3';
import c3 from 'c3';
export default class Chart extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
this.chartC3(this.props.weatherArray);
}
componentDidUpdate() {
this.chartC3(this.props.weatherArray);
}
chartC3... |
test/integration/css-fixtures/url-global-asset-prefix-1/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
packages/material-ui-icons/src/Crop.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Crop = props =>
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z" />
</SvgIcon>;
Crop = pure(Crop);
Crop.muiName = 'SvgIcon';
export... |
gatsby-ssr.js | orleans-tech/orleans-tech.github.io | import React from 'react'
import { Provider } from 'react-redux'
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import exampleReducer from 'src/reducers/example'
import { GRAPHQL_API_BASE_URL } from 'src/config'
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
Intr... |
src/components/antd/icon/index.js | hyd378008136/olymComponents | import React from 'react';
import classNames from 'classnames';
import omit from 'omit.js';
const Icon = (props) => {
const { type, className = '', spin } = props;
const classString = classNames({
anticon: true,
'anticon-spin': !!spin || type === 'loading',
[`anticon-${type}`]: true,
... |
test/alert.js | Vision100IT/v100it-template | import test from 'ava';
import React from 'react';
import {renderToStaticMarkup} from 'react-dom/server';
import Alert from '../src/components/alert';
test('', t => {
const result = renderStatic();
t.true(result);
});
function renderStatic(props) {
return renderToStaticMarkup(<Alert {...props}/>);
}
|
src/components/interactive/Link.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { string, node } from 'prop-types';
import { Link as GatsbyLink } from 'gatsby';
import { OutboundLink } from 'ga... |
client/src/modules/Nav.js | showmethewei/tuna-io | import React from 'react';
import { browserHistory, Link } from 'react-router';
import { Menu, NavItem, Media, Heading, Text, Divider, InlineForm } from 'rebass';
import Recommended from './Recommended';
export default class Nav extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/components/icon-dropdown/index.js | KleeGroup/focus-components | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Button from '../../components/button';
import Translation from '../../behaviours/translation';
function isDescendant(parent, child) {
let node = child.parentNode;
while (node != null) {
... |
src/main.js | nodatall/avoid-the-meters | import React from 'react'
import { render } from 'react-dom'
import App from './components/App'
render(
<App />,
document.getElementById('mountApp')
)
|
frontend/src/components/GithubIcon.js | tdv-casts/website | import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const GithubIcon = (props) => (
<SvgIcon viewBox="0 0 16 16" {...props}>
<path d="M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17... |
packages/lore-hook-dialogs-material-ui/src/blueprints/destroy/Wizard/forms/Confirmation.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { CardTitle, CardText, CardActions, RaisedButton, FlatButton } from 'material-ui';
export default createReactClass({
displayName: 'Confirmation',
propTypes: {
callbacks: PropTypes.object
... |
src/client/js/components/LoginForm.js | neffka/ssi | import React from 'react';
export default class LoginForm extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div style={{visibility: this.props.visibility, position: 'fixed', fontFamily: ["Lucida Sans Unicode", "Lucida Grande", 'sans-serif'], fontSize: 12 + 'px', left: 40 + '... |
node_modules/react-router-dom/es/Link.js | rwarr/futaba-db | 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 = {... |
src/js/components/activities/recordSitForm.js | jrnail23/sitterswap-ui | import React from 'react'
import Input from '../common/textInput'
import {Link} from 'react-router'
export default class extends React.Component {
static propTypes = {
memberKey: React.PropTypes.string.isRequired,
sit: React.PropTypes.shape({
sitter: React.PropTypes.string.isRequired,
date: React... |
src/components/3-ClassComposition/StyleVariantA/StyleVariantA.js | AgtLucas/css-modules-playground | import styles from './StyleVariantA.css';
import React from 'react';
export default class StyleVariantA extends React.Component {
render() {
return(
<div className={styles.root}>
<p className={styles.text}>Style Variant A</p>
</div>
);
}
};
|
src/svg-icons/image/flip.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlip = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v... |
app/javascript/mastodon/features/notifications/index.js | amazedkoumei/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
packages/icons/src/md/content/Drafts.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdDrafts(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M43.98 19L44 39c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V19c0-1.44.77-2.69 1.9-3.4L24 5l18.1 10.6a4 4 0 0 1 1.88 3.4zM24 29l16.52-10.33L24 9 7.48 18.67 ... |
components/Icon/index.js | sikhote/clairic | import React from 'react';
import PropTypes from 'prop-types';
import Text from '../Text';
import { colors } from '../../lib/styling';
import styles from './styles';
const Icon = ({ icon, ...props }) => (
<Text className="text" color={colors.white} {...props}>
<style jsx>{styles}</style>
<i className={`icon-... |
docs/app/Components/ComponentDoc/ComponentDoc.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import DocumentTitle from 'react-document-title'
import { Grid } from 'shengnian-ui-react'
import withDocInfo from 'docs/app/HOC/withDocInfo'
import ComponentDocHeader from './ComponentDocHeader'
import ComponentDocLinks from './ComponentDocLinks'
import Com... |
src/components/App.js | Coldwings/Campanella-worldlinepack | import React, { Component } from 'react';
import Header from './Header';
export default class App extends Component {
render () {
return (
<div className="container">
{/* Header */}
<Header/>
</div>
);
}
}
|
static/src/ChangePasswordDialog.js | alwint3r/wlanturn | import React from 'react';
import Dialog from 'material-ui/Dialog';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import { connect } from 'react-redux';
import actions from './actions';
/* eslint react/jsx-boolean-value:0 */
const ChangePasswordDialog = props => (
... |
examples/huge-apps/routes/Calendar/components/Calendar.js | cold-brew-coding/react-router | import React from 'react';
class Calendar extends React.Component {
render () {
var events = [{
id: 0, title: 'essay due'
}];
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
client/modules/App/components/Menu/Menu.js | tranphong001/BIGVN | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styles from './Menu.css';
import grid from '../../../../grid.css';
import { Navbar, Nav, NavItem, Button, Glyphicon, NavDropdown, MenuItem } from 'react-bootstrap';
import {
fetchCategories, set... |
app/javascript/mastodon/components/intersection_observer_article.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import scheduleIdleTask from '../features/ui/util/schedule_idle_task';
import getRectFromEntry from '../features/ui/util/get_rect_from_entry';
// Diff these props in the "unrendered" state
const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'c... |
src/app/components/search/SearchFields/SearchFieldChannel.js | meedan/check-web | import React from 'react';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import PropTypes from 'prop-types';
import CircularProgress from '@material-ui/core/CircularProgress';
import Forwar... |
src/svg-icons/action/face.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... |
src/test-common.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
const componentFactory = Component => {
let element;
let componentInstance;
const wrapperDiv = document.createElement('div');
const ClonedComponent = React.cloneElement(Component, {ref: r => componentInstance = r});
ReactDOM.render(<div ref={r => ... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Swagger/ApiCreateSwagger.js | abimarank/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
packages/yhtml5-scripts/demo/spa/src/index.js | yhtml5/YHTML5-CLI | import React from 'react';
import ReactDOM from 'react-dom';
import './global.css'
import App from './components/App/App';
import registerServiceWorker from './registerServiceWorker';
import './test/yhtml5Utils';
import mock from './features/mock';
import axios from "axios";
import { square, cube } from './features/tre... |
node_modules/@material-ui/core/es/Tabs/Tabs.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
/* eslint-disable no-restricted-globals */
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import clsx from 'clsx';
impor... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | nguyenhongson03/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... |
src/svg-icons/action/feedback.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (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-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js | dryna/keystone-twoje-urodziny | import React from 'react';
import { findDOMNode } from 'react-dom';
import Popout from '../../../../shared/Popout';
import { Filters } from 'FieldTypes';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.number,
onApply: React.PropTyp... |
src/Colours.js | zackharley/react-colours | import React, { Component } from 'react';
import Colour from './Colour';
export default class Colours extends Component {
// propTypes
constructor(props) {
super(props);
this.state = {
mainStyle: {
display: 'flex',
flexDirection: 'column',
height: '100%',
width: '100%'
},
wrapperStyle... |
src/index.js | pjamieson/westindiesbooks-react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/App';
import reducers from './reducers';
import 'bootstrap/dist/css/bootstrap.min.css'; // Bootstrap 4 Alpha 6
import './index.css';
c... |
app/components/Counter.js | kivo360/ECC-GUI | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
... |
src/parser/demonhunter/vengeance/modules/painchart/Pain.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import fetchWcl from 'common/fetchWclApi';
import SPELLS from 'common/SPELLS';
import { EventType } from 'parser/core/Events';
import ManaStyles from 'interface/others/ManaStyles';
import PainComponent from './PainComponent';
import PainChart from './Pain... |
node_modules/semantic-ui-react/dist/es/elements/Label/Label.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
client/modules/App/__tests__/Components/Footer.spec.js | eantler/simmeme-client | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
nailgun/static/views/cluster_page_tabs/dashboard_tab.js | huntxu/fuel-web | /*
* Copyright 2015 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
docs/app/Examples/elements/Segment/States/SegmentExampleLoading.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image, Segment } from 'shengnian-ui-react'
const SegmentExampleLoading = () => (
<Segment loading>
<Image src='/assets/images/wireframe/paragraph.png' />
</Segment>
)
export default SegmentExampleLoading
|
packages/lore-hook-dialogs-bootstrap/src/blueprints/update/Wizard/forms/Step.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { result as _result } from 'lore-utils';
import { SchemaForm } from 'lore-react-forms';
import { RequestError } from 'lore-react-forms-bootstrap';
export default createReactC... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
mdbreact/components/Pagination.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Pagination extends Component {
render() {
const {
children,
className,
tag: Tag,
...attributes
} = this.props;
const classes = classNames(
'pagination... |
docs/client/components/pages/Emoji/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
import styles from './styles.css';
import Container from '../../shared/Container';
import Heading from '../../shared/Heading';
import SocialBar from '../../shared/SocialBar';
import NavBar from '../../shared/NavBar';
import Separator from '../../shared/Separator';
import Code ... |
src/layouts/PageLayout/PageLayout.js | rbhat0987/funfunapp | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
src/components/StyledRadioList.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { withState } from 'recompose';
import { find } from 'lodash';
import { Box } from '@rebass/grid';
import { getItems, getKeyExtractor } from './StyledSelect';
import Container from './Container';
const enhance = withState('selected', 'setSelected',... |
example/index.js | RahavLussato/redux-react-firebase | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import configureStore from './store'
const store = configureStore()
const targetEl = document.getElementById('root')
const node = (<App store={store}/>)
ReactDOM.render(node, targetEl)
|
reflux-app/components/Terminal.js | Orientsoft/borgnix-web-ide | import React from 'react'
import TerminalActions from '../actions/TerminalActions'
import TerminalStore from '../stores/TerminalStore'
import _ from 'lodash'
class Terminal extends React.Component {
constructor(props) {
super(props)
this.state = {
title: 'Ready.',
content: [],
foldFlag: tru... |
src/index.js | par-mais-tecnologia/par-ui-example | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, IndexRoute, Route, browserHistory } from 'react-router'
import { syncHistoryWithStore, routerMiddleware , routerActions} from 'react-router-redux'
import { createStore, applyMiddleware, compose } from ... |
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | SerCom-KC/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
fields/types/textarea/TextareaField.js | BlakeRxxk/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged... |
_gatsby/src/layouts/index.js | YannickDot/yannickdot.github.io | import React from 'react'
import Helmet from 'react-helmet'
import config from '../../data/SiteConfig'
import './index.css'
import '../css/atom-one-dark.css'
import '../css/syntax.css'
import '../css/animate.css'
export default class MainLayout extends React.Component {
getLocalTitle() {
function capitalize(str... |
code/workspaces/web-app/src/containers/adminListUsers/Notebooks.js | NERC-CEH/datalab | import React from 'react';
import { NOTEBOOK_TYPE_NAME, NOTEBOOK_TYPE_NAME_PLURAL } from '../notebooks/notebookTypeName';
import ResourceStackCards from './ResourceStackCards';
function Notebooks({ notebooks }) {
return (
<ResourceStackCards resources={notebooks} typeName={NOTEBOOK_TYPE_NAME} typeNamePlural={NOT... |
src/index.js | everywherebible/app | import {createBrowserHistory} from 'history';
import React from 'react';
import {render} from 'react-dom';
import {createStore} from 'redux';
import {enableFocusMode} from './actions';
import {locationToReference} from './data/model';
import {updateStoreWithPassageText} from './data/fetcher';
import preferenceTracker,... |
src/svg-icons/image/timelapse.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimelapse = (props) => (
<SvgIcon {...props}>
<path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4... |
src/client/app/sidebar.js | emrehayirci/GithubIOTheme | import React from 'react';
import { Router, Route, Link, browserHistory } from 'react-router'
const Sidebar = React.createClass({
render: function () {
const pages = [];
for (let key of Object.keys(this.props.pages)) {
const value = this.props.pages[key];
pages.push(<li ke... |
node_modules/react-router/es6/IndexRoute.js | nolanelena/MyProjectSite- | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
node_modules/react-router/es/Redirect.js | nockgish/gish | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.st... |
example/src/components/App.js | moqada/flux-simple-action-creator | import React from 'react';
import FoodFighterAction from '../actions/FoodFighterAction';
import FoodFighterStore from '../stores/FoodFighterStore';
/**
* Root App Component
*/
export default class App extends React.Component { // eslint-disable-line require-jsdoc
/**
* Depends stores
*
* @return {Store... |
app/components/map/VectorMapChart.js | sheldhur/Vector | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import MapChart from '../chart/MapChart';
import VectorMapMenu from './VectorMapMenu';
import * as stationActions from '../../actions/station';
import { numberIsBetween } from '../../utils/helper... |
pathfinder/vtables/applicationcloudmaturityandadoption/src/Report.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import CommonQueries from './common/CommonGraphQLQueries';
import DataIndex from './common/DataIndex';
import Utilities from './common/Utilities';
import RuleSet from './RuleSet';
import Table from './Table';
const PLAN = 'plan';
const PHASE_IN = 'phaseIn';
const ACTIVE = 'act... |
examples/counter/index.js | MathieuDoyon/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
app/routes.js | LetSpotify/letspotify-client | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
</Route>
);
|
pages/people/idbuitragot.js | pcm-ca/pcm-ca.github.io | import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
import bib from './bib'
import info from './info'
import PersonPage from '../../components/PersonPage'
export default class Index extends React.Co... |
chapter-12/isomorphic/src/pages/NotFound.js | mocheng/react-and-redux | import React from 'react';
const NotFound = () => {
return (
<div>404: Not Found</div>
);
};
export default NotFound;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.