path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
blueocean-material-icons/src/js/components/svg-icons/maps/beenhere.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsBeenhere = (props) => (
<SvgIcon {...props}>
<path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59-7.59L19 7l-9 9z"/>
</SvgIcon>
... |
stories/src/app.js | Vizzuality/care_usa | import React, { Component } from 'react';
import Pages from 'pages';
import Header from 'components/header/header';
import Footer from 'components/footer.component';
import ReactGA from 'react-ga';
import './style.css';
const GA_ID = process.env.NODE_ENV === 'production' ? 'UA-77384250-1' : '';
if (GA_ID) {
ReactG... |
app/components/Settings/ZeroBtn.js | TheCbac/MICA-Desktop | // @flow
/* **********************************************************
* File: components/Settings/ZeroBtn.js
*
* Brief: React component for zeroing the sensor
* Authors: Craig Cheney
*
* 2017.10.02 CC - Document created
*
********************************************************* */
import React, { Component } from 're... |
src/components/time/TimeSlider.js | wayofthefuture/react-input-moment | import cx from 'classnames';
import React from 'react';
import InputSlider from 'react-input-slider';
export default class extends React.Component {
constructor(props) {
super(props);
}
render() {
let mom = this.props.moment;
let minutes = this.getMinutes(mom);
return (
<div className={cx... |
es/components/ReCaptcha/ReCaptcha.js | welovekpop/uwave-web-welovekpop.club | import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized";
import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose";
import React from 'react';
import PropTypes from 'prop-types';
var ReCaptcha =
/*#__PURE__*/
function (_React$Component) {
_inheritsLoose(ReCaptcha, _R... |
src/__tests__/app.js | randomlysa/react-weather | import React from 'react';
import App from '../components/app';
import { createStore } from 'redux';
import { Provider, connect } from 'react-redux';
import reducer from '../reducers';
import { render, getByText } from 'react-testing-library';
jest.mock('../../node_modules/material-icons-react', () => {
MaterialIco... |
app/addons/documents/index-results/components/results/WrappedAutocomplete.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/esm/components/graphics/icons/star-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var StarIcon = function StarIcon(_ref) {
var color = _ref.co... |
src/js/components/settings/organization/organizationsettingsitem.js | michaelatmender/gui | import React from 'react';
import { Divider, ListItem, ListItemText } from '@mui/material';
import { makeStyles } from 'tss-react/mui';
const defaultItemProps = { alignItems: 'flex-start' };
export const maxWidth = 500;
const useStyles = makeStyles()(theme => ({
divider: { marginBottom: theme.spacing(), marginLef... |
src/Grid.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
fluid... |
packages/cf-component-loading/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import Loading from 'cf-component-loading';
const LoadingComponent = () => (
<div>
<Loading />
</div>
);
export default LoadingComponent;
|
src/Thumbnail.js | zanjs/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
client/extensions/woocommerce/app/order/header.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Gridicon from 'gridicons';
import { isEmpty } from 'lodash';
import { localize } from 'i18n-calypso';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
/... |
app/containers/HomePage/components/top_bar.js | ledminh/ledminh-home | import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
position: absolute;
top: 0px;
left: 0px;
width: 100%;
display: none;
@media screen and (max-width: 700px) {
display: block;
}
`;
const TopStrip = styled.div`
background-color: #2f303... |
src/scenes/userProfile/components/ProfileTabBar.js | niekert/soundify | import React from 'react';
import { string } from 'prop-types';
import TabBar, { Item as TapbarItem } from 'components/TabBar';
function ProfileTabBar({ urlBase }) {
return (
<TabBar>
<TapbarItem to={urlBase}>Tracks</TapbarItem>
<TapbarItem to={`${urlBase}/favorites`}>Likes</TapbarItem>
</TabBar>... |
app/app.js | mxstbr/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import '@babel/polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impo... |
benchmarks/src/implementations/react-native-web/Tweet/index.js | rofrischmann/fela | import AspectRatio from './AspectRatio';
import GridView from './GridView';
import PropTypes from 'prop-types';
import TweetActionsBar from './TweetActionsBar';
import TweetText from './TweetText';
import UserAvatar from './UserAvatar';
import UserNames from './UserNames';
import { Image, StyleSheet, Text, View } from ... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-progress-bar.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from '../common/common.js';
import Cover from './progress-bar-cover.js';
import Item from './progress-bar-item.js';
import './progress-bar.less';
export const ProgressBar = React.createClass({
//@@viewOn:mixins
... |
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/compound-assignment/actual.js | kedromelon/babel | import React from 'react';
import Loader from 'loader';
const errorComesHere = () => <Loader className="full-height"/>,
thisWorksFine = () => <Loader className="p-y-5"/>;
|
src/app/components/containers/dashboard-details-container.js | ishaan-puniani/moopy-server | import React from 'react';
import {connect} from 'react-redux';
import UserProfile from '../views/user-profile';
import DashboardMood from '../views/dashboard-mood';
import * as dashboardApi from '../../api/dashboard-api';
import store from '../../store';
import {
dashboardMoodDetailsSuccess
} from '../../actions/d... |
renders.js | Benjamin-Dobell/react-native-markdown-view | /* @flow */
import React from 'react'
import {
Image,
Text,
View,
} from 'react-native'
import {
Cell,
Grid,
Row,
} from 'react-native-tabular-grid-markdown-view'
import type {
EmptyNode,
HeadingNode,
ImageNode,
InlineContentNode,
LinkNode,
ListNode,
TableNode,
OutputFunction,
RenderSt... |
src/views/ProjectStoriesView/index.js | asidiali/pivotal.press | import {
DropDownMenu,
Menu,
MenuItem,
Popover,
} from 'material-ui';
import {
Icon,
Loader,
StoryCard,
StoryColumn,
StoryDetails,
} from '../../components';
import ActivityFeed from './ActivityFeed';
import Clipboard from 'clipboard';
import LabelsFilter from './LabelsFilter';
import OwnersFilter fr... |
pages/blog/test-article-two.js | HashtasticDesign/build | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Test Article 2</h1>
<p>Co... |
src/components/root/body/filter/type-filter.js | hamatoyogi/imdb-app-v2 | import React, { Component } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import { dataStore } from '../../../../stores/data-store';
const names = [
'Oliver Hansen',
'Van Henry',
'April Tucker',
'Ralph Hubbard',
'Omar Alexander',
'Carlos Abbot... |
src/icons/AndroidSend.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidSend extends React.Component {
render() {
if(this.props.bare) {
return <g>
<polygon points="48,448 464,256 48,64 48,213.333 346,256 48,298.667 "></polygon>
</g>;
} return <IconBase>
<polygon poi... |
app/app.js | arizto/humnos-mobile | 'use strict';
import React, { Component } from 'react';
import { View, Text, StyleSheet, Platform, StatusBar, Image, InteractionManager } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { StackNavigator, TabNavigator } from 'react-navigation';
import {bindActionCreators} from 'redu... |
app/js/components/ui/formMessage.js | Dennetix/Motwo | import React from 'react';
import theme from '../../utils/theme';
@theme
export default class FormMessage extends React.Component {
getStyle() {
return {
width: '100%',
margin: '10px 0 8px 0',
lineHeight: '115%',
transform: 'translateX(1px)',
color: this.props.error ? this.props.getThemeProp('formE... |
src/pages/index.js | anisiomarxjr/anisiomarxjr.github.io | import React from 'react'
import Link from 'gatsby-link'
import get from 'lodash/get'
import Helmet from 'react-helmet'
import Bio from '../components/Bio'
import { rhythm } from '../utils/typography'
class BlogIndex extends React.Component {
render() {
const siteTitle = get(this, 'props.data.site.siteMetadata.... |
views/status_line.js | adamliesko/black-screen | import React from 'react';
export default React.createClass({
render() {
return (
<div className="status-line">
<CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/>
<VcsData data={this.props.vcsData}/>
</div>
)
... |
pages/404.js | creeperyang/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Not Found</h1>
<p>The pag... |
imports/ui/pages/NotFound.js | themeteorchef/base | import React from 'react';
import { Alert } from 'react-bootstrap';
const NotFound = () => (
<div className="NotFound">
<Alert bsStyle="danger">
<p><strong>Error [404]</strong>: { window.location.pathname } does not exist.</p>
</Alert>
</div>
);
export default NotFound;
|
src/scripts/lib/libs.main.js | abradley2/modern-fullstack-javascript | import _ from 'lodash';
import Backbone from 'backbone';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactViewMediator from 'react-view-mediator';
window._ = _;
window.Backbone = Backbone;
window.React = React;
window.ReactDOM = ReactDOM;
window.ReactViewMediator = ReactViewMediator;
|
src/js/components/icons/base/Tools.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/client/components/shared/FacebookButton/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
export default class FacebookLikeButton extends Component {
componentDidMount() {
const fbscript = document.createElement('script');
fbscript.src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5';
fbscript.id = 'facebook-jssdk';
fbscript.onload = ... |
src/components/root/root.js | hamatoyogi/imdb-app-v2 | import React from 'react';
import { observer } from 'mobx-react';
import { Head } from './head/head';
import { Body } from './body/body';
import { Row, Col } from 'react-flexbox-grid';
import { dataStore } from '../../stores/data-store';
@observer
export class Root extends React.Component {
render() {
return (
... |
src/React/Widgets/LayoutsWidget/TwoLeft.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss';
export default function render(props) {
return (
<table
className={props.active === '3xL' ? style.activeTable : style.table}
name="3xL"
onClick={props.onClick}
>
... |
src/PageHeader.js | Terminux/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
app/containers/App.js | flip-it/Results-Displayer | import React from 'react';
import { connect } from 'react-redux';
// import { setState, tick } from '../actions';
import Result from '../components/result/Result';
import 'suitcss-components-arrange';
class App extends React.Component {
componentDidMount() {
const headerHeight = this.refs.header.getBoundingC... |
loader/index.js | YashdalfTheGray/talks | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Redbox from 'redbox-react';
import Presentation from './presentation';
const CustomErrorReporter = ({ error }) => <Redbox error={ error } />;
CustomErrorReporter.pr... |
src/components/Main.js | yuhaogo/study-mk-photos | require('styles/iconfont.css');
require('styles/main.less');
import React from 'react';
import ReactDOM from 'react-dom';
import ImagesFigure from './ImagesFigure';
import NavsFigure from './NavsFigure';
//获取图片相关信息数据
var imagesDatasArr=require('../sources/imagesData.json');
//通过自运行函数获得图片URL
imagesDatasArr=(function ... |
www/ui/api.js | ForbesLindesay/cabbie | import React from 'react';
import Match from './match';
import documentation from '../documentation';
import Cabbie from './documentation/cabbie';
import Enums from './documentation/enums';
import ClassType from './documentation/class-type';
import PageWithNavigation, {NavigationWrapper, ContentWrapper, SidebarLink} fr... |
geonode/contrib/monitoring/frontend/src/components/organisms/hardware-performance/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import RaisedButton from 'material-ui/RaisedButton';
import ChartIcon from 'material-ui/svg-icons/av/equalizer';
import HoverPaper from '../../atoms/hover-paper';
import GeonodeStatus from '../../cels/geonode-status';
import GeoserverStatus from '../../cels... |
src/svg-icons/editor/money-off.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMoneyOff = (props) => (
<SvgIcon {...props}>
<path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ... |
src/SplitToggle.js | adampickeral/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
export default class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle... |
app/components/resume/Greetings.js | alessandrodeste/cv-react | import React, { Component } from 'react';
class Greetings extends Component {
render() {
return (
<div className="resume__greetings">
<div className="panel-footer" dangerouslySetInnerHTML={{__html: this.props.greetings}} />
</div>
);
}
}
export default Greetings; |
docs/src/app/components/pages/components/List/ExampleChat.js | xmityaz/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import Avatar from 'material-ui/Avatar';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import CommunicationChatBubble from 'material-ui/svg-icon... |
examples/incremental-counter/src/Containers/Redux/Devtools.js | madewithlove/redux-socket-middleware | 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 defaultIsVisible={false} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q">
... |
src/components/DataTable/TableToolbarAction.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import OverflowMenuItem from '../OverflowMenuItem';
const TableToolbarAction ... |
client/components/LandingPage.js | nimblecode/nimblecode | import React, { Component } from 'react';
import LandingPageInfoBox from './LandingPageInfoBox';
class LandingPage extends Component {
componentWillMount() {
this.content = {
boxOneTitle: 'Learn By Typing',
boxOneText: 'Become a faster and more efficient coder, whether you are an experienced or beg... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | alarky/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.Component {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-header... |
packages/wix-style-react/src/SectionHelper/test/SectionHelper.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { Layout, Cell } from '../../Layout';
import { Appearance } from '../constants';
import SectionHelper from '../index';
const commonProps = {
title:
'Look at this really long and important message that could in some cases contain many... |
examples/react-hello/source/index.js | chrisbuttery/tdd-es6-react | import React from 'react';
import app from './app';
const App = app(React);
const root = document.getElementById('root');
React.render(<App />, root);
|
lib/routes.js | codefordenver/fresh-food-connect | import React from 'react';
import {Route, Router} from 'react-router';
import * as storage from './persistence/storage';
import {validateToken} from './actions/authActions';
import {loginFrom} from './actions/redirectActions';
import {
Application,
DonationSubmitted,
ForgotPassword,
Home,
HowItWorks,
Logi... |
app/components/CheckOutComponent.js | cdillon85/the-art-store | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
import Paper from 'material-ui/Paper'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'
export default function CheckOutComponent (props) {
const style = {
width: '100%',
... |
components/CardContent.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import Icon from './Icon';
const propTypes = {
children: PropTypes.node,
cardIcon: PropTypes.string,
cardTitle: PropTypes.string,
cardLink: PropTypes.node,
cardInfo: PropTypes.array,
className: PropTypes.str... |
src/SplitButton.js | roderickwang/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
examples/demos/cultures.js | elationemr/react-big-calendar | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
require('globalize/lib/cultures/globalize.culture.en-GB');
require('globalize/lib/cultures/globalize.culture.es');
require('globalize/lib/cultures/globalize.culture.fr');
require('globalize/lib/cultures/globalize.c... |
src/button-group/button-group.js | ricsv/react-leonardo-ui | import React from 'react';
import { luiClassName } from '../util';
const ButtonGroup = ({ className, children, ...extraProps }) => {
const finalClassName = luiClassName('buttongroup', {
className,
props: extraProps,
});
return (
<div {...extraProps} className={finalClassName}>
{children}
<... |
src/svg-icons/image/view-comfy.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
WebpackProject/src/index.js | sauceSquatch/webpack-learning | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import Routes from './router';
import '../style/materialize.css';
import '../style/react-ran... |
packages/core/src/components/SocialLinks/SocialLinks.js | appearhere/bloom | // @flow
import React from 'react';
import cx from 'classnames';
import templateHelper from '../../utils/templateHelper/templateHelper';
import noop from '../../utils/noop';
import Icon from '../Icon/Icon';
import ScreenReadable from '../ScreenReadable/ScreenReadable';
import css from './SocialLinks.css';
const empt... |
src/components/HomePage/Biography.js | guivazcabral/site | import React from 'react';
import { Link } from 'react-router';
const Biography = () => {
return (
<div className="content biography row">
<div className="small-12 medium-8 large-6 columns">
<p>
I am a young man who likes to cook and eat. Professionaly, I craft code for web.
... |
client/src/components/HowItWorks/StepSelectorButton.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
const StepSelectorButton = ({ onClick, stepNum, isSelected, isHighlighted, vertical }) => {
let classes = `step-selector-btn-${stepNum}`;
if (isSelected) {
classes += ' selected';
} else {
classes += ' not-selected';
}
if (isHighlighted) ... |
src/components/tool-button/tool-button.component.js | GeoTIFF/geotiff.io | import React from 'react';
import { Link } from 'react-router-dom';
const ToolButtonComponent = ({ name, iconUrl, path }) => (
<Link to={path} className='tool-button'>
<i style={{ backgroundImage: `url(${iconUrl})` }}></i>
<p>{name}</p>
</Link>
);
export default ToolButtonComponent;
|
src/Interpolate.js | victorzhang17/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
node_modules/react-bootstrap/es/TabContainer.js | ASIX-ALS/asix-final-project-frontend | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'r... |
packages/material-ui-icons/src/FormatListNumbered.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FormatListNumbered = props =>
<SvgIcon {...props}>
<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" />
... |
src/index.js | ViniciusAtaide/reduxchat | import React from 'react';
import Router, { Route, DefaultRoute } from 'react-router';
import Layout from './components/Layout';
import Main from './components/Main';
import Subscribe from './components/Subscribe';
import { Provider } from 'redux/react';
import { createStore, bindActionCreators } from 'redux';
import *... |
src/routes/Account/components/Account.js | EricThsi/today-focus-news | import React, { Component } from 'react';
import PropTypes from 'prop-types'
import { browserHistory } from 'react-router'
import {Grid, Col, Panel} from 'react-bootstrap'
import { Form, FormGroup, FormControl } from 'react-bootstrap'
import { Checkbox, Button, ControlLabel, HelpBlock } from 'react-bootstrap'
import { ... |
src/js/jobs/Jobs.js | tpucci/jobads-webapp | import React from 'react';
import Layout from '../container/Layout';
import Snackbar from 'material-ui/Snackbar';
import {HotKeys} from 'react-hotkeys';
// helpers
import post from '../helpers/post';
import prepareQuery from '../helpers/prepareQuery';
// Screens
import SearchScreen from './screens/SearchScreen';
impo... |
src/server.js | fuczak/pipsy | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
content/theme/components/Pipelines/parserform.js | typesettin/NativeCMS | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, Platform, Text, Image, Dimensions, TextInput, } from 'react-native';
import layoutStyles from '../../../../app/components/Styles/layout';
import constants from '../../constants';
import { getParserVariablesHeader, getParserVariablesRenderR... |
src/SorterItem.js | ElistratovRoman/react-alphabet-sorter | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
class SorterItem extends React.Component {
static propTypes = {
item: PropTypes.object,
type: PropTypes.string,
isNavigator: PropTypes.bool,
isSelected: PropTypes.any,
labelKey: PropTypes.string,
valueKey... |
src/Header.js | gocreating/react-tocas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Box from './Box';
class Header extends Component {
render() {
let {
level,
sub,
dividing,
block,
thinner,
bolder,
className,
...rest
} = th... |
src/components/Options/Options.js | chrisxclash/play-midnight | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { stripTransition, TRANSITION_FAST } from 'style/theme';
import Button from 'components/Button';
import StyledOptions, { Backdrop } from './Options.styled';
import { OptionArray, OptionCheckbox, OptionString, Op... |
imports/ui/components/plain-eq.js | guillefix/augmath | import React from 'react';
import ReactDOM from 'react-dom';
import katex from '/imports/katex.min.js';
export default class PlainEq extends React.Component {
componentDidMount() {
katex.render(this.props.maths, this.mathel);
}
componentDidUpdate(prevProps, prevState) {
katex.render(this.props.maths, th... |
app/containers/LanguageProvider/index.js | trevornelson/wld-frontend | /*
*
* 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... |
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment, Button, Divider } from 'semantic-ui-react'
const DividerExampleClearing = () => (
<Segment>
<Button floated='right'>Floated Button</Button>
<Divider clearing />
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.... |
rhyme-react/src/Header.js | petroleyum/rhyme-schemer | import React, { Component } from 'react';
import './Header.css'
class Header extends Component {
render() {
return (
<header className="Header">
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-header">
<button type="butto... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js | CodingZeal/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(baseUser) {
return [
{ id: 1, name: '... |
src/containers/Home/Home.js | golgistudio/website | import React, { Component } from 'react';
// import { Link } from 'react-router';
// import { CounterButton } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
import { Project } from 'components';
export default class Home extends Component {
render() {
const styles = requ... |
example/examples/StaticMap.js | athaeryn/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_... |
app/containers/FeaturePage/index.js | Ratholien/JobReact | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/App.js | AdamYee/react-minesweeper | import React, { Component } from 'react';
import './App.css';
import Cell from './Cell';
import generateGrid from './generate-grid';
// function cloneGrid(grid) {
// const clone = [];
// grid.forEach(row => {
// clone[row] = [...grid[row]];
// });
// return clone;
// }
class App extends Component {
con... |
examples/counter/containers/CounterApp.js | rstuven/redux-act | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
class CounterApp extends Component {
render() {
const { counter, dispatch } = this... |
packages/icons/src/md/action/DonutLarge.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdDonutLarge(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M22 10.16V4C12 5 4 13.62 4 24s8 19 18 20v-6.16c-6-.96-12-6.8-12-13.84s6-12.88 12-13.84zM37.94 22H44c-.94-10-8-17.06-18-18v6.16C32 11.02 37.08 16 3... |
src/components/Header/Header.js | machix/mm-inventory | /**
* 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... |
modules/Lifecycle.js | davertron/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
src/screens/Bookshelf/index.js | nadavspi/react-bookshelf | import React from 'react';
import { connect } from 'react-redux';
import { fetchBooksIfNeeded } from 'actions/BookActions';
import BookList from './components/BookList';
const Bookshelf = React.createClass({
propTypes: {
children: React.PropTypes.object,
params: React.PropTypes.object,
dispatch: React.Pr... |
src/containers/Charts/reactVis/charts/basicSunburst.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Sunburst } from 'react-vis';
const EXTENDED_DISCRETE_COLOR_RANGE = ['#19CDD7', '#DDB27C', '#88572C', '#FF991F', '#F15C17', '#223F9A', '#DA70BF', '#125C77', '#4DC19C', '#776E57', '#12939A', '#17B8BE', '#F6D18A', '#B7885E', '#FFCB99', '#F89570', '#829AE3', '#E79FD5', '#... |
src/svg/MagnifyingGlass.js | nirhart/wix-style-react | import React from 'react';
export default function MagnifyingGlass(props) {
let directionStyle = {};
if (props.alignLeft) {
directionStyle = {
MozTransform: 'scaleX(-1)',
OTransform: 'scaleX(-1)',
Webkit: 'scaleX(-1)',
transform: 'scaleX(-1)'
};
}
return (
<svg width="18px... |
src/forms/Household.js | codeforboston/cliff-effects | // REACT COMPONENTS
import React from 'react';
import {
Button,
Form,
Header,
Checkbox,
Icon,
} from 'semantic-ui-react';
import Select from 'react-select';
// PROJECT COMPONENTS
import { FormPartsContainer } from './FormPartsContainer';
import { ColumnHeading } from '../components/headings';
import { Manag... |
src/ModalFooter.js | mxc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalFooter extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalFooter.... |
app/javascript/mastodon/features/ui/components/report_modal.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
src/components/svg/icon/Home.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const Home = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-home-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-home-desc' : '';
return (
... |
src/client/post/Write/Write.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { replace } from 'react-router-redux';
import _ from 'lodash';
import 'url-search-params-polyfill';
import { injectIntl } from 'react-intl';
import uuidv4 from 'uuid/v4... |
src/views/LabeledDetailsView.js | de44/kb-ui | import React from 'react';
import PropTypes from 'prop-types';
const LabeledDetailsView = ({ model, options }) => {
return (
<div className="LabeledDetailsView">
{options.fields.map((field, i) => (
<div key={i}>
{field._render(model)}
</div>
))}
</div>
);
};
LabeledDe... |
examples/Transition.js | aparticka/react-overlays | import React from 'react';
import Transition from 'react-overlays/Transition';
import Button from 'react-bootstrap/lib/Button';
import injectCss from './injectCss';
const FADE_DURATION = 200;
injectCss(`
.fade {
opacity: 0;
-webkit-transition: opacity ${FADE_DURATION}ms linear;
-o-transition: opacity ${FAD... |
src/components/FactionSizesView.js | IShin00biI/Ktulu | import React from 'react'
import {
Text,
View
} from 'react-native'
import { NextFooter } from './Buttons'
export const FactionSizesView = ({citizens, bandits, indians, onSubmit}) => {
return (
<View>
<Text>Liczebność poszczególnych frakcji </Text>
<Text>
Miastowych: {citizens}
</Te... |
src/routes/recentwins/Recentwins.js | zsu13579/whatsgoinontonight | /**
* 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 PropTypes from 'prop-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.