path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
Realization/frontend/czechidm-acc/src/content/role/RoleSystemTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import uuid from 'uuid';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import _ from 'lodash';
//
import { Basic, Advanced, Utils } from 'czechidm-core';
import SearchParameters from 'czechidm-core/src/domain/SearchParamete... |
src/svg-icons/editor/format-align-justify.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignJustify = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignJustify = pure(EditorFormatAl... |
common/components/NotFound.js | amitpaperg/roadmap-planner | import React from 'react'
import Helmet from 'react-helmet'
const NotFound = () => (
<div>
<Helmet title='Not Found' />
<h1>Page Not Found!</h1>
</div>
)
export default NotFound
|
client/pc/src/components/Admin/ClassAdmin.js | CongYunan/course_attendance | // 加载 React 相关组件
import React, { Component } from 'react';
// 加载 AntD 相关组件
import { Button, notification, Spin, Modal, Form, Input, Select } from 'antd';
// 加载自定义组件
import CommonTable from '../CommonTable';
// 加载自定义工具集
import { checkMapData } from '../../tools/Check';
// 加载 React-Redux 组件
import { connect } from 'react... |
test/JumbotronSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
react-native solution/index.android.js | renolmachado/React-native-upload-image-to-nodejs | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './components/App.js';
export default class UploadImageProject extends Component {
render() {
return (
<View style={styles.container}>
<App/>
</View>
);
}... |
portfolio/React_learnings/charlottes_web/client/index.js | joshua-fogg/joshua-fogg.github.io | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App.jsx'
const message = { text: "Future home of Charlotte's web" }
ReactDOM.render( < App message = { message }
/>,
document.getElementById('root')
) |
src/js/components/acl/update_permission_button.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { Button } from '../../components';
export default class UpdatePermissionButton extends Component {
static propTypes = {
name: PropTypes.string,
className: PropTypes.string,
clearTheme: PropTypes.bool,
element... |
src/pages/index.js | wdavidw/node-csv-docs | import React from 'react'
import { Link } from 'gatsby'
import {
MIN_TABLET_MEDIA_QUERY,
TABLET_MEDIA_QUERY,
} from 'typography-breakpoint-constants'
// Local
import Layout from '../layout'
import convert_icon from '../images/convert.svg'
// Syntax
import { PrismLight as SyntaxHighlighter } from 'react-syntax-high... |
src/index.js | smourph/fluffyroll | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getE... |
src/index.js | petercm/measurements-tally | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/action/https.js | mtsandeep/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-... |
src/main.js | GKotsovos/WebBanking-Front-End | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import Application from './Application'
const $ = require('jquery')
window.jQuery = $
window.$ = $
require('bootstrap/dist/css/bootstrap.min.css')
require('bootstrap/dist/js/bootstrap.min.js')
require('font-awesome/... |
src/pages/color-picker.js | getinsomnia/website | import React from 'react';
import { BlockPicker } from 'react-color';
const popUpColorPickerStyle = hex => ({
container: {
position: 'relative',
display: 'block',
},
color: {
width: '28px',
height: '14px',
borderRadius: '2px',
background: hex,
},
label: {
margin: '0px 0px 0px 12px... |
src/js/ui/app/index.js | bastuijnman/carpi | import React from 'react';
import ReactDOM from 'react-dom';
import {
HashRouter as Router,
Route
} from 'react-router-dom';
import MusicPage from './pages/music';
import DashboardPage from './pages/dashboard';
const style = {
backgroundImage: 'linear-gradient(-180deg, rgba(255,255,255,0.50) 0%, rgba(0,0,... |
src/customSemanticInputs/Checkbox.js | panderalabs/redux-form-semantic | // @flow
import React from 'react';
import { Checkbox as SemanticCheckbox } from 'semantic-ui-react';
import type { FieldProps } from 'redux-form';
import { INPUT_TYPES } from '../constants';
type Props = {
label: string,
} & FieldProps;
const Checkbox = ({
input,
label,
...rest
}: Props) => (
<SemanticChec... |
src/components/video-list-item.js | amaljoyc/react-tube | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imgUrl = video.snippet.thumbnails.default.url;
const title = video.snippet.title;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list media">
<div classNam... |
test/CarouselSpec.js | pandoraui/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Carousel from '../src/Carousel';
import CarouselItem from '../src/CarouselItem';
describe('Carousel', function () {
it('Should show the correct item', function () {
let instance = ReactTestUtils.renderIntoDocument(
<C... |
docs/src/app/components/pages/components/Dialog/ExampleModal.js | lawrence-yu/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
export default class DialogExampleModal extends React.Component {
sta... |
src/icons/font/StreetViewIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* StreetView button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const StreetViewIcon = (props, context) => {
let t... |
docs/site/src/demos/tabs/IconLabelTabs.js | und3fined/material-ui | // @flow weak
import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import Tabs from 'material-ui/Tabs';
import Tab from 'material-ui/Tabs/Tab';
import PhoneIcon from 'material-ui/svg-icons/phone';
import FavoriteIcon from 'material-ui/svg-icons/favorite';
import PersonPinIcon from 'material... |
packages/material-ui-icons/src/LocalPrintshop.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z" /></g>
, 'LocalPrintshop');
|
app/containers/BootStrap/BSButtonDefault/index.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by Yang on 17/11/16.
*/
import React from 'react';
const BSButtonDefault = (props) => <button onClick={props.onClick} className={`btn btn-default ${props.className}`}>
{props.children}
</button>;
BSButtonDefault.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
onClic... |
app/components/distance.js | sirbrillig/voyageur-js-client | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { getAddressPairs, sumUnlessNull, getCachedDistanceForPair, getAddressesForTrip } from 'lib/helpers';
import { fetchDistanceBetween, changeUnits } from 'lib/actions/trip';
import DistanceNumber from 'components... |
src/PowerSelect/BeforeOptionsWrapper.js | selvagsz/react-power-select | import React, { Component } from 'react';
import AutoResizeInput from '../AutoResizeInput';
export default function BeforeOptionsWrapper({
searchEnabled,
onChange,
beforeOptionsComponent,
searchPlaceholder,
searchInputAutoFocus,
...otherProps
}) {
let BeforeOptionsComponent = beforeOptionsComponent;
re... |
src/js/app.js | training4developers/react_redux_12122016 | /* @flow */
import React from 'react';
import ReactDOM from 'react-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { refreshCars, addCar, deleteCar } from './actions/car-actions';
import 'bootstrap-loader';
import '../css/styles.scss';
import { CarTool } from './compo... |
example/example.js | 111StudioKK/react-simpleform | import React from 'react';
import { render } from 'react-dom';
import Form, { Boolean, Buttons, Calendar, Checkboxes, Input, Select, Tags, Yup } from '../src/index.js';
//var App = React.createClass({
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
schema: Yup... |
imports/router/Router.js | RGaldamez/MeteorReactScaffold | import React from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import Index from './../ui/index.js';
class Router extends React.Component {
render() {
return (
<BrowserRouter>
<Route path="/" component= {Index}/>
</BrowserRouter>
)
}
... |
test/linkClass.js | ahdinosaur/react-css-modules | /* eslint-disable max-nested-callbacks */
import {
expect
} from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import linkClass from './../src/linkClass';
describe('linkClass', () => {
context('when ReactElement does not define styleName', () =... |
maodou/events/client/components/event.js | LIYINGZHEN/meteor-react-redux-base | import React from 'react';
import Loading from 'client/components/common/loading';
import moment from 'moment';
export default (props) => {
return (
<div className="container" style={{ paddingTop: '60px'}}>
<div className="row">
<div className="col-lg-12">
{
props.event ?
... |
templates/react-redux/app/containers/Root.js | grvcoelho/starhopper | import React from 'react'
import { Provider } from 'react-redux'
import App from './App'
import DevTools from './DevTools'
const Root = ({ store }) => (
<Provider store={store}>
<div>
<App />
<DevTools />
</div>
</Provider>
)
export default Root
|
src/esm/components/action/button-with-tooltip/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "children", "tooltipText", "buttonProps", "tooltipProps", "position"];
import React from 'react';
import styled, { keyframes } from 'style... |
imports/startup/client/index.js | baiyalong/score |
import { Meteor } from 'meteor/meteor';
import React, { Component } from 'react';
import { render } from 'react-dom';
import { renderRoutes } from './routes.js';
import { Session } from 'meteor/session';
import Wx from '../../ui/Wx';
Meteor.startup(() => {
if (isWx())
render(<Wx />, document.getEl... |
App/Components/Post/index.js | BelinChung/react-native-hiapp | import React from 'react'
import connect from 'redux-connect-decorator'
import PropTypes from 'prop-types'
import config from '@Config'
import Icon from '../Icon'
import t from '@Localize'
import ParsedText from 'react-native-parsed-text'
import { getRemoteAvatar } from '@Utils'
import { formatDistance } from 'date-fns... |
src/components/employee/EmployeeTableRow.js | GHImplementationTeam/FrontEnd | import Checkbox from 'material-ui/Checkbox';
import MenuItem from 'material-ui/MenuItem';
import SelectField from 'material-ui/SelectField';
import { TableRow, TableRowColumn } from 'material-ui/Table';
import PropTypes from 'prop-types';
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
... |
docs/src/example_components.js | mberneti/react-datepicker2 | import React from 'react';
import hljs from 'highlight.js';
import CodeExampleComponent from './code_example_component';
import Highlight from 'react-syntax-highlight';
import Default from './examples/default';
import Jalaali from './examples/jalaali';
import HideTodayButton from './examples/HideTodayButton';
import D... |
client/test/components/AboutPage.spec.js | andela-fmustapha/document-management | import expect from 'expect';
import React from 'react';
import { shallow } from 'enzyme';
import AboutPage from '../../components/about/AboutPage';
/**
*
*
* @returns {void}
*/
function setup() {
const props = {
users: {
id: '',
username: '',
firstname: '',
lastname: '',
email: ... |
src/components/Alert/alert.js | emsiengineering/emsi-ui | import cx from 'classnames';
import CSSModules from 'react-css-modules';
import React from 'react';
import BlockText from '../BlockText';
import Card from '../Card';
import CardBody from '../CardBody';
import CSS from './alert.styl';
import Text from '../Text';
type Props = {
children: any,
title: string,
type?... |
src/components/Navigation.js | lxanders/react-clientside-example | import React from 'react';
import { Navbar, Nav, NavItem, Image } from 'react-bootstrap';
import { Link } from 'react-router';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
const Navigation = () => {
const githubLink = 'https://github.com/lxanders/react-clientside-example';
const ... |
src/containers/PTOPage/PTOPage.js | armaniExchange/shield | // Style
import './_PTOPage';
// React & Redux
import React, { Component } from 'react';
class PTOPage extends Component {
render() {
return (
<section>PTO Page</section>
);
}
}
export default PTOPage;
|
weather-app/src/components/google_map.js | murielg/react-redux | import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount() {
new google.maps.Map(this.refs.map, {
zoom: 12,
center: {
lat: this.props.lat,
lng: this.props.lon
}
});
}
render() {
return (
//this.refs.map to reference dir... |
app/components/toast/lib/Toast.js | river-lee/react-group | 'use strict';
import React, { Component } from 'react';
import './Toast.scss';
export default class Toast extends Component {
render(){
let { message,show } = this.props;
if(!message){
return null;
}
return (
<div className={'ymt-toast '+(show?' show':'')}
show = { show }>
{ message }
... |
test/Header.spec.js | NUS-Workload-Predictor/front-end | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import configureStore from 'redux-mock-store';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
const fetch = require('isomorphic-fetch');
import Header from '../components/Header';
const middlewares = [];
co... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-11/FriendProfile.js | Brandon-J-Campbell/codemash | import React from 'react';
import Card from './Card';
import './FriendProfile.css'
export default function FriendProfile({ name, image }) {
return (
<Card>
<div className="friend-profile">
<img src={image} alt={name} />
<h3>{name}</h3>
</div>
</Card>
);
}
|
6.0.0-rc.1/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(269),e.exports=n(268)},function(e,t,n){var r=n(5),o=n(32),i=n(18),a=n(20),u=n(36),s="prototype",... |
src/components/EndGameModal/index.js | albertfdp/battleship | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getResults, isGameOver } from 'selectors/ResultSelectors';
import { connect } from 'react-redux';
import { List } from 'immutable';
import AriaModal from 'react-aria-modal';
import styles from './styles.css';
class EndGameModal e... |
src/components/AddItemLauncher.js | danlevine/rainchecks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import AddItem from './AddItem';
import * as actions from '../actions';
class AddItemLauncher extends Component {
render () {
const { isAddFormActive, activateAddItem, cancelAddItem } = this.props;
if (!isAddFormActive) {
... |
examples/index.vr.js | Centroida/CentroUI | import React from 'react';
import {AppRegistry, View} from 'react-vr';
import CnContainer from '../components/core/container';
export default class Example extends React.Component {
render() {
return (
<View>
<CnContainer>
</CnContainer>
</View>
... |
src/svg-icons/maps/tram.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTram = (props) => (
<SvgIcon {...props}>
<path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h... |
docs/site/src/demos/selection-controls/Checkboxes.js | und3fined/material-ui | // @flow weak
import React, { Component } from 'react';
import { LabelCheckbox } from 'material-ui/Checkbox';
import { FormGroup } from 'material-ui/Form';
export default class Checkboxes extends Component {
state = {
checkedA: true,
checkedB: false,
};
render() {
return (
<FormGroup row>
... |
techCurriculum/ui/solutions/4.3/src/components/CardForm.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/localization/inlineComponents.js | codeforboston/cliff-effects | import React from 'react';
import { Icon } from 'semantic-ui-react';
import { ExternalLink } from './../components/ExternalLink';
import { contributors } from './contributors';
/** @name inlineComponents
* @description Contains inline components that can be
* substituted into translations using the interpolation... |
node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | hpdmitriy/Bjj4All | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
node_modules/react-router/es6/RouteContext.js | rogerio-toledo/Weather-Forecast | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/svg-icons/image/photo-album.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoAlbum = (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 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/>
</Sv... |
src/js/components/icons/base/TopCorner.js | odedre/grommet-final | /**
* @description TopCorner SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... |
packages/material-ui-icons/src/AllOut.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AllOut = props =>
<SvgIcon {...props}>
<path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8... |
packages/editor/src/components/Icons/AlignJustify.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const AlignJustify = props => (
<Icon viewBox="0 0 448 512" {...props}>
<path d="M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-... |
app/javascript/mastodon/features/status/components/card.js | kagucho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')
.map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part)
... |
client/js/containers/ProfileCardContainer.js | SqrAK/journal | import React, { Component } from 'react';
import { connect } from 'react-redux';
import ProfileCard from '../components/ProfileCard.js';
const mapStateToProps = (state) => {
return {
user: state.user
};
}
export default connect(mapStateToProps)(ProfileCard);
|
project/src/scenes/Blog/components/ArticleTitle/ArticleTitle.js | boldr/boldr | /* @flow */
import React from 'react';
import styled from 'styled-components';
import cx from 'classnames';
import Heading from '@boldr/ui/Heading';
import { StyleClasses } from '@boldr/ui/theme/styleClasses';
const TitleWrapper = styled.div`
text-transform: uppercase;
padding-top: 150px;
text-align: center;
m... |
webapp/app/components/EditUser/Form/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component form page edit user
//
import React from 'react';
import Username from 'containers/EditUser/Form/Username';
import Email from 'containers/EditUser/Form/Email';
import Password from 'containers/EditUser/Form/Password';
import PasswordConfirmation from 'containers/EditUser/Form/PasswordConfirmation';
imp... |
src/components/ListItem.js | dlindahl/stemcell | import React from 'react'
import Text from './Text'
const ListItem = (props) => <Text as="li" {...props}/>
export default ListItem
|
frontend/src/components/EditProfile.js | textilemuseum/spinningjenny | import React from 'react'
// components
import Button from 'material-ui/Button'
import Checkbox from 'material-ui/Checkbox'
import Grid from 'material-ui/Grid'
import Fade from 'material-ui/transitions/Fade'
import FormControl from 'material-ui/Form/FormControl'
import FormControlLabel from 'material-ui/Form/FormContro... |
src/comments/comment/index.js | ChDeinert/react-katas | import React from 'react';
import PropTypes from 'prop-types';
const Comment = ({ commentItem }) => (
<div className="comments__item">
<div className="comments__item-head">
<span className="comments__item-head__name">
{commentItem.name}
</span>
<span className="comments__item-head__mail... |
packages/material-ui/src/List/ListItemSecondaryAction.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = {
root: {
position: 'absolute',
right: 4,
top: '50%',
transform: 'translateY(-50%)',
},
};
function ListItemSecondaryAction(props... |
src/utils/withWidth.spec.js | verdan/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow, mount} from 'enzyme';
import {assert} from 'chai';
import withWidth, {MEDIUM, LARGE} from './withWidth';
describe('utils/withWidth', () => {
const Dumb = () => <div />;
const DumbWithWidth = withWidth()(Dumb);
describe('server side rendering', ... |
src/components/counter/__tests__/Counter-test.js | TedChenNZ/js-testing-presentation | import React from 'react';
import chai from 'chai';
import chaiEnzyme from 'chai-enzyme'
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Counter from '../Counter';
import Store from '../../../store';
chai.use(chaiEnzyme());
describe('Counter', () => {
let wrapper;
... |
src/Parser/Hunter/BeastMastery/Modules/Traits/Thunderslash.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from "common/SpellIcon";
import SpellLink from 'common/SpellLink';
import ItemDamageDone from 'Main/ItemDamageDone';
class Thunderslash ... |
examples/todomvc/containers/TodoApp.js | TallerWebSolutions/redux-devtools-gentest-plugin | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
src/svg-icons/maps/map.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMap = (props) => (
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ... |
src/time-travel/TimeTravelList.js | wuxinwei240/React-Bacon-Timetravel-Example | import React, { Component } from 'react';
import h from 'react-hyperscript';
import Bacon from 'baconjs';
export default class TimeTravelList extends Component {
componentWillMount() {
var state$ = Bacon.combineTemplate({
actions: this.props.timetravel.actions$,
states: this.props.t... |
src/svg-icons/device/battery-charging-80.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
src/SafeAnchor.js | bbc/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
src/components/Forms/InputComponent.js | dziksu/songs-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactHtmlParser from 'react-html-parser';
class InputRenderComponent extends Component {
constructor(props) {
super(props);
this.input = this.input.bind(this);
}
input() {
const {
input: { name, value, onChan... |
src/front/app/common/components/buttons/BackButton.js | travel-and-help/start-kit | import React from 'react';
import IconButton from './IconButton';
import { hashHistory } from 'react-router';
const BackButton = ({ lightness }) => (
<IconButton
iconName={'back'}
iconSize={24}
iconClassName={`icon_${lightness}`}
clickHandler={hashHistory.goBack}
/>
);
BackButt... |
src/components/Camera.js | neontribe/spool | import React, { Component } from 'react';
import captureVideoFrame from 'capture-video-frame';
import _ from 'lodash';
import Grid from './Grid';
import Button from './Button';
import CountdownClock from './CountdownClock';
import PageOverlay from './PageOverlay';
import TouchIcon from './TouchIcon';
import styles fr... |
src/js/components/cardView.js | jesseokeya/bigechs | import React from 'react';
import './css/styles.css'
class CardView extends React.Component {
constructor(props) {
super(props);
this.state = {
info: props.info
};
}
render() {
return (
<div className="col-md-6 col-lg-3">
<div classNa... |
src/components/app.js | ronaldofs/starterkit-electron-react-es6 | import React from 'react';
import ReactDOM from 'react-dom';
import Main from './main/Main.js';
const remote = window.require('remote');
let container = document.createElement('div');
document.body.appendChild(container);
ReactDOM.render(<Main />, container);
|
src/components/SettingsManager/Links.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import withProps from 'recompose/withProps';
import { translate } from 'react-i18next';
import Button from '@material-ui/core/Button';
import LicenseIcon from '@material-ui/icons/Copyright';
import GithubIcon from './GithubIcon';
const enhance = translate(... |
docs/app/Examples/modules/Embed/States/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 EmbedStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='An... |
src/pages/graph/Findbridges/Findbridges.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Findbridges extends React.Component {
render() {
return (
<div>Findbridges</div>
)
}
}
export default Findbridges |
src/routes.js | Alex-Just/gymlog | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from './components/App';
// import CounterApp from './containers/CounterApp';
import GymlogApp from './containers/GymlogApp';
export default (
<Route path="/" component={App}>
<IndexRoute component={GymlogApp}/>
... |
src/shared/components/form/form.js | sethbergman/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './form.css';
const Form = ({ className, children }) => {
const classes = classNames({
[`${styles.form}`]: true,
[`${className}`]: className
});
return (
<form className={classes}>
... |
code/workspaces/web-app/src/components/modal/EditNotebookDialog.spec.js | NERC-CEH/datalab | import React from 'react';
import { shallow } from 'enzyme';
import EditNotebookDialog from './EditNotebookDialog';
describe('EditNotebookDialog', () => {
const shallowRender = ({
title = 'Title',
onSubmit = jest.fn().mockName('onSubmit'),
onCancel = jest.fn().mockName('onCancel'),
stack = { name: 's... |
src/containers/PhotoPage.js | nickeblewis/walkapp | /**
* Component that lists all Posts
*/
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
// import { Link } from 'react-router'
import { withRouter } from 'react-router'
import { CloudinaryContext, Transformation, Image } from 'cloudinary-react'
class PhotoPage extends R... |
src/TabPane.js | herojobs/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/web.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvWeb = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb.displayName = 'AvWeb';
AvWeb.muiName =... |
manoseimas/compatibility_test/client/app/ResultsView/Sidebar.js | ManoSeimas/manoseimas.lt | import React from 'react'
import { connect } from 'react-redux'
import { subscribe } from 'subscribe-ui-event'
import { FacebookShare, ManoBalsas } from '../../components'
import styles from '../../styles/views/results.css'
class Sidebar extends React.Component {
static propTypes = {
fractions: React.Prop... |
packages/core/src/icons/components/Pause.js | iCHEF/gypcrete | import React from 'react';
export default function SvgPause(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 1000 1000"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M187.6 500c.2-172.5 14... |
src/components/jog.js | DarklyLabs/LaserWeb4 | /**
* Jog module.
* @module
*/
// React
import React from 'react'
import { connect } from 'react-redux';
import keydown, { Keys } from 'react-keydown';
import { PanelGroup, Panel, ProgressBar} from 'react-bootstrap';
import { setSettingsAttrs } from '../actions/settings';
import { setWorkspaceAttrs } from '../act... |
client/src/components/header/index.js | OpenChemistry/materialsdatabank | import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import Hidden from '@material-ui/core/Hidden';
import IconButton from '@material-ui/core/IconButton';
import Toolbar from '@mat... |
react/src/routes.js | aaronbini/mile-tracker | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import AboutPage from './components/about/AboutPage';
import CoursesPage from './components/course/CoursesPage';
import ManageCoursePage from './components/... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Radio.js | jmanday/Master | 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 ... |
src/shared/js/components/D3Axis.js | datalocale/dataviz-finances-gironde | import React from 'react';
export default function D3Axis({
tickData, className, onSelectedAxisItem
}){
return React.createElement('g', {className: ['d3-axis', className].filter(x => x).join(' ')},
tickData.map(({id, transform, line: {x1, y1, x2, y2}, text: {x, y, dx, dy, anchor='middle', t}, classNam... |
src/components/icons/CallMadeIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const CallMadeIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/>
</svg>
);
exp... |
src/components/form/FormField.js | shrimpliu/shradmin | import React from 'react';
import PropTypes from 'prop-types';
const FormField = () => (
<span></span>
);
const formItemLayout = {
labelCol: {
lg: { span: 3 },
xs: { span: 24 },
sm: { span: 4 },
},
wrapperCol: {
lg: { span: 6 },
xs: { span: 24 },
sm: { span: 12 },
},
};
FormField.pr... |
src/js/rectangle.js | garygao12580/react_photo_wall | import React from 'react'
import '../css/rectangle.less'
class Rectangle extends React.Component {
constructor(props) {
super(props);
}
render() {
let {item, offsetX, onLabelClick} = this.props;
let className = item.active ? "active-rectangle" : "normal-rectangle";
let step... |
docs/src/sections/ResponsiveEmbedSection.js | Lucifier129/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ResponsiveEmbedSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/js/LoadingPage.js | ludonow/ludo-beta-react | import React from 'react';
import { browserHistory } from 'react-router';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import axios from './axios-config';
// override material ui style
const style = {
container: {
alignItems: 'center',
display: 'flex',
height: 'calc(100vh -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.