path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/app/components/Paginations/index.js | cheton/cnc | import React from 'react';
import * as Paginations from '@trendmicro/react-paginations';
import '@trendmicro/react-paginations/dist/react-paginations.css';
import i18n from 'app/lib/i18n';
export const TablePagination = (props) => {
return (
<Paginations.TablePagination
{...props}
p... |
src/pages/chart/Recharts/AreaChartComponent.js | zuiidea/antd-admin | import React from 'react'
import { Row, Col, Card, Button } from 'antd'
import * as d3 from 'd3-shape'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts'
import Container from './Container'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
amt: 2400,
},
{
name... |
website/src/components/button.js | explosion/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Link from './link'
import Icon from './icon'
import classes from '../styles/button.module.sass'
export default function Button({
to,
variant = 'secondary',
large = false,
icon,
className,
ch... |
rojak-ui-web/src/app/media/PairingSentiments.js | pyk/rojak | import React from 'react'
import SimpleList from '../kit/SimpleList'
import styles from './PairingSentiments.css'
class PairingSentiments extends React.Component {
static propTypes = {
sentiments: React.PropTypes.array
}
static defaultProps = {
sentiments: []
}
render () {
const { sentiments } ... |
src/components/App/index.js | fedebertolini/json-editor | import React from 'react';
import { connect } from 'react-redux';
import { Container } from 'semantic-ui-react'
import JsonLoader from '../JsonLoader';
import Editor from '../Editor';
import ViewJsonModal from '../ViewJsonModal';
import { selectLoaded } from '../../store/selectors/saved';
import { isModalOpen } from '.... |
app/scripts/components/footerComponent.js | Pygocentrus/browserify-es6-react-boilerplate | import React from 'react';
let FooterComponent = React.createClass({
// propTypes: {
// itemsDoneCount: PropTypes.number.isRequired,
// itemsRemainingCount: PropTypes.number.isRequired,
// },
render: function() {
let clearCompletedButton;
// Show the "Clear X completed items" button only if th... |
server/sonar-web/src/main/js/apps/about/components/AboutQualityModelForSonarQubeDotCom.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
src/app/atoms/AtomPreview.react.js | blueberryapps/react-bluekit | import Component from '../PureRenderComponent.react';
import extendComponentProps from '../../libraries/extendComponentProps';
import filterFunctionProps from '../../libraries/filterFunctionProps';
import notResolved from '../../libraries/notResolved';
import Radium from 'radium';
import React from 'react';
import RPT ... |
src/svg-icons/device/battery-charging-80.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
packages/plugins/i18n/admin/src/components/ModalCreate/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { useRBACProvider, Form } from '@strapi/helper-plugin';
import {
ModalLayout,
ModalHeader,
ModalBody,
ModalFooter,
} from '@strapi/design-system/ModalLayout';
import { TabGroup, Tabs, Tab, TabPanels, TabPanel } from '@strapi/design-system/Tab... |
src/icons/BluetoothIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BluetoothIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.41 15.41L24 4h-2v15.17L12.83 10 10 12.83 21.17 24 10 35.17 12.83 38 22 28.83V44h2l11.41-11.41L26.83 ... |
src/components/pages/Autobiography1Page/index.js | RussHR/github_page_src | import React from 'react';
import ContentLayout from '../../layout/ContentLayout';
import VideoIFrame from '../../VideoIFrame';
export default function Autobiography1Page() {
return (
<ContentLayout header="autobiography 1"
subheader="completed - august 2016"
... |
fields/types/money/MoneyField.js | tony2cssc/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
client/components/lists/annotation-list.js | CommonActionForum/liqen-face | import React from 'react'
import PropTypes from 'prop-types'
import AnnotationItem from './annotation-item'
export default function Selector ({ annotations, onSelect }) {
return (
<div className='list-group list-group-flush'>
{
annotations.length > 0 && annotations.map(annotation => (
<di... |
client/src/scenes/application/scenes/Project/scenes/ProjectsList/presentation.js | YeFFreY/bernard | import React from 'react';
import { Container, Pusher, List, ListItem, ItemImage, ItemContent, FocusBox } from 'components/layout';
import { LinkButton } from 'components/form';
import { H1, H3, P } from 'components/typography';
import { addEllipsis } from 'utils';
const ProjectListItem = ({ project }) => (
<ListIte... |
app/components/GridCategories/index.js | scampersand/sonos-front | import React from 'react';
import { connect } from 'react-redux';
import ButtonArtists from 'components/ButtonArtists';
import { selectBrowserContent } from 'containers/BrowserPage/selectors';
import styles from './styles.css';
export class GridCategories extends React.Component { // eslint-disable-line react/prefer-s... |
src/components/menus/TorrentContextMenu/index.js | fcsonline/react-transmission | import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
import { inject } from 'mobx-react';
import autobind from 'autobind-decorator';
import ContextMenu from 'components/menus/ContextMenu';
import styles from './styles/index.css';
@inject('view_store', 'torrents_store')
@CSSModules(st... |
admin/client/App/shared/Popout/PopoutListItem.js | Adam14Four/keystone | /**
* Render a popout list item
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTy... |
packages/material-ui-icons/src/PlayCircleFilled.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PlayCircleFilled = props =>
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" />
</SvgIcon>;
PlayCircleFilled = pure(PlayCircleFi... |
src/pages/Forgot/index.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import get from 'mout/src/object/get';
import style from 'HPCCloudStyle/Login.mcss';
import layout from 'HPCCloudStyle/Layout.mcss';
import getNetworkError from '../../utils/getNetworkError';
import { forgetPasswor... |
src/index.js | rodrigo-puente/poke-nostalgia | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux'
import rootReducer from './reducers';
import { Root } from './conta... |
app/addons/documents/index-results/components/queryoptions/QueryButtons.js | michellephung/couchdb-fauxton | // 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, software
// distributed un... |
src/svg-icons/action/donut-small.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
app/components/ToggleOption/index.js | SenyOrg/kekecmed-frontend | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{intl.formatMessage(message)}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequired,
message: Rea... |
src/lib/withData.js | OpenCollective/frontend | // This file is mostly adapted from:
// https://github.com/zeit/next.js/blob/3949c82bdfe268f841178979800aa8e71bbf412c/examples/with-apollo/lib/withData.js
import React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import { getDataFromTree } from 'react-apollo';
import initClient from... |
src/documentation/RegularPage/RegularPage.stories.js | wfp/ui | import React from 'react';
import Blockquote from '../../components/Blockquote';
import RegularPage from '../RegularPage';
import Story from '../../components/Story';
import Wrapper from '../../components/Wrapper';
import { Module, ModuleHeader, ModuleBody } from '../../components/Module';
import markdown from './READ... |
src/components/Iconfont/Iconfont.js | IssaTan1990/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import './iconfont.less'
const Iconfont = ({ type }) => <span
dangerouslySetInnerHTML={{
__html: `<svg class="iconfont" aria-hidden="true"><use xlink:href="#anticon-${type}"></use></svg>`,
}}
/>
Iconfont.propTypes = {
type: PropTypes.string,
}
ex... |
app/scripts/containers/friends/friends.js | oriondean/stickr | import * as ActionCreators from '../../actions/index';
import React from 'react';
import { connect } from 'react-redux';
import Header from '../../components/header/header';
import './friends.scss';
class Friends extends React.Component {
render() {
let noFriendsMessage;
let noFriendRequestMessa... |
src/svg-icons/action/open-in-new.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInNew = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);... |
app/javascript/mastodon/features/public_timeline/components/column_settings.js | danhunsaker/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
packages/cra-universal/templates/server/app.js | antonybudianto/cra-universal | import path from 'path';
import React from 'react';
import { createReactAppExpress } from '@cra-express/core';
let App = require('../src/App').default;
const clientBuildPath = path.resolve(__dirname, '../client');
const app = createReactAppExpress({
clientBuildPath,
universalRender: (req, res) => <App />,
});
if... |
docs-ui/components/narrowLayout.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
// import {action} from '@storybook/addon-actions';
import {withInfo} from '@storybook/addon-info';
import NarrowLayout from 'app/components/narrowLayout';
storiesOf('NarrowLayout', module).add(
'default',
withInfo('A narrow layout')(() => <Na... |
src/components/ToggleArrow/ToggleArrow.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import {rotateZ, translate, translateX, multiple} from 'css-functions'
import {Arrow} from '../icons'
import {transition} from '../../utils/css'
import injectSheet from '../../utils/jss'
const styles = (theme) => ({
toggler: {
... |
app/javascript/flavours/glitch/components/autosuggest_input.js | Kirishima21/mastodon | import React from 'react';
import AutosuggestAccountContainer from 'flavours/glitch/features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import P... |
packages/giu/src/inputs/textNumberRangeInput.js | guigrpa/giu | // @flow
import React from 'react';
import { omit } from 'timm';
import classnames from 'classnames';
import { isNumber } from '../gral/validators';
import type { Theme } from '../gral/themeContext';
import Input, { INPUT_HOC_INVALID_HTML_PROPS } from '../hocs/input';
import type { InputHocPublicProps } from '../hocs/... |
src/svg-icons/maps/local-activity.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
src/server.js | rongkaixia/order-server | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import PrettyError from 'pretty-error';
import http from 'http';
import {Provider} f... |
examples/react/todomvc/src/components/App.js | rohan-deshpande/trux | import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { TodoApp } from './connectors';
import Info from './Info';
export default function App() {
return (
<main>
<Router>
<Switch>
<Route exact path="/" component={TodoApp} />
... |
src/svg-icons/action/report-problem.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem = pure(ActionReportProblem);
ActionReportProblem.displa... |
docs/app/Examples/collections/Menu/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const MenuExamples = () => {
return (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
}
export default MenuExamp... |
src/redux-form/createInputCreator.js | esbenp/react-native-clean-form | import React from 'react'
import { View } from 'react-native'
import PropTypes from 'prop-types'
import { FormGroup, Label } from '../../index'
import styled from 'styled-components/native'
import defaultTheme from '../Theme'
const ErrorMessage = styled.Text`
color: ${props => props.theme.ErrorMessage.color};
font... |
examples/todos-with-undo/src/containers/UndoRedo.js | roth1002/redux | import React from 'react'
import { ActionCreators as UndoActionCreators } from 'redux-undo'
import { connect } from 'react-redux'
let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => (
<p>
<button onClick={onUndo} disabled={!canUndo}>
Undo
</button>
<button onClick={onRedo} disabled={!canRedo}>... |
website/src/pages/calendar/canvas.js | plouc/nivo | import React from 'react'
import { ResponsiveCalendarCanvas, calendarCanvasDefaultProps } from '@nivo/calendar'
import { generateDayCounts } from '@nivo/generators'
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
import meta from '../../data/components/calendar/meta.yml'
import mapper ... |
src/svg-icons/action/event-seat.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEventSeat = (props) => (
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/>
</SvgIcon>
);
ActionEventSeat = pure(ActionEventSe... |
front_end/src/pages/Tiles/TileViewPage.js | mozilla/splice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { updateDocTitle, pageVisit, displayMessage, shownMessage } from 'actions/App/AppActions';
import { updateTile } from 'actions/Tiles/TileActions';
import { fetchHierarchy } from 'actions/App/... |
packages/site/src/components/richText.js | massgov/mayflower | import React from 'react';
import PropTypes from 'prop-types';
import ReactHtmlParser from 'react-html-parser';
const RichText = ({
className, id, htmlTag, rawHtml, transform
}) => {
const CustomElement = htmlTag;
return(
<CustomElement ref={(element) => element} className={className} id={id}>
{ReactHt... |
jenkins-design-language/src/js/components/material-ui/svg-icons/device/location-disabled.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5 1.5c.5-.96.84-2.02.97-... |
app/components/Header/index.js | perry-ugroop/ugroop-react-dup2 | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/utils/react.spec.js | HenriBeck/materialize-react | // @flow strict-local
import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import {
cloneChildren,
cloneElement,
} from './react';
test('cloneElement: should clone an element with a new classname', (t) => {
const div = <div>Hello</div>;
const clonedDiv = cloneElement(div, { className... |
fields/types/email/EmailField.js | woody0907/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/*
TODO:
- gravatar
- validate email address
*/
module.exports = Field.create({
displayName: 'EmailField',
renderValue () {
return this.props.value ? (
<FormInput noedit href={'mailto:' + this.props.value}>{this... |
src/components/IssueTable/IssueRow.js | IndyXTechFellowship/Cultural-Trail-Web | import React from 'react'
import classes from './IssueRow.scss'
import moment from 'moment'
// components
import { Button, Glyphicon } from 'react-bootstrap'
const isResolved = (open) => (
open ? <Glyphicon glyph="remove" className={classes.removeIcon} /> : <Glyphicon glyph="ok" className={classes.okIcon} />
)
con... |
docs/app/Examples/elements/Label/Types/LabelExampleImage.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleImage = () => (
<div>
<Label as='a' image>
<img src='http://semantic-ui.com/images/avatar/small/joe.jpg' />
Joe
</Label>
<Label as='a' image>
<img src='http://semantic-ui.com/images/avatar/small/elliot... |
app/jsx/add_people/components/people_validation_issues.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/Header/Header.js | neozhangthe1/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
3-namespace/button.js | aruberto/styling-react-components | import React from 'react';
import cx from 'classnames';
const Button = ({ error, ...restProps }) => (
<button
{...restProps}
className={cx(
'my-namespace-button',
{ 'my-namespace-button-error': error }
)}
/>
);
Button.propTypes = {
error: React.PropTypes.bool,
};
export default Button;
|
src/svg-icons/av/forward-10.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward10 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0... |
src/components/Header/Header.js | mimiflynn/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
src/frontend/components/TwitterFeed.js | gbgtech/gbgtechWeb | import React from 'react';
const TwitterFeed = React.createClass({
render() {
const { path, id, children} = this.props;
return (
<div className="twitter-container paper-shadow">
<h2>Twitter - <a href={`https://twitter.com/${path}`}>{children}</a></h2>
<a
className="twitter-t... |
public/components/AllServers.js | supportivesantas/project-ipsum | import React from 'react';
import actions from '../actions/ipsumActions.js';
import { connect } from 'react-redux';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { Link } from 'react-router';
import _ from 'underscore';
import request from '../util/restHelpers.js';
import {Grid, Row,... |
app/javascript/mastodon/features/followers/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
analysis/warlockdemonology/src/modules/soulshards/SoulShardDetails.js | yajinni/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown';
import { Panel } from 'interface';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import Statistic fro... |
server/sonar-web/src/main/js/apps/custom-measures/routes.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... |
src/routes.js | enapupe/know-your-bundle | import React from 'react'
import { Route } from 'react-router'
import App from './components/app'
import Main from './views/main'
const routes = () => (
<Route component={App} >
<Route path="/" component={Main} />
</Route>
)
export default routes
|
app/routes.js | derycktse/reedee | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
import ReedeePage from './containers/ReedeePage'
export default () =... |
webpack/src/components/tray-button.js | scruffian/javascripture.mobi | import React from 'react';
export default React.createClass( {
handleClick: function() {
this.props.onChangeDisplayState( this.props.target );
},
render: function() {
var className = this.props.open ? 'open' : '';
return (
<button onClick={ this.handleClick } className={ className }>
<span className="... |
src/svg-icons/image/panorama-vertical.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let 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... |
client/src/components/Alert.js | MaximeSarrato/dariobattle | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import IconButton from 'material-ui/IconButton';
import CloseIcon from 'material-ui-icons/Close';
import { withStyles } from 'material-ui/styles';
import PropTypes from 'prop-types';
const styles = theme => ({
close: {
width: theme.spacing.u... |
Lab12/app.js | prpatel/react-workshop-day1 | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import Bootstrap from 'react-bootstrap';
import Jumbotron from 'react-bootstrap/lib/Jumbotron';
import Panel from 'react-bootstrap/lib/Panel';
import Input from 'react-bootstrap/lib/Input';
import Label from 'react-bootstrap/lib/L... |
frontend/src/MovieFile/Quality/SelectQualityModalContentConnector.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { updateMovieFiles } from 'Store/Actions/movieFileActions';
import { fetchQualityProfileSchema } from 'Store/Actions/settingsActi... |
docs/app/Examples/elements/Button/States/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ButtonStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='A ... |
app/containers/App/index.js | belongapp/belong | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Relay from 'react-relay';
import Helmet from 'react-helmet';
// Import the CSS reset, which HtmlWebpackPlug... |
src/Parser/Druid/Restoration/Modules/Talents/Cultivation.js | enragednuke/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import Analyzer f... |
src/components/container/ProductPage/ProductPage.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as productActions from "../../../actions/productActions";
import ProductDetails from '../../presentational/ProductDetails/ProductDetails';
class ProductPage extends... |
src/app.js | BobWhitelock/game-of-life |
import React from 'react'
import ReactDOM from 'react-dom'
import App from 'components/App'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
src/scenes/home/landing/moreInformation/moreInformation.js | alexspence/operationcode_frontend | import React, { Component } from 'react';
import Section from 'shared/components/section/section';
import ClipPathImage from 'shared/components/clipPathImage/clipPathImage';
import familyImage from 'images/Family-1.jpg';
import milImage from 'images/Mil-1.jpg';
import volunteerImage from 'images/Volunteer-1.jpg';
impo... |
src/svg-icons/image/landscape.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLandscape = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageLandscape = pure(ImageLandscape);
ImageLandscape.displayName... |
ajax/libs/recompose/0.20.1/Recompose.js | AMoo-Miki/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/mui/detail/CreateActions.js | matteolc/admin-on-rest | import React from 'react';
import { CardActions } from 'material-ui/Card';
import { ListButton } from '../button';
const cardActionStyle = {
zIndex: 2,
display: 'inline-block',
float: 'right',
};
const CreateActions = ({ basePath }) => (
<CardActions style={cardActionStyle}>
<ListButton basePa... |
ui/src/components/TabPanel.js | untoldwind/eightyish | import React from 'react'
export default class TabPanel extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
children: React.PropTypes.oneOfType([
React.PropTypes.array,
React.PropTypes.element
]).isRequired
}
render() {
... |
src/components/main/NavigationItem/NavigationItem.js | 5rabbits/portrait | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
export default class NavigationItem extends React.Component {
static propTypes = {
children: PropTypes.node,
containerProps: PropTypes.object,
component: PropTypes.oneOfType([
PropTypes.string, PropType... |
docs/src/app/components/pages/get-started/Installation.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import installationText from './installation.md';
const Installation = () => (
<div>
<Title render={(previousTitle) => `Installation - ${previousTitle}`} />
<MarkdownElement text={insta... |
src/shared/components/socialMedia/socialMediaItem/socialMediaItem.js | sethbergman/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './socialMediaItem.css';
const SocialMediaItem = (props) => {
const {
smImage,
smText,
link,
} = props;
return (
<div className={styles.socialMediaItem}>
<a href={link} target="_blank" rel="noopener noreferre... |
src/svg-icons/av/fiber-dvr.js | pancho111203/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... |
src/routes/contact/index.js | dabrowski-adam/react-isomorphic | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Template from '../../com... |
src/components/list.js | rahavMatan/react-phonecat | import React, { Component } from 'react';
import {connect} from 'react-redux';
import {getFiltered, getAll, sortBy} from '../actions'
import ListItem from './list-item';
import SearchBar from './search-bar';
import { CSSTransitionGroup } from 'react-transition-group' // ES6
class List extends Component {
componentWi... |
packages/mcs-lite-landing-web/src/components/SVG/SVGManagement.js | MCS-Lite/mcs-lite | /**
* svgtoreact
*
* @author Michael Hsu
*/
import React from 'react';
export default function SVGManagement(props) {
return (
<svg width={42} height={32} viewBox="0 0 42 32" {...props}>
<g fill="none">
<path d="M-9-14h60v60h-60z" />
<path
d="M2.5 25.991v4.018c0 .267.223.491.... |
js/App/Components/TabViews/SubViews/JobRow.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
src/App.js | wix/react-templates-transform-boilerplate | import React, { Component } from 'react';
import template from './App.rt';
export class App extends Component {
render() {
return template()
}
}
|
examples/04 Sortable/Simple/index.js | colbyr/react-dnd | import React from 'react';
import Container from './Container';
export default class SortableSimple {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b>
</p>
<p>
It i... |
fields/types/markdown/MarkdownField.js | w01fgang/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from '../../../admin/client/App/elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remo... |
src/core/components/NotFound.js | mstriemer/addons-frontend | import React from 'react';
import { gettext as _ } from 'core/utils';
export default class NotFound extends React.Component {
render() {
return (
<div className="not-found">
<h1 ref={(ref) => { this.heading = ref; }}>
{_("We're sorry, but we can't find what you're looking for.")}
... |
app/index.js | redpelicans/wall-street-react | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Router.HashLocation, (Root) => {
React.render(<Root/>, document.body);
});
|
client/components/Dashbord/allRecipe.js | kenware/more-recipes | import React, { Component } from 'react';
import { BrowserRouter, Route, Switch, Redirect, Link } from 'react-router-dom';
import { PropTypes } from 'react';
import * as actions from '../../redux/Action/action.js';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import './dashbord.sc... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | xiaotaijun/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
src/svg-icons/action/line-weight.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLineWeight = (props) => (
<SvgIcon {...props}>
<path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/>
</SvgIcon>
);
ActionLineWeight = pure(ActionLineWeight);
ActionLineWeight.displayN... |
node_modules/react-images/src/components/Arrow.js | ed1d1a8d/macweb | import PropTypes from 'prop-types';
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import defaults from '../theme';
import { deepMerge } from '../utils';
import Icon from './Icon';
function Arrow ({
direction,
icon,
onClick,
size,
...props,
},
{
theme,
}) {
const classes =... |
src/components/reactResearch/SearchBar.js | mpeinado/react-starter | import React, { Component } from 'react';
class SearchBar extends Component {
handleFilterProductsChange = (e) => {
e.preventDefault();
const text = e.target.value;
this.props.handleFilterProductsChange(text);
}
handleInStockChange = (e) => {
const showOnlyInStock = e.tar... |
src/PhotoLayoutEditor/Container/Side/index.js | RedgooseDev/react-photo-layout-editor | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import $ from 'jquery/dist/jquery.slim';
import * as actions from '../../actions';
import ToggleSideButton from './ToggleSideButton';
import Navigation from './Navigation';
import Items from './Items';
import * as lib... |
app/modules/vieweditor/vieweditor.container.js | benmccormick/trollbox | /* @flow */
import { bindActionCreators } from 'redux';
import React from 'react';
import Select from 'react-select';
import { connect } from 'react-redux';
import {map} from 'lodash';
import { getAllBoards } from '../../data/boards';
import {addView} from '../../actions/views';
import {container, form, formLabel, form... |
site/WorkHard_Profile/src/ProfilePanel.js | harrydrippin/Workhard | import React, { Component } from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
var lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vitae consectetur est, faucibus tempor massa. Cras sagittis diam q... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.