path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/av/skip-previous.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
AvSkipPrevious.mu... |
assets/javascripts/kitten/components/interaction/stepper-icon/stories.js | KissKissBankBank/kitten | import React from 'react'
import { StepperIcon } from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Interaction/StepperIcon',
component: StepperIcon,
parameters: {
docs: {
page: () => <DocsPage filepath={__filename} importString="StepperIcon" />,
},
},
decora... |
src/js/components/app.js | jrnail23/sitterswap-js | import React from 'react'
import Header from './common/header'
import {getAllMembers} from '../api/membersApi'
export default class App extends React.Component {
static propTypes = {
children: React.PropTypes.node
}
componentDidMount () {
getAllMembers()
}
render () {
return (
<div>
... |
pkg/interface/groups/src/js/components/lib/sidebar-invite.js | ngzax/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import _ from 'lodash';
export class SidebarInvite extends Component {
onAccept() {
const { props } = this;
props.api.invite.accept(props.uid);
props.history.push(`/~groups${props.invite.path}`);
}
onDecline() {
this... |
frontend/src/components/Stepper.js | Yacenko/PetsInHome | import React from 'react';
import {
Link
} from 'react-router-dom';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Stepper, {Step, StepLabel, StepContent} from 'material-ui/Stepper';
import Button from 'material-ui/Button';
import Paper from 'material-ui/Paper';
import T... |
frontend/app_v2/src/components/ByAlphabet/ByAlphabetContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// FPCC
import ByAlphabetPresentation from 'components/ByAlphabet/ByAlphabetPresentation'
import ByAlphabetData from 'components/ByAlphabet/ByAlphabetData'
import Loading from 'components/Loading'
function ByAlphabetContainer({ kids }) {
const {
actio... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-taxi.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalTaxi = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 ... |
src/MenuItem.react.js | Neophy7e/react-bootstrap-typeahead | 'use strict';
import cx from 'classnames';
import {noop} from 'lodash';
import React from 'react';
import menuItemContainer from './containers/menuItemContainer';
const BaseMenuItem = React.createClass({
displayName: 'BaseMenuItem',
getDefaultProps() {
return {
onClick: noop,
};
},
render() {... |
src/js/data/diary/index.js | hiddentao/heartnotes | "use strict";
import _ from 'lodash';
import Q from 'bluebird';
import moment from 'moment';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Detect from '../../utils/detect';
import { instance as Crypto } from '../crypto/index';
import { instance as Search } from '../search/index';
i... |
ignite/Examples/Components/animatableExample.js | infinitered/ChainReactApp | // @flow
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
import ExamplesRegistry from '../../../App/Services/ExamplesRegistry'
import * as Animatable from 'react-native-animatable'
// Example
ExamplesRegistry.addPluginExample('Animatable', () =>
<View>
<Animatable.View
anim... |
src/app.js | coding-lemur/nodefilestore | import './styles/style.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import UploadForm from './components/upload-form';
ReactDOM.render(<UploadForm/>, document.getElementById('content'));
|
app/components/atoms/Link/Link.js | altiore/webpack_config_example | import React from 'react'
import PropTypes from 'prop-types'
import { Link as BaseLink } from 'react-router-dom'
import CSSModules from 'react-css-modules'
import s from './styles.scss2'
const Link = props => (
<BaseLink
{...props}
className={props.styles.link + (props.className ? (' ' + props.className) : ... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | mitchellporter/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
app/components/common/InputRadio.js | wp-wilsonperez/votos |
import React from 'react';
class InputRadio extends React.Component {
constructor(props) {
super(props);
this.state = {inputs: this.props.inputs}
}
onClick(ev) {
let e = ev.target;
let $inputs = this.state.inputs;
let $index = $(e).data("index");
$inputs.map((input, ... |
app/index.js | JakubMusik/where-your-money-goes | import ReactDOM from 'react-dom';
import React from 'react';
import "babel-polyfill";
import {ReduxContainer} from './components/ReduxContainer';
import 'normalize-scss'
import './styles/styles.scss'
ReactDOM.render(
<ReduxContainer />,
document.getElementById('root')
); |
app/main.js | waha3/react-cnode | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory} from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
// import injectTapEventPlugin from 'react-tap-event-plugin';
import { MuiThemeProvider } from 'material... |
src/components/Menu.js | thanhiro/techmatrix | import React from 'react';
import Logo from './Logo';
const Menu = () => (
<div>
<a href='#menu' id='menuLink' className='menu-link'>
<span></span>
</a>
<div id='menu'>
<div className='pure-menu'>
<div className='pure-menu-heading'><Logo /></div>
<ul className='pure-menu-list'... |
src/SplitButton.js | Azerothian/react-bootstrap | /* eslint react/prop-types: [1, {ignore: ["children", "className", "bsSize"]}]*/
/* BootstrapMixin contains `bsSize` type validation */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import DropdownStateMixin from './DropdownStateMixin';
import Button from... |
demo/ButtonWithMixin.js | brentertz/react-suitcssify | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import SuitCssify from '../index';
import classNames from 'classnames';
import createReactClass from 'create-react-class';
let Button = createReactClass({
mixins: [SuitCssify.mixin],
propTypes: {
children: PropTypes.node,
disabl... |
src/molecules/navigation-bar/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import storyRouter from 'storybook-router';
import {linkTo} from '@storybook/addon-links';
import NavigationBar from './index';
export default {
title: 'Molecules/Navigation Bar',
decorators: [
stor... |
src/components/tag/theme/basic.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
packages/flow-runtime-docs/src/components/CodeMirror.js | codemix/flow-runtime | /* @flow */
import React from 'react';
import {observer} from 'mobx-react';
import {UnControlled as ReactCodeMirror} from 'react-codemirror2';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
type Props = {
onChange?: (code: string) => any,
readOnly?: boolean,
value: stri... |
src/Link/__tests__/Label_test.js | kmees/react-fabric | import React from 'react'
import { render } from 'enzyme'
import test from 'tape'
import Link from '../index.js'
test('Link', t => {
t.ok(Link, 'export')
t.equal(Link.displayName, 'FabricComponent(Link)')
t.end()
})
test('Link#render - simple', t => {
const container = render(
<Link>Foo</Link>
).conte... |
docs/src/PageFooter.js | apkiernan/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageFooter = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
src/botPage/view/View.js | binary-com/binary-bot | import React from 'react';
import ReactDOM from 'react-dom';
import 'jquery-ui/ui/widgets/dialog';
import _Blockly, { load } from './blockly';
import Chart from './Dialogs/Chart';
import Limits from './Dialogs/Limits';
import IntegrationsDialog from './Dialogs/IntegrationsDialog';
import LoadDialog from './Dialogs/Load... |
src/app/containers/Login/Login.js | MarcusKolman/www | import React, { Component } from 'react';
class Login extends Component {
render() {
return (
<div>
Hello Login
</div>
);
}
}
export default Login; |
admin/client/App/screens/Item/components/FooterBar.js | joerter/keystone | import React from 'react';
import blacklist from 'blacklist';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
height: 'auto',
top: 0,
};
},... |
icon-builder/tpl/SvgIcon.js | jtollerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '{{{ muiRequireStmt }}}';
let {{className}} = (props) => (
<SvgIcon {...props}>
{{{paths}}}
</SvgIcon>
);
{{className}} = pure({{className}})
{{className}}.displayName = '{{className}}';
export default {{className}};
|
example/src/Screens/Docs/AnimatedRoute/Overview.js | maisano/react-router-transition | import React from 'react';
import { css } from 'glamor';
import Footer from '../shared/Footer';
const Element = ({ name }) => (
<code><{name} /></code>
);
const Overview = () => (
<div>
<h2>Overview</h2>
<p>A <a href="https://reacttraining.com/react-router/web/api/Route"><Element name="Route" /></a... |
examples/05 Customize/Drop Effects/index.js | longlho/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class CustomizeDropEffects extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Drop%20Effects'>Browse the Source... |
src/timelines/components/Timeline.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your o... |
example/src/Container.js | istarkov/pbl | import React from 'react';
import compose from 'recompose/compose';
import { themr } from 'react-css-themr';
import containerStyles from './container.sass';
export const container = ({ theme, children }) => (
<div className={theme.component}>
<div className={theme.contentAside} />
<div className={theme.conte... |
app/containers/HomePage.js | arwilczek90/OpenPresenter | // @flow
import React, { Component } from 'react';
import Home from '../components/Home';
import PageWrapper from '../components/PageWrapper';
export default class HomePage extends Component {
render() {
return (
<PageWrapper>
<Home />
</PageWrapper>
);
}
}
|
app/containers/HomePage/Welcome/index.js | romy/personal-imgur-gallery | import React from 'react';
import LoginButton from './login-button';
const styles = {
header: {
marginTop: '5%',
fontSize: '600%',
},
};
const Welcome = () =>
<div>
<h1 style={styles.header}>Imgur Gallery</h1>
<div>View your albums and images from Imgur</div>
<LoginButton />
</div>;
Welc... |
src/components/Sky.js | davesnx/Typeform-logo-WebVR | import React from 'react'
import { Entity } from 'aframe-react'
const Sky = (props) => (
<Entity
geometry={{ primitive: 'sphere', radius: 100 }}
material={{ shader: 'flat', src: props.src }}
scale='1 1 -1'
/>
)
export default Sky
|
app/src/common/MiniButton.js | skunkmb/Ablo | import React, { Component } from 'react';
import {
TouchableOpacity,
View,
Image,
ViewPropTypes,
StyleSheet
} from 'react-native';
import PropTypes from 'prop-types';
import { darkTheme } from '../themes.js';
let styles = darkTheme.styleSheet;
let styleOptions = darkTheme.options;
export default c... |
client/src/app/components/forms/inputs/DropzoneInput.js | zraees/sms-project | import React from 'react'
import {findDOMNode} from 'react-dom'
import Dropzone from 'dropzone'
Dropzone.autoDiscover = false;
export default class DropzoneInput extends React.Component {
componentDidMount() {
let element = $(findDOMNode(this));
let options = this.props.options || {};
element.dropzone(o... |
src/routes/home/Home.js | AaronHartigan/DudeTruck | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
console/src/app/app.js | alfredking12/hp-scheduler | import React from 'react';
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './Main'; // Our custom react component
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
// Render the main app react component into th... |
client/src/js/stores/WeightStore.js | muhammad-saleh/weightlyio | 'use strict';
import React from 'react';
import alt from '../alt';
import AppActions from '../actions/AppActions';
import ActionTypes from '../constants/ActionTypes';
import UserStore from './UserStore';
class WeightStore {
constructor(props) {
this.weight = null;
this.isLoading = false;
... |
actor-apps/app-web/src/app/components/ActivitySection.react.js | yangchaogit/actor-platform | import React from 'react';
import classNames from 'classnames';
import { ActivityTypes } from 'constants/ActorAppConstants';
import ActivityStore from 'stores/ActivityStore';
import UserProfile from 'components/activity/UserProfile.react';
import GroupProfile from 'components/activity/GroupProfile.react';
const getS... |
src/svg-icons/action/extension.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
docs/app/Examples/collections/Message/Types/MessageExampleIconProp.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleIconProp = () => (
<Message
icon='inbox'
header='Have you heard about our mailing list?'
content='Get the best news in your e-mail every day.'
/>
)
export default MessageExampleIconProp
|
src/layouts/layout.js | yante/halfof8 | import React from 'react'
import styled from 'styled-components'
const Layout = ({ className, children }) => (
<div className={className}>{children}</div>
)
const LayoutStyled = styled(Layout)`
display: grid;
grid-template-columns: 1fr 5fr;
max-width: 1920px;
margin: 0 auto;
& > div:first-child {
min-... |
src/components/Icons.js | vlasn/mets | /**
* Created by clstrfvck on 03/05/2017.
*/
import SvgIcon from 'material-ui/SvgIcon';
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider"
import React from 'react';
const defaultStyle = {
padding: 0,
margin: "-2px 0 -5px 0",
cursor: "pointer"
};
const caretStyle = {
padding: 0,
... |
src/svg-icons/content/reply-all.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReplyAll = (props) => (
<SvgIcon {...props}>
<path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReplyAll = pure(ContentReplyAll);
Conte... |
src/components/Views/WorkArchive/index.js | jmikrut/keen-2017 | import React, { Component } from 'react';
import DocumentMeta from 'react-document-meta';
import WorkFilter from '../../Work/WorkFilter';
import ViewWrap from '../../ViewWrap';
import Gutter from '../../Layout/Gutter';
import randomArray from '../../../utilities/randomNumberArray';
import ogImage from '../../../asse... |
app/components/layout/Flashes/flash.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import FlashesStore from '../../../stores/FlashesStore';
class Flash extends React.PureComponent {
static propTypes = {
flash: PropTypes.shape({
type: PropTypes.string.isRequired,
message: PropTypes.n... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-google-map.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {BaseMixin, ElementaryMixin} from '../common/common.js';
import './google-map.less';
export const GoogleMap = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
//@@viewOff:mixins
... |
src/components/NotFoundPage/NotFoundPage.js | prod-alex2006hw/dev.alex2006hw.com | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
src/routes.js | kennethtruong/pagrader | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Home,
Login,
// Signup,
Repo,
AssignmentPage,
GraderPage,
NotFound,
} from 'containers';
export default (store) =... |
examples/react/entry.js | react-circuit/ultra | import React from 'react'
import PropTypes from 'prop-types'
import { render } from 'react-dom'
import examples from './react' //'./requireExamples'
import { spec, match } from 'ultra'
import { A, Ultra, Use } from 'react-ultra'
let examplesMatch,
rootMatch,
root = document.getElementById('root')
let TocLinks = p... |
src/svg-icons/navigation/arrow-drop-down.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
src/components/loading/Loading.js | thinow/genau | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
import { palette } from '../theme/theme';
import Text from '../core/Text';
const style = {
container: { textAlign: 'center' },
progress: { marginTop: '16vh' },
text: { fontSize: '7vw', color: palette.primary1Color, marginTop:... |
src/components/image-filters.js | LaserWeb/LaserWeb4 | import React from 'react';
import ReactDOM from 'react-dom'
import { connect } from 'react-redux';
import Rnd from 'react-rnd';
import { canvasFilters } from '../lib/lw.raster2gcode/canvas-filters';
import { OPERATION_GROUPS, OPERATION_FIELDS } from './operation';
import { getSubset } from 'redux-localstorage-filter';
... |
public/js/app/components/Duque.js | joaoahmad/minha-lista | import React from 'react';
import classnames from 'classnames';
class Duque extends React.Component {
constructor() {
super();
this.state = { focus: false };
}
componentDidMount(){
}
render() {
var focus = this.state.focus;
var classes = classnames(... |
ui/src/containers/VisualiseResults/XvsYChartResults.js | LearningLocker/learninglocker | import React from 'react';
import { withStatementsVisualisation } from 'ui/utils/hocs';
import XvsY from 'ui/components/XvsY';
import { shorten } from 'ui/utils/defaultTitles';
export default withStatementsVisualisation(({
getFormattedResults,
results,
labels,
colors,
model,
axes,
trendLines
}) => (
<X... |
src/parser/priest/shadow/modules/spells/azeritetraits/ChorusOfInsanity.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import Analyzer from 'parser/core/Analyzer';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringSpellVal... |
js/components/RoleDetail.js | rblakeley/relay-example-players-positions | import React from 'react';
import Relay from 'react-relay';
import UserSwitch from './UserSwitch';
class RoleDetail extends React.Component {
getStyles () {
return {
container: {
padding: '0 1.34em',
},
name: {
margin: 0,
fontWeight: 'bold',
},
list: {
... |
src/svg-icons/notification/bluetooth-audio.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationBluetoothAudio = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-... |
src/components/Feedback/Feedback.js | leonid/wikimart-test | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
lib/ui/components/Mocks/Mocks.js | 500tech/mimic | import React from 'react';
import Frame from 'ui/components/common/Frame';
import Editor from 'ui/components/Mocks/Editor';
import MocksSidebar from 'ui/components/Mocks/Sidebar/MocksSidebar';
import GroupView from 'ui/components/Mocks/GroupView';
import API from 'api';
import { Group } from 'api/models/group';
import ... |
public/js/cat_source/es6/components/header/manage/FilterProjectsStatus.js | matecat/MateCat | import React from 'react'
import IconFilter from '../../icons/IconFilter'
import IconTick from '../../icons/IconTick'
class FilterProjectsStatus extends React.Component {
constructor(props) {
super(props)
this.state = {
status: ['active', 'archived', 'cancelled'],
currentStatus: 'active',
}
... |
src/svg-icons/action/youtube-searched-for.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionYoutubeSearchedFor = (props) => (
<SvgIcon {...props}>
<path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
unmuteAccount,
} from '../../../actions/accounts';
import { mentionCompose } ... |
src/scenes/home/history/timelineEvent/timelineEvent.js | hollomancer/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './timelineEvent.css';
const TimelineEvent = ({ title, content }) => (
<div className={styles.eventContainer}>
<h4 className={styles.eventTitle}>{title}</h4>
<div className={styles.eventContent}>{content}</div>
</div>
);
Ti... |
app/javascript/mastodon/features/compose/components/search_results.js | tootsuite/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... |
shared/routes.js | cookiecooker/beaconSeed | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
import LoginForm from './components/Form/LoginForm';
import loginSt... |
webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js | adamruzicka/foreman-tasks | import React from 'react';
import { cellFormatter } from 'foremanReact/components/common/table';
import { ActionButton } from '../../common/ActionButtons/ActionButton';
export const actionCellFormatter = taskActions => (
value,
{ rowData: { action, id, canEdit } }
) =>
cellFormatter(
canEdit && (
<Acti... |
src/components/cards/demos/Image.js | isogon/material-components | import React from 'react'
import styled from 'styled-components'
import { Card, CardActions, CardTitle, shadow2dp } from '../../../'
const ImageCard = Card.extend`
${shadow2dp()} width: 256px;
height: 256px;
background: url('https://getmdl.io/assets/demos/image_card.jpg') center /
cover;
`
const Footer = C... |
src/components/blog/Pagination.js | kbariotis/kostasbariotis.com | import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
import { Row, Col } from 'react-flexbox-grid';
const newerPostsStyle = {
float: 'left',
'@media(max-width: 768px)': {
display: 'block',
float: 'none',
marginBottom: '1em',
},
};
const olderPostsStyle = {
f... |
src/password-reset/app.js | u-wave/web | import React from 'react';
import { createRoot } from 'react-dom';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { parse as parseQS } from 'querystring';
import thunk from 'redux-thunk';
import Translator from '@u-wave/translate';
import webApiRequ... |
setup/src/universal/features/common_ui/form/inputs/InputSlider/index.js | ch-apptitude/goomi | /**
*
* InputSlider
*
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Range } from 'rc-slider';
import styled from 'styled-components';
import 'rc-slider/assets/index.css';
const StyledSlider = styled.div`
height: 100%;
width: 100%;
.values {
display: flex;
jus... |
test/demo/ssr/createElement.js | picidaejs/picidaejs | import React from 'react'
import NProgress from 'nprogress'
export default function createElement(Component, props) {
// console.log('Custom createElement: ');
// console.log(' Component: ', Component);
// console.log(' props: ', props);
NProgress.done();
return React.createElement(Componen... |
app/javascript/mastodon/features/ui/components/video_modal.js | tootcafe/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
web/static/js/app.js | vanhuyz/agare | // Brunch automatically concatenates all files in your
// watched paths. Those paths can be configured at
// config.paths.watched in "brunch-config.js".
//
// However, those files will only be executed if
// explicitly imported. The only exception are files
// in vendor, which are never wrapped in imports and
// theref... |
reactNative/reactnativelearn-master/index.ios.js | huxinmin/PracticeMakesPerfect | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class AwesomeProject extends Component {
render() {
return (
<View style={styles.container}>
... |
docs/app/Examples/views/Item/Content/ItemExampleContents.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleContents = () => (
<Item.Group divided>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' />
<Item.Content verticalAlign='middle'>Content A</Item.Content>
</Item>
<Item>
... |
app/javascript/mastodon/features/compose/components/warning.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
src/components/DropOption/DropOption.js | fishmankkk/mircowater2.0 | import React from 'react'
import PropTypes from 'prop-types'
import { Dropdown, Button, Icon, Menu } from 'antd'
const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps }) => {
const menu = menuOptions.map(item => <Menu.Item key={item.key}>{item.name}</Menu.Item>)
return (<Dropdown
over... |
web_frontend/react_reduxstagram/client/components/Photo.js | axnion/playground | import React from 'react'
import { Link } from 'react-router'
import CSSTransitionGroup from 'react-addons-css-transition-group'
const Photo = React.createClass({
render() {
const { post, i, comments } = this.props
return (
<figure className="grid-figure">
<div className="grid-photo-wrap">
... |
app/packs/src/components/contextActions/SplitButton.js | ComPlat/chemotion_ELN | import React from 'react';
import {Button, Tooltip, OverlayTrigger} from 'react-bootstrap';
import UIStore from 'components/stores/UIStore';
import ElementActions from 'components/actions/ElementActions';
export default class SplitButton extends React.Component {
_splitSelectionAsSubsamples() {
ElementActions.sp... |
example/src/app/method_decorator/code.js | salmanm/react-keydown | import React from 'react';
import ReactDOM from 'react-dom';
const code =
`<code>import React from 'react';
import keydown, { Keys } from 'react-keydown';
class MethodDecoratorExample extends React.Component {
constructor( props ) {
super( props );
this.state = {
hello: false
... |
src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshesSuggestion.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage, formatDuration } from 'common/format';
import SpellLink from 'common/SpellLink';
function suggest(when, suggestion) {
when(suggestion).addSuggestion((suggest, actual, recommended) => {
return suggest(<>You refreshed <SpellLink id={suggestion.spell.id} /... |
packages/material-ui-icons/src/Reply.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Reply = props =>
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z" />
</SvgIcon>;
Reply = pure(Reply);
Reply.muiName = 'SvgIcon';
export default Reply;
|
src/ActivityStats.js | siiptuo/tiima-spa | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { duration, date } from './filters';
import { fetchActivities } from './actions';
import { diffDays } from './List';
import { propType as activityPropType } from './activity';
export function countActivitiesBy... |
packages/react-dom/src/server/ReactPartialRenderer.js | krasimir/react | /**
* Copyright (c) 2013-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.
*
* @flow
*/
import type {ReactElement} from 'shared/ReactElementType';
import type {
ReactProvider,
ReactConsumer,
ReactContext,
}... |
src/Filter.js | jsummer/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
//import { forEach } from '../utils/objects'
import Button from './Button'
import FilterItem from './FilterItem'
import clickAway from './higherorder/clickaway'
import { requireCss } from './themes'
requireCss('filter')
import {getLang, setLa... |
src/index.js | san2beerelli/Eycon | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import App from './App';
injectTapEventPlugin();
ReactDOM.render(
<App/>,
document.getElementById('app')
); |
ee/client/omnichannel/monitors/MonitorsPageContainer.js | VoiSmart/Rocket.Chat | import React from 'react';
import NotAuthorizedPage from '../../../../client/components/NotAuthorizedPage';
import PageSkeleton from '../../../../client/components/PageSkeleton';
import { useHasLicense } from '../../hooks/useHasLicense';
import MonitorsPage from './MonitorsPage';
const MonitorsPageContainer = () => {... |
src/main.js | Mikosko/EimPanel | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/components/Sidebar/Operations/OperationProperties/SweeplineProperties.js | funkBuild/machinist | /*
resolution: 0.1,
boundryOffset: 5,
direction: 'X',
tool: {
diameter: 3,
length: 40
},
stepoverPercent: 50,
zDepthMax: 0,
zDepthStart: 50,
zDepthStep: 25
*/
import React, { Component } from 'react';
import Button from '../../../common/Button';
import PathManager from '.... |
packages/material-ui-icons/src/Wifi.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Wifi = props =>
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9... |
blueocean-material-icons/src/js/components/svg-icons/image/photo-size-select-actual.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImagePhotoSizeSelectActual = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/>
</SvgIcon>
);
ImagePhotoSizeSelectActual.displayName = 'Imag... |
src/Pagination.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
const Pagination = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
activePage: React.PropTypes.number,
items: React.PropTypes.number,... |
example/index.js | yuanqing/autocomplete | import fetchJsonp from 'fetch-jsonp';
import React from 'react';
import {render} from 'react-dom';
import AutoComplete from '../src';
const classNames = {
isHighlighted: 'isHighlighted',
isLoading: 'isLoading',
resultItem: 'resultItem',
resultList: 'resultList',
root: 'root',
textBox: 'textBox'
};
functio... |
src/components/TellUserHeIsLogged.js | vitorbarbosa19/ziro-online | import React from 'react'
import { Image } from 'cloudinary-react'
import { buttonStyleDark } from '../styles/styles'
export default (props) => (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
}}>
<Image
style={{ margin: '20px 0' }}
cloudName='z... |
webapp/app/components/CreateGroup/Form/GroupRights/SaveRestoreMode/index.js | EIP-SAM/SAM-Solution-Server | //
// Component save & restore mode group rights form create group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import styles from 'components/CreateGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class CreateGroupFormGrou... |
public/js/components/profile/LookingFor.react.js | MadushikaPerera/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui... |
fields/types/text/TextFilter.js | danielmahon/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.