path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
website/core/WebPlayer.js | alin23/react-native | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
envkey-react/src/components/forms/user/org_role_select.js | envkey/envkey-app | import React from 'react'
import h from "lib/ui/hyperscript_with_helpers"
import {orgRoleLabel} from 'lib/ui'
export default function({
value,
onChange,
orgRolesAssignable,
isSubmitting
}){
const renderRoleOption = (orgRole, i)=> {
return h.option({key: i, value: orgRole}, orgRoleLabel(orgRole))
}
... |
assets/javascripts/kitten/components/form/radio-set/stories.js | KissKissBankBank/kitten | import React from 'react'
import { RadioSet } from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
component: RadioSet,
title: 'Form/RadioSet',
parameters: {
docs: {
page: () => <DocsPage filepath={__filename} importString="RadioSet" />,
},
},
decorators: [
story =... |
src/svg/ciamSVG.js | auth0/web-header | import React from 'react';
const ciamStyle = {
backgroundColor: '#C879B2',
width: 46,
height: 30,
display: 'inline-block',
color: '#F5F7F9',
borderRadius: 3,
textAlign: 'center',
fontSize: 12,
fontWeight: 500,
textTransform: 'uppercase',
padding: 7
};
const ciamSVG = () =>
<span style={ciamSty... |
src/view-header.js | mateim24/react-input-calendar | import React from 'react'
class ViewHeader extends React.Component {
static propTypes = {
next: React.PropTypes.func,
prev: React.PropTypes.func,
titleAction: React.PropTypes.func,
data: React.PropTypes.string
}
render() {
let prop = this.props
return (
... |
src/components/Modal/Modal.js | IanChuckYin/IanChuckYin.github.io | import React, { Component } from 'react';
import styles from './Modal.module.scss';
class Modal extends Component {
modalDomElement = null;
render() {
const { component, onCloseClick } = this.props;
return (
<div className={styles.Modal} ref={element => this.modalDomElement = ele... |
SocialStarter/app/FeedView.js | Monte9/react-native-social-starter | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Alert,
Image,
Dimensions,
ScrollView,
TouchableOpacity
} from 'react-native';
import { Card, Text, Button } from 'react-native-elements'
import Icon from 'react-native-vector-icons/MaterialIcons'
const { width, height } ... |
src/containers/ChannelDropdown/index.js | badT/twitchBot | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router';
import TweenMax from 'gsap/src/minified/TweenMax.min';
import { getChannels, setChannel, unsetChannel } from '../../actions/index';
import Logo from '../../co... |
src/svg-icons/social/notifications.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
packages/ringcentral-widgets/containers/ConferenceCallDialerPage/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connectModule } from '../../lib/phoneContext';
import BackButton from '../../components/BackButton';
import BackHeader from '../../components/BackHeader';
import DialerPanel from '../../components/DialerPanel';
import i18n from './... |
examples/Explorer/components/RightCorner.js | react-native-simple-router-community/react-native-simple-router | import React from 'react';
import {
Alert,
Image,
StyleSheet,
TouchableHighlight,
View,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
button: {
padding: 5,
marginRight: 5,
},
});
export default class RightCorner extends React.Component {
constructor... |
packages/react-instantsearch-dom/src/widgets/HitsPerPage.js | algolia/react-instantsearch | import { connectHitsPerPage } from 'react-instantsearch-core';
import HitsPerPage from '../components/HitsPerPage';
/**
* The HitsPerPage widget displays a dropdown menu to let the user change the number
* of displayed hits.
*
* If you only want to configure the number of hits per page without
* displaying a widg... |
tests/react_modules/es6class-proptypes-callsite.js | mroch/flow | /* @flow */
import React from 'react';
import Hello from './es6class-proptypes-module';
import type {Node} from 'react';
class HelloLocal extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}... |
lib/component-library-slides/Styling.js | RallySoftware/rally-present | import React from 'react';
import CodeBlock from '../components/CodeBlock';
const wtfSrc = require('./images/wtf.gif');
const cssCode = `render() {
return (
<div>
<span className="label">Name</span>
<input />
</div>
);
}`;
export default class Slide extends React.Component {
render() {
... |
src/svg-icons/action/reorder.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReorder = (props) => (
<SvgIcon {...props}>
<path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/>
</SvgIcon>
);
ActionReorder = pure(ActionReorder);
ActionReorder.displayName = 'Action... |
js/src/dapps/registry/ui/record-type-select.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.... |
src/components/SetupAssistant/SetupAssistantItem.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Button } from '../Button';
import { ProgressRing } from '../Progress';
import { MediaObject } from '../MediaObject';
import { SummaryDetail } from '../SummaryDetail';
const SetupAssistantItem = ({
children,
classNa... |
components/Deck/DeckLanguageMenu.js | slidewiki/slidewiki-platform | import React from 'react';
import PropTypes from 'prop-types';
import {defineMessages} from 'react-intl';
import {navigateAction} from 'fluxible-router';
import {connectToStores} from 'fluxible-addons-react';
import {flagForLocale} from '../../configs/locales';
import {getLanguageName} from '../../common';
import Uti... |
app/components/System.js | elct9620/TLM-Website | /**
* System Component
*/
import React from 'react'
export default class System extends React.Component {
render() {
return(
<section id="system" className="container section">
<h1 className="section-title small">遊戲系統</h1>
<div className="alert text-center">
... |
fields/types/geopoint/GeoPointField.js | vokal/keystone | import Field from '../Field';
import React from 'react';
import {
FormInput,
Grid,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = ... |
src/parser/mage/fire/modules/Checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules/... |
fields/types/markdown/MarkdownColumn.js | mikaoelitiana/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.Pr... |
js/components/Navbar/Navbar.react.js | ryantang333/dashboard-prototype | import React, { Component } from 'react';
import { connect } from 'react-redux';
const Sidebar = () => {
return (
<div id="navbar">
Hello.
</div>
);
};
// Which props do we want to inject, given the global state?
const select = (state) => ({ data: state });
// Wrap the component to inject dispatch a... |
src/components/common/ErrorMessage.js | brianyamasaki/rideshare | import React from 'react';
import { Text, View } from 'react-native';
const ErrorMessage = (props) => {
const { containerStyleDft, textStyleDft } = styles;
if (!props.children) {
return null;
}
return (
<View style={containerStyleDft}>
<Text style={textStyleDft}>
{props.children}
... |
blueocean-material-icons/src/js/components/svg-icons/maps/ev-station.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsEvStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14c0-1.1-.9-2-2-2h-1V5c0-1.1-.9-2... |
src/components/itemRow.js | antholord/poe-livesearch | /**
* Created by Anthony Lord on 2017-04-21.
*/
import React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import Mods from './mods'
import Image from "./image";
class ItemRow extends React.Component {
constructor(props){
super(props);
this.state = { copied : false};
... |
views/components/FormTextAreaUi.js | gvaldambrini/madam | import React from 'react';
// A form textarea presentational component.
export default React.createClass({
propTypes: {
handleChange: React.PropTypes.func.isRequired,
name: React.PropTypes.string.isRequired,
label: React.PropTypes.string.isRequired,
value: React.PropTypes.string,
formHorizontal:... |
docs/app/Examples/modules/Popup/Usage/PopupExampleClick.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Popup } from 'semantic-ui-react'
const PopupExampleClick = () => (
<Popup
trigger={<Button color='red' icon='flask' content='Activate doomsday device' />}
content={<Button color='green' content='Confirm the launch' />}
on='click'
position='top right'
/>
)
... |
src/svg-icons/av/music-video.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... |
website/src/components/edit-link.js | netlify/netlify-cms | import React from 'react';
import { css } from '@emotion/core';
function EditLink({ collection, filename }) {
return (
<div
css={css`
float: right;
a {
font-weight: 700;
}
#pencil {
fill: #7ca511;
}
`}
>
<a href={`/admin/#/edit/$... |
src/class/options/OptionsUtils.js | MrMamen/traktflix | import React from 'react';
import BrowserStorage from '../BrowserStorage';
import OptionsActionsCreators from './OptionsActionCreators';
class OptionsUtils {
constructor() {
this.options = [{
id: `disableScrobbling`,
name: ``,
description: ``,
value: false
}, {
id: `allowGoogleA... |
frontend/src/Components/Loading/LoadingIndicator.js | lidarr/Lidarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './LoadingIndicator.css';
function LoadingIndicator({ className, rippleClassName, size }) {
const sizeInPx = `${size}px`;
const width = sizeInPx;
const height = sizeInPx;
return (
<div
... |
app/viewControllers/components/unused/CountdownTicker.js | Evyy/cffs-ui | 'use strict';
import React from 'react';
import countdown from 'countdown';
class CountdownTicker extends React.Component {
constructor (props) {
super(props);
}
static propTypes = {
to: React.PropTypes.instanceOf(Date).isRequired
};
state = {
timeLeft: countdown(this.pr... |
src/routes/MyResource/components/MyResource.js | TheModevShop/craft-app | import React from 'react';
import {Link} from 'react-router';
import _ from 'lodash';
import AddResource from './AddResource/AddResource';
import ResourceContent from './ResourceContent/ResourceContent';
import AddConfig from './AddConfig/AddConfig';
import Dashboard from './Dashboard/Dashboard';
import ConfigContent f... |
src/client.js | mudetroit/rivalry | import React from 'react';
import ReactDOM from 'react-dom';
import {App} from './ui/app';
ReactDOM.render(<App />, document.getElementById('app'));
|
react/features/reactions/components/web/ReactionButton.js | gpolitis/jitsi-meet | /* @flow */
import React from 'react';
import { Tooltip } from '../../../base/tooltip';
import AbstractToolbarButton from '../../../toolbox/components/AbstractToolbarButton';
import type { Props as AbstractToolbarButtonProps } from '../../../toolbox/components/AbstractToolbarButton';
/**
* The type of the React {@c... |
app/javascript/mastodon/features/list_editor/components/search.js | PlantsNetwork/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
const messages ... |
app/javascript/mastodon/features/compose/containers/warning_container.js | kagucho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import { createSelector } from 'reselect';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { OrderedSet } f... |
app/components/calendar/Month.js | adrilo/headek | import React, { Component } from 'react';
import { Table } from 'react-bootstrap';
import Weekdays from './Weekdays';
import Week from './Week';
export default class Month extends Component {
render() {
let splittedWeeks = this.getSplittedWeeksData();
let tableStyle = {
backgroundCol... |
src/react/LogMonitorButton.js | hetony/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
src/ui/components/views/Page/PageLoading.js | belng/pure | /* @flow */
import React, { Component } from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import LoadingItem from '../Core/LoadingItem';
import Page from './Page';
export default class PageLoading extends Component<void, any, void> {
shouldComponentUpdate(nextProps: any, nextState: any): boole... |
src/server/modules/send-html.js | Noviel/osnova-react-environment | // Created by snov on 10.02.2017.
//
// Generates HTML based on Webpack bundle
//
//=========================================================================
import React from 'react';
import reactDOM from 'react-dom/server';
import App from '../../components/App';
import Html from '../../components/Html';
import { ... |
src/client/index.js | MrCheater/demo-counter | import React from 'react';
import App from './components/container/App';
import './styles.css';
export default function () {
return <App />;
}
|
tests/lib/rules/vars-on-top.js | ipanasenko/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
src/components/Helper/RandomAvatar.js | steem/qwp-antd | import React from 'react'
import styles from './avatar.less'
import _ from 'lodash'
class Avatar extends React.Component {
render() {
let c1 = _.random(0, 255)
let c2 = _.random(0, 255)
let c3 = _.random(0, 255)
let b1 = 255 - c1
let b2 = 255 - c2
let b3 = 255 - c3
let br1 = parseInt(c1 *... |
app/clients/next/components/pagination.js | garbin/koapp | import React from 'react'
import Paginate from 'react-paginate'
import { translate } from 'react-i18next'
export default translate(['common'])(class Pagination extends React.Component {
render () {
const { t } = this.props
return (
<Paginate containerClassName='pagination'
pageClassName='page-i... |
website/scripts/generate-headings.js | rofrischmann/fela | import { outputFileSync, readFileSync } from 'fs-extra'
import { join } from 'path'
import recursive from 'recursive-readdir'
import React from 'react'
import TestRenderer from 'react-test-renderer'
import MDX from '@mdx-js/runtime'
import { getFixedId, getId } from '../components/Heading'
function Heading({ level, ... |
node_modules/recompose/renderComponent.js | SerendpityZOEY/Fixr-RelevantCodeSearch | 'use strict';
exports.__esModule = true;
var _createHelper = require('./createHelper');
var _createHelper2 = _interopRequireDefault(_createHelper);
var _createEagerFactory = require('./createEagerFactory');
var _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);
function _interopRequireDefault(obj... |
app/components/Resume.js | jayteesanchez/website-v1 | import React from 'react';
import {Link} from 'react-router';
import ResumeStore from '../stores/ResumeStore'
import ResumeActions from '../actions/ResumeActions';
class Resume extends React.Component {
constructor(props) {
super(props);
this.state = ResumeStore.getState();
this.onChange = this.onChange.... |
app/components/Offline.js | lotgd/client-graphql-www | import React from 'react';
import Message from './parts/Message';
import ThreeColumnLayout from './parts/ThreeColumnLayout';
import Form from './../../src/Form';
class Offline extends React.Component {
onSubmit(type, state) {
state["type"] = type;
this.props.loginCallback(state);
}
rende... |
src/components/views/delegateProfile/components/RightBar.js | LiskHunt/LiskHunt | import React from 'react';
import SocialBar from './SocialBar';
import DonationBar from './DonationBar';
const RightBar = ({ social, donations }) => {
return (
<div className="right-bar column">
<SocialBar social={social} />
<DonationBar donations={donations} />
</div>
);
};
export default Rig... |
app_learn/src/containers/Tab1/cameraRollDemo.js | liuboshuo/react-native | /**
* Created by ls-mac on 2017/5/10.
*/
import React, { Component } from 'react';
import {
View,
StyleSheet,
TouchableOpacity,
Text
} from 'react-native';
import NavigationBar from '../../component/navBarCommon'
import back from './../../source/images/icon_back.png'
import * as Constants from '../../... |
js/app/categories/store.js | monetario/web |
'use strict';
import React from 'react';
import Reflux from 'reflux';
import API from '../../api';
import Actions from './actions';
import DEFAULT_PAGE_SIZE from '../../constants';
var Store = Reflux.createStore({
listenables: [
Actions
],
init() {
this.categories = [];
this.meta = {
"fir... |
components/BookDetailApp/BookDetail.react.js | react-douban/douban-book-web | import '../../semantic-ui/components/item.min.css';
import React from 'react'
import { render } from 'react-dom'
import { Items, Item, Content, Link, Image, Loader, List } from '../react-semantify'
const BookDetail = React.createClass({
render() {
const book = this.props.book;
return (
... |
server/sonar-web/src/main/js/apps/projects-admin/main.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
examples/huge-apps/routes/Calendar/components/Calendar.js | nhunzaker/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
src/components/actionIssueList/actionIssueRow.js | SwimmyApp/project-swimmy-mockup | import React from 'react';
import {observer} from 'mobx-react';
import DevTool from 'mobx-react-devtools';
@observer
export default class ActionIssueRow extends React.Component {
render() {
const { item } = this.props;
return (
<li>{ item.getName() }</li>
);
}
}
|
src/components/controls/stateful/TapAnimator.js | mm-taigarevolution/tas_web_app | import React from 'react';
import PropTypes from 'prop-types';
import {Motion, spring} from 'react-motion';
const WithTapAnimated = (Child, callback) => {
return class TapAnimator extends React.Component {
constructor(props) {
super(props);
this.state = {
isTapped: false
};
this.... |
app/shared/resource-list/ResourceList.js | fastmonkeys/respa-ui | import PropTypes from 'prop-types';
import React from 'react';
import ResourceCard from '../resource-card/ResourceCard';
function ResourceList({
date, emptyMessage, location, resourceIds, history,
}) {
function renderResourceListItem(resourceId) {
return (
<ResourceCard
date={date}
histo... |
app/components/CorporatePartnershipsSites/components/HeavyLightUsersStackedBar/index.js | tblazina/analytics_project | import React, { Component } from 'react';
import * as d3 from 'd3';
import _ from 'lodash'
import styles from './styles.css';
// import Axis from './Axis';
// import Legend from './Legend.jsx'
class Bars extends Component{
render(){
let translate = `translate(${this.props.x}, ${this.props.y})`
r... |
src/components/field-container.js | zapier/formatic | import React from 'react';
import fieldMixin from '@/src/mixins/field';
// A better way to add new field types vs the old mixins approach. This
// component abstracts away our ugly old mixins into a component with a render
// callback. That way, we can eventually deprecate the mixins and do a much
// grander refactor... |
src/index.js | PickaxeCMS/pickaxecms | import React from 'react';
import ReactDOM from 'react-dom';
// import { BrowserRouter as Router } from 'react-router-dom';
import {Routes} from './Routes';
import './index.css';
require('dotenv').config();
ReactDOM.render(
<div>
<Routes />
</div>
,
document.getElementById('root')
);
|
react-ui/src/containers/Intro.js | MaGuangChen/resume-maguangchen | import React from 'react';
const Intro = () => {
const paperPlane = {
position: 'relative',
left: '0.2rem',
}
return (
<div>
<header className="front">
<div className="front_logo">
<h1>Hi, my name is Paul Ma</h1>
<p>你好,我叫馬廣辰,我正在尋找f2e的工作</p>
... |
node_modules/react-router-dom/es/Link.js | charmainetham/charmainetham.github.io | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/routes.js | luanau/react-slingshot-pdps | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import FuelSavingsPage from './containers/FuelSavingsPage'; // eslint-disable-line import/no-named-as-default
import PdpsPage from './containers/PdpsPage.js'; /... |
assets/javascripts/kitten/components/navigation/floating-menu/stories.js | KissKissBankBank/kitten | import React from 'react'
import { FloatingMenu } from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Navigation/FloatingMenu',
component: FloatingMenu,
parameters: {
docs: {
page: () => (
<DocsPage filepath={__filename} importString="FloatingMenu" />
),... |
src/svg-icons/navigation/arrow-back.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowBack = (props) => (
<SvgIcon {...props}>
<path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/>
</SvgIcon>
);
NavigationArrowBack = pure(NavigationArrowBack);
NavigationArrowB... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | Jeremy-Meng/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
examples/CardSimple.js | react-materialize/react-materialize | import React from 'react';
import Card from '../src/Card';
import Col from '../src/Col';
export default
<Col m={6} s={12}>
<Card className='blue-grey darken-1' textClassName='white-text' title='Card title' actions={[<a href='#'>This is a link</a>]}>
I am a very simple card.
</Card>
</Col>;
|
src/icons/SocialFoursquareOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialFoursquareOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M398.484,164.452l-27.399,137.185C372.848,294.486,386.545,224.793,398.484,164.452z"></path>
<path d=... |
pootle/static/js/admin/app.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 'imports?Backbone=>require("backbone")!backbone-mov... |
app/main.js | mario2904/ICOM5016-Project | import React from 'react';
import { render } from 'react-dom';
import App from './App.js';
render(<App />, document.getElementById('app'));
|
src/client/components/AboutAsync/About.js | EdgeJay/web-starterkit | import React from 'react';
import PageHeader from '../PageHeader';
const About = () => (
<div>
<PageHeader>About This Repo</PageHeader>
<p>{`I created this repository to serve as a starter kit to assist me in kickstarting
new web app projects without the need of building from scratch or depend on vari... |
modules/RouteContext.js | ArmendGashi/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* 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 transitions.
*/
const RouteContext = {
prop... |
packages/cf-component-pagination/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import { Pagination, PaginationItem } from 'cf-component-pagination';
import Icon from 'cf-component-icon';
class PaginationComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
pages: 4,
active: 1
};
}
handleClickItem(page) {
... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | aimanaiman/supernomadfriendsquad | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
examples/simple/index.js | ganarajpr/react-node-tree | import React from 'react';
import App from './components/App';
React.render(
<App />,
document.getElementById('root')
);
|
docs/src/app/components/pages/components/Drawer/Page.js | pomerantsev/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 drawerReadmeText from './README';
import DrawerSimpleExample from './Exam... |
app/javascript/mastodon/features/ui/components/column_header.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
src/svg-icons/image/grid-off.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOff = (props) => (
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h... |
src/screens/authorized/home/contact/Conversation.js | anhtuank7c/simple-chat | import React, { Component } from 'react';
import {
View,
Text,
ListView,
Image,
ActivityIndicator
} from 'react-native';
import { connect } from 'react-redux';
import { GiftedChat } from 'react-native-gifted-chat';
import { findRoomByUser, sendMessage } from '../../../../actions';
class Conversatio... |
src/index.js | ShaoYiwei/React-gallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/components/Content.js | Kamyhin/organizer | import React from 'react';
import { Button } from "@blueprintjs/core";
import { getNewID } from '../utils'
const style = {
'width': {
width: '30%'
},
'padding': {
marginLeft: '10px'
}
};
const Content = ({ events, addEvent, clearEventsList, readAll, popoverOpen }) => {
let EventTi... |
src/svg-icons/hardware/tv.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
lib/Components/HourlyWeather.js | Kalikoze/weatherly | import React from 'react';
export const HourlyWeather = props => {
const weatherImage = props.weatherData.icon;
const image = `./lib/Assets/weather-condition-icons/${weatherImage}.svg`;
const temperature = props.weatherData.temp.english;
const hour = props.weatherData.FCTTIME.civil;
return (
<div classN... |
src/components/PostList.js | chee/blogs | import React from 'react'
import {Link} from 'react-router'
import Time from './Time'
const PostList = ({posts, unpublishedShown}) => (
<div>
{posts.map((post, index) => {
const {
slug,
title,
date,
published
} = post
if (!published && !unpublishedShown) return... |
src/index.js | victorditadi/IQApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoLista from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyBO-z8CQ8jz7I92JxAI-mwyIljz... |
src/app.js | asommer70/thehoick-notes-server | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link, browserHistory } from 'react-router'
import cookie from 'react-cookie';
import Notes from './components/notes';
import Note from './components/note';
import NoteForm from './components/note_form';
import Login fro... |
packages/react/src/components/forms/FeedbackForm/index.js | massgov/mayflower | /* eslint jsx-a11y/label-has-associated-control: 0 */
/**
* FeedbackForm module.
* @module @massds/mayflower-react/FeedbackForm
*/
import React from 'react';
import PropTypes from 'prop-types';
import CharacterCounter from 'react-character-counter';
import classNames from 'classnames';
import is from 'is';
import P... |
src/routes/app.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Layout } from '../components'
import { classnames, config, menu } from '../utils'
import { Helmet } from 'react-helmet'
import '../themes/index.less'
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.loc... |
App/config/Drawer/Drawer.js | araneforseti/caretaker-app | import React from 'react';
import { DrawerItems } from 'react-navigation';
import { ThemeProvider, Drawer as MuiDrawer, Avatar } from 'react-native-material-ui';
import theme from '../theme';
import styles from './styles';
export default function Drawer( { navigation, items, screenProps } ) {
const drawerItems = it... |
src/components/Workflow/WorkflowCard.js | Aloomaio/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import c from 'classnames';
import { Link } from 'react-router-dom';
const WorkflowCard = ({
collectionName,
title,
author,
authorLastChange,
body,
isModification,
editLink,
stagin... |
src/routes.js | lianwangtao/shanelian.com | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Ivenues from './Ivenues';
import Home from './components/Home';
const rootPath = '/';
const onRouteUpdate = function () {
let docElements = document.querySelectorAll('.article');
if (docElements.length > 0 ... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | zhy32008/webCMS | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
examples/server/store.js | reactjs/react-router-redux | import React from 'react'
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { routerReducer, routerMiddleware } from 'react-rout... |
react-graphql-webpack/src/components/withViewport.js | josedab/react-examples | /**
* 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, { Component } from 'react'; // eslint-disabl... |
server/node_modules/react-router/es/StaticRouter.js | Atanasov86/Car-System | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
frontend/eyeballing/src/components/Footer.js | linea-it/dri | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import { Typography, CardMedia } from '@material-ui/core';
import logo from '../assets/img/linea-logo-mini... |
docs/src/PageHeader.js | HPate-Riptide/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className="bs-docs-header" id="content">
<div className="container">
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
src/containers/RoomListPage.js | Destinia/Splendor | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import RoomList from '../components/RoomList.js';
import * as LobbyActions from '../actions/LobbyActions';
const RoomListPage = (props) => (
<div>
<RoomList {...props} />
</div>
);
const mapStateToPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.