path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
fields/types/cloudinaryimage/CloudinaryImageFilter.js | jacargentina/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true,
};
},
toggleChecked (checked) {
this.setState({
checked: checked,
});
},
render () {
const options = [
{ label: 'Is... |
src/components/pages/PropousalPage/PropousalPage.js | ESTEBANMURUZABAL/bananaStore | import React from 'react';
import {FormattedMessage} from 'react-intl';
import intlData from './PropousalPage.intl';
import IntlStore from '../../../stores/Application/IntlStore';
import {Link} from 'react-router';
export default class PropousalPage extends React.Component {
static contextTypes = {
executeActi... |
src/app/components/public/Loading.js | cherishstand/OA-react | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
const load = {
position: 'fixed',
top: '40%',
left: '40%',
zIndex: 9999,
}
const Loading = () => {
return(
<CircularProgress style={load} color='rgb(94, 149, 201)'/>
)
}
export default Loading
|
test/helpers/shallowRenderHelper.js | leonzhang2008/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/app/views/calculator.js | webcoding/reactui-starter | import React from 'react';
import Reflux from 'reflux';
import DocMeta from 'react-doc-meta';
import { Navigation } from 'react-router';
import calculatorStore from 'stores/calculator';
import recipeActions from 'actions/recipe';
import FormSaveRecipe from 'components/formSaveRecipe';
import Imageable from 'componen... |
ui/src/components/OfflineSimulation/SimulationType.js | vlad-doru/experimento | import React from 'react'
import Divider from 'material-ui/Divider';
import * as Colors from 'material-ui/styles/colors';
import TextField from 'material-ui/TextField';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import __ from 'lodash';
const style={
backgroundCo... |
sam-front/src/pages/NewApplication.js | atgse/sam | import React from 'react';
import { connect } from 'react-redux';
import NewApplication from '../components/NewApplication';
import * as applicationActions from '../actions/applicationActions';
import { fromGroup } from '../reducers';
const NewApplicationContainer = ({ groupIds = [], handleCreate }) => (
<div>
... |
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/reading/userManual.js | ozwillo/ozwillo-datacore | import React from 'react';
import LinkPlayground from '../linkPlayground.js';
export default class UserManual extends React.Component{
render() {
return (
<div>
<h2>Playground User Manual</h2>
<table className="ui basic table">
<tbody>
<tr><td><strong>Click on a URI's id</... |
src/app/components/comment.js | webcoding/soapee-ui | import _ from 'lodash';
import moment from 'moment';
import React from 'react';
import { Link } from 'react-router';
import MarkedDisplay from 'components/markedDisplay';
import UserAvatar from 'components/userAvatar';
export default React.createClass( {
render() {
let comment = this.props.comment;
... |
src/components/setup/Footer.js | alexzherdev/pandemic | import React from 'react';
import { Link } from 'react-router';
import { OutboundLink } from 'react-ga';
const Footer = () =>
<footer>
<div>
<small>Made by Alex Zherdev in 2016.</small>
</div>
<div>
<OutboundLink
eventLabel="outboundGithub"
to="https://github.com/alexzherdev/... |
src/svg-icons/notification/voice-chat.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVoiceChat = (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-2 12l-4-3.2V14H6V6h8v3.2L18 6v8z"/>
</SvgIcon>
);
NotificationVoic... |
src/ReactBoilerplate/Scripts/containers/Manage/Email/Email.js | pauldotknopf/react-aspnet-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadEmail, destroyEmail, verifyEmail } from 'redux/modules/manage';
import { ChangeEmailForm, Spinner } from 'components';
import { Alert, Button } from 'react-bootstrap';
class Email extends Component {
constructor(props) {
... |
client/src/services/services.page.js | Thiht/docktor | // React
import React from 'react';
import { connect } from 'react-redux';
import { Scrollbars } from 'react-custom-scrollbars';
import DebounceInput from 'react-debounce-input';
// API Fetching
import ServicesThunks from './services.thunks.js';
import ServicesActions from './services.actions.js';
// Components
impor... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | amido/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import aFileWithoutExt from './assets/aFileWithoutExt';
const text = aFileWithoutExt.includes('base64')
? ... |
src/svg-icons/editor/format-list-bulleted.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatListBulleted = (props) => (
<SvgIcon {...props}>
<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ... |
react/CriticalIcon/CriticalIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import CriticalIcon from './CriticalIcon';
export const symbols = {
'CriticalIcon': <CriticalIcon />
};
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | christiantinauer/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 from 'react';
import { abstract } from './assets/abstract.json';
export default () => <summary id="feature-json-inclusion"... |
html.js | nickroberts404/meadowlab | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes () {
return {
body: React.PropTypes.string,
}
},
render () {
const head = Helmet.rewind()
let css... |
react/Service/ServiceItem.js | morattoo/jekyll-react-firebase | import React, { Component } from 'react';
class ServiceItem extends Component {
constructor(props) {
super(props)
}
render() {
let classNameIcon = "";
let displayName = "";
switch (this.props.name) {
case "chauffe":
classNameIcon="fa fa-thermometer-three-quarters";
displ... |
js/components/home/index.js | bsisic/Mobilux |
import React, { Component } from 'react';
import { TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon, Card, CardItem, View } from 'native-base';
import { Grid, Ro... |
example/example.js | JamieDixon/styled-components | import React from 'react'
import styled, { injectGlobal, keyframes } from '../dist/styled-components'
export default () => {
injectGlobal`
body {
font-family: sans-serif;
}
`
// Create a <Title> react component that renders an <h1> which is
// centered, palevioletred and sized at 1.5em
const T... |
app/containers/NotFoundPage/index.js | abasalilov/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
src/svg-icons/maps/streetview.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
src/ui/ButtonGroup.js | ZeroCho/react-rte | /* @flow */
import React from 'react';
import cx from 'classnames';
import styles from './ButtonGroup.css';
type Props = {
className?: string;
};
export default function ButtonGroup(props: Props) {
let className = cx(props.className, styles.root);
return (
<div {...props} className={className} />
);
}
|
src/components/Reel.js | tehfailsafe/portfolio | import React from 'react';
import {Link} from 'react-router'
const Reel = React.createClass({
render(){
return(
<div className="video reel-wrapper">
<div className="reel">
<Link to="/" ref="back" className="back">
<img src="assets/images/back.png" className="back"/>
... |
demo/index.js | hexsprite/focuster-react-typeahead | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
const app = document.getElementsByClassName('demonstration')[0];
ReactDOM.render(<App />, app);
|
src/components/common/InnerHtml.js | VGraupera/1on1tracker | import React from 'react';
function createMarkup(html) {
return { __html: html };
}
/**
* @function InnerHtml
* @param props
* @returns {XML}
*/
function InnerHtml(props) {
return <div dangerouslySetInnerHTML={createMarkup(props.html)} />;
}
export default InnerHtml;
|
addons/options/.storybook/stories.js | shilman/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
storiesOf('Hello', module)
.add('Hello World', () => (
<pre>Hello World</pre>
))
.add('Hello Earth', () => (
<pre>Hello Earth</pre>
));
|
docs/app/Examples/elements/Label/Types/LabelExampleFloating.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Label, Menu } from 'shengnian-ui-react'
const LabelExampleFloating = () => (
<Menu compact>
<Menu.Item as='a'>
<Icon name='mail' /> Messages
<Label color='red' floating>22</Label>
</Menu.Item>
<Menu.Item as='a'>
<Icon name='users' /> Friends
... |
react/src/components/Blog.js | rumbleyam/morty-api | import React from 'react';
import {connect} from 'react-redux';
import Typography from 'material-ui/Typography';
import moment from 'moment';
import PostList from './PostList';
const Blog = ({blog}) =>
<div style={{paddingLeft : 16, paddingRight : 16}}>
<PostList posts={blog}/>
</div>;
const mapState = state => {... |
src/components/Item/Item.js | nbschool/ecommerce_web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import placehold from './placehold.png';
import './Item.css';
class Item extends Component {
constructor(props) {
super(props);
this.state = {
numItems: 0,
};
this.setNumber... |
public/js/components/search/SearchItem.react.js | TRomesh/Coupley | import React from 'react';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Paper from 'material-ui/lib/paper';
import GridList from 'material-ui/lib/grid-list/grid-list';
import GridTile from 'material-ui/lib/... |
tests/components/axes-tests.js | Apercu/react-vis | import test from 'tape';
import React from 'react';
import {mount} from 'enzyme';
import CustomAxes from '../../showcase/axes/custom-axes';
import CustomAxis from '../../showcase/axes/custom-axis';
import PaddedAxis from '../../showcase/axes/padded-axis';
import CustomAxesOrientation from '../../showcase/axes/custom-a... |
src/widgets/JSONForm/fields/String.js | sussol/mobile | /* eslint-disable no-console */
import React from 'react';
import { Text, View } from 'react-native';
export const String = props => {
console.log('-------------------------------------------');
console.log('String - props', props);
console.log('-------------------------------------------');
return (
<View... |
frontend/src/app/events/index.js | the-invoice/nab | import React, { Component } from 'react';
import { Link, IndexLink } from 'react-router';
import { Route, IndexRoute } from 'react-router';
import urls from 'app/urls';
import { View } from 'ui/layout';
import styles from 'app/index.css';
export class Events extends Component {
render() {
return (
<View {... |
app/containers/WochitPage/index.js | Statfine/reactDemo | /**
* Created by easub on 2017/3/14.
*/
import React from 'react';
import styled from 'styled-components';
import CanvasVideo from './CanvasVideo';
import Timeline from './Timeline';
const ImageRe = styled.div`
width: ${(props) => `${props.width}px`}
height: ${(props) => `${props.height}px`}
background-image:... |
docs/app/Examples/collections/Menu/States/MenuExampleDisabled.js | koenvg/Semantic-UI-React | import React from 'react'
import { Menu } from 'semantic-ui-react'
const MenuExampleDisabled = () => {
return (
<Menu compact>
<Menu.Item disabled>
Link
</Menu.Item>
</Menu>
)
}
export default MenuExampleDisabled
|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/accessible.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V1... |
app/javascript/mastodon/features/follow_requests/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... |
src/index.js | NJU-itxia/front-end | import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/css/bootstrap-theme.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory, Router, Route, IndexRedirect, Redirect, Link, IndexLink } from 'react-router';
import Ap... |
src/svg-icons/communication/stay-current-landscape.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | zomeelee/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
src/containers/pages/decks/deck/left-container/sidebar-body/deck-details.js | vFujin/HearthLounge | import React from 'react';
import { connect } from "react-redux";
import DecklistSidebar from "../../../../../../components/decklist-sidebar/decklist";
import ManaCurve from "../../../../../../components/mana-curve/mana-curve";
import CopyDeck from "./copy-deck";
const DeckDetails = ({activeDeck, activeDeckCopy}) => {... |
frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Button';
import ModalBody from 'Components/... |
universal_project_template/shared/js/components/NotFound.js | Mikeysax/mikey | import React from 'react';
export default class NotFound extends React.Component {
render() {
return (
<div>
<h1 className="text-center">
Not Found
</h1>
</div>
);
}
}
|
src/SegmentedControl/macOs/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Dimension, { dimensionPropTypes } from '../../style/dimension';
import Margin, { marginPropTypes } from '../../style/margin';
import Hidden, { hiddenPropTypes } from '../../style/hidden';
import Item from './Item';
import Tabs from './... |
src/js/components/global/NotFound.js | jorgemxm/r-movies | 'use strict';
import React from 'react';
// 404 Route
//--------------
const NotFound = props => (
<div className="page--not-found">
<div className="container has-text-centered">
<p className="title">
<strong>:[</strong>
</p>
<p className="subtitle">Not Found</p>
</div>
</div>
);... |
stories/index.js | sedooe/cevirgec | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import DictionaryList from './DictionaryList';
import Button from './Button';
import tr from '../app/utils/Translation';
import { Form, Checkbox } from 'semantic-ui-react';
import DictionaryModal from './DictionaryModal';
import {... |
node_modules/react-router/es/Prompt.js | yaolei/Node-Clound | 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/server/html.js | fk1blow/repeak | import React from 'react';
export default class Html extends React.Component {
render() {
// Only for production. For dev, it's handled by webpack with livereload.
const linkStyles = this.props.isProduction &&
<link
href={`/build/app.css?v=${this.props.version}`}
rel="stylesheet"
... |
frontend/app/components/pages/admin/link-remove-password-modal.js | LINKIWI/linkr | import Link from 'react-router/lib/Link';
import LoadingHOC from 'react-loading-hoc';
import React from 'react';
import request from 'browser-request';
import Alert, {ALERT_TYPE_SUCCESS, ALERT_TYPE_ERROR} from '../../alert';
import Button from '../../ui/button';
import LoadingBar from '../../ui/loading-bar';
import M... |
src/components/Users.js | TheDuckFIN/react-chat | import React from 'react';
import User from './User';
export default class Users extends React.Component {
render() {
return (
<div className="users">
<strong>Online users (server)</strong>
<ul className="userlist">
{
Object.keys(this.props.users).map((userid) =>
... |
docs/src/Root.js | HorizonXP/react-bootstrap | import React from 'react';
import Router from 'react-router';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',... |
src/containers/IndustryPage/IndustryPage.js | VumeroInstitute/Vumero-Talent-Matrix | /**
* Created by wangdi on 4/10/17.
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Tag from '../../components/Tag/Tag';
import '../SkillPage/skill.css';
import RaisedButton from 'material-ui/RaisedButton';
export default class IndustryPage extends React.Com... |
www/spa/src/Survey/router.js | gram7gram/Survey | "use strict";
import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import trans from './translator';
import Layout from './components/Layout';
import ClientIndex from './components/Pages/Client/Index';
import CompleteSurvey from './components/Pages/CompleteSurvey/Index';
im... |
react/features/toolbox/components/native/ScreenSharingIosButton.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { findNodeHandle, NativeModules, Platform } from 'react-native';
import { ScreenCapturePickerView } from 'react-native-webrtc';
import { getFeatureFlag, IOS_SCREENSHARING_ENABLED } from '../../../base/flags';
import { translate } from '../../../base/i18n';
import { IconShare... |
example/examples/StaticMap.js | amitv87/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_... |
dawn/renderer/components/Dashboard.js | pioneers/PieCentral | import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Row, Col } from 'react-bootstrap';
import PeripheralList from './PeripheralList';
import GamepadList from './GamepadList';
import EditorContainer from './EditorContainer';
const Dashboard = props => (
<Grid fluid>
<Row>
<Col smPu... |
priv/chat_client/src/index.js | lilrooness/erlang_react_chat | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/src/components/beers/beer-detail.js | commoncode/ontap | /**
* Beer Detail component.
*
* Show a single beer with editing and deleting.
*/
import React from 'react';
import { Container } from 'flux/utils';
import { fetchBeer, deleteBeer, toggleEditBeer } from '../../actions/beers';
import beerDetailStore from '../../stores/beer-detail';
import profileStore from '../../... |
src/svg-icons/action/polymer.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... |
src/pages/speakers.js | ThoughtAtWork/Website | import React from 'react'
import Link from 'gatsby-link'
import CardGridSpeaker from '../components/CardGridSpeaker'
const SpeakerPage = () => (
<div>
<h1>Speakers Page</h1>
<p>Currently under construction</p>
<Link to="/">Go back to the homepage</Link>
<CardGridSpeaker />
</div>
)
export default ... |
src/components/Mention.js | devsy-io/devsy-editor | import React from 'react'
export default function Mention ({children}) {
return <span className='devsy-Mention'>{children}</span>
}
|
src/svg-icons/action/stars.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStars = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53... |
src/svg-icons/image/filter-none.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterNone = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
Ima... |
docs/src/app.js | sick-sad-world/react-validable | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import SimpleForm from './forms/simple.jsx';
// import DynamicForm from 'forms/dynamic';
// import FormWithCustomItem from 'forms/custom';
render(
(
<div className='index'>
<hgroup>
<h1>Validation for react</h1... |
examples/js/custom/show-only-select-button/fully-custom-show-select-button.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
con... |
client/src/MyJobs.js | roxroy/codeploy | import React, { Component } from 'react';
const EachJob = require('./EachJob');
const JobModal = require('./JobModal');
const AddJobButton = require('./AddJobButton');
class MyJobs extends Component {
constructor(props) {
super(props);
this.state = {
viewingJob: false,
viewingJobResources: false... |
src/FadeMixin.js | chilts/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
gritsurvey/node_modules/react-router/es/MemoryRouter.js | Alex-Gardner/grit-survey | 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 &... |
admin/client/components/Forms/EditFormHeader.js | andreufirefly/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Toolbar from '../Toolbar';
import { Button, FormIconField, FormInput, ResponsiveText } from 'elemental';
var Header = React.createClass({
displayName: 'EditFormHeader',
propTypes: {
data: React.PropTypes.object,
list: React.PropTypes.object,
t... |
src/utils/CustomPropTypes.js | laran/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | ryardley/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
public/js/components/activityfeed/CountBox.react.js | TRomesh/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import FlatButton from 'material-ui/lib/flat-button';
import Paper from 'material-ui/lib/paper';
import Dialog from 'material-ui/lib/dialog';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
im... |
src/Parser/Paladin/Retribution/Modules/PaladinCore/Crusade.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import AbilityTracker from '... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/vertical-align-center.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorVerticalAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignCenter.displayName = 'EditorVerticalAlignCenter';
EditorVerticalA... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | liqk2014/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
src/mui/input/NullableBooleanInput.js | azureReact/AzureReact | import React from 'react';
import PropTypes from 'prop-types';
import SelectInput from './SelectInput';
import translate from '../../i18n/translate';
export const NullableBooleanInput = ({
input,
meta,
label,
source,
elStyle,
resource,
translate,
}) => (
<SelectInput
input={inpu... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | ProjectSunday/rooibus | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/index.js | juazugas/MonoThor | 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';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js | rhaedes/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
export default class SelectFieldExampleCustomLabel extends React.Component {
constructor(props) {
super(props);
this.state = {value: 1};
}
handleChange = (event, index, value) => t... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInCss.js | mangomint/create-react-app | import React from 'react';
import './assets/svg.css';
export default () => <div id="feature-svg-in-css" />;
|
src/main/resources/public/js/components/update-title.js | SICTIAM/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
class UpdateTitle extends React.Component {
static propTypes = {
title: PropTypes.string
};
componentDidMount() {
// First render
document.title = this.props.title;
}
componentWillReceiveProps(nextProps) {
... |
client/src/components/Hero.js | fmoliveira/rexql-boilerplate | import React from 'react'
import { FormatMessage } from 'react-easy-intl'
export default ({title, children, size}) => {
const customSize = size ? `is-${size}` : null
return (
<section className={`hero is-primary ${customSize} is-bold`}>
<div className='hero-body'>
<div className='container'>
... |
packages/web/src/components/range/DynamicRangeSlider.js | appbaseio/reactivesearch | /** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { Component } from 'react';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
setQueryOptions,
setQueryListener,
setComponentProps,
setCustomQuery,
updateComponentProps,
mockDataForTesting,
} from '@appbaseio/reactivecore/li... |
src/svg-icons/action/extension.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
components/animals/krkavecVelky.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/krkavecVelky/01.jp... |
docs/app/Examples/views/Card/Variations/CardExampleFluid.js | koenvg/Semantic-UI-React | import React from 'react'
import { Card } from 'semantic-ui-react'
const CardExampleFluid = () => (
<Card.Group>
<Card fluid color='red' header='Option 1' />
<Card fluid color='orange' header='Option 2' />
<Card fluid color='yellow' header='Option 3' />
</Card.Group>
)
export default CardExampleFluid
|
app/components/agent/Index/AgentTokenItem.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { createFragmentContainer, graphql } from 'react-relay/compat';
import Badge from '../../shared/Badge';
import Panel from '../../shared/Panel';
import RevealButton from '../../shared/RevealButton';
class AgentTokenItem extends React.PureComponent {... |
src/__tests__/fixtures/flow-export-type.js | reactjs/react-docgen | /**
* @flow
*/
import React, { Component } from 'react';
export type Props = {
foo: string
}
/**
* This is a Flow class component
*/
export default class FlowComponent extends Component<Props> {
render() {
return <h1>Hello world</h1>;
}
foo(a: string): string {
return a;
}
bar(a: string): s... |
src/scenes/dashboard/newsfeed/index.js | PowerlineApp/powerline-rn | //Newsfeed tab GH13
//The backend call for this scene will be driven primarily by https://api-dev.powerli.ne/api-doc#get--api-v2-activities
//The default view is "All" feed, but a specific group may be called for group Feed (GH45), Friends Feed (GH51), a specific user's feed (GH44)
//Group feed will look very different... |
src/svg-icons/action/https.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttps = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-... |
demo/index.js | Shikib/react-chat-reply-annotation | import React from 'react'
import { render } from 'react-dom'
import { Chat } from '../lib'
console.log(Chat);
render(
React.createElement(Chat),
document.getElementById('chat-ui')
)
|
src/shared/Gist.js | kashisau/enroute | /**
* Gist.js
*
* (C) 2017 mobile.de GmbH
*
* @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a>
* @since 09 Feb 2017
*/
import React from 'react';
export default ({ gist }) => (
<div>
<h1>{gist.description || '[no description]'}</h1>
<p><a href={gist.html_url}>view on GitHub</a... |
src/manager/UI/Toolbar.js | sm-react/react-theming | import React from 'react';
import * as styled from './Toolbar.styled';
const Toolbar = ({ children, footer }) => {
return <styled.Container footer={footer}>{children}</styled.Container>;
};
export default Toolbar;
|
docs/lib/NotFound/index.js | video-react/video-react | import React from 'react';
import { Button, Container, Row, Col } from 'reactstrap';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
export default () => {
return (
<div>
<Helmet title="404 Page Not Found" />
<section className="jumbotron text-xs-center m-b-3">
<Contai... |
src/components/renderButton.js | Johj/cqdb | import React from 'react';
import {
Button,
Col,
} from 'react-bootstrap';
import { countFilters, } from '../util/countFilters';
export function renderButton(handleButton, label, checkboxFilters = {}) {
const numCheckboxFilters = countFilters(checkboxFilters);
return (
<Col lg={4} md={6} sm={12} xs={12}>
... |
src/create-glamorous.js | paypal/glamorous | /*
* This is a relatively small abstraction that's ripe for open sourcing.
* Documentation is in the README.md
*/
import React from 'react'
import {PropTypes} from './react-compat'
import withTheme from './with-theme'
import getGlamorClassName from './get-glamor-classname'
export default createGlamorous
function c... |
packages/ringcentral-widgets-docs/src/app/pages/Components/DialPad/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/higherOrder/loadable/index.js | ProteinsWebTeam/interpro7-client | import React from 'react';
import LoadingComponent from 'components/SimpleCommonComponents/Loading';
const loadable = ({ loader, loading }) /*: Object */ => {
if (!loader) return;
const Loaded = React.lazy(loader);
const Loading = loading || LoadingComponent;
const Loadable = props => {
return (
<Rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.