path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/sentry/static/sentry/app/index.js | ifduyue/sentry | /* global module */
import {AppContainer} from 'react-hot-loader';
import {renderToStaticMarkup} from 'react-dom/server';
import * as Emotion from 'emotion';
import * as EmotionTheming from 'emotion-theming';
import * as GridEmotion from 'grid-emotion';
import JsCookie from 'js-cookie';
import PropTypes from 'prop-type... |
src/Menus/CameraAngleMenu.js | kevinleclair1/pitch_fx_visualizer | import React from 'react';
import { createSelector } from 'reselect';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import SwitchCamera from 'material-ui/svg-icons/image/switch-camera';
import MenuItem from 'material-ui/MenuItem';
import { white } from 'material-ui/style... |
src/index.js | abisnar/bizz | /* Styles */
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import './styles/styles.css';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
render(
<Router history={browserHisto... |
frontend/src/Settings/Notifications/Notifications/AddNotificationModalContentConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchNotificationSchema, selectNotificationSchema } from 'Store/Actions/settingsActions';
import AddNotificationModalContent from './AddNotificationMod... |
src/App.js | rodrigoBerlochi/react.workshop.morgana | 'use strict';
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
//flux app
import AppStore from './flux/main-store.jsx';
import UserActions from './flux/user-actions.jsx';
// flux utils
import { Container } from 'flux/utils';
//components
import Button from './components/b... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | RajeevG96/Portfolio-Website | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | reedsa/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
import { test, version } from 'test-integrity';
export default () => {
const ... |
demo/src/components/Row.js | RoyalIcing/react-organism | import React from 'react'
const style = {
display: 'flex',
flexDirection: 'row'
}
export default function Row({
children
}) {
return (
<div style={ style } children={ children } />
)
} |
client/modules/App/__tests__/Components/Footer.spec.js | Skrpk/mern-sagas | import React from 'react';
import test from 'ava';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { Footer } from '../../components/Footer/Footer';
Enzyme.configure({ adapter: new Adapter() });
test('renders the footer properly', t => {
const wrapper = shallow(
<... |
custom-webpack2/src/js/components/Clock.js | alexisbellido/node-tests | import React from 'react';
class Clock extends React.Component {
// Class components should always call the base constructor with props.
constructor (props) {
super(props);
this.state = {
date: new Date()
};
}
componentDidMount () {
this.timerID = setInterva... |
app/components/Navigation/index.js | ledminh/ledminh-home | /**
*
* Navigation
*
*/
import React from 'react';
import styled from 'styled-components';
import cuid from 'cuid';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import {switchMenu} from './actions';
import messages from './messages';
import Button from './button';
im... |
src/SparklinesSpots.js | geminiyellow/react-sparklines | import React from 'react';
export default class SparklinesSpots extends React.Component {
static propTypes = {
size: React.PropTypes.number,
style: React.PropTypes.object,
spotColors: React.PropTypes.object
};
static defaultProps = {
size: 2,
spotColors: {
... |
src/components/Reports.js | joelhelbling/spending-report | import React from 'react'
import ReportsCollection from './ReportsCollection'
import ReportsPagination from './ReportsPagination'
class Reports extends React.Component {
render() {
return (
<div>
<ReportsCollection reports={this.props.reports} />
<ReportsPagination />
</div>
)
}... |
src/components/App.js | michaltakac/mathworldvr | import React from 'react'
import { injectGlobal } from 'styled-components'
import {
Lights,
Sky,
VRScene,
LeftController,
RightController,
Plane,
} from 'components'
import { AttentionBox, Calculator, FunctionBox, ParametricFunction, SettingsPanel } from 'containers'
class App extends React.Component {
c... |
docs/app/Examples/collections/Grid/Content/GridExampleColumns.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleColumns = () => (
<Grid>
<Grid.Row>
<Grid.Column width={8}>
<Image src='/assets/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column width={8}>
<Image src='/assets/images/wirefra... |
src/modules/tools/IconSelectorPopup.js | san2beerelli/Eycon | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import GridItem from './grid/GridItem';
const faIconsArr = ["500px","address-book","address-book-o","address-card","address-card-o","a... |
view/advanced/course36.js | leechuanjun/TLReactNativeProject | /**
* Course 36
* React Native超棒的LayoutAnimation(布局动画)
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
import Util from '../utils';
var CustomLayoutAnimation = {
duration: 200,
create: {
type: LayoutAnimation.... |
src/components/AthletePreview.js | yahorzhylinski/zhylinski-me-cliend-side | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class AthletePreview extends React.Component {
render() {
return (
<Link to={`/athlete/${this.props.id}`}>
<div className="athlete-preview">
<img src={`img/${this.props.image}`}/>
<h2 c... |
packages/material-ui-icons/src/Shop.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Shop = props =>
<SvgIcon {...props}>
<path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z" />
</SvgIcon>;
Shop = pur... |
app/components/result/ResultHome.js | wp-wilsonperez/votos | import React from 'react';
class ResultHome extends React.Component {
constructor(props) {
super(props);
this.state = {total: 0, candidateState: false, share: false, msg: "Cargando..."};
}
componentWillMount() {
if(!this.state.candidateState) {
$.get('/candidatesTotal', (total) => {... |
client/src/pages/App/App.js | patferguson/solitaire-react | import React, { Component } from 'react';
import '../../css/global.scss';
class App extends Component {
render() {
return (
<div className="App">
{this.props.children}
</div>
);
}
}
App.propTypes = {
/**
* Collection of children components to render.
* @type {React.PropTypes.a... |
src/app/Layout.js | vinodronold/fivefrets-next | import React from 'react'
import { css } from 'glamor'
import { ThemeProvider } from 'glamorous'
import Theme from './constants/Theme'
import Header from './containers/Header'
import Footer from './components/Footer'
import Menu from './containers/Menu'
import MenuButton from './containers/MenuButton'
import Content fr... |
example/examples/CustomMarkers.js | adamivancza/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} 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... |
components/LibraryListEmptyState.js | react-community/native-directory | import React from 'react';
import Link from '../components/Link';
import { StyleSheet, css } from 'glamor/aphrodite';
export default () => {
return (
<div className={css(styles.container)}>
<img className={css(styles.img)} src="/static/notfound.png" width="64px" height="64px" />
<p>
Nothing ... |
src/components/form/col.js | BryceHQ/form-designer | import React from 'react';
import classnames from 'classnames';
import _ from 'lodash';
import Colors from 'material-ui/lib/styles/colors';
import InkBar from 'material-ui/lib/ink-bar';
import Actions from '../../actions/actions';
import Store from '../../stores/store';
import {spacing} from '../../theme';
const ... |
src/docs/components/checkbox/CheckBoxExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import CheckBox from 'grommet/components/CheckBox';
import InteractiveExample from '../../../components/InteractiveExample';
const PROPS_SCHEMA = {
label: { value: 'Sample label', initial: true },
toggle... |
src/modules/Components/Form/FormButton.js | rtellez700/MESA_Connect_2.0 | import React from 'react';
class FormButton extends React.Component {
render() {
return (
<div></div>
);
}
}
module.exports = FormButton
|
src/components/load-more/index.js | bjarneo/giggle | import React from 'react';
import styles from './style';
export default ({ action, page, isFetching }) => (
<div
className={ styles.loadmore }
onClick={() => action(page)}
style={isFetching ? { display: 'none' } : { display: 'block' }}
>
Load more
</div>
);
|
website/src/pages/help/index.js | blitze/phpBB-ext-sitemaker | import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import Translate from '@docusaurus/Translate';
import Hero from '../../components/Hero';
function Help() {
return (
<Layout title="Help">
<Hero>
<h2>
<Translate>Need help?</Translate>
</h2>
<p>
... |
ios_ReactSideMenu/app/components/navigation-buttons/NavigationBackButton.js | mitrais-cdc-mobile/react-pocs | "use strict";
import React, { Component } from 'react';
import {
Image,
PropTypes,
StyleSheet,
TouchableOpacity,
View
} from 'react-native';
const styles = StyleSheet.create({
button: {
marginTop: 15,
marginLeft: 15
}
});
/**
* Custom JSX Tag for rendering navigati... |
app/components/Seat/ButtonInvite.js | acebusters/ab-web | /* Replaced by ButtonOpenSeat until Invite process is complete */
import React from 'react';
import PropTypes from 'prop-types';
import {
ButtonIcon,
ButtonStyle,
ButtonText,
ButtonWrapper,
SeatWrapper,
} from './styles';
const ButtonInvite = ({ coords, onClickHandler }) => (
<SeatWrapper className="seat-w... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | arusakov/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
src/components/video_list_item.js | dcpete/qtube-react | import React from 'react';
import { Media } from 'react-bootstrap';
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li
onClick={() => onVideoSelect(video)}
className="list-group-item"
>
<Media>
<Media.Left>
... |
src/packages/@ncigdc/modern_components/ProjectPrimarySitesTable/ProjectPrimarySitesTable.model.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import { RepositoryFilesLink } from '@ncigdc/components/Links/RepositoryLink';
import { Th, Td, ThNum } from '@ncigdc/uikit/Table';
import { makeFilter } from '@ncigdc/utils/filters';
import CollapsibleList from '@ncigdc/uikit/CollapsibleList';
import withData from '@ncigdc/modern... |
frontend/src/components/icons/Pencil.js | webrecorder/webrecorder | import React from 'react';
function PencilIcon() {
return (
<svg width="8px" height="8px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g transform="translate(-1403.000000, -189.000000)" fill="#3E3E3E">
... |
modules/Link.js | frankleng/react-router | import React from 'react'
import warning from 'warning'
const { bool, object, string, func } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEmptyObject(obj... |
backend/modules/content/src/main/browser/views/Event/Item/Edit.js | savantly-net/sprout-platform | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux'
import {selectRoot, resetSubmissions, saveSubmission, Form, selectError, Errors} from 'react-formio';
import {push} from 'connected-react-router';
import Loading from '../../../containers/Loading'
const Edit = class ext... |
src/components/App.js | bokjo/advanced-react | import React, { Component } from 'react';
import ArticleList from './ArticleList';
import PropTypes from 'prop-types';
class App extends Component {
static childContextTypes = {
store: PropTypes.object,
};
getChildContext() {
return {
store: this.props.store
};
}
stat... |
src/containers/Word.js | fracasula/react-redux-jest-boilerplate | import React from 'react';
import ReduxComponent from './ReduxComponent';
import {Link} from 'react-router-dom';
import {fetchWordDefinitions} from './../actions';
class Word extends ReduxComponent {
static ucfirst = (s) => {
return s.charAt(0).toUpperCase() + s.slice(1);
};
get word() {
r... |
node_modules/react-router/es6/IndexRoute.js | rakshitmidha/Weather_App_React | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/ui/no-contributions-grid.js | jrm2k6/contwidgetor-ui | import React from 'react';
var NoContributionsGrid = React.createClass({
render: function() {
let _styles = this.getStyles();
return (
<div style={_styles.container}>
No Contributions Found!
</div>
);
},
getStyles: function() {
return... |
fields/types/color/ColorField.js | geminiyellow/keystone | import ColorPicker from '@jedwatson/react-color';
import Field from '../Field';
import React from 'react';
import { FormInput, InputGroup } from 'elemental';
const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches'];
const TRANSPARENT_BG =
`<svg width="24" height="24" viewBox=... |
components/common/airtable-form.js | coderplex/coderplex | import React from 'react';
import Head from 'next/head';
import styled from 'react-emotion';
import Layout from './layout';
export default ({ formId, height }) => {
return (
<Layout>
<Head>
<script src="https://static.airtable.com/js/embed/embed_snippet_v1.js" />
</Head>
<IframeContain... |
fields/types/relationship/RelationshipColumn.js | joerter/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
src/pages/projects.js | aravindballa/website2017 | import React from 'react';
import { Link, graphql } from 'gatsby';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
class BlogIndex extends React.Component {
render() {
const { data } = this.props;
const posts = data.allMdx.edges;
return (
<Layout location={this.pro... |
src/components/ReplStatusBar.js | princejwesley/Mancy | import React from 'react';
import {shell} from 'electron';
import ReplPreferencesActions from '../actions/ReplPreferencesActions';
import ReplStatusBarStore from '../stores/ReplStatusBarStore';
import ReplCommon from '../common/ReplCommon';
import _ from 'lodash';
export default class ReplStatusBar extends React.Compo... |
src/svg-icons/av/fiber-dvr.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
examples/flux-utils-todomvc/js/app.js | chenrui2014/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
src/js/components/Pagination/stories/Simple.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, Pagination, Text } from 'grommet';
import { grommet } from 'grommet/themes';
export const Simple = () => (
<Grommet theme={grommet}>
<Box align="start" pad="small" gap="medium">
<Box>
<Text>Default</Text>
<Pagination numberItems={237} />
... |
imports/ui/pages/Miscellaneous/Vision/Vision.js | haraneesh/mydev | import React from 'react';
import { Row, Col } from 'react-bootstrap';
import './Vision.scss';
const Vision = () => (
<div className="Vision">
<div className="Page">
<div className="panel panel-default">
<div className="panel-body">
<div className="PageHeader">
<div className... |
my-webpage/src/components/main.js | fabiangom/WebPageReactJs | import React from 'react';
import '../font-awesome-4.7.0/css/font-awesome.css';
export default class Cuerpo extends React.Component{
render() {
return (
<main className="main-content">
<div className="main-top">
<p className="main-title"><strong>Biblioteca de documentos oficiales del I... |
docs/src/examples/views/Statistic/Content/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const Content = () => (
<ExampleSection title='Cont... |
cerberus-dashboard/src/components/SecureDataBrowser/SecureDataBrowser.js | Nike-Inc/cerberus-management-service | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/components/DropOption/DropOption.js | 102010cncger/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Dropdown, Button, Icon, Menu } from 'antd'
const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps }) => {
const menu = menuOptions.map(item => <Menu.Item key={item.key}>{item.name}</Menu.Item>)
return (<Dropdown
over... |
app/src/pages/HomePage/index.js | karatechops/bhamc | import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
import Paragraph from 'components/Paragraph';
import Announcements from 'containers/Announcements';
import * as AnnouncementsActions from 'containers/Announcements/actions';
import * as ... |
musical/src/Simon.js | dmeredith96/MadHacks2017 | import React, { Component } from 'react';
import './Simon.css';
import RoomInfo from './RoomInfo.js';
import { joinRoom, createRoom, hostSubmitSelection, userSubmitSelection } from './Api';
import { ToastContainer, toast } from 'react-toastify';
import $ from 'jquery';
import Button from 'muicss/lib/react/button';
impo... |
scripts/apps/search/components/fields/highlights.js | gbbr/superdesk-client-core | import React from 'react';
import PropTypes from 'prop-types';
import {HighlightsInfo} from '../index';
export function highlights(props) {
return React.createElement(HighlightsInfo, angular.extend({
key: 'highlights'
}, props));
}
highlights.propTypes = {
// item is passed through to HighlightsIn... |
src/views/Components/TimelineCard/TimelineCard.js | corbinpage/react-play | import React, { Component } from 'react';
import styles from './timelineCard.css';
import { Collapse } from 'reactstrap';
class Timeline extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
block: props.block,
collapse: true,
invert... |
src/components/issue-event-list-item.component.js | Antoine38660/git-point | import React, { Component } from 'react';
import { Text } from 'react-native';
import { Icon as BaseIcon } from 'react-native-elements';
import { colors, fonts, normalize } from 'config';
import { InlineLabel } from 'components';
import styled from 'styled-components/native';
import { relativeTimeToNow } from 'utils';... |
packages/web/examples/MultiDropdownRange/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
MultiDropdownRange,
ResultCard,
SelectedFilters,
ReactiveList,
} from '@appbaseio/reactivesearch';
import './index.css';
const Main = () => (
<ReactiveBase
app="good-books-ds"
url="https://a03a1cb71321:75b6603d-9456-4a5a-af... |
app/components/Footer/index.js | koolkt/react-coloc | import React from 'react';
import A from 'components/A';
import styles from './styles.css';
function Footer() {
return (
<footer className={styles.footer}>
<section>
<p>This project is licensed under the MIT license.</p>
</section>
<section>
<p>Made with love by <A href="https:... |
examples/todomvc/index.js | alucic/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
frontend/src/app/containers/NotFoundPage.js | 6a68/testpilot | import React from 'react';
import View from '../components/View';
export default class NotFoundPage extends React.Component {
render() {
return (
<View centered={true} showNewsletterFooter={false} showFooter={false} showHeader={false}
{...this.props}>
<div id="not-found-page">
... |
src/modules/Rooms/components/Chat/ChatIconButton.js | hdngr/mantenuto | import React from 'react';
import PropTypes from 'prop-types';
const ChatIconButton = (props) => {
const styles = require('./Chat.scss');
return (
<div className={styles.ChatIconContainer}>
<button onClick={props.toggleChat}>
<i className="fa fa-comments-o fa-3x" aria-hidden="true" />
</bu... |
app/containers/HomePage/index.js | Budaa/coding_test | import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import AppNav from 'components/AppNav';
import AppFooter from 'components/AppFooter';
import InfoContainer from 'components/InfoContainer';
import Prompts from 'components/Prompts';
import ProvidersLis... |
app/questions/component.js | Grokling/react-proof-of-concept | import { add, clear, fetchAll } from './actions';
import { connect } from 'react-redux';
import React, { Component } from 'react';
class Add extends Component {
onSubmit(event) {
event.preventDefault();
this.props.add(this.refs.name.value);
this.refs.name.value = '';
}
render() {
return (
... |
src/components/common/icons/EditIcon.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
const EditIcon = props => (
<div className="app-icon app-icon-edit" style={{ backgroundColor: props.backgroundColor }}>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width... |
modules/core/client/components/Switch.js | Trustroots/trustroots | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default function Switch({ checked, children, onChange, isSmall }) {
// Angular Directive supports also `tr-switch-right` CSS class
return (
<label
className={classnames('tr-switch', {
'tr-sw... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | nguyenhongson03/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import classnames from '... |
themes/genius/Genius 2.3.1 Bootstrap 4/React_Full_Project/src/components/Aside/Aside.js | davidchristie/kaenga-housing-calculator | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Progress } from 'reactstrap';
import classnames from 'classnames';
class Aside extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '1'
... |
src/components/ShareExperience/InterviewForm/index.js | chejen/GoodJobShare | import React from 'react';
import R from 'ramda';
import Helmet from 'react-helmet';
import { scroller } from 'react-scroll';
import { Heading } from 'common/base';
import SubmitArea from '../../../containers/ShareExperience/SubmitAreaContainer';
import styles from './InterviewForm.module.css';
import InterviewInfo ... |
admin/client/App/screens/Home/components/Section.js | rafmsou/keystone | import React from 'react';
import getRelatedIconClass from '../utils/getRelatedIconClass';
class Section extends React.Component {
render () {
const iconClass = this.props.icon || getRelatedIconClass(this.props.id);
return (
<div className="dashboard-group" data-section-label={this.props.label}>
<div class... |
Jest/Enzyme/public/components/Index/index.js | hugonasciutti/Exercises | import React, { Component } from 'react';
class Index extends Component {
deleteItem(item, position) {
return item.split(position, 1);
}
render() {
const items = ['one', 'two', 'three'];
return (
<div>
<h1 id="title">Index Title</h1>
{items.map((item, index) => <h2 key={`item-${... |
node_modules/react-bootstrap/es/Radio.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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 ... |
docs/src/NavMain.js | pombredanne/react-bootstrap | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';
const NAV_LINKS = {
'introduction': {
link: '/introduction.html',
title: 'Introduction'
},
'getting-started': {
link: '/getting-started.html',
title: 'Getting st... |
examples/fiber/debugger/src/App.js | chippieTV/react | import React, { Component } from 'react';
import Draggable from 'react-draggable';
import ReactNoop from '../../../../build/packages/react-noop-renderer';
import ReactFiberInstrumentation from '../../../../build/packages/react-noop-renderer/lib/ReactFiberInstrumentation';
import Editor from './Editor';
import Fibers fr... |
packages/ringcentral-widgets/components/NotificationSectionV2/index.js | ringcentral/ringcentral-js-widget | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus';
import callDirections from 'ringcentral-integration/enums/callDirections';
import CloseIcon from '../../assets/images/CloseIco... |
app/components/BlogFooter/index.js | SakuB/Individual_website | import React, { Component } from 'react';
import {
Footer,
Parea,
SvgIcon,
Text,
} from './styledComponents';
import './iconfont.js';
class BlogFooter extends Component {
render() {
return (
<Footer>
<Parea>
<SvgIcon>
<use href="#icon-github"></use>
</SvgIco... |
src/components/structures/login/PostRegistration.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
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 in writing, sof... |
app/index.js | shinetimes/desktop-fairy | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
src/routes.js | miketamis/locationPositioning | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
js/components/login/index.js | Rebaiahmed/Alchaaer |
import React, { Component } from 'react';
import { Image,AsyncStorage,Easing,Animated,TouchableHighlight,
TouchableWithoutFeedback,NetInfo,TouchableOpacity} from 'react-native';
import { connect } from 'react-redux';
import { Container, Content, Button, View, Text,
Form, Item, Input,Label,Toast,H3,Header, Left, Body... |
src/routes/UIElement/dataTable/index.js | mapengze/Antd-Backstage | import React from 'react'
import { DataTable } from '../../../components'
import { Table, Row, Col, Card, Select } from 'antd'
class DataTablePage extends React.Component {
constructor (props) {
super(props)
this.state = { filterCase: {
gender: '',
} }
}
handleSelectChange = (gender) => {
... |
examples/NavigationPlayground/js/Banner.js | kkamperschroer/react-navigation | /* @flow */
import React from 'react';
import {
Image,
Platform,
StyleSheet,
Text,
View,
} from 'react-native';
const Banner = () => (
<View style={styles.banner}>
<Image
source={require('./assets/NavLogo.png')}
style={styles.image}
/>
<Text style={styles.title}>React Navigation E... |
src/svg-icons/maps/local-atm.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
js/components/TanksInAlert.js | msldiarra/signals-ui | import React from 'react';
import Relay from 'react-relay';
import AlertBar from './AlertBar'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
class TanksInAlert extends React.Component {
render() {
var bars = this.props.tanks.tanksInAlert.edges.map(function(edge){
retu... |
src/components/Home.js | binora/the-wed-app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
TouchableHighlight,
TouchableOpacity,
Image
} from 'react-native';
import ScrollableTabView, { ScrollableTabBar } from 'react-native-scrollable-tab-view'
import LinearGradient from 'react-native-linear-gradient';
import... |
src/containers/navbar-container.js | meikooy/sotakuva-webapp | import React from 'react';
import {connect} from 'react-redux';
import Component from '../components/layout/navbar';
import {inputChange, search} from '../modules/global-search/actions';
import {getSearchText} from '../modules/global-search/selectors';
import {goTo, navigate} from '../modules/navigation/actions';
impor... |
app/javascript/mastodon/features/status/index.js | rutan/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '..... |
packages/mineral-ui-icons/src/IconSwitchCamera.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSwitchCamera(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
components/time-picker/select.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-21 09:58:00
* @Last modified by: yzf
* @Last modified time: 2017-06-21 09:58:14
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDom from 'react-dom';
import classnames from 'classnames';
const scrollTo = (element... |
torrentula/app/src/js/src/ui/download-item/download-item.js | projectnfx/projectnfx.github.io | //Contains name, hash, progress, stats
import React, { Component } from 'react';
import TorrentActions from '../../actions/download-actions';
import ReactInStyle from 'react-in-style';
import prettyBytes from 'pretty-bytes';
import TorrentInfo from '../torrent-info'
import HttpInfo from '../http-info';
class Download... |
plugins/react/frontend/utils/getControl.js | pure-ui/styleguide | /**
* getControl
*
* @param {object} propType The propType we want the control for
* @return {component} The rendered control for the propType
*/
import React from 'react';
import has from 'lodash/has';
import DummyControl from '../components/controls/base/DummyControl';
import defaultControls from '../com... |
react/features/chat/components/web/MessageContainer.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { MESSAGE_TYPE_REMOTE } from '../../constants';
import AbstractMessageContainer, { type Props }
from '../AbstractMessageContainer';
import ChatMessageGroup from './ChatMessageGroup';
/**
* Displays all received chat messages, grouped by sender.
*
* @augments Abstrac... |
wechat/index.ios.js | Mr7Cat/react-native-wechat | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class wechat extends Component {
render() {
return (
<View style={styles.container}>
... |
src/parser/warrior/protection/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Abelito75 } from 'CONTRIBUTORS';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import SPECS from 'game/SPECS';
import { TooltipElement } from 'common/Tooltip';
import Warning from 'interface/Alert/Warning';
import CHANGELOG from './CHANGELOG';
expor... |
fields/types/datetime/DatetimeField.js | wmertens/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
examples/with-apollo/components/PostUpvoter.js | callumlocke/next.js | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
function PostUpvoter ({ upvote, votes, id }) {
return (
<button onClick={() => upvote(id, votes + 1)}>
{votes}
<style jsx>{`
button {
background-color: transparent;
border: 1px s... |
components/footer.js | jsis/jsconf.is | import React from 'react'
import classNames from 'classnames'
import { companies, sponsors } from '../data/sponsors'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
const SponsorBox = ({ website, name, image }) => {
const logoSrc = require(`../images/sponsors/${image}`)
return (
... |
pootle/static/js/auth/components/PasswordResetForm.js | Avira/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.
*/
'use strict';
import assign from 'object-assign';
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.