path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/flavours/glitch/features/ui/components/link_footer.js | im-in-space/mastodon | import { connect } from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import { invitesEnabled, limitedFederationMode, version, repository, source_url } from 'flavours/glitc... |
app/components/ErrorLine.js | mfrohberg/fil | import React from 'react';
export default class ErrorLine extends React.Component {
render() {
let block = "console__error-line",
error = this.props.error;
return (
<div className={block}>
<pre className={block + "__description"}>
{error}
</pre>
</div>
);
... |
node_modules/semantic-ui-react/dist/es/modules/Dropdown/DropdownItem.js | SuperUncleCat/ServerMonitoring | 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... |
examples/universal/client/index.js | mjasinski5/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
packages/leaflet/src/basemaps/EsriBasemap.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
import { LayerGroup, MapLayer, useLeaflet } from 'react-leaflet';
import { basemapLayer } from 'esri-leaflet';
class BasemapLayer extends MapLayer {
createLeafletElement({ layer, ...rest }) {
return basemapLayer(layer, rest);
}
}
export de... |
src/svg-icons/av/closed-caption.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvClosedCaption = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5... |
src/index.js | deluxe-pig/cloud-farmer | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
components/Main.js | nicolastrres/pystairs | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Container from './container/Container';
class Main extends React.Component {
render() {
var style = {
left: 0,
top:0,
width:'100%',
margin: 0
}
return (
<Mu... |
pages/blog/test-article-two.js | Tgy31/welcom-react | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Test Article 2</h1>
<p>Co... |
app/javascript/mastodon/components/avatar.js | 3846masa/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class Avatar extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
staticSrc: PropTypes.string,
size: PropTypes.number.isRequired,
style: PropTypes.object,
animate: PropTypes.bool,
inline: PropTypes... |
app/components/Toggle/index.js | bsherrill480/website-asd-init | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
src/components/Feedback/Feedback.js | neilhighley/maybeconsulting | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/svg-icons/av/play-circle-filled.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleFilled = (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 2zm-2 14.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>
);
AvPlayCircleFilled = pure(AvPlayCirc... |
components/layout/Panel.js | KerenChandran/react-toolbox | import React from 'react';
import classnames from 'classnames';
import style from './style';
const Panel = ({ children, className, scrollY }) => {
const _className = classnames(style.panel, {
[style.scrollY]: scrollY
}, className);
return (
<div data-react-toolbox='panel' className={_className}>
{... |
src/svg-icons/action/book.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBook = (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>
);
ActionBook = pure(ActionBook);
Ac... |
src/routes.js | menthena/project-a | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app';
import MainContainer from './containers/main/main-container';
export default (
<Route path="/" component={App}>
<IndexRoute component={MainContainer} />
<Route path="/:categoryId" component={MainContainer}... |
src/containers/catalog/CatalogComponent.js | dataloom/gallery | import React from 'react';
import Immutable from 'immutable';
import PropTypes from 'prop-types';
import DocumentTitle from 'react-document-title';
import { Pagination } from 'react-bootstrap';
import { connect } from 'react-redux';
import Page from '../../components/page/Page';
import EntitySetList from '../../comp... |
docs/src/app/components/pages/components/Snackbar/Page.js | rscnt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import SnackbarReadmeText from './README';
import SnackbarExampleSimple from './... |
docs/src/examples/collections/Grid/Variations/GridExampleRelaxed.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleRelaxed = () => (
<Grid relaxed columns={4}>
<Grid.Column>
<Image src='/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='/images/wireframe/image.png' />
</Grid.Column>
<Gr... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | aspanu/threeSeaShells | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
example/examples/ImageOverlayWithAssets.js | lelandrichardson/react-native-maps | import React, { Component } from 'react';
import { StyleSheet, View, Dimensions } from 'react-native';
import MapView from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 35.679976;
const ... |
demo/src/App.js | bem-sdk/bemjson-to-jsx | import React, { Component } from 'react';
import MonacoEditor from 'react-monaco-editor';
import BemjsonToJSX from '../..';
import './App.css';
const defaultCode =
`({
block: 'button',
text: 'Hello world'
})`;
const defaultJSX = `<button text='Hello world' />`;
class App extends Component {
constructor(pr... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | Arukas/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
node_modules/rc-dialog/es/Modal.js | prodigalyijun/demo-by-antd | 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/inherits';
import React from 'react';
import { View, Mo... |
src/pages/pregnancy-newborn/birth/Birth.js | RHoKAustralia/madapt-react-frontend | import React, { Component } from 'react';
import Tabs from 'react-responsive-tabs';
import 'react-responsive-tabs/styles.css'
const labours = [
{name: 'SIGNS OF EARLY LABOUR', biography:
<div>
<ul>
<li>a blood-stained mucus discharge called a ‘show’</li>
<li>lower back pain</li>
... |
src/components/About.js | abdulhannanali/github-organization-repos | import React from 'react';
import pp from '../../public/parrot.gif';
const About = () => {
return (
<div className="About">
<h3>About Page</h3>
<p>
This application was made in order to practically apply the knowledge
I learnt from the Webpack's documentation on their
<a href=... |
src/layouts/CoreLayout/index.js | MaayanLab/L1000 | // Import styles
import 'bootstrap/scss/bootstrap.scss';
import 'styles/core.scss';
import React from 'react';
import Navigation from 'containers/Navigation';
import coreStyles from './CoreLayout.scss';
function CoreLayout({ children }) {
return (
<div className={coreStyles.wrapper}>
<Navigation />
<... |
app/assets/scripts/components/card/card-tag.js | openaq/openaq.org | import React from 'react';
import { PropTypes as T } from 'prop-types';
export default function CardTag({ label }) {
return (
label && (
<div className="filter-pill card__tag">{`${label[0].toUpperCase()}${label.slice(
1
)}`}</div>
)
);
}
CardTag.propTypes = {
label: T.string.isRequir... |
src/decorators/muteable.js | wundery/wundery-ui-react | import React from 'react';
// Utils
import classnames from 'classnames';
const muteable = (Component) => {
const MuteableComponent = (props) => {
const classes = classnames({
'ui-text-muted': props.muted,
'ui-text-inverse': props.inverse,
'ui-text-light': props.light,
'ui-text-opaque': p... |
app/javascript/flavours/glitch/features/home_timeline/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from 'flavours/glitch/actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container';
import Column from 'flavours/glitch/components/col... |
src/components/ReduxFormFields/ActionToggleButton.js | zerkedev/zerke-app | import React from 'react';
import IconButton from 'material-ui/IconButton';
const ActionToggleButton = (props) => {
const { isToggled, getIcon, onClick, meta, input, ...rest } = props;
const { value } = input;
const toggled=isToggled(value);
return <IconButton
onClick={()=>{onClick(toggled)}}
... |
src/components/login/LoginForm.js | douglascorrea/react-hot-redux-firebase-starter | import React from 'react';
import TextInput from '../common/TextInput';
const LoginForm = ({user, onSave, onChange, saving}) => {
return (
<form>
<h1>Login</h1>
<TextInput
name="email"
label="Email"
onChange={onChange}
value={user.email}
/>
<TextInput
... |
docs/src/app/components/pages/discover-more/RelatedProjects.js | mtsandeep/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import relatedProjectsText from './related-projects.md';
const RelatedProjects = () => (
<div>
<Title render={(previousTitle) => `Related Projects - ${previousTitle}`} />
<MarkdownElemen... |
frontend/src/components/Player/Player.js | VitaC123/youTubeMixTape | import React, { Component } from 'react';
import Collapsible from '../helper/Collapsible';
import YouTubePlayer from './YouTubePlayer';
import Counter from './Counter';
import PlayerUi from './PlayerUi';
import './Player.css';
class Player extends Component {
constructor(props) {
super(props);
this.handleCo... |
src/internal/EnhancedButton.js | rscnt/material-ui | import React from 'react';
import {createChildFragment} from '../utils/childUtils';
import Events from '../utils/events';
import keycode from 'keycode';
import FocusRipple from './FocusRipple';
import TouchRipple from './TouchRipple';
let styleInjected = false;
let listening = false;
let tabPressed = false;
function ... |
docs/app/Examples/elements/Label/Content/LabelExampleImageShorthand.js | clemensw/stardust | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleImageShorthand = () => {
const imageProps = {
avatar: true,
spaced: 'right',
src: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
}
return <Label as='a' content='Elliot' image={imageProps} />
}
export def... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | naustudio/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
apps/customer/assets/static/js/containers/App/index.js | tsurupin/job_search | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { Footer } from 'components';
import { HeaderContainer } from 'containers';
import Wrapper from './styles';
import config from '../../config';
class App extends Component {
constructor(props) {
... |
src/components/BaseComponent.js | NuCivic/react-dash | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { findDOMNode } from 'react-dom';
import EventDispatcher from '../dispatcher/EventDispatcher';
import Dataset from '../models/Dataset';
import {omit, isEqual, isEmpty, isFunction, isPlainObject, isString, isArray, debounce} ... |
react-fela/button.js | MicheleBertoli/css-in-js | import { createRenderer } from 'fela';
import { Provider, connect } from 'react-fela';
import { render } from 'react-dom';
import React from 'react';
const container = () => ({
textAlign: 'center'
});
const button = () => ({
backgroundColor: '#ff0000',
width: '320px',
padding: '20px',
borderRadius: '5px',
... |
src/redux/containers/CounterContainer.js | ihenvyr/react-app | import React from 'react';
import { bindActionCreators } from 'redux';
// import { connect } from 'react-redux';
import Counter from '../../components/Counter';
import { counterDecrement, counterIncrement, counterReset } from '../../redux/actions';
import { graphql, compose } from 'react-apollo';
import gql from 'graph... |
app/javascript/mastodon/features/compose/index.js | Kirishima21/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... |
src/svg-icons/notification/sync-problem.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncProblem = (props) => (
<SvgIcon {...props}>
<path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z... |
node_modules/react-bootstrap/es/TabContent.js | lucketta/got-quote-generator | 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 ... |
lib/Dropdown/stories/layout.js | folio-org/stripes-components | import React, { Component } from 'react';
import Dropdown from '../Dropdown';
import Button from '../../Button/Button';
import DropdownMenu from '../../DropdownMenu/DropdownMenu';
import { Row, Col } from '../../LayoutGrid';
import MenuSection from '../../MenuSection';
import Checkbox from '../../Checkbox';
import Layo... |
assets/jqwidgets/demos/react/app/grid/updatingactionsatruntime/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.top.on('checked', () => {
... |
frontend/src/style-guide/sections/Typography.js | spruce-bruce/daves.pics | import React from 'react';
function Typography() {
return (
<div className="paper">
<div className="styleguide__title">Typography</div>
<div className="styleguide__typography">
<h1>h1. A few miles south of Soledad,</h1>
<h2>h2. the Salinas River drops in close to</h2>
<h3>h3. ... |
src/components/game.js | SiAdcock/bg-prototype | import React from 'react';
import { find } from 'lodash';
import Player from './player';
import Battlefield from './battlefield';
const fighterData = require('../data/fighter.json');
const wizardData = require('../data/wizard.json');
class Game extends React.Component {
constructor(props) {
super(props);
th... |
src/components/EventPanel/EventPanel.js | TheLADbibleGroup/hackathon | import React from 'react';
import './EventPanel.scss';
import UserEvent from '../User/UserEvent';
export const EventPanel = ({
selectedUser
}) => (
<section className="event-panel">
<div className="event-panel__header">
<div className="event-panel__meta">
<div className="eve... |
HotelAndroid/hotelSignin.js | MJ111/hotel-reverse | import React, { Component } from 'react';
import {
View,
StyleSheet,
TouchableHighlight,
Text,
TextInput,
AsyncStorage,
ToastAndroid,
Dimensions,
} from 'react-native';
import axios from 'axios'
import { GoogleSignin, GoogleSigninButton } from 'react-native-google-signin';
import config from './config'... |
websocket/client/Client/app.js | prayuditb/tryout-01 | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
} from 'react-native';
const io = require('socket.io-client');
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
image: '',
}
}
componentD... |
SocialStarter/index.ios.js | Monte9/react-native-social-starter | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Alert,
Image,
Dimensions,
ScrollView,
Platform
} from 'react-native';
import { Tabs, Tab, Icon } from 'react-native-elements'
import LoginView from './app/LoginView'
import FeedView from './app/FeedView'
export ... |
dashboard-ui/app/components/profile/profile_old.js | CloudBoost/cloudboost | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { saveUserImage, deleteUserImage, showAlert, updateUser } from '../../actions';
import IconButton from 'material-ui/IconButton';
import DeleteIcon from 'material-ui/svg-icons/action/delete';
import EditIcon from... |
packages/jsbattle-webpage/jest.setup.js | jamro/jsbattle | import React from 'react';
import { configure } from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import CodeMirror from 'codemirror';
import CodeMirrorShowHintAddon from 'codemirror/addon/hint/show-hint';
import CodeMirrorJsAddon from 'codemirror/addon/hint/javascript-hint';
configure({ adapter... |
src/svg-icons/action/history.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
examples/redirect-using-index/app.js | ArmendGashi/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
example/components/Selector.js | BipinBhandari/react-native-item-picker | import React from 'react'
import { View, Text } from 'react-native'
import styles from './Styles/SelectorStyle'
import Ticker from './Ticker'
export default class Selector extends React.Component {
constructor(props){
super(props);
this.state={
collection: props.collection.map((item, in... |
src/react/installation/Footer/Footer.js | formtools/core | import React from 'react';
import styles from './Footer.scss';
import { Github } from '../../components/Icons';
const Footer = ({ i18n }) => (
<div className={styles.footer}>
<ul>
<li><a href="https://formtools.org" target="_blank" rel="noopener noreferrer">formtools.org</a></li>
<li>
<a href="https://doc... |
src/components/TeXInput.js | efloti/draft-js-mathjax-plugin | import React from 'react'
const _isAlpha = key => key.length === 1 &&
/[a-z]/.test(key.toLowerCase())
function indent({ text, start, end }, unindent = false) {
const nl0 = text.slice(0, start).split('\n').length - 1
const nl1 = nl0 + (text.slice(start, end).split('\n').length - 1)
let nStart = start
let... |
src/svg-icons/image/center-focus-weak.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-... |
example/components/react/Routes/Foo.js | subuta/router-redux | import React from 'react'
const onEnter = ({state}) => {
console.log('[foo]entered', state);
};
const onLeave = ({state}) => {
console.log('[foo]leave', state);
};
const render = () => {
return <h1>foo</h1>;
};
export default {
onEnter,
onLeave,
render
};
|
blueocean-material-icons/src/js/components/svg-icons/av/remove-from-queue.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvRemoveFromQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/>
</SvgIcon>
);
AvRemoveFromQueue.displayName = ... |
spec/javascripts/jsx/courses/CourseHomeDialogSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
modules/react-docs/src/components/SidebarItem.js | JunisphereSystemsAG/react-color | /* jshint node: true, esnext: true */
"use strict";
import React from 'react';
import ReactCSS from 'reactcss';
import { Tile } from '../../../react-material-design';
class SidebarItem extends ReactCSS.Component {
classes() {
return {
'default': {
sidebarItem: {
fontSize: '14px',
... |
docs/app/Examples/views/Item/Variations/ItemExampleLink.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image as ImageComponent, Item } from 'semantic-ui-react'
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const ItemExampleLink = () => (
<Item.Group link>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/im... |
src/components/NavBar/NavBar.js | hinzed1127/fayraysite | import React from 'react';
import Rowbox from '../Rowbox/Rowbox';
import './NavBar.css';
export default function NavBar() {
return (
<div className='navbar'>
<Rowbox
text='Home'
linkPath='/'
number={'6'}
/>
<Rowbox
text='Bio'
linkPath='/bio'
number={'1'}
/>
<Rowbox
text='M... |
src/client/react/user/stages/Registration/index.js | bwyap/ptc-amazing-g-race | import React from 'react';
import { connect } from 'react-redux';
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
import NotFoundPage from '../../../pages/NotFound';
import AppContainer from '../../../../../../lib/react/components/AppContainer';
import LoginRefresher from '../../../components... |
webapp/pages/error_page.js | bowlofstew/changes | import React from 'react';
// TODO: trash me
var ErrorPage = React.createClass({
render: function() {
return <div>
There was an error loading your page. Either this is a 404 or
the URL didn{"'"}t have the info we needed
</div>;
}
});
export default ErrorPage;
|
src/routes/ConvertCsv/components/CsvToSqlForm.js | johanzhou8/ConvertCSV | /**
* Created by hzhou on 1/29/17.
*/
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { CSV_TO_SQL_INSERT } from '../modules/convertCsv'
import FileField from './FileField'
export class CsvToSqlForm extends Component {
static propTypes = {
csvToSqlInsert: R... |
js/src/index.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
web/app/components/blocks/JsErrorTable.js | sunkeyhub/jedi_monitor | /**
* Js 报错数据表格
*
* @author : Sunkey
*/
import React, { Component } from 'react';
import { Table, Icon } from 'antd';
import { getJsErrorInfoList } from '../../actions/stat';
export default class JsErrorTable extends Component {
constructor() {
super();
this.state = {
per: 20,
... |
packages/forms/src/deprecated/fields/ObjectField.js | Talend/ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
getUiOptions,
getWidget,
orderProperties,
retrieveSchema,
getDefaultRegistry,
} from 'react-jsonschema-form/lib/utils';
function DefaultObjectFieldTemplate(props) {
const { TitleField, DescriptionField } = props;
return (
... |
src/parser/priest/holy/modules/core/HolyWordWastedAmounts.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
// dependencies
imp... |
assets/js/app.js | shiloa/shlux | import React from 'react';
import SearchFormContainer from './containers/SearchFormContainer';
import ServerListContainer from './containers/ServerListContainer';
import ServerActions from './actions/ServerActions';
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
ret... |
webpack/move_to_foreman/components/common/table/formatters/selectionHeaderCellFormatter.js | cfouant/katello | import React from 'react';
import TableSelectionHeaderCell from '../components/TableSelectionHeaderCell';
export default (selectionController, label) => (
<TableSelectionHeaderCell
label={label}
checked={selectionController.allRowsSelected()}
onChange={() => selectionController.selectAllRows()}
/>
);
|
packages/xo-web/src/xo-app/dashboard/visualizations/index.js | vatesfr/xo-web | import Component from 'base-component'
import React from 'react'
import XoParallelChart from 'xo-parallel-chart'
import forEach from 'lodash/forEach'
import invoke from 'invoke'
import map from 'lodash/map'
import mapValues from 'lodash/mapValues'
import Upgrade from 'xoa-upgrade'
import { Container, Row, Col } from 'g... |
web-app/src/test-helpers/router.js | Charterhouse/NextBuild2017 | import React from 'react'
import { MemoryRouter as Router, Route } from 'react-router-dom'
export const inRouter = (Component, path) => {
return (
<Router initialEntries={[ path ]} initialIndex={0}>
<Route exact path={path} component={Component} />
</Router>
)
}
export const renderInRouter = (compon... |
tests/site5/source/code/partial.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The partial component
*
* @disable-docs
*/
const Partial = ({ _body }) => (
<div className="textwrapper">
{ _body }
</div>
);
Partial.propTypes = {
/**
* _body: (test)(12)
*/
_body: PropTypes.node.isRequired,
};
Partial.defaultProps ... |
FE/src/itemlist.js | xil-se/Xilventory | import React from 'react';
import { withRouter } from 'react-router';
import {
ProgressBar,
Table,
Panel,
Grid,
Row,
Col
} from 'react-bootstrap';
import auth from './auth';
var initialItems = [
{
'name': 'Capacitor 4.7µF',
'description': 'Very nice, 1%, 0603, super delicious cap.',
'locatio... |
app/components/logoutoverlay/logoutoverlay.js | tidepool-org/blip |
/**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
src/svg-icons/av/fiber-smart-record.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
frontend/app/components/logo.js | LINKIWI/linkr | /* global config */
import browserHistory from 'react-router/lib/browserHistory';
import dottie from 'dottie';
import React from 'react';
import context from '../util/context';
const Logo = () => (
<span
style={{
cursor: 'pointer'
}}
onClick={() => {
browserHistory.push(context.uris.HomeURI... |
src/interface/icons/FingerprintFilled.js | fyruna/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/fingerprint-scan/1159911/
// Created by IconsGhost from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 91 91" className="icon" {...other}>
<path d="M19.963,13.482c0.555,0,1.107-0.138,1.615-0.407c... |
app/common/components/Mark/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { transparentize } from 'polished';
import { blue } from 'common/styles/colors';
export const StyledMark = styled.mark`
color: ${({ color }) => color};
background-color: ${({ bgColor }) => bgColor};
bord... |
day23_lifecycle/src/components/TodoEditForm.js | eyesofkids/ironman2017 | //@flow
import React from 'react'
//匯入Props靜態類型的定義
import type { TodoEditFormProps } from '../definitions/TodoTypeDefinition.js'
const TodoEditForm = ({ title, onItemUpdate }: TodoEditFormProps) => {
//給Flow檢查用的,這個參照值一開始都是null,渲染前是不確定值,所以用any
let titleField: any = null
return (
<li className="list-group-i... |
src/internal/TouchRipple.js | skarnecki/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTransitionGroup from 'react-addons-transition-group';
import Dom from '../utils/dom';
import CircleRipple from './CircleRipple';
import update from 'react-addons-update';
function push(array, obj) {
const newObj = Array.isArray(obj) ? obj : [ob... |
6.0.0-rc.3/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(271),e.exports=n(270)},function(e,t,n){var r=n(6),o=n(32),i=n(19),a=n(21),u=n(37),s="prototype",... |
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/svg-icons/notification/personal-video.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
examples/counter/containers/CounterApp.js | goldensunliu/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
app/user/list.js | lagden/es6-react | 'use strict';
import React from 'react';
import ReactCSSTransitionGroup from 'react/lib/ReactCSSTransitionGroup';
import User from './user';
import UserModal from './modal';
import {getUserList, getUser} from '../services';
class UserList extends React.Component {
constructor(props) {
super(props);
this.sta... |
fields/types/date/DateColumn.js | sendyhalim/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obj... |
client-src/components/forms/CreateOrEditForm.js | Neil-G/InspectionLog | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router'
require('./../../../public/custom.css')
var axios = require('axios')
function valueOrNull(value){
if ((value == "") || (value == "-") || value == undefined) return null
return value
}
class CreateOrEditForm extends Component {... |
app/javascript/mastodon/features/account_timeline/components/header.js | im-in-space/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
src/App/Body/Inputs/PasteInput/index.js | ksmithbaylor/emc-license-summarizer | import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import PasteHandler from './PasteHandler';
export default class PasteInput extends React.Component {
static propTypes = {
style: React.PropTypes.shape({
section: React.PropTypes.object,
button: React.PropTypes.object... |
node_modules/react-native-maps/lib/components/MapCircle.js | RahulDesai92/PHR | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The coordinate of the center of the circle
*... |
app/javascript/mastodon/components/media_gallery.js | theoria24/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
gatsby-browser.js | mohebifar/restact | import React from 'react'
import { Router } from 'react-router-dom'
import { Provider } from 'react-redux'
import createStore from './src/redux/createStore'
import './src/drift'
window.__SERVER__ = false
global.__SERVER__ = false
exports.replaceRouterComponent = ({ history }) => {
const store = createStore()
... |
src/main.js | kkanzelmeyer/react-dashboard | import React from 'react';
import ReactDOM from 'react-dom';
import { useRouterHistory } from 'react-router';
import { createHistory } from 'history';
import makeRoutes from './routes';
import Root from './containers/Root';
import configureStore from './redux/configureStore';
import injectTapEventPlugin from 'react-tap... |
modules/Footer.js | marquesarthur/learning_react | import React from 'react'
import { Nav, NavItem, NavDropdown, MenuItem, ProgressBar, } from 'react-bootstrap';
const html = (
<Nav className="navbar navbar-fixed-bottom">
<hr />
</Nav>
)
export default React.createClass({
render() {
return html;
}
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.