path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/js/components/Editor/ImageBlock.react.js | planetarylink/planetary-link | 'use strict';
import React from 'react';
import {Entity} from 'draft-js';
export default ({ block }) => {
console.log(block)
console.log(block.getEntityAt(0))
const file = Entity.get(block.getEntityAt(0)).getData()['file'];
const source = URL.createObjectURL(file);
return <img src={source} />;
};
|
src/components/App.spec.js | veryaustin/veryaustin-2017-frontend | import React from 'react';
import {shallow} from 'enzyme';
import App from './App';
describe('App Component', () => {
it('should render the application', () => {
const wrapper = shallow(<App />);
const app = wrapper.find('div').hasClass('Application');
expect(app).toExist;
});
}); |
source/component/listview/searchRow.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Text,
TouchableHighlight
} from 'react-native';
import moment from 'moment';
import _ from 'lodash';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import { decodeHTML } from '../../common';
import { CommonStyles, ComponentStyles, StyleConfig ... |
src/index.js | alexb14/alexanderbyrne.com | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Layout from './components/Layout';
import About from './pages/About';
import Contact from './pages/Contact';
import Home from './pages/Home';
import Work from './pages/Work';
import A... |
src/containers/Asians/_components/PublishedBreakRound/Ballots/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Responsive from 'react-responsive'
import LargeBallots from './LargeBallots'
import SmallBallots from './SmallBallots'
export default ({
breakRound
}) => {
return (
<div>
<Responsive
minWidth={961}
>
<LargeBallots
breakRound={breakRound}
... |
src/components/App/App.js | dryror/javascript-boilerplate | import React from 'react';
import styles from './App.css';
import CounterButton from '../../containers/CounterButton';
import GreetingText from '../../containers/GreetingText';
const App = () =>
<div className={styles.root}>
<GreetingText />
<CounterButton />
</div>;
export default App;
|
packages/material-ui-icons/legacy/Battery50Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v9h10V4z" /><path d="M7 13v9h10v-9H7z" /></React.Fragment>
, 'Battery50Sharp');
|
main.js | The-Chanman/Parker | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill'
imp... |
tests/components/testTouristCardData.js | notfier/touristique-client | import React from 'react';
import { shallow } from 'enzyme';
import { TouristCardData } from '../../src/js/components/TouristCardData';
describe( 'Test Operator component |', function() {
it( 'test changeDep method', function() {
const wrapper = shallow(
<TouristCardData
changeInternallyTouristI... |
src/Radio/Radio.js | dimik/react-material-web-components | import React from 'react'
import PropTypes from 'prop-types'
import {MDCComponent} from '../MDCComponent'
import {MDCRadio} from '@material/radio/dist/mdc.radio'
import classNames from 'classnames'
class Radio extends MDCComponent {
static displayName = 'Radio'
static propTypes = {
children: PropTypes.node,
... |
src/svg-icons/av/radio.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3... |
src/index.js | JCampbell371/React-Videos | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_Key = 'AIzaSyCNs... |
my-app/src/components/pages/projectpages/stars/starmaker.js | sThig/jabbascrypt | import React from 'react';
import Stars from './star';
import styled from 'styled-components';
import { Row, Col } from 'react-flexbox-grid';
const Copy = styled.p`
color: #F86195;
margin-top: 0;
margin-bottom: 2em;
`
const ProjectTitle = styled.h1`
color: white;
margin-top: 1em;
margin-bottom: 0;
`
const ... |
src/index.js | RolandJansen/basemod | import React from 'react'
import { render } from 'react-dom'
import thunkMiddleware from 'redux-thunk'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import { initialState } from './model/initialState'
import reducer from './model/reducers'
import App from './components/App'... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | yangchaogit/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import GroupMember from 'components/activity/GroupMember.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(... |
React Native/Demos/nearby/Nearby/views/toilet.js | AngryLi/note | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
export default class Toilet extends React.Component {
render() {
return (
<View></View>
)
}
}
const styles= StyleSheet.create({
}) |
src/components/ColorPicker.js | ctlusto/gifsmos | import React, { Component } from 'react';
import { SketchPicker } from 'react-color';
class ColorPicker extends Component {
constructor(props) {
super(props);
this.handleInputUpdate = this.handleInputUpdate.bind(this);
}
handleInputUpdate(color) {
this.props.updateTextColor(color.hex);
}
render... |
src/routes/vendor/index.js | AaronHartigan/DudeTruck | import React from 'react';
import Layout from '../../components/Layout';
import Vendor from '../../components/Vendor';
import isLoggedIn from '../../core/authorization';
import { loggedOutRedirect } from '../../constants';
async function action({ params, store, fetch }) {
const user = store && store.getState().user;... |
website/src/pages/404.js | atomiks/tippyjs | import React from 'react';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
function NotFoundPage({pageContext}) {
const context = {...pageContext, frontmatter: {title: '404: Not Found'}};
return (
<Layout pageContext={context}>
<SEO title="404: Not found" pageContext={cont... |
src/index.js | 1-on-1conversations/rotations | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/leadersboard/leadersboard-item.component.js | YGO/compe-frontend | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
import style from './leadersboard.styles'
import { alignLeft } from '../../routes/common.styles'
import { colors } from './leadersboard.colors'
import { calcTHRU, hasScore } from './leadersboard.service'
const scoreToStr = score =... |
fields/types/select/SelectFilter.js | joerter/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return... |
test/tracking-spec.js | davidkpiano/react-redux-form | import React from 'react';
import { assert } from 'chai';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import TestUtils from 'react-dom/test-utils';
import { Field, Errors, modelReducer, formReducer, track } from '../src';
const state = {
deep: {
deeper: [
... |
node_modules/react-bootstrap/es/Accordion.js | geng890518/editor-ui | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PanelGroup from '... |
index/components/AboutVenomseq.js | JDRomano2/VenomKB | import React from 'react';
const AboutVenomseq = () =>
<div className="jumbotron">
<div className="container">
<h2>VenomSeq</h2>
<p>
VenomSeq is a new biotechnology platform that enables affordable and high-throughput screening of the effects that venoms exert on gene expression in human cell... |
src/Option.js | serkanozer/react-select | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Option extends React.Component {
constructor(props) {
super(props);
this.handleMouseDown = this.handleMouseDown.bind(this);
this.handleMouseEnter = this.handleMouseEnter.bind(this);
this.handleMouseMove... |
components/animals/zirafaSitovana.adult.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/zirafaSitovana/01.... |
src/components/Carousel.js | allenzhong/simple-carousel | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { CSSTransitionGroup } from 'react-transition-group';
import CarouselIndicator from "./CarouselIndicator";
import "./Carousel.css";
export const Position = {
CENTER: 'carousel--indicators__centered',
LEFT: 'carousel--indicators__l... |
frontend/test/app/containers/HomePage-test.js | 6a68/idea-town | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import HomePage from '../../../src/app/containers/HomePage';
describe('app/containers/HomePage', () => {
it('should show experiment list if the add-on is installed', () => {
const wrapper = sh... |
src/ModalTitle.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
logspace-frontend/src/main/routes.react.js | Indoqa/logspace | // @flow
import React from 'react'
import {IndexRoute, Route} from 'react-router'
import Module1Page from './modules/module1/components/Module1Page.react'
import Module2Page from './modules/module2/components/Module2Page.react'
import AgentsPage from './modules/agents/components/AgentsPage.redux'
import DashboardsPag... |
src/Typography/Display2.js | kradio3/react-mdc-web | import React from 'react';
import TypographyElement from './TypographyElement';
const defaultProps = {
component: 'h1',
};
const Display2 = props => (
<TypographyElement
modificator="display2"
{...props}
/>
);
Display2.defaultProps = defaultProps;
export default Display2;
|
src/routes/admin/index.js | joaquingatica/git-demo | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/svg-icons/action/today.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
src/TextField/TextField.spec.js | andrejunges/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import TextField from './TextField';
import TextFieldLabel from './TextFieldLabel';
import getMuiTheme from '../styles/getMuiTheme';
describe('<TextField />', () => {
const muiTheme = getMuiTheme();
const... |
ee/app/engagement-dashboard/client/components/ChannelsTab/index.stories.js | iiet/iiet-chat | import { Margins } from '@rocket.chat/fuselage';
import React from 'react';
import { ChannelsTab } from '.';
export default {
title: 'admin/enterprise/engagement/ChannelsTab',
component: ChannelsTab,
decorators: [
(fn) => <Margins children={fn()} all='x24' />,
],
};
export const _default = () => <ChannelsTab /... |
app/ToolBar/ToolBar.js | RyanWangGit/poi | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import FlatButton from 'material-ui/FlatButton';
import Toggle from 'material-ui/Toggle';
import styles from './ToolBar.css';
export default class T... |
src/test/Home.spec.js | timarney/react-router-redux-query-params | /* eslint-env mocha */
require('babel-register')
require('babel-polyfill')
import expect from 'expect'
import React from 'react'
import { Home } from '../components/Home'
import { shallow } from 'enzyme'
describe('<Home /> ', () => {
it('should render Home', () => {
const wrapper = shallow(<Home title='Hello'/>... |
modules/RoutingContext.js | yongxu/react-router | import React from 'react';
import invariant from 'invariant';
import getRouteParams from './getRouteParams';
var { array, func, object } = React.PropTypes;
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the router object and the current location in context.
*/
var RoutingCo... |
lib/components/Tempalink.js | codevlabs/filepizza | import React from 'react'
export default class Tempalink extends React.Component {
onClick() {
this.refs.input.getDOMNode().setSelectionRange(0, 9999)
}
render() {
var url = window.location.origin + '/' + this.props.token
return <input
className="tempalink"
onClick={this.onClick.bind(th... |
src/svg-icons/av/playlist-add.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Badge.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import { createBootstrapC... |
src/svg-icons/action/theaters.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
newclient/scripts/components/admin/list-view/table-heading/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
src/components/LoginModal.js | DmitryIvanovIAMM/react-redux-form-login-test | import React, { Component } from 'react';
import { FormGroup, Row, Col, Button, ControlLabel, Alert } from 'react-bootstrap';
import ReactModal from 'react-modal';
import { Control, Errors, actions } from 'react-redux-form';
import { loginActionPost } from '../user/loginHelpers.jsx';
import { TiWarningOutline, TiMail, ... |
src/components/FoodResult/foodinfo.js | Skymeow/guiltypleasure-frontend | import React from 'react';
function FoodInfo(props) {
return(
<div>
<h2>{`${props.name}`}</h2>
<div className="food-info">
<ul>
<div className="img-map">
<li><img className="img-item" src={`${props.picture}`} /></li>
</div>
<li>calories: {`${props.calori... |
src/TabBar/TabBarItem.web.js | taobaofed/react-web | /**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
*/
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {View, Text, Image, StyleSheet} from 'react-native-web';
class TabBarItem extends Component {
static propTypes = {
/... |
examples/basic/src/components/PushButton/PushButton.js | styleguidist/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import './PushButton.css';
/**
* An example-less button with custom display name.
* @visibleName Push Button 🎉
*/
export default function PushButton({ color, size, children }) {
const styles = {
color,
fontSize: PushButton.sizes[size],
};
retu... |
frontend/src/components/partners/profile/modals/updateObservationEscalated/updateEscalatedObservationModal.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { submit } from 'redux-form';
import ControlledModal from '../../../../common/modals/controlledModal';
import { updatePartnerFlags... |
web/src/js/__tests__/components/Header/ConnectionIndicatorSpec.js | ddworken/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import ConnectedIndicator, { ConnectionIndicator } from '../../../components/Header/ConnectionIndicator'
import { ConnectionState } from '../../../ducks/connection'
import { Provider } from 'react-redux'
import { TStore } from '../../ducks/tutils'
de... |
test/specs/elements/List/ListList-test.js | vageeshb/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import ListList from 'src/elements/List/ListList'
describe('ListList', () => {
common.isConformant(ListList)
common.rendersChildren(ListList)
describe('list', () => {
it('omitted when rendered as `ol`', () => {
shallow(<ListLi... |
packages/my-joy-instances/src/components/__tests__/firewall.ui.js | geek/joyent-portal | /* eslint-disable camelcase */
import React from 'react';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import screenshot from 'react-screenshot-renderer';
import {
Rules,
TagRules,
DefaultRules,
ToggleFirewallForm,
ToggleInactiveForm
} from '../firewall';
import Theme from '@mocks/theme';
ex... |
examples/server-side-rendering/src/server.js | algolia/react-instantsearch | import { join } from 'path';
import express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { findResultsState } from 'react-instantsearch-dom/server';
import { createApp } from './createApp';
import template from './template';
const server = express();
server.use(... |
source/client/containers/todos/TodoList.js | soccio/Horizon_Hapi_Redux | import React from 'react';
//import { subscribe } from 'horizon-react';
import { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchPosts } from '../../actions/index';
import TodoItem from './TodoItem';
import styles from './styles';
c... |
src/server.js | OlegVitiuk/Majsternia | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import Promise from 'bluebird'... |
src/@ui/Icon/icons/Repeat.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M6.22 16.55h11.45l-.3.04c... |
example/examples/DisplayLatLng.js | parkling/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { MAP_TYPES } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
src/components/svg/Bear.js | JoeTheDave/onitama | import PropTypes from 'prop-types';
import React from 'react';
export const Bear = ({ fillColor }) => (
<svg width="190px" height="130px" viewBox="0 0 190 130" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0, 130) scale(0.1, -0.1)" fill={fillColor} stroke="none">
<path d="M1046 1263 c-3 -4 -... |
src/containers/ProfilePage.js | mick842/rental-cars-client | import React, { Component } from 'react';
import { Link } from "react-router-dom";
import { Card, RaisedButton } from "material-ui";
import User from '../modules/User';
import defaultAvatar from '../images/avatar.png';
class ProfilePage extends Component {
render() {
const user = User.get();
ret... |
test/specs/collections/Table/TableRow-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import TableRow from 'src/collections/Table/TableRow'
describe('TableRow', () => {
common.isConformant(TableRow)
common.rendersChildren(TableRow, {
rendersContent: false,
})
common.implementsCreateMethod(TableRow)
common.impleme... |
app-routing/App.js | singun/kanban-app | import React, { Component } from 'react';
import { render } from 'react-dom';
// import ReactDOM from 'react-dom';
import { Router, Route, Link, IndexRoute } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import About from './About';
import Home from './Home';
import Repos fr... |
src/index.js | prashanth-cpaul/ReactReduxSample | // Libs
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reduxPromise from 'redux-promise';
const createStoreWithMiddleware = applyMiddleware(reduxPromise)(createStore);
import reducers from './... |
src/components/coreComponents/FormInputGroupWithLabel/FormGroupInputWithLabel.js | mjchamoures/personalPortfolio | import React from 'react';
import classes from './FormGroupInputWithLabel.scss';
import { FormControl } from 'react-bootstrap';
import { FormGroup } from 'react-bootstrap';
import { ControlLabel } from 'react-bootstrap';
import { Col } from 'react-bootstrap';
class FormGroupInputWithLabel extends React.Component {
... |
app/jsx/context_cards/Avatar.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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... |
client/sidebar/Sidebar.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import { SettingsContext } from '../contexts/SettingsContext';
import { UserContext } from '../contexts/UserContext';
import RoomList from './RoomList/index';
import Header from './header';
export default {
title: 'Sidebar',
component: '',
};
const subscriptions = [
{
_id: '3Bysd8Grmk... |
src/routes/notFound/index.js | fechy/retropie-web-gui | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import NotFound from './NotFoun... |
docs/src/app/components/pages/components/SelectField/Page.js | verdan/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 selectFieldReadmeText from './README';
import SelectFieldExampleSimple fr... |
packages/icons/src/md/action/VerifiedUser.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdVerifiedUser(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 2l18 8v12c0 11.11-7.67 21.47-18 24C13.67 43.47 6 33.11 6 22V10l18-8zm-4 32l16-16-2.83-2.83L20 28.34l-5.17-5.17L12 26l8 8z" />
</IconBase... |
src/svg-icons/action/thumb-down.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbDown = (props) => (
<SvgIcon {...props}>
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5... |
src/client/components/nav-bar/NavBar.js | developersdo/opensource | import React from 'react'
import { withRouter } from 'react-router-dom'
import NavBarItem from '~/components/nav-bar/navbar-item/NavBarItem'
import '../../images/logo.svg'
const style = {
menu: {
cursor: 'pointer'
},
dev_do_logo: {
color: '#fff',
fill: 'currentColor',
width: '1.3em',
height... |
src/__tests__/test-expander.js | ogaoga/json-visual-editor | import React from 'react';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Expander from '../Expander';
Enzyme.configure({ adapter: new Adapter() });
let params = [
{
title: 'Display expander (expaneded).',
actual: <Expander defaultValue={true} />,
expected: (
<b... |
wip/click/app/click/js/tile.js | urbit/examples | import React, { Component } from 'react';
import classnames from 'classnames';
import _ from 'lodash';
export default class clickTile extends Component {
constructor(props) {
super(props);
let ship = window.ship;
let api = window.api;
}
pokeShip() {
api.action('click', 'json', {click... |
src/components/ContainerDetailsSubheader.react.js | daaru00/kitematic | import _ from 'underscore';
import React from 'react';
import shell from 'shell';
import metrics from '../utils/MetricsUtil';
import ContainerUtil from '../utils/ContainerUtil';
import classNames from 'classnames';
import containerActions from '../actions/ContainerActions';
import dockerMachineUtil from '../utils/Docke... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/delete-forever.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionDeleteForever = (props) => (
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5... |
src/components/Account/account.js | ChronoBank/ChronoWAVES | import React from 'react';
import {connect} from 'react-redux';
import {Card, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import {browserHistory} from 'react-router';
import {Grid, Row, Col} from 'react-flexbox-grid-aphrodite';
import Paper from 'material-ui/Paper';
i... |
client/app/components/Signup.js | ParadeTo/dataguru-nodejs | import React from 'react';
import $ from 'jquery';
import {signup} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Signup extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleChange(name, e) {
let newState = {};
newState[name... |
node_modules/react-mdl/src/utils/cloneChildren.js | yomolify/cc-server | import React from 'react';
export default function(children, props) {
return React.Children.map(children, child => {
var p = typeof props === 'function' ? props(child) : props;
return React.cloneElement(child, p);
});
}
|
src/components/onboarding/steps/Step2.js | golemfactory/golem-electron | import React from 'react';
import Lottie from 'react-lottie';
import animData from './../../../assets/anims/onboarding/provider.json';
const defaultOptions = {
loop: false,
autoplay: true,
animationData: animData,
rendererSettings: {
preserveAspectRatio: 'xMidYMid slice'
}
};
export defau... |
client/src/routes.js | atkien/demo-react | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import PostIndex from './post/Index';
import PostDetailShow from './post/PostDetailShow';
import PostFormShow from './post/PostFormShow';
export default (
<Route path="/" component={App}>
<IndexRoute component=... |
fields/types/email/EmailColumn.js | giovanniRodighiero/cms | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | aksharora/ReactNativeDemoBasic | 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 />
);
});
|
app/javascript/mastodon/features/favourites/index.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
src/Stepper/StepConnector.spec.js | pomerantsev/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {PlainStepConnector as StepConnector} from './StepConnector';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepConnector />', () => {
const muiTheme = getMuiTheme();
const themedShal... |
js/main.js | nico1000/chord-trainer | require('../scss/main.scss');
require('../node_modules/font-awesome/scss/font-awesome.scss');
require('../node_modules/blissfuljs/bliss.js');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
var WebFont = require('webfontloader');
WebFont.load({
google: {
families: ['Ra... |
examples/huge-apps/routes/Messages/components/Messages.js | hgezim/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
force_dir/node_modules/react-bootstrap/es/CarouselCaption.js | wolfiex/VisACC | 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 ... |
client/modules/App/components/DevTools.js | Trulsabe/reactLinuxMern | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
src/esm/components/structure/cards/backer-card/index.js | KissKissBankBank/kitten | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["title", "subtitle", "imgProps", "description"];
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { pxToRem } from '../../../../helpers/utils/typ... |
app/javascript/mastodon/features/ui/components/modal_root.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { getScrollbarWidth } from 'mastodon/utils/scrollbar';
import Base from 'mastodon/components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './m... |
examples/passing-props-to-children/app.js | jamiehill/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
pootle/static/js/shared/components/FormValueInput.js | Finntack/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import autosize from 'autosize';
import React from 'react'... |
node_modules/@material-ui/core/es/Select/Select.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import { mergeClasses } from '@material-ui/styles';
import SelectInput from './SelectInput';
import formC... |
docs/src/Root.js | yickli/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',... |
packages/koot/ReactApp/client/index.js | websage-team/super-project | import * as fullConfig from '__KOOT_PROJECT_CONFIG_PORTION_OTHER_CLIENT_PATHNAME__';
import React from 'react';
import { hydrate } from 'react-dom';
// import { syncHistoryWithStore } from 'react-router-redux'
import routerMatch from 'react-router/lib/match';
// -------------------------------------------------------... |
src/svg-icons/action/toll.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToll = (props) => (
<SvgIcon {...props}>
<path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5... |
src/components/LoadingScreen/LoadingIndicator.js | u-wave/web | import React from 'react';
import CircularProgress from '@mui/material/CircularProgress';
import WarningIcon from '@mui/icons-material/Warning';
function LoadingIndicator() {
return (
<div className="LoadingIndicator">
<CircularProgress className="LoadingIndicator-loader" />
<div className="LoadingIn... |
src/components/App.js | janimattiellonen/discgolfresults | import React from 'react';
import Router, {RouteHandler} from 'react-router';
import { connect } from 'react-redux';
export default class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div id="page-inner">
{this.props.ch... |
src/svg-icons/action/fingerprint.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFingerprint = (props) => (
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12... |
src/components/svg/HeartIcon.js | jslauthor/react-audio-component | import React from 'react';
import get from 'lodash/get';
const HeartIcon = props => (
<svg width="19px" height="16.36px" viewBox="0 0 19 16.36" {...props}>
<path fill-rule="evenodd" clip-rule="evenodd" fill="#CCCCCC" className={get(props, 'className', '')} d="M9.5,2.87C9.5,2.87,8.41,0,5.18,0C1.95,0,0,3.08,0,5.62
c... |
tests/components/PageTitle.spec.js | baopham/react-laravel-generator | import ReactDOM from 'react-dom'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import PageTitle from 'components/PageTitle'
describe('(Component) PageTitle', function () {
let _rendered, _props
beforeEach(function () {
_props = {
title: 'Page Title'
}
})
afterEach(fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.