path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
components/TopLink.js | isogon/styled-mdl-website | import React from 'react'
import { withRouter } from 'next/router'
import Link from 'next/link'
import styled, { css, keyframes } from 'styled-components'
import { Ripple } from 'styled-mdl'
const grow = keyframes`
from {
opacity: 0;
transform: scale3d(0, 1, 1);
}
to {
opacity: 1;
transform: scal... |
system/src/routes/Setting/containers/SettingViewContainer/index.js | axmatthew/react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Map } from 'immutable';
import { fetch, update } from '../../../../modules/settings';
import SettingView from '../../components/SettingView';
class SettingViewContainer extends Component {
static propTypes = {
ui: React.Pr... |
frontend/app_v2/src/common/icons/Instagram.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Instagram Icon
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Instagram({ styling }) {
return (
<svg
viewBox="0 0 512 512"
xmlns="http://www.w3.org/2000/svg"
fillRule="evenodd"
... |
shared/components/Story.js | AndrewGibson27/react-fetch-boilerplate | import React, { Component } from 'react';
import { connect, PromiseState } from 'react-refetch';
import Comments from './comments';
import { ColumnNine } from '../styles/grid';
const Story = ({
storyFetch,
match: { params: { id } }
}) => {
if (storyFetch.fulfilled) {
const { value: { headline, body } } = st... |
src/svg-icons/image/center-focus-weak.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-... |
src/svg-icons/hardware/laptop-chromebook.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... |
src/components/GroupedCombobox/GroupedComboboxContainer.js | propertybase/react-lds | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { itemType } from '../Combobox/utils/constants';
import { BaseCombobox } from '../Combobox';
class GroupedComboboxContainer extends Component {
static propTypes = {
children: PropTypes.func.isRequired,
id: PropTypes.string.i... |
bemuse/src/flux/index.js | bemusic/bemuse | import Bacon from 'baconjs'
import React from 'react'
export { Bacon }
let lock = false
export function Action(transform = (x) => x) {
var bus = new Bacon.Bus()
var action = function () {
if (lock) {
throw new Error(
'An action should not fire another action! (' + lock.stack + ')'
)
}... |
src/main.js | bigtable2006/practice-04 | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import AppContainer from './containers/AppContainer';
// ========================================================
// Store Instantiation
// ========================================================
const initialS... |
lib/js/shared/components/ExampleControls/index.js | jneander/learning | import React from 'react';
import IconPauseSolid from 'instructure-icons/lib/Solid/IconPauseSolid';
import IconPlaySolid from 'instructure-icons/lib/Solid/IconPlaySolid';
import IconRefreshSolid from 'instructure-icons/lib/Solid/IconRefreshSolid';
import Button from 'instructure-ui/lib/components/Button';
import Checkb... |
src/components/navigation/NavigationMenu.js | erkgmz/kailey-lp | import React from 'react';
import { Link, IndexLink } from 'react-router';
import { slide as Menu } from 'react-burger-menu';
import Radium from 'radium';
import styles from '../../styles/_NavigationMenu.scss';
import navItems from './navigationItemsData';
import hamburgerStyles from './hamburgerStyles';
class Navig... |
client/components/VolunteerGroupSelect.js | cadus/crewing | import React from 'react';
import _ from 'lodash';
import { Button, Pill } from 'elemental';
import Select from 'react-select';
import groupsJSON from '../../shared/groups.json';
const groups = groupsJSON.map(name => ({ value: name, label: _.startCase(name) }));
const statusMap = {
none: 'default',
pending: 'inf... |
blueocean-material-icons/src/js/components/svg-icons/communication/dialpad.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationDialpad = (props) => (
<SvgIcon {...props}>
<path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2... |
tools/template/index/root/Root.dev.js | SteamerTeam/steamer-react | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../stores/configureStore';
import IndexWrapper from '../container/index';
import DevTools from '../../common/devtools/DevTools';
import { DEBUG } from '../constants/constants';
let store = configureStore();
... |
src/components/loader/index.js | thinktopography/reframe | import React from 'react'
import PropTypes from 'prop-types'
class Loader extends React.Component {
static propTypes = {
label: PropTypes.string
}
static defaultProps = {
label: 'Loading'
}
render() {
const { label } = this.props
return (
<div className="reframe-loader">
<div... |
app/javascript/mastodon/components/status_list.js | danhunsaker/mastodon | import { debounce } from 'lodash';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadGap from './load_gap... |
src/client/react/components/presentational/ScheduleErrorDisplay.js | nloomans/rooster.hetmml.nl | /**
* Copyright (C) 2018 Noah Loomans
*
* This file is part of rooster.hetmml.nl.
*
* rooster.hetmml.nl is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
jenkins-design-language/src/js/components/material-ui/svg-icons/device/network-wifi.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.01.01-.01 8.46-10.54C20.04 10.62 1... |
src/user-accounts/UserAccountsPage.js | binary-com/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import UserAccountsContainer from './UserAccountsContainer';
export default (props) => (
<WebPage>
<UserAccountsContainer {...props} />
</WebPage>
);
|
app/jsx/shared/ExternalToolModalLauncher.js | djbender/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... |
client/authentication/components/pages/restorePassword/RestorePassword.js | Haaarp/geo | import React from 'react';
import { connect } from 'react-redux';
import PreloaderButton from 'konux/common/components/PreloaderButton';
import FormWrap from 'konux/common/components/FormWrap';
import { StatusType } from './../../../constants';
import { checkValid } from 'konux/common/utils';
import { bindActionCreator... |
pkg/interface/link/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() {
api.invite.accept(this.props.uid);
}
onDecline() {
api.invite.decline(this.props.uid);
}
render() {
const { props } = this;
re... |
src/js/SecondPage_REMOTE_11688.js | merlox/dapp-transactions | import React from 'react'
import Header from './Header'
import { Link } from 'react-router-dom'
import './../stylus/index.styl'
import './../stylus/secondpage.styl'
import LINKS from './utils.js'
class SecondPage extends React.Component {
constructor(props){
super(props)
this.state = {
dialog1... |
demos/demo/src/components/Client/Input.js | bdjnk/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {props, signal, state} from 'cerebral/tags'
import translations from '../../common/compute/translations'
export default connect(
{
enterPressed: signal`clients.enterPressed`,
escPressed: signal`clients.escPressed`,
value: state`clien... |
js/components/form/textArea.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Textarea, Body, Left, Right, IconNB } from 'native-base';
import { Actions } from 'react-native-router-flux';
import sty... |
client/src/util/react-mousetrap.js | irskep/summertunes | import React from 'react';
export function mouseTrap(Base){
return class extends React.Component {
constructor(props){
super(props);
this.__mousetrapBindings = [];
this.Mousetrap = require('mousetrap');
}
bindShortcut (key, callback) {
this.... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | lfontana/BrewsBrothersChillerFrontEnd | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/TemplateContainer/Header.js | nienkebos/ExhibitionPlanner | import React from 'react';
import { Link } from 'react-router';
//STYLES//
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import {green200} from '../styles/colors';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton... |
rx-sandbox/creating-apps-with-observables/App.js | claycarpenter/node-sandbox | import React from 'react';
import {Counter} from './Counter';
import {Counter2} from './Counter2';
import {DelayCounter} from './DelayCounter';
export class App extends React.Component {
render() {
return (
<div>
<DelayCounter/>
</div>
);
}
}
|
src/react/JSONTree/JSONNullNode.js | threepointone/redux-devtools | import React from 'react';
import reactMixin from 'react-mixin';
import { SquashClickEventMixin } from './mixins';
import hexToRgb from '../../utils/hexToRgb';
const styles = {
base: {
paddingTop: 3,
paddingBottom: 3,
paddingRight: 0,
marginLeft: 14
},
label: {
display: 'inline-block',
ma... |
app/containers/HomePage/index.js | mamaracas/MEventsRegistration | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import {FormattedMessage} from 'react-intl';
import {connect} from 'react-redux';
import {createStructuredSelector} from 'reselect';
import {makeSelectRepos, makeSelect... |
src/js/components/Chart/stories/Point.js | grommet/grommet | import React from 'react';
import { Box, Chart, Heading } from 'grommet';
const values = [{ value: [10, 20] }, { value: [20, 30] }, { value: [30, 15] }];
export const Point = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={grommet}>
<Box direction="row-responsive" wrap p... |
src/components/NewsUpdates/NewsUpdates.js | Aquellex/aquellexws | import React from 'react';
import PropTypes from 'prop-types';
import styles from './NewsUpdates.module.css';
const NewsUpdates = ({ children }) => <div className={styles.newsUpdates}>{children}</div>;
NewsUpdates.propTypes = {
children: PropTypes.node.isRequired,
};
export default NewsUpdates;
|
docs/client/components/pages/Linkify/CustomComponentLinkifyEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createLinkifyPlugin from 'draft-js-linkify-plugin';
import editorStyles from './editorStyles.css';
const linkifyPlugin = createLinkifyPlugin({
component: (props) => (
// eslint-d... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/index.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { isEmpty, debounce } from 'lodash';
import { compose, withHandlers, setStatic, withState } from 'recompose';
/**
* The internal dependencies.
*/
impor... |
sandbox/src/components/Scanner.js | coreaps/public | import React from 'react';
import Quagga from '../../../../dist/quagga';
export default class Scanner extends React.Component {
static propTypes = {
onDetected: React.PropTypes.func,
onCancel: React.PropTypes.func,
config: React.PropTypes.object.isRequired,
};
constructor(props) {
... |
dva/dva-quickstart/src/routes/IndexPage.js | imuntil/React | import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
function IndexPage() {
return (
<div className={styles.normal}>
<h1 className={styles.title}>Yay! Welcome to dva!</h1>
<div className={styles.welcome} />
<ul className={styles.list}>
<li>To g... |
src/index.js | zzy348429898/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
docs/src/app/components/pages/components/GridList/ExampleComplex.js | rscnt/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
app/components/admin/step3/view.js | 7hci/surfboard | import React from 'react';
import { Page } from '../../shared/index';
const Step3 = (props) => {
const { handleClickSkip } = props;
return (
<Page
content={
<div className="card-block">
<p>
An e-mail has been sent to the new hire with instructions on how to complete the
... |
src/docs/examples/TextInput/ExampleError.js | thomashoggard/ps-react-tom | import React from 'react';
import TextInput from 'ps-react-tom/lib/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
required
... |
src/version.js | CurtisHumphrey/enzyme | import React from 'react';
export const VERSION = React.version;
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
|
src/components/Toolbar/Toolbar.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import ToolbarMenu from '../ToolbarMenu/ToolbarMenu'
const Toolbar = ({
baseMaps,
globalFilterType,
layers,
loginStatus,
mapProperties,
places,
showSidebarRight,
toolbarActive,
tutela,
onChangeActiveBaseMap,
onClearPlaceTutelaLayer,
onContourCha... |
frontend/src/Movie/Index/Table/MovieIndexRow.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import HeartRating from 'Components/HeartRating';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import RelativeDateCellConnector fro... |
geonode/contrib/monitoring/frontend/src/components/cels/response-time/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import styles from './styles';
class ResponseTime extends React.Component {
static propTypes = {
average: PropTypes.number.isRequired,
data: PropTypes.arra... |
blueprints/smart/files/__root__/containers/__name__.js | harijoe/redux-shooting-stars | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
sundin/source/constants/scenes.js | tkfeng/mppCalc | /**
* All screens and scenes in the app.
* Using React-Native-Router-Flux.
*
* Created by tkfeng on 4/8/17.
*/
import React from 'react';
import {
Actions,
Scene
} from 'react-native-router-flux';
import PreLoading from '../containers/preLoading'
import Menu from '../containers/menu';
import ShoutemExample fr... |
src/modules/article/index.js | fanfanlala/ZUO-React | import React from 'react'
import ReactDom from 'react-dom'
import App from './App'
ReactDom.render(
<App />,
document.getElementById('app')
)
|
yycomponent/pagination-table/Table.js | 77ircloud/yycomponent | import React from 'react';
import { Component, PropTypes } from 'react';
// import Child from './Child';
// import Request from 'common/Request';
import { Request } from 'yycomponent';
import actions from './actions';
import './reducer';
function enhancedPaginationTable(AntdTable) {
return class PaginationTable exte... |
src/components/common/TextWithIcon.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, Platform, View, Text, TouchableOpacity} from 'react-native';
import {Actions} from 'react-native-router-flux';
import Icon from 'react-native-vector-icons/FontAwesome';
import {COLOR, SCREEN_WIDTH, SCREEN_HEIGHT} from '../../config';
export default ({
iconName, text,... |
docs/app/Examples/collections/Message/index.js | koenvg/Semantic-UI-React | import React from 'react'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const MessageExamples = () => (
<div>
<Types />
<States />
<Variations />
</div>
)
export default MessageExamples
|
src/svg-icons/editor/border-right.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h... |
src/lib/RowIndent.js | maheshsenni/react-treelist | import React from 'react';
import PropTypes from 'prop-types';
import '../css/row-indent.css';
class RowIndent extends React.Component {
constructor(props) {
super(props);
this.displayName = 'RowIndent';
}
render() {
const { indent, reactKey } = this.props;
let indentDummies = null;
if (ind... |
src/components/RepoNote/RepoNote.js | Jac21/reponotesreact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { css } from 'glamor';
import Message from '../Common/Message/Message';
const repoNoteLabel = css({
fontSize: `${1.175}rem`,
cursor: 'pointer'
});
const sectionDivider = css({
height: `${1}px`,
maxWidth: `${100}vw`,
margi... |
src/svg-icons/action/pregnant-woman.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPregnantWoman = (props) => (
<SvgIcon {...props}>
<path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/>
</SvgIcon>
);
... |
docs/app/Examples/elements/Image/Groups/index.js | jcarbo/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ImageTypesExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Size'
description='A grou... |
config/flow/definitions/react.js | richbai90/CS2810 | /* @flow */
// Note: we already have the definitions from
// https://github.com/facebook/flow/blob/master/lib/react.js
// so the below are merely helpful extensions
import React from 'react';
declare type $React$Element = React.Element<*>;
declare type $React$Node = string | number | $React$Element | Array<$React$E... |
packages/react-vis/src/legends/discrete-color-legend.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/client/components/Home.js | matystl/shopping_list | import React from 'react';
import {Link} from 'react-router';
export default class Home extends React.Component {
componentWillMount() {
console.log("Test mountu homu")
}
render() {
return (
<div>
<p>
This is simple inner component of home.
</p>
</div>
);
... |
packages/ndla-icons/src/license/Publicdomain.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Publicdomain = props => (
<Icon
... |
src/fluxtable/container/ContainerForm.js | MirekSz/avem | import React, { Component } from 'react';
import {observe} from './../lib/Decorators';
import PortService from './../PortService';
import {containersActionCreator} from './ContainersActionCreator';
export default @observe
class ContainerForm extends Component {
constructor(props) {
super(props);
t... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | romaindso/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';
async function load() {
return {
users: [
{ i... |
node_modules/react-bootstrap/es/Breadcrumb.js | superKaigon/TheCave | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
admin/client/components/UpdateForm.js | Redmart/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Fields from '../fields';
import { plural } from '../utils';
import { BlankState, Button, Form, Modal } from 'elemental';
var UpdateForm = React.createClass({
displayName: 'UpdateForm',
propTypes: {
isOpen: React.... |
packages/material-ui-icons/src/TurnedIn.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let TurnedIn = props =>
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z" />
</SvgIcon>;
TurnedIn = pure(TurnedIn);
TurnedIn.muiName = 'SvgIcon';
export default Tu... |
dva/wd2/src/routes/User/Modify/ModifyNickPage.js | imuntil/React | import React from 'react'
import { connect } from 'dva'
import QueueAnim from 'rc-queue-anim'
import { Icon, Toast } from 'antd-mobile'
import Form from '@/components/Common/Form'
import InputItem from '@/components/Form/InputItem'
import UInput from '@/components/Form/UInput'
import { modifyNick } from '@/services'
im... |
src/index.js | marmelab/restful-devtools | import DevTools from './container/DevTools';
import React from 'react';
import ReactDOM from 'react-dom';
export default function(restful) {
const container = window.document.createElement('div');
window.document.body.appendChild(container);
ReactDOM.render(
<DevTools { ...{ restful } } />,
... |
src/components/Modal/Contents/Login.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
const Login = ({ loginError, loginStatus, onLoginClick }) => {
let userNameInput;
let passwordInput;
const handleKeyPress = (target) => {
if(target.charCode === 13){
console.log('Enter clicked!!!')
let data = {
"username": userNameI... |
src/components/typography/h1.js | awaseem/Jam | import React from 'react';
import styles from '../../css/skeleton.css';
function H1(props) {
return (
<h1 className={styles.h1} style={{ textAlign: props.align }}>{props.children}</h1>
);
}
H1.propTypes = {
children: React.PropTypes.any.isRequired,
align: React.PropTypes.string,
};
export default H1;
|
src/IconToggle/index.js | reactivers/react-material-design | /**
* Created by Utku on 26/03/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import generateId from "../utils/generateId";
import '@material/icon-toggle/dist/mdc.icon-toggle.css'
import {MDCIconToggle} from "@material/icon-toggle/dist/mdc.iconToggle";
import classNames from 'classnames';
ex... |
lib/shape/Bar3.js | wangdicoder/react-native-indicator | /**
* The scale center of this bar is center
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Shape, Path } from '@react-native-community/art';
export default class Bar3 extends React.PureComponent {
static propTypes = {
width: PropTypes.number.isRequired,
height: PropTypes.number... |
generators/react/templates/src/index.js | theodo/theodo-stack-generator | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/createBrowserHistory';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import configureStore from './redux/store';
const history = createBrowserHistory();
const store =... |
transforms/__testfixtures__/class/class-flow2.input.js | reactjs/react-codemod | /* code taken from https://github.com/reactjs/react-router/blob/master/modules/IndexRoute.js */
/* @flow */
import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './Intern... |
src/application/components/ParameterListGroup.js | movio/apidoc-ui | // @flow
import React from 'react';
import H2 from 'components/H2';
import ParameterList from 'application/components/ParameterList';
import type { Service } from 'generated/version/ServiceType';
import styles from 'application/components/parameter-list-group.css';
const ParameterListGroup = ({
title,
parameter... |
src/components/TabContent/TabContent.js | Zoomdata/nhtsa-dashboard-2.2 | import styles from './TabContent.css';
import React from 'react';
import TabContainer from '../../containers/Tab/Tab';
const TabContent = () => {
return (
<div className={styles.root}>
<TabContainer chart="scatterplot" />
<TabContainer chart="map" />
</div>
)
};
export... |
src/svg-icons/av/forward-5.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward5 = (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.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.... |
src/parser/ui/StatisticListBoxItem.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { TooltipElement } from 'interface';
/**
* @deprecated Use `parser/ui/Statistic` instead.
*/
const StatisticListBoxItem = ({ title, value, titleTooltip, valueTooltip}) => (
<div className="flex">
<div className="flex-main">
{titl... |
RNApp/node_modules/@exponent/react-native-navigator/ExNavigatorIcons.js | abhaytalreja/react-native-telescope | 'use strict';
import React from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import ResponsiveImage from '@exponent/react-native-responsive-image';
import Layout from './Layout';
let { sources, ...iconPropTypes } = ResponsiveImage.propTypes;
export class BackIcon extends React.Component {
static... |
src/components/introduction/introduction.js | cwparsons/cwparsons.ca | import { graphql, useStaticQuery } from 'gatsby';
import Img from 'gatsby-image';
import React from 'react';
import styles from '../../styles/main.module.scss';
export const Introduction = () => {
const { image } = useStaticQuery(
graphql`
query {
image: file(relativePath: { eq: "portrait/portrait.jpg" }) {... |
src/components/FacebookTabBar/index.js | r1cebank/react-native-boilerplate | /* eslint-disable no-underscore-dangle */
import React from 'react';
import {
View,
TouchableOpacity,
Animated
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import Styles from './resources/style';
class FacebookTabBar extends React.Component {
static propTypes = {
... |
lib/cli/test/fixtures/react_native_scripts/App.js | rhalff/storybook | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Text>Changes you make will automatically reload... |
src/containers/SignOut.js | snsavage/timer-react | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import { withRouter } from 'react-router-dom';
import * as actions from '../actions/sessionActions';
class SignOut extends Component {
componentWi... |
src/decorators/withViewport.js | leftshifters/clipboard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
src/common/Billing/ChartLegend.js | Syncano/syncano-dashboard | import React from 'react';
import Radium from 'radium';
import _ from 'lodash';
export default Radium(React.createClass({
displayName: 'ChartLegend',
getDefaultProps() {
return {
rows: [],
showUsage: false
};
},
getStyles() {
const styles = {
legendSquere: {
marginTop: 3... |
src/front-end/js/pages/Public.js | aleksey-gonchar/challenge-zenbrook | import React from 'react'
import TopNavbar from '../components/TopNavbar.js'
class Public extends React.Component {
render () {
return (
<div>
<TopNavbar />
<div className='container-fluid'>
<p>public content pending</p>
</div>
</div>
)
}
}
export default Pub... |
modules/IndexRoute.js | kelsadita/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
var { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRoute>... |
src/components/Search/ListItem.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import { Divider, ListItem, ListItemIcon, ListItemText } from '@material-ui/core'
import RemoveMarkup from '../../modules/RemoveMarkup'
import ItemImage from './ItemImage'
import CollectionUrl from '../../modules/Collec... |
examples/src/textfieldRoute.js | HBM/md-components | import React from 'react'
import {Textfield, Icon, Select} from 'md-components'
export default class TextfieldRoute extends React.Component {
state = {
country: 'Germany',
color: '',
phone: '',
email: '',
name: 'peter',
animal: 'Dog',
nonfloat: '',
weight: '',
select: ''
}
on... |
example/examples/LegalLabel.js | amitv87/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Animated,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
class LegalLabel extends React.Component {
static propTypes = {
provider: MapView.ProviderProp... |
client/modules/App/components/DevTools.js | F4vs/lavendimia | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
src/client/routes/index.js | mweslander/veery | // Imports
import React from 'react';
import {
hashHistory as history,
IndexRoute,
Route,
Router
} from 'react-router';
import ReactGA from 'react-ga';
// Components
import App from '../components/App';
// Routes
import adminRoutes from './admin';
// Config
import config from '../../api/config';
ReactGA.ini... |
src/svg-icons/file/cloud-download.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... |
src/routes/subject/index.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import cookies from 'cookiesjs'
import { message } from 'antd'
import { Link,routerRedux } from 'dva/router'
import MyUpload from '../../components/MyUpload'
import moment from 'moment'
import style from './index.less'
import {... |
src/components/WeatherApp/WeatherApp.js | andrkrn/react-weather | import React, { Component } from 'react';
import $ from 'jquery';
import WeatherIcon from '../WeatherIcon';
import WeatherTemperature from '../WeatherTemperature';
import WeatherSearch from '../WeatherSearch';
import './WeatherApp.css';
class WeatherApp extends Component {
constructor(props) {
super(props);
... |
packages/mineral-ui-icons/src/IconSettingsInputAntenna.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSettingsInputAntenna(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {... |
webapp-src/src/login.js | babelouest/glewlwyd | /**
*
* Glewlwyd login application
*
* Web application for users to login to Glewlwyd
* Handle password and schemes authentication
*
* Copyright 2019 Nicolas Mora <mail@babelouest.org>
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import Backend from 'i18... |
app/javascript/mastodon/features/notifications/index.js | MastodonCloud/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
src/modules/Dropdown/DropdownMenu.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* A dropdown menu can contain a menu.
*/
function DropdownMenu(props) {
const { children, className, scrolling } ... |
server/sonar-web/src/main/js/apps/project-admin/deletion/Header.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/routes/Spots/components/SpotUsers/index.js | ZeusTheTrueGod/WindsurfingNetwork-client | // @flow
import React from 'react';
import { Breadcrumb, Panel } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import { type SpotForUsers as SpotForUsersType } from '../../modules/spotUsers';
export type StateProps = {| spot: ?SpotForUsersType, search: string |};
export type DispatchPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.