path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/Login.js | gtalent/soma | import axios from 'axios';
import React from 'react';
import { HOST_ADDR } from './consts';
import Button from '@material-ui/core/Button';
import {
Divider,
Paper,
TextField,
} from '@material-ui/core';
class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
email: '',
... |
src/components/SidebarButtonWithBadge.js | ctlusto/gifsmos | import React from 'react';
import PropTypes from 'prop-types';
import { sidebarButtonDefaults } from '../lib/defaultProps';
import { sidebarButtonPropTypes } from '../lib/propTypes';
import classNames from 'classnames';
import SidebarButton from './SidebarButton';
const SidebarButtonWithBadge = ({ showBadge, value, co... |
Example/App.js | avishayil/react-native-restart | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
TouchableOpacity
} from 'react-native';
import {
Header,
LearnMoreLinks,
Colors,
Deb... |
src/components/Home.js | Lambda-CDM/react-material-dashboard | import React from 'react';
import FullWidthSection from './FullWidthSection'
import Widget from './Widget';
class Home extends React.Component {
render() {
return (
<div>
<h1 className="page-title">Dashboard</h1>
<FullWidthSection useContent={true}>
<Widget
heading="Ca... |
src/footer/ReactGridFooterPagination.js | josebalius/react-grid | import React from 'react';
class ReactGridFooterPagination extends React.Component {
goToPage(page) {
if (page > 0 && page <= this.props.totalPages && page !== this.props.currentPage) {
this.props.setCurrentPage(page);
}
}
goToLastPage() {
if (this.props.currentPage !=... |
app/javascript/tagging/components/InnerComponents/TagSelector.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import PropTypes from 'prop-types';
import { Dropdown } from 'carbon-components-react';
import TaggingPropTypes from '../TaggingPropTypes';
class TagSelector extends React.Component {
// eslint-disable-next-line react/sort-comp
handleChange = (val) => {
const { onTagCategoryChange, t... |
src/svg-icons/places/smoking-rooms.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSmokingRooms = (props) => (
<SvgIcon {...props}>
<path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.... |
src/svg-icons/action/visibility-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibilityOff = (props) => (
<SvgIcon {...props}>
<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7... |
src/script/view/AppMenu.js | Wreulicke/react-example | import React from 'react';
import MenuItem from 'material-ui/MenuItem';
import { Link } from 'react-router';
import { ClassComponent } from '../module/container/Application';
class AppMenu extends React.Component {
render() {
const resetStyle = {
marginLeft: '0px',
padding: '0px'
};
const li... |
src/controls/TextAlign/index.js | jpuri/react-draft-wysiwyg | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getSelectedBlocksMetadata, setBlockData } from 'draftjs-utils';
import LayoutComponent from './Component';
export default class TextAlign extends Component {
static propTypes = {
editorState: PropTypes.object.isRequired,
... |
src/svg-icons/content/archive.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentArchive = (props) => (
<SvgIcon {...props}>
<path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.... |
src/svg-icons/av/album.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAlbum = (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 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-... |
src/components/ContextMenu/ContextMenu.js | wfp/ui | import React from 'react';
import PropTypes from 'prop-types';
import Tooltip from '../Tooltip';
import classnames from 'classnames';
import settings from '../../globals/js/settings';
const { prefix } = settings;
/** Context menu are used as navigational elements. They should contain commands that apply to the target ... |
src/tabsets/notifs/GetItemFailNotif.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import FailRetryNotif from '../../elements/FailRetryNotif';
import * as actions from '../actions';
///
// View
///
class GetItemFailNotifView extends Component {
///
// Rendering
///
renderMessage(action, userMessage) {
return (
'Retrievi... |
src/Layout/Layout.js | sagar12861/mars | import React from 'react';
import Header from 'Layout/Header';
import Footer from 'Layout/Footer';
import Navbar from 'Layout/Navbar';
const Layout = (props) => {
return (
<div>
<Header><Navbar/></Header>
<div>{ props.children }</div>
<Footer></Footer>
</div>
);
};... |
mxcube3/ui/containers/MXNavbarContainer.js | bolmsten/mxcube3 | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import MXNavbar from '../components/MXNavbar/MXNavbar';
import { doSignOut } from '../actions/login';
import { sendClearQueue } from '../actions/queue';
class MXNavbarContainer extends React.Component {
ren... |
src/components/Download/components/FooterPopUp/index.js | codex49/icon-generator | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { showPopupDownload } from '../../../../redux/actions';
import fbIcon from '../../../../public/assets/img/icons/fb-like.png';
class FooterPopUp extend... |
src/app/core/atoms/header/index.js | blowsys/reservo | /* @flow */
import React, { Component } from 'react';
import _ from 'lodash';
import Divider from 'atoms/divider';
import Text from 'atoms/text';
import { Row, Col } from 'molecules/grid';
import './styles.scss';
type IHeaderProps = {
title: String | any,
};
export default class Header extends Component<*, IH... |
viewer/front/components/Sidebar.js | tyage/slack-patron | import React, { Component } from 'react';
import SidebarHeader from './SidebarHeader';
import SlackChannels from './SlackChannels';
import './Sidebar.less';
export default () => (
<div className="sidebar">
<SidebarHeader />
<SlackChannels />
</div>
);
|
assets/js/src/components/RepoSelector/RepoSelector.js | nathandao/git.report | import React from 'react';
import RepoButton from 'components/RepoSelector/RepoButton';
class RepoSelector extends React.Component {
repoButtonList() {
let repoBtnList = [];
this.props.repos.map((repo) => {
repoBtnList.push(
<RepoButton repo={ repo } key={ repo.id }/>
);
});
retu... |
src/components/ui/form/container.js | xavier-besson/react-playground | import React from 'react';
import Default from 'components/ui/default';
import Immutable from 'immutable';
/**
* @class FormContainer
* @extends Default
*/
class FormContainer extends Default {
/**
* Range of validators that can be used to make sure the data you receive is valid
* @type {Object}
*/
static... |
docs/app/Examples/elements/Segment/Groups/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SegmentGroupsExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Segments'
description=... |
src/docs/Docs.js | noumanberlas/prime-react | import React from 'react';
import Navigation from './Navigation';
import ComponentPage from './ComponentPage';
import componentData from '../../config/componentData';
export default class Docs extends React.Component {
constructor(props) {
super(props);
this.state = {
route: window.location.hash.substr... |
src/stories/templates/Landing.stories.js | gabrielcsapo/tryitout | import React from 'react'
import Landing from '../../templates/landing'
export default {
title: 'Templates/Landing',
component: Landing
}
export const Basic = () => {
const options = {
title: 'Steno',
nav: {
Docs: 'http://gabrielcsapo.com/steno'
},
body: `
<div style="text-ali... |
components/Root.js | ttalhouk/Game_On | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Image,
View,
Navigator,
TouchableHighlight
} from 'react-native';
class Root extends Component {
register(){
this.props.navigator.push({
name: 'register'
})
}
login(){
this.props.navigator.push({
... |
app/javascript/mastodon/features/ui/components/column_header.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
ee/app/engagement-dashboard/client/components/data/LegendSymbol.stories.js | Sing-Li/Rocket.Chat | import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import { LegendSymbol } from './LegendSymbol';
import { monochromaticColors, polychromaticColors } from './colors';
export default {
title: 'admin/enterprise/engagement/data/LegendSymbol',
component: LegendSymbol,
decorators: [(fn) =>... |
client/src/components/TrainingPage.js | BrianLusina/Arco | /**
* Created by lusinabrian on 05/05/17.
*/
import React from 'react';
const TrainingPage = () => {
return(
<div className="page" id="page-training">
<header className="bp-header cf">
<h1 className="bp-header__title">Training & Learning Center</h1>
<p className="bp-header__desc">Based on Ilya ... |
app/components/common/Badge.js | rvpanoz/luna | import React from 'react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import MuiBadge from '@material-ui/core/Badge';
import { BADGE } from 'styles/common';
const Badge = ({ className, dotted, number, children, ...props }) => (
<MuiBadge
className={cx(
BADGE.root,
className,
... |
src/components/TableArea.js | migutw42/jp-tax-calculator | import React from 'react';
import Paper from 'material-ui/Paper';
import Table, {
TableBody,
TableCell,
TableHead,
TableRow
} from 'material-ui/Table';
import numeral from 'numeral';
import TaxCalculator from '../libs/TaxCalculator';
const TableArea = ({ data }) =>
<Paper>
<Table>
<TableHead>
... |
src/widgets/sidebar/sidebar.js | HelloQingGuo/HelloQingGuo.github.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import QueueAnim from 'rc-queue-anim';
import { setCurNav } from '../../actions/action_ui';
import logo from '../../assets/logo.svg';
import './sidebar.css';
cla... |
node_modules/react-bootstrap/es/FormControlStatic.js | ProjectSunday/rooibus | 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 ... |
app/javascript/mastodon/features/ui/components/column_subheading.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
src/main/frontend/src/components/AddCommentForm.js | php-coder/mystamps | //
// IMPORTANT:
// You must update ResourceUrl.RESOURCES_VERSION each time whenever you're modified this file!
//
import React from 'react';
// @todo #1338 AddCommentForm: add tests
class AddCommentForm extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
comment: '',
validationE... |
Example/src/index.js | ErikMediaMonks/react-native-native-navigation | import React, { Component } from 'react';
import { processColor } from 'react-native';
import {
Navigation,
DrawerView,
SingleView,
SplitView,
StackView,
TabView
} from 'react-native-native-navigation';
import Home from './pages/Home';
import Menu from './pages/Menu';
import Detail from './pages/Detail'
import De... |
tools/playground/index.js | auth0/web-header | /* eslint-env browser */
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './containers';
const rootEl = document.getElementById('content');
render(
<AppContainer>
<App />
</AppContainer>,
rootEl
);
if (module.hot) {
module.ho... |
src/client/pages/notFound/NotFound.route.js | BhumiSukhadiya/React_Project_Repo | /**
* 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 Layout from '../../co... |
src/pages/sorting/Cunting/Cunting.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Cunting extends React.Component {
render() {
return (
<div>Cunting</div>
)
}
}
export default Cunting |
app/containers/RepoListItem/index.js | X0nic/cloud-cost | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
/* eslint-disable react/prefer-stateless-function */
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { selectCurrentUser } from 'containers/App/selectors';
import ListI... |
lib/ui/components/Mocks/Tabs.js | 500tech/mimic | import React from 'react';
import { TabsContainer, Tab, TabsText } from 'ui/components/Mocks/styled';
const Tabs = (props) => (
<TabsContainer>
{
props.options.map(
(tab) => (
<Tab isSelected={ tab === props.selectedTab }
onClick={ () => props.selectTab(tab) }
... |
modules/IndexLink.js | joeyates/react-router | import React from 'react'
import Link from './Link'
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/pages/page-2.js | dbertella/my-family | import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
const SecondPage = () => (
<Layout>
<Link to="/">Go back to the homepage</Link>
</Layout>
)
export default SecondPage
|
src/svg-icons/av/pause-circle-outline.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2... |
src/components/Accordeon/AccordeonItem.js | aos2006/tesDeploy | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from 'react-toolbox/lib/font_icon';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Arrow from '-!babel-loader!svg-react-loader!./icons/arrow.svg?name=Arrow';
import cx from 'classnames';
import s from './Accordeon.cs... |
src/components/ReduxFormWrapper/ReduxFormWrapper.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import warningMesssage from 'warning';
let didWarnAboutDeprecation = false;
const ReduxFormWrapper = ({
input,
inputComponent,
InputComponent,
classNamePrefix,
invalidText,
meta: { touched, error, submitError, warning },
...other
}) => {
i... |
app/Main.js | kunal-malik/flickrpublicfeed | import React from 'react'
import { render } from 'react-dom'
import { Search } from './Search'
import { PhotoGrid } from './PhotoGrid'
import { Service } from './Service'
import { Alert } from 'react-bootstrap'
/** This is the main class for rendering all the components displayed on screen */
export class Main extends... |
src/components/HomePage.js | ronstarcool/pf | import React from 'react';
import '../styles/homepage.scss';
const HomePage = () => {
return (
<div className="homepage">
<h1>Ronstarcools Webpage!</h1>
</div>
);
};
export default HomePage;
|
src/components/LoginForm/LoginForm.js | zuban/edhunter | import React from 'react'
import {Field, reduxForm} from 'redux-form'
import {
Label,
} from 'reactstrap';
const LoginForm = (props) => {
const {handleSubmit, pristine, reset, submitting} = props
return (
<form onSubmit={handleSubmit}>
<div>
<Label>Ваш email</Label>
<Field required clas... |
src/components/common/Icon.js | alexandernanberg/minimal-react-boilerplate | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import preval from 'preval.macro'
const iconMap = preval`
const fs = require('fs')
const { join, resolve } = require('path')
const iconPath = resolve('public/icons')
const icons = fs.readdirSync(iconPath)
mo... |
dispatch/static/manager/src/js/components/modals/ImageManager/ImageThumb.js | ubyssey/dispatch | import React from 'react'
require('../../../../styles/components/image_thumb.scss')
export default function ImageThumb(props) {
let style
if (props.isSelected) {
style = {
background: `repeating-linear-gradient(
45deg,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.2) 10px,
rgba(0... |
src/mui/field/UrlField.js | matteolc/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import pure from 'recompose/pure';
const UrlField = ({ source, record = {}, elStyle }) => (
<a href={get(record, source)} style={elStyle}>
{get(record, source)}
</a>
);
UrlField.propTypes = {
addLabel: Pro... |
src/app/components/team/SmoochBot/SmoochBotIntegrations.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { makeStyles } from '@material-ui/core/styles';
import Box from '@material-ui/core/Box';
import Tooltip from '@material-ui/core/Tooltip';
import TextField from '@material-ui/core/TextField';
import IconB... |
src/js/components/form/input_group.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { mixin } from '../../utils/decorators';
import themes from '../../theme';
import { Input } from '../../components';
import { CssClassMixin } from '../../mixins';
@mixin(CssClassMixin)
export default class InputGroup extends Co... |
src/component/multiLineChart.js | UlricGan/react-d3 | import d3 from 'd3'
import React from 'react'
import _ from 'lodash'
export default class MultiLineChart {
update(data) {
let color = d3.scale.category10()
let x = d3.time.scale()
.range([0, this.width])
let y = d3.scale.linear()
.range([this.height, 0])
let interval = Math.ceil(data.length / 10)
t... |
src/challenges/react/React_07.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
app/src/common/Logo.js | skunkmb/Ablo | import React, { Component } from 'react';
import { Text, View, ViewPropTypes, Image, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import { darkTheme } from '../themes.js';
let styles = darkTheme.styleSheet;
let styleOptions = darkTheme.options;
let abloA = require('../res/ablo-a.png');
expor... |
app/Screens/Configuration/Configuration.js | martinvarelaaaa/tintina | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Configuration from '../../Components/Configuration';
class ConfigurationScreen extends Component {
profileOpen = () => {
this.props.navigation.navigate('ConfigurationProfile');
};
familyOpen = () => {
this.props.naviga... |
src/Slide.js | mattBlackDesign/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import constants from './constants';
class Slide extends Component {
constructor (props) {
super(props);
this.renderCaption = this.renderCaption.bind(this);
}
render () {
return (
<li>
... |
index.js | qstorey/hn-clone | import React from 'react'
import { Router, Route, browserHistory } from 'react-router'
import { render } from 'react-dom'
import TopStories from './modules/TopStories'
import Author from './modules/Author'
render((
<Router history={browserHistory}>
<Route path="/" component={TopStories}/>
<Route path="/autho... |
js/components/pages/PublicityPage/PublicityPage.react.js | Freizeitler/curcooma-game | /*
* HomePage
* This is the first thing users see of our App
*/
import { asyncChangeProjectName, asyncChangeOwnerName } from '../../../actions/AppActions';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import PageControls from '../../organisms/... |
client/src/javascript/components/sidebar/FeedsButton.js | stephdewit/flood | import {defineMessages, injectIntl} from 'react-intl';
import React from 'react';
import FeedIcon from '../icons/FeedIcon';
import Tooltip from '../general/Tooltip';
import UIActions from '../../actions/UIActions';
const MESSAGES = defineMessages({
feeds: {
id: 'sidebar.button.feeds',
defaultMessage: 'Feeds... |
client/modules/Module/__tests__/components/ModuleList.spec.js | Muisti/muisti | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { ModuleList } from '../../components/ModuleList';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
import * as moduleActions from '../../ModuleActions';
import * as authStorage from '../../../... |
src/components/VmUserMessages/index.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Notification, NotificationDrawer, MenuItem, Icon, Button } from 'patternfly-react'
import OverlayTooltip from '../OverlayTooltip'
import style from './style.css'
import { clearUserMessages, dismissEvent } from... |
react-redux-todo/src/components/TodoList.js | okutani-t/javascript-code | import React from 'react'
import PropTypes from 'prop-types'
import Todo from './Todo'
const TodoList = ({ todos, toggleTodo }) => (
<ul>
{todos.map((todo) =>
<Todo
key={todo.id}
{...todo}
onClick={() => toggleTodo(todo.id)}
/>
)}
</ul>
)
TodoList.propTypes = {
todos:... |
docs/src/pages/layout/css-in-js/MediaQuery.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import { withStyles } from 'material-ui/styles';
import withWidth from 'material-ui/utils/withWidth';
import Typography from 'material-ui/Typography';
const styles = theme => ({
root: {
padding: theme.spacing.... |
node_modules/react-bootstrap/es/ModalFooter.js | CallumRocks/ReduxSimpleStarter | 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 ... |
fields/types/date/DateField.js | jstockwin/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
/*
TODO: Implement yearRange Prop, or deprecate for max / min values (better)
*/
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD... |
app/javascript/mastodon/main.js | 5thfloor/ichiji-social | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
app/Drawer.js | Awesomez/DoubanMovieApp | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
DrawerLayoutAndroid,
Dimensions,
TouchableNativeFeedback,
Platform,
ToastAndroid,
Navigator,
ListView,
TouchableElement,
View
} from 'react-native';
var DataSource = require('./DataSource');
v... |
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/SeepingScourgewing.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDone from 'Main/ItemDamageDone';
/**
* Seeping Scourgewing -
* Equip: Your melee attacks have a chan... |
src/svg-icons/action/info.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfo = (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 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
</SvgIcon>
);
ActionInfo = pure(ActionInfo);
ActionI... |
react/CheckMarkIcon/CheckMarkIcon.js | seek-oss/seek-style-guide | import svgMarkup from './CheckMarkIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function CheckMarkIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
CheckMarkIcon.displayName = 'CheckMarkIcon';
|
src/svg-icons/action/build.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBuild = (props) => (
<SvgIcon {...props}>
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-... |
examples/namespacing/src/components/Input/Container.js | jas-chen/typed-redux | import React from 'react'
import { connect } from 'react-redux'
import { Change } from './actions'
import Input from './Component'
const mapDispatchToProps = {
onChange: value => new Change(value)
}
const InputContainer = ({ stateKey }) => {
const mapStateToProps = state => {
return {
value: state[state... |
src/screens/RecommendScreen/RecommendScreen/index.js | VIPShare/VIPShare | import React, { Component } from 'react';
import { View, Image, Text, ScrollView } from 'react-native';
import { Col } from 'react-native-elements';
import HTMLView from 'react-native-htmlview';
import Page from '../../../components/Page';
import { item } from '../../../services/recommend';
import styles from './ind... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | xiaohu-developer/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
app/components/common/Nav.js | alfg/somafm | import React, { Component } from 'react';
import styles from './Nav.module.css';
export default class Nav extends Component {
constructor(props) {
super(props);
this.handleScroll = this.handleScroll.bind(this);
this.state = {
transform: ''
};
}
componentDidMount() {
window.addEventLi... |
docs-ui/components/lazyLoad.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import LazyLoad from 'app/components/lazyLoad';
storiesOf('LazyLoad', module).add(
'default',
withInfo('Lazy loads a view/component')(() => {
const MyComponent = () => (
<div>View that ... |
app/containers/LanguageProvider/index.js | OrenElad/picashare | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
test/test_helper.js | ezetreezy/reactTesting | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
nlyyAPP/component/揭盲/揭盲申请/单个受试者特定揭盲/MLDgssztdjm.js | a497500306/nlyy_APP | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
TextInput,
ActivityIndicator,
Alert
} from 'react-native';
var Dimensions = r... |
elements/TextPath.js | msand/react-native-svg | import React from 'react';
import { requireNativeComponent } from 'react-native';
import extractTransform from '../lib/extract/extractTransform';
import extractProps, { propsAndStyles } from '../lib/extract/extractProps';
import extractText from '../lib/extract/extractText';
import { idPattern, pickNotNil } from '../li... |
src/views/components/admin/CohortEditor.js | Domiii/project-empire | import React, { Component } from 'react';
import DynamicForm from 'src/views/tools/DynamicForm';
import { dataBind } from 'dbdi/react';
import {
Panel, Button, ListGroup, ListGroupItem, Alert, Badge
} from 'react-bootstrap';
export const schemaTemplate = {
type: 'object',
properties: [
{
id: 'name',
... |
examples/react-router-redux/test/helpers/shallowRenderHelper.js | stylesuxx/generator-react-webpack-redux | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/video_list.js | theoryNine/react-video-browser | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});... |
src/components/SearchResults.js | hunt-genes/gwasc | import React from 'react';
import Result from './Result';
export default class SearchResults extends React.Component {
static propTypes = {
results: React.PropTypes.object,
toggleSelected: React.PropTypes.func,
isSelected: React.PropTypes.func.isRequired,
selecting: React.PropTypes.... |
src/components/adventure/AdventureList.js | mdicarlo3/cautious-disco | import React, { Component } from 'react';
class AdventureList extends Component {
render(){
return(
<div className="adventure-list">Adventure lists</div>
);
}
}
|
react/eventwizard/components/teamsTab/TeamList.js | phil-lopreiato/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
import TeamItem from './TeamItem'
import TEAM_SHAPE from '../../constants/ApiTeam'
const TeamList = (props) => (
<div>
{props.teams.length > 0 &&
<p>
{props.teams.length} teams attending
</p>
}
<ul>
{props.teams.map((team) ... |
material-ui/src/cookbook/X-slides/ThreeStepWizard.js | Muzietto/react-playground | import React from 'react';
import Paper from '@material-ui/core/Paper';
import Slide from '@material-ui/core/Slide';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import { makeStyles } from '@material-ui/core/styles';
import FormControl from '@material-ui/core/FormControl';
import FormLabel from '@... |
app/jsx/assignments_2/shared/SVGWithTextPlaceholder.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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/svg-icons/device/add-alarm.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAddAlarm = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
client/src/app/components/LolImg.js | rajington/heartseekers | import React from 'react';
const LolImg = ({ src, alt }, { data: { version } }) => (
<img src={`http://ddragon.leagueoflegends.com/cdn/${version}/img/${src}`} alt={alt} />
);
LolImg.propTypes = {
src: React.PropTypes.string.isRequired,
alt: React.PropTypes.string,
};
LolImg.contextTypes = {
data: React.PropT... |
src/components/comment_list.js | Rickardkamel/React-Testing | import React from 'react';
import { connect } from 'react-redux';
const CommentList = (props) => {
const list = props.comments.map(comment => <li key={comment}>{comment}</li>)
return (
<ul className='comment-list'>
{list}
</ul>
);
};
function mapStateToProps(state) {
retur... |
src/js/components/SpaceScene.js | elliotaplant/celestial-dance | import React from 'react';
import Dancer from './Dancer';
import dancerData from '../Helpers/dancerData';
import { massToRadius } from '../Helpers/Helpers';
var KeyboardControls = require('aframe-keyboard-controls');
var ProxyControls = require('aframe-proxy-controls');
AFRAME.registerComponent('keyboard-controls', Key... |
frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import EditSpecificationModalContentConnector from './EditSpecificationModalContentConnector';
function EditSpecificationModal({ isOpen, onModalClose, ...otherProps }) {
r... |
pages/atomic-components.js | pagesource/fusion | import React from 'react';
import { ThemeProvider } from 'theming';
import { Avatar, Button } from '../';
import theme from '../theme';
// -----Global Imports ---------
import Layout from './components/Layout';
// -------- Page level Imports ----------
const AtomicComponent = () => (
<Layout>
<ThemeProvider them... |
src/app/components/utilComponents/HoverButton/HoverButton.js | tvarner/PortfolioApp | import React from 'react';
const HoverButton = React.createClass({
getInitialState: function () {
return {hover: false};
},
mouseOver: function () {
this.setState({hover: true});
},
mouseOut: function () {
this.setState({hover: false});
},
render: function() {
let label = this.props.defaultContent... |
common/components/SettingsDialog.js | Notist/front-end | /* I'm being a bad dude and disabling some eslint rules on a per file basis -- Byrne */
/* eslint-disable no-unused-vars */
import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import { RadioButton } from 'material-ui/RadioButton';
import { StyleSheet, cs... |
src/routes/Todo/components/AddTodo.js | cedzz/react-redux-learn | import React from 'react';
let nextTodoId = 0;
const AddTodo = (props , { store }) => {
let input;
return (
<div>
<input ref={node => { input = node } } />
<button onClick={ () => {
store.dispatch({
type: 'ADD_TODO',
text: input.value,
id: nextTodoId++
... |
src/client/user/UserFollowers.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { getFollowers } from '../helpers/apiHelpers';
import UserDynamicList from './UserDynamicList';
export default class UserFollowers extends React.Component {
static propTypes = {
match: PropTypes.shape().isRequired,
};
static limit = 50;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.