path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/askBoard.js | melissa-c/Comms | 'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import ImgGallery from './imgGallery'
module.exports = class AskBoard extends React.Component {
constructor(props){
super(props)
}
render (){
return (
<div className="askBoard">
<div>I would like</div>
<div>
... |
src/client/react/user/views/Challenge/ChallengeResponse.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { graphql } from 'react-apollo';
import { Spinner, NonIdealState, Button, Intent } from '@blueprintjs/core';
import { getTeamResponses } from '../../../../graphql/response';
import NotificationToast... |
app/components/Github/Repos.js | zhentian-wan/ReactApp | import React from 'react';
import Router from 'react-router';
class Repos extends React.Component {
render() {
var repos = this.props.repos.map((repo, index) => {
return (
<li className="list-group-item" key={index}>
{repo.html_url && <h4><a href={repo.html_u... |
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js | rhaedes/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const styles = {
button: {
margin: 12,
},
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
to... |
packages/website/src/components/page/GitHubStarts.js | mucsi96/w3c-webdriver | import React from 'react';
import styled from 'styled-components';
const LineHeightReset = styled.div`
line-height: initial;
`;
const GitHubStarts = ({ id, url }) => (
<LineHeightReset>
<a
href={url}
className="github-button"
data-icon="octicon-star"
data-size="large"
data-show-c... |
entry_types/scrolled/package/src/contentElements/dataWrapperChart/DataWrapperChart.js | tf/pageflow | import React from 'react';
import {
ThirdPartyOptIn,
ThirdPartyOptOutInfo,
useContentElementLifecycle,
useContentElementEditorState,
useI18n,
Figure,
textColorForBackgroundColor
} from 'pageflow-scrolled/frontend';
import {features} from 'pageflow/frontend';
import {useIframeHeight} from './useIframeHeig... |
src/parser/mage/arcane/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Sharrq } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-3-14'),
changes: 'Updated spec compatibility to 8.1.5.',
contributors: [Sharrq],
},
{
date: new Date('2019-3-2')... |
app/components/shared/authentication-required.js | Spetastian/mage-kit-client |
import React from 'react';
import Router from 'react-router';
export default class AuthenticationRequired extends React.Component {
constructor(props){
super(props)
}
render () {
if(this.props.user.authenticated){
return (this.props.children)
}
return null
}
}
|
docs/app/Examples/elements/Step/Groups/StepExampleGroupShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { Step } from 'shengnian-ui-react'
const steps = [
{ key: 'shipping', icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
{ key: 'billing', active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' },
{ key: 'confirm', ... |
demo/DemoItem.js | xadn/react-infinite-scroll | import React from 'react';
import Chance from 'chance';
const chance = new Chance();
const style = {
border: '1px solid black',
};
class DemoItem extends React.Component {
constructor(props) {
super(props);
this.state = {
text: chance.sentence({words: chance.natural({min: 1, max: 40})})
};
}
... |
client/src/page/tag-post.js | grumoon/GruBlog | /**
* Created by grumoon on 16/8/30.
*/
import React from 'react'
import {Card, Row, Col, Tag as AntTag} from 'antd';
import $ from 'jquery';
import {Link} from 'react-router'
import {Utils, Constants} from '../lib/common.js'
import {PostList} from '../component/post-list.js'
export class TagPostPage extends React... |
src/components/NotFound.js | shirazs/react-demo | /*
Not Found
*/
import React from 'react';
class NotFound extends React.Component {
render() {
return (
<div className="error-page clearfix">
<div className="skycom-9">
<h1 className="smaller">The page you're looking for could not be found</h1>
<p>The link you used may be out of... |
src/client/components/Radio.js | hisener/pirate-radio | import React from 'react'
import PropTypes from 'prop-types'
import { Card, CardActions, CardHeader } from 'material-ui/Card'
import CircleMediaPlayer from './CircleMediaPlayer'
/**
* Radio Component that contains information about radio and its player.
* @param {string} id tunein id of the radio
* @param {string}... |
app/components/Layout/index.js | rayrw/skygear-apitable | /* @flow */
import React from 'react';
import Notification from 'containers/Notification';
import Wrapper from './Wrapper';
import Header from './Header';
import Footer from './Footer';
type LayoutProps = {
title: string,
hideHeader?: boolean,
hideFooter?: boolean,
children: mixed
}
const Layout = ({ title,... |
src/components/index_set_search.js | trihpham/flashcard-webapp | import React, { Component } from 'react';
import { Menu, Segment, Button, Divider } from 'semantic-ui-react';
import SearchBar from './search_bar';
import Paginate from './paginate';
import FlashcardSetList from './flashcard/flashcard_set_list';
import { connect } from 'react-redux';
import { Link } from 'react-router'... |
src/components/layout/routed-header-tabs.js | beldur/colorful-learningcards | // @flow
import React from 'react'
import { connect } from 'react-redux'
import { HeaderTabs } from 'react-mdl'
import { push } from 'connected-react-router'
const RoutedHeaderTabs = ({ children, location, dispatch, push, ...props }) => {
const activeTab = children.reduce((result, child, index) => {
if (child.p... |
src/middleware.js | xgqfrms-GitHub/universal-react-redux | import React from 'react';
import { renderToString } from 'react-dom/server';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { match, RouterContext } from 'react-router';
import reducers from './reducers';
import routes from './routes';
export default (req, res) => {
match({ ro... |
tests/format/flow-repo/react_modules/es6class-proptypes-module.js | rattrayalex/prettier | /* @flow */
import React from 'react';
class Hello extends React.Component<void, {name: string}, void> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
tests/react_native_tests/test_data/native_code/SVGComponent/app/components/Artboard/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import CardStyleComponent from '../CardStyleComponent'
import CardWithTouchable from '../CardWithTouchable'
import Ibhubs from '../../icons/Ibhubs'
import SvgCompone... |
src/auth/screens/privacy-policy.screen.js | gitpoint/git-point | import React, { Component } from 'react';
import styled from 'styled-components';
import { ScrollView } from 'react-native';
import { ViewContainer } from 'components';
import { t } from 'utils';
import { colors, fonts, normalize } from 'config';
const Container = styled.View`
flex: 1;
padding: 15px;
`;
const Ti... |
packages/ui-toolkit/src/styleguide/gutter.js | yldio/joyent-portal | import React from 'react';
export default ({ style, ...props }) => (
<svg
width="47"
style={{
borderRight: '1px solid #494949',
borderLeft: '1px solid #494949',
position: 'absolute',
zIndex: 0,
top: 0,
...style
}}
{...props}
height="100vh"
viewBox="0 0 47 7... |
app/javascript/mastodon/features/ui/components/embed_modal.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage, injectIntl } from 'react-intl';
import api from '../../../api';
export default @injectIntl
class EmbedModal extends ImmutablePureComponent {
static propTypes... |
src/main.js | davecarlson/reacty | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import makeRoutes from './routes'
import Root from './containers/Root'
import configure... |
src/CreateScene.js | GelaniNijraj/Hovert | import React from 'react';
import $ from 'jquery';
import Materialize from 'materialize-css';
import CreateFab from './components/CreateFab';
import ResumeForms from './components/ResumeForms';
class CreateScene extends React.Component {
constructor(props){
window.$ = window.jQuery = $;
super(props);
th... |
src/index.js | ustccjw/react-redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, connect } = createAll(React);
|
draft-js-plugins-editor/src/Editor/index.js | koaninc/draft-js-plugins | /* eslint-disable no-continue,no-restricted-syntax */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Editor,
EditorState,
DefaultDraftBlockRenderMap,
} from 'draft-js';
import { List, Map } from 'immutable';
import MultiDecorator from './MultiDecorator';
import createCompos... |
docs/app/Examples/elements/Button/Content/ButtonExampleMultipleConditionals.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleMultipleConditionals = () => (
<Button.Group>
<Button>One</Button>
<Button.Or />
<Button>Two</Button>
<Button.Or />
<Button>Three</Button>
</Button.Group>
)
export default ButtonExampleMultipleConditionals
|
src/components/Register.js | thinq4yourself/simply-social-in | import Footer from './Footer';
import { Link } from 'react-router-dom';
import ListErrors from './ListErrors';
import React from 'react';
import api from '../services/api';
import { connect } from 'react-redux';
import {
UPDATE_FIELD_AUTH,
REGISTER,
REGISTER_PAGE_UNLOADED
} from '../constants/actionTypes';
import... |
src/components/ToolBar/index.js | mother/oio | import PropTypes from 'prop-types'
import React from 'react'
import styles from './styles.less'
const Toolbar = ({ children }) => (
<div className={styles.toolbar}>{children}</div>
)
Toolbar.propTypes = {
children: PropTypes.node
}
export default Toolbar
|
src/components/hero/info/DamageProtection.js | DragonLegend/game | import React from 'react';
import { connect } from 'react-redux';
function select(state) {
return { hero: state.hero };
}
export default connect(select)(({ hero }) => (
<div className="uk-panel uk-panel-box">
<h3 className="uk-panel-title">Damage & Protection</h3>
<div className="uk-grid">
<div cla... |
src/pages/pregnancy-newborn/PregnancyNewborn.js | RHoKAustralia/madapt-react-frontend | import React, { Component } from 'react';
import CardGrid from '../../components/cardgrid/CardGrid';
import Card from '../../components/card/Card';
import PregnancyIcon from '../../images/icons/pregnancynewborn/pregnancy-newborn.png'
import BirthIcon from '../../images/icons/pregnancynewborn/birth.png'
import Postnata... |
examples/shopping-cart/src/components/ProductsContainer.js | adrianleb/nuclear-js | import React from 'react'
import ProductItem from '../../common/components/ProductItem'
import ProductsList from '../../common/components/ProductsList'
import reactor from '../reactor'
import getters from '../getters'
import actions from '../actions'
const ProductItemContainer = React.createClass({
onAddToCartCli... |
modules/RouteUtils.js | neebz/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
src/components/explorer/builder/QueryForm.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { reduxForm, Field, propTypes, formValueSelector } from 'redux-form';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import 'codemirror/lib/codemirror.css... |
src/js/components/product_catalog/ProductTitle.js | abuKhadijah/my-retail-app | import React from 'react';
/**
* This component represent the title section
* @returns
*/
export const ProductTitle = ({ title }) =>
title && <span className="product-title">{ title } </span>;
|
src/containers/Consultas/consultaPrevisaoDiariaForm.js | MarceloProjetos/react-node-red |
import React, { Component } from 'react';
import {
OverlayTrigger,
Button,
Glyphicon,
Panel,
Col,
Row,
Grid,
FormGroup,
FormControl,
Table,
Checkbox,
Tooltip,
} from 'react-bootstrap';
import DatePicker from 'react-bootstrap-date-picker';
import uuid from 'node-uuid';
import { assign, ... |
app/components/splitter/index.js | vgno/getroc | import React from 'react';
import PropTypes from 'prop-types';
import styles from './style.scss';
export default class Splitter extends React.Component {
static propTypes = {
children: PropTypes.object.isRequired
}
render() {
return (
<div className={ styles.splitter }>
... |
test/usersRoute.js | derekyau/react-breadcrumbs | import React from 'react';
import { Route }from 'react-router';
import Breadcrumbs from '../index.jsx';
import test from 'tape';
var userlist = [
{id:"1", name:"John"},
{id:"2", name:"Rambo"},
];
var UserRoutes=[
{
"name": "Users",
"path": "/users",
"childRoutes": [
{
"name": "UserLoca... |
src/components/PlaytesterShortcuts.js | fateseal/react-mtg-playtester | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ShortcutManager, Shortcuts } from 'react-shortcuts';
import keymap from '../keymap';
import {
reset,
draw,
shuffle,
mulligan,
nextTurn,
untap,
incrementGameValue,
decrementGameV... |
docs/app/Examples/elements/Label/Types/LabelExampleRibbon.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image, Label, Segment } from 'semantic-ui-react'
const LabelExampleRibbon = () => (
<Grid columns={2}>
<Grid.Column>
<Segment raised>
<Label as='a' color='red' ribbon>Overview</Label>
<span>Account Details</span>
<Image src='http://semantic-... |
wangyi/src/index.js | fengnovo/webpack-react | import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
import reducer from './reducers'
import App from './containers/App'
const middleware = [ thunk... |
frontend/src/App/ColorImpairedContext.js | Radarr/Radarr | import React from 'react';
const ColorImpairedContext = React.createContext(false);
export const ColorImpairedConsumer = ColorImpairedContext.Consumer;
export default ColorImpairedContext;
|
winearb/static/react/js/article_list.js | REBradley/WineArb | import React from 'react';
import ReactDOM from 'react-dom';
import Grid from 'react-bootstrap/lib/Grid';
import { Article } from './articles.js';
function ArticleList(props) {
const articles = props.articles;
const list = articles.map((article) =>
<li key={article.date}><Article
... |
src/interface/icons/WarcraftLogs.js | fyruna/WoWAnalyzer | import React from 'react';
import Image from './images/WarcraftLogs-logo.png';
const icon = props => (
<img src={Image} alt="Warcraft Logs" className="icon" {...props} />
);
export default icon;
|
src/bundles/Collaborate/ProjectViewWidget.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import { Provider } from 'react-redux'
import RegisterComponent from '../../RegisterComponent'
import createStore from './redux/create'
import ProjectView from './components/ProjectView'
export const ProjectViewWidget = (props) => {
const store = createStore(props)
return (
<Provider... |
src/components/Feedback/Feedback.js | okmttdhr/setsuna | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.less';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedb... |
src/svg-icons/editor/format-clear.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatClear = (props) => (
<SvgIcon {...props}>
<path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>
</SvgIcon... |
hw8-frontend/src/index.js | MinZhou2016/comp531 | require('./styles.css')
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logger'
import { createStore, applyMiddleware } from 'redux'
import Reducer from './reducers'
import App fro... |
src/components/demo/sidebar_section.js | VictorQD/react-pdf-viewer | import React from 'react';
import SectionHeader from './section_header';
const SidebarSection = ({ headerPrimary, headerSecondary, className, children }) => (
<div className='sb-section fn fcn'>
<SectionHeader
primary={headerPrimary}
secondary={headerSecondary}
/>
<div className={`sb-body ${... |
src/Popover.js | bbc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for ac... |
packages/material-ui-icons/src/WbIridescent.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let WbIridescent = props =>
<SvgIcon {...props}>
<path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1.79 ... |
app/components/SearchBox/index.js | madHEYsia/Muzk | /**
*
* SearchBox
*
*/
import React from 'react';
import searchStyle from 'components/SearchBox/search.css'
// import styled from 'styled-components';
class SearchBox extends React.Component { // eslint-disable-line react/prefer-stateless-function
doSearch = e => {
// debugger;
console.log(e.target... |
src/svg-icons/navigation/refresh.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationRefresh = (props) => (
<SvgIcon {...props}>
<path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.... |
assets/scripts/app.js | bzhou/pyreact | /* jshint esversion: 6 */
/* jshint asi: true */
import React from 'react'
import ReactDOM from 'react-dom'
import update from 'react-addons-update'
import Toggle from 'react-toggle'
import 'react-toggle/style.css'
import 'whatwg-fetch';
class App extends React.Component {
constructor(props) {
super(prop... |
packages/react-dom/src/server/ReactPartialRenderer.js | jameszhan/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ThreadID} from './ReactThreadIDAllocator';
import type {ReactElement} from 'shared/ReactElementType';
imp... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | Exocortex/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id = 0, ...rest }) {
return [
{ id:... |
src/routes.js | lordakshaya/pages | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import {
App,
Chat,
Home,
Pages,
NotFound,
PageEditor,
Feed
} from 'containers';
export default (store) => {
const requireLogin = (nextState, replaceState, cb) => {
function checkAuth() {
const { auth: ... |
src/components/UserMediaLists.js | ratedali/desudesu | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Tabs, { Tab } from 'material-ui/Tabs';
import Hidden from 'material-ui/Hidden';
import MediaList from '../containers/MediaListContainer';
import { mediaListLabelFromType as mediaListLabe... |
src/js/admin/photos/photo-group/photo-group-bar/photo-group-bar.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import InputDialog from '$components/dialogs/input-dialog'
import PhotoGroupItem from '../photo-group-item'
import {
groupAddCancel,
groupAddConfirm,
groupOpeImgStateToggle,
groupShowAddDialog,
} from '$actions/photos'
import './photo-group-bar.... |
app/components/review/ReviewPagination.js | jendela/jendela | import Parse from 'parse'
import ParseReact from 'parse-react';
import React from 'react'
import Colors from '../../constants/JendelaColors'
const styles = {
pagination: {
background: Colors.green,
color: "#FFF"
}
}
class ReviewPagination extends React.Component {
render() {
const... |
webpack/scenes/Subscriptions/Details/SubscriptionDetailProductContent.js | mccun934/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Col, ListView } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import SubscriptionDetailProduct from './SubscriptionDetailProduct';
const SubscriptionDetailProductContent = ({ productContent }) => {
const li... |
examples/todomvc/index.js | raineroviir/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/ui/components/report_modal.js | Arukas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { refreshAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pr... |
client/modules/App/__tests__/Components/Footer.spec.js | openfocus/HTH-MERN | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
src/TimePicker/ClockMinutes.js | skarnecki/material-ui | import React from 'react';
import ClockNumber from './ClockNumber';
import ClockPointer from './ClockPointer';
import {getTouchEventOffsetValues, rad2deg} from './timeUtils';
class ClockMinutes extends React.Component {
static propTypes = {
initialMinutes: React.PropTypes.number,
onChange: React.PropTypes.fu... |
src/parser/warrior/arms/modules/talents/DefensiveStance.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/talents/warrior';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import StatisticBox, { STAT... |
source-frontend/src/Discover.js | Everstar/MusicRadio | /**
* Created by tsengkasing on 12/3/2016.
*/
import React from 'react';
var Discover = React.createClass({
getInitialState() {
return {discover_js: null};
},
componentWillMount: function() {
let discover_js = document.createElement('script');
discover_js.src = 'dynamic/js/discov... |
website/src/pages/time-range/index.js | plouc/nivo | import React from 'react'
import { ResponsiveTimeRange, timeRangeDefaultProps } from '@nivo/calendar'
import { generateDayCounts } from '@nivo/generators'
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
import meta from '../../data/components/time-range/meta.yml'
import mapper from '..... |
src/components/App.js | Vasyl1989/Opus.ua | import React from 'react';
import PropTypes from 'prop-types';
class App extends React.Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
App.propTypes = {
children: PropTypes.element
};
export default App;
|
docs/app/Examples/elements/Step/Content/StepExampleIcons.js | koenvg/Semantic-UI-React | import React from 'react'
import { Icon, Step } from 'semantic-ui-react'
const StepExampleIcons = () => (
<Step.Group>
<Step>
<Icon name='truck' />
<Step.Content>
<Step.Title>Shipping</Step.Title>
<Step.Description>Choose your shipping options</Step.Description>
</Step.Content>
... |
stories/table/index.js | JerryBerton/dh-component | import React from 'react';
import { storiesOf, action, linkTo, Icon } from '@kadira/storybook';
import TableDemo from './table.jsx';
import withReadme from 'storybook-readme/with-readme';
import tableReadme from './table.md';
storiesOf('表格组件', module)
.addDecorator(withReadme(tableReadme))
.addWithInfo('默认表格', ()... |
examples/vertical-bars/index.js | ronlobo/building-os-charts | import React from 'react';
import { TimeseriesChart } from 'building-os-charts';
import moment from 'moment';
require('../../src/index.scss');
const data = [{
'date': '2015-08-01T00:00:00Z',
'value': 268.70626
}, {
'date': '2015-08-02T00:00:00Z',
'value': 230.85989
}, {
'date': '2015-08-03T00:00:00Z',
'val... |
src/GoalInfoNavigation/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from '../Wrapper';
import Typography from '../Typography';
import IconAvaWrapper from '../IconAvaWrapper';
import styles from './styles.css';
function GoalInfoNavigation(props) {
return (
<Wrapper
className={styles.ou... |
helpers/intl-enzyme-test-helper.js | AlvinLaiPro/ref-decorator-component | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react'
import { IntlProvider, intlShap... |
src/index.js | chrisfisher/graph-editor | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import reducer from './reducers';
import App from './components/App';
import { ... |
src/views/NavBar/index.js | khankuan/asset-library-demo | import React from 'react';
import { resolve, context } from 'react-resolver';
import AltContainer from 'alt/AltContainer';
import Component from './component';
@context('alt')
@resolve('', ({ alt }) => {
const store = alt.getStore('Auth').getState();
if (store.authUser === undefined && store.meState !== 'PENDING'... |
app/src/App.js | WoundedPixels/us-population | // @flow
import React, { Component } from 'react';
import * as d3 from 'd3';
import { interpolateYlOrRd } from 'd3-scale-chromatic';
import ZoomableGroup from './components/ZoomableGroup/ZoomableGroup';
import CentroidCircleMap from './components/CentroidCircleMap/CentroidCircleMap';
import ColorScaleLegend from './c... |
actor-apps/app-web/src/app/components/Main.react.js | way1989/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from '../actions/VisibilityActionCreators';
import FaviconActionCreators from 'actions/FaviconActionCreators';
import FaviconStore from 'stores/FaviconStore';
import ActivitySection from 'components/ActivitySecti... |
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleButton.js | shengnian/shengnian-ui-react | import React from 'react'
import { Advertisement } from 'shengnian-ui-react'
const AdvertisementExampleButton = () => (
<Advertisement unit='button' test='Button' />
)
export default AdvertisementExampleButton
|
client/components/lists/annotation-item.js | CommonActionForum/liqen-face | import React from 'react'
import PropTypes from 'prop-types'
import ProgressBar from './progress-bar'
export default class SelectableAnnotation extends React.Component {
render () {
return (
<div>
<span className="badge badge-default">
# {this.props.tag}
</span>
<p classNa... |
app/javascript/mastodon/features/hashtag_timeline/index.js | imomix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshHashtagTimeline,
ex... |
src/core/display/App/DisplayOptions/index.js | JulienPradet/pigment-store | import React from 'react'
import {compose, withHandlers} from 'recompose'
import Size from '../util/View/HorizontalMenu/Size'
import Zoom from '../util/View/HorizontalMenu/Zoom'
import PresetList from '../util/View/HorizontalMenu/Preset'
import {getDisplayOptions} from './ContextProvider'
import {Container, Group} from... |
pootle/static/js/admin/app.js | electrolinux/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 'backbone-queryparams';
import 'bac... |
src/app/components/team/TeamPublicHeader.js | meedan/check-web | import React from 'react';
import Relay from 'react-relay/classic';
import PublicTeamRoute from '../../relay/PublicTeamRoute';
import teamPublicFragment from '../../relay/teamPublicFragment';
import TeamHeaderComponent from './TeamHeaderComponent';
const TeamPublicHeaderContainer = Relay.createContainer(TeamHeaderComp... |
src/shared/components/staffCard/staffCard.js | OperationCode/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './staffCard.css';
const StaffCard = ({
src, alt, name, role, twitter, email
}) => (
<div className={styles.staffCard}>
<img className={styles.img} src={src} alt={alt} />
<span className={styles.name}>
{name}
</span... |
src/js/components/icons/base/SocialSlack.js | odedre/grommet-final | /**
* @description SocialSlack SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
*... |
docs/src/pages/demos/snackbars/LongTextSnackbar.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import { SnackbarContent } from 'material-ui/Snackbar';
const action = (
<Button color="secondary" size="small">
lorem ipsum dolorem
</Button>
);
const style... |
app/javascript/mastodon/features/compose/components/search_results.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/sta... |
src/interface/icons/Uptime.js | yajinni/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/duration/370713/
// duration by Bohdan Burmich from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80" className="icon" {...other}>
<path d="M50,86.4865c17.4361,0,31.6216-14.1855,31.6216-31.... |
src/svg-icons/av/art-track.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | luwei2012/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
components/UI/HeroList.js | Dadidam/gladiator | import React from 'react';
import { Col } from 'react-bootstrap';
import Player from 'Player';
export default (props) => {
const _renderHeroList = () => {
return (
<div>
<Col md={12}>
<Player heroes={props.player.heroes} updatePlayer={props.updateHandler} />... |
renderer/components/Icon/ZapSolid.js | LN-Zap/zap-desktop | import React from 'react'
const SvgZapSolid = props => (
<svg height="1em" viewBox="0 0 13 20" width="1em" {...props}>
<path
d="M0 11.645h6.212L4.14 19.533l8.282-11.645H6.626L8.696 0z"
fill="currentColor"
fillRule="evenodd"
/>
</svg>
)
export default SvgZapSolid
|
modules/Route.js | iest/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
src/views/HomeView/HomeView.js | francocorreasosa/ClimaUY | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Text,
View,
Image,
ScrollView,
TouchableOpacity,
} from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import moment f... |
generators/advanced-base/templates/src/components/SecondaryFlatButton.js | bamlab/generator-rn-toolbox | // @flow
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import theme from 'theme';
import Button from './Button';
import type { Props } from './Button';
class SecondaryFlatButton extends Component<void, Props, void> {
render() {
return (
<Button
style={styles... |
src/index.js | ddcesare/REMGMT-Client | /* eslint-disable import/default */
import React from 'react'
import {render} from 'react-dom'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import routes from './routes'
import configureStore from './store/configureStore'
import MuiThemeProvider from 'material-ui/styles/... |
lib/Components/Hourly.js | becs919/weatherly | import React, { Component } from 'react';
import Date from './Date';
class Hourly extends Component {
render() {
return (
<section className='hourly-section'>
<Date { ...this.props.dateObject } />
<section className='hourly-forecast' title='hourly forecast for next seven hours'>
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/panorama-vertical.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71... |
src/parser/druid/restoration/modules/items/azeritetraits/GroveTending.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Mastery from 'parser/druid/restoration/modules/core/Mastery';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.