path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/Movie/Edit/EditMovieModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import EditMovieModalContentConnector from './EditMovieModalContentConnector';
function EditMovieModal({ isOpen, onModalClose, ...otherProps }) {
return (
<Modal
isOpen={isOpen}
onModalClose={on... |
lib/components/Application.js | dylanavery720/shoot-the-breeze | import React, { Component } from 'react';
import { render } from 'react-dom';
import { pick, map, extend } from 'lodash';
import firebase, { reference, signIn, signOut } from '../firebase';
import UserInput from './UserInput';
import Filter from './Filter';
import sortUp from '../helpers/sortUp';
import sortDown from '... |
src/routes.js | daviferreira/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Widgets,
About,
Login,
RequireLogin,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default function(store) {
return (
<Route component={App}>
<Route path="/" component={Hom... |
src/templates/blog-post.js | markshlick/markshlick.github.io | import React from 'react';
import Helmet from 'react-helmet';
import get from 'lodash/get';
import Bio from '../components/Bio';
import { rhythm, scale } from '../utils/typography';
class BlogPostTemplate extends React.Component {
render() {
const post = this.props.data.markdownRemark;
const siteTitle = get... |
gatsby-ssr.js | enricobattocchi/closerintime | import React from 'react';
import wrapWithProviders from "./wrapWithProviders"
export const wrapRootElement = wrapWithProviders
|
src/svg-icons/device/location-disabled.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
src/svg-icons/editor/drag-handle.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
src/components/Coordinates.js | nirorlev/powtoon-my-locations | import React from 'react';
const Coordinates = (props) => {
return (
<span>
({(props.lat).toFixed(5)} Lat / {(props.long).toFixed(5)} Long)
</span>
);
};
Coordinates.propTypes = {
lat: React.PropTypes.number.isRequired,
long: React.PropTypes.number.isRequired
};
export def... |
test/test_helper.js | Fabho/react-redux-cat-displayer | 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... |
docs/lib/examples/VolumeMenuButton.js | video-react/video-react | import React from 'react';
import { Player, ControlBar, VolumeMenuButton } from 'video-react';
export default props => {
return (
<Player
autoPlay
poster="/assets/poster.png"
src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"
>
<ControlBar autoHide={false} disableDefaultControls... |
src/components/header/Header.js | andgiu/lin.bert | import React, { Component } from 'react';
import { Link } from 'react-router';
class Header extends Component {
render() {
return(
<header>
<div id="logo">
<Link to="/"><img src="assets/logo.png" /></Link>
</div>
<img id="icon" src="assets/icon.png" />
<nav>
... |
resources/react/components/parts/BattleCardList.js | fetus-hina/stat.ink | import BattleCard from './BattleCard';
import PropTypes from 'prop-types';
import React from 'react';
export default function BattleCardList (props) {
const { battles, fallbackImage, reltime } = props;
return (
<div className='row'>
{battles.map(battle => (
<BattleCard
key={`${battle.v... |
src/CareerContainer.js | Andrew-He/moka | import React, { Component } from 'react';
import CareerHeader from './CareerHeader.js';
import DepartmentContainer from './DepartmentContainer.js';
import uuidV4 from 'uuid/v4';
class CareerContainer extends Component {
constructor(props){
super(props);
this.state = { checked: false };... |
src/svg-icons/communication/message.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMessage = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Commun... |
src/components/image_list.js | sergiop/500pxAppReactTest | import React from 'react';
import ImageListItem from './image_list_item';
const ImageList = ({images}) => {
const imageItems = images.map((image) => {
return <ImageListItem key={image.id} image={image} />
});
return (
<div className="grid clearfix">
<div className="grid-sizer"></div>
{imageI... |
src/components/Posts/index.js | IntellectionStudio/intellection.kz | import enhanceCollection from 'phenomic/lib/enhance-collection';
import {pure} from 'recompact';
import React from 'react';
import PropTypes from 'prop-types';
import ReactPlayer from 'react-player';
import {Link} from 'phenomic';
import {Image} from 'components';
import styles from './index.css';
const Posts = ({qu... |
src/svg-icons/av/games.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames = pure(AvGames);
AvGames.dis... |
client/app/Core/Authorization/index.js | mahimaag/DTA | import React from 'react';
const Authorization = (WrappedComponent, allowedRoles) => {
//get user role.
//check if the role of user is present in allowed roles.
//if user is authorized, return the wrapped component
//if user is not authorized, return null/some message.
//return WrappedComponent;
/*return ... |
docs/src/pages/demos/selects/DialogSelect.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import Dialog, { DialogActions, DialogContent, DialogTitle } from 'material-ui/Dialog';
import Input, { InputLabel } from 'material-ui/Input';
import { MenuItem } from... |
src/svg-icons/action/hourglass-empty.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
tests/react_children/text.js | mroch/flow | // @flow
import React from 'react';
class Text extends React.Component<{children: string}, void> {}
class TextOptional extends React.Component<{children?: string}, void> {}
class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {}
<Text />; // Error: `children` is required.
<TextOptional />; // O... |
src/Affix.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
const Affix = React.createClass({
mixins: [AffixMixin],
render() {
let holderStyle = {
top: this.state.affixPositionTop,
// we don't want to expose the `style` property
...this.props.style... |
node_modules/react-router/es6/Link.js | danshapiro-optimizely/bandwidth | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/main/frontend/src/js/todo-manager/components/AddTodo.js | choonchernlim/choonchernlim-archetype-webapp | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import TextField from 'material-ui/TextField';
import { addTodo } from '../actions';
type Props = {
addTodo: Function
};
type State = {
value: str... |
shared/components/HTML/index.js | pebie/react-universally-node-config | /* eslint-disable react/no-danger */
/* eslint-disable jsx-a11y/html-has-lang */
import React from 'react';
import PropTypes from 'prop-types';
/**
* The is the HTML shell for our React Application.
*/
function HTML(props) {
const { htmlAttributes, headerElements, bodyElements, appBodyString } = props;
return ... |
Libraries/Components/TextInput/TextInput.js | csatf/react-native | /**
* 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.
*
* @provides... |
js/app.ios.js | justarrived/p2p-client | import React, { Component } from 'react';
import { addNavigationHelpers } from 'react-navigation';
import { connect } from 'react-redux';
import { getTheme, StyleProvider } from 'native-base';
import AppNavigator from './appNavigator';
import Secure from './components/developer/secure/secure';
import material from './r... |
src/icons/Leaf.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Leaf extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M456.7,378.7c-52.5-8-56.5-15.7-56.5-15.7c10.8-64.9-22.7-147.1-77.4-191.6c-72.8-59.2-183.5-16.2-269.7-106.2
c-20.1-21-... |
src/main/js/my-app/src/components/SendEmailsManually.js | myapos/ClientManagerSpringBoot | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import * as actions from '../actions/';
import DisplayClassesForSendingEmailManually from './DisplayClassesForSendingEmailManually';
import Signature from './Signature';
import * as constants from '../co... |
src/js/components/MaskedInput/stories/Form.js | grommet/grommet | import React from 'react';
import { Box, Button, Form, FormField, MaskedInput } from 'grommet';
export const MaskedInputForm = () => {
const [value, setValue] = React.useState({ value: '' });
const onChange = (nextValue) => {
console.log('onChange', nextValue);
setValue(nextValue);
};
return (
// ... |
src/lib/filters/Animated.js | lighter-cd/ezui_react_one | import React from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import classNames from 'classnames';
const styles = {
spin: {
'-webkit-animation': 'ani-spin 2s infinite linear',
animation: 'ani-spin 2s infinite linear',
},
pulse: {
'-webkit-animation': 'ani-spin 1s... |
src/plugins/position/components/TableEnhancer.js | GriddleGriddle/Griddle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { setScrollPosition } from '../actions';
cons... |
app/assets/scripts/components/map-legend.js | orma/openroads-vn-analytics | import React from 'react';
import {
getContext
} from 'recompose';
import lineColors from '../utils/line-colors';
import T from './t';
const renderTitle = (layer) => {
if (layer === 'iri_mean') {
return <T>IRI</T>;
} else if (layer === 'or_width') {
return <T>Width</T>;
} else if (layer === 'or_condit... |
tests/react_modules/es6class-proptypes-module.js | jgrund/flow | /* @flow */
import React from 'react';
class Hello extends React.Component<void, {name: string}, void> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
teletobit/src/components/Profile/CommentEle.js | edenpark/teletobit | import React, { Component } from 'react';
import { Link } from 'react-router';
import Upvote from 'components/Main/Post/Upvote';
import timeAgo from 'util/timeAgo';
import { Icon } from 'semantic-ui-react';
import decode from 'ent/decode';
class CommentEle extends Component {
render() {
const { comment, u... |
app/javascript/mastodon/features/notifications/index.js | Ryanaka/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,
scrollTopNotificati... |
e2e-tests/gatsby-image/src/pages/index.js | 0x80/gatsby | import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
const IndexPage = () => (
<Layout>
<h1>Gatsby Image integration test</h1>
<h2>
Please navigate to <Link to="/fixed">/fixed</Link>,{` `}
<Link to="/fluid">/fluid</Link>, or <Link to="/traced">/traced... |
src/components/common/svg-icons/action/find-in-page.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
client/modules/App/components/Header/Header.js | williaumwu/mern-sample | import React from 'react';
import { Parallax } from 'react-parallax';
import styles from './Header.css';
import bgImage from '../../assets/writer.jpg';
import fbStyles from '../../../../styles/flexboxgrid.css';
const Header = () => (
<Parallax bgImage={bgImage} strength={400} >
<div style={{ position: 'relative'... |
docs/src/GettingStartedPage.js | insionng/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
import Anchor from './Anchor';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMa... |
ajax/libs/react-instantsearch/4.2.0/Dom.js | extend1994/cdnjs | /*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && de... |
demo/tooltip/tooltip.js | koorchik/react-mdl | import React from 'react';
import Icon from '../../src/Icon';
import Tooltip from '../../src/Tooltip';
class Demo extends React.Component {
render() {
return (
<div>
<p>Simple tooltip</p>
<Tooltip label="Follow">
<Icon name="add" />
... |
pootle/static/js/auth/components/RequestPasswordResetSent.js | garthylou/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
src/pages/Denied.js | danielnovy/dapp-poc-starter | import React from 'react'
export const Denied = () => (
<div>
<h2>Permission denied</h2>
<h4>You don't have permission to see this page</h4>
</div>
)
export default {
path: '/denied',
component: Denied
}
|
check.es6.js | rovolution/react-toggle | import React from 'react'
export default React.createClass({
render() {
return (
<svg width="14" height="11" viewBox="0 0 14 11" xmlns="http://www.w3.org/2000/svg">
<title>
switch-check
</title>
<path d="M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 ... |
app/KanbanBoardContainer.js | adg29/react-kanban | import React, { Component } from 'react';
import update from 'react-addons-update';
import KanbanBoard from './KanbanBoard';
const API_URL = 'http://kanbanapi.pro-react.com';
const API_HEADERS = {
'Content-Type': 'application/json',
Authorization: 'adg29-react'
};
class KanbanBoardContainer extends Component {
... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | aleszu/chartbuilder | 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/parser/shaman/elemental/modules/talents/EarthenRage.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
class EarthenRage exten... |
examples/todomvc/containers/TodoApp.js | rwillrich/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp {
render() {
return (... |
src/client/assets/js/nodes/datastores/twitter/node.js | me-box/platform-sdk | import React from 'react';
import Textfield from 'components/form/Textfield';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
import Select from 'components/form/Select';
import {configNode} from 'utils/ReactDecorators';
@configNode()
export default class Node extends React.Component {
... |
src/containers/Login/index.js | korabh/quran.com-frontend | import React from 'react';
import FacebookTokenButton from 'components/FacebookTokenButton';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
const logo = require('../../../static/images/logo-lg.png');
export default () => (
<div className="row" style={{ paddingTop: '10vh' }}>
<div class... |
src/svg-icons/action/eject.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
export default ActionEjec... |
frontend/src/MovieFile/Language/SelectLanguageModalContentConnector.js | geogolem/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import SelectLanguageModalContent from 'InteractiveImport/Language/SelectLanguageModalContent';
import { updateMovieFiles } from 'Store/... |
src/icons/HttpsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class HttpsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M36 16h-2v-4c0-5.52-4.48-10-10-10S14 6.48 14 12v4h-2c-2.21 0-4 1.79-4 4v20c0 2.21 1.79 4 4 4h24c2.21 0 4-1.7... |
client/modules/Home/Components/Item.js | tranphong001/BIGVN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DangTinPages from '../../DangTin/DangTinPages';
import styles from '../../../main.css';
import grid from '../../../grid.css';
import dateFormat from 'dateformat';
import { getServerTime } from '..... |
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js | mjackson/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const object = {
string: 'abc',
longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMN... |
frontend/src/screens/qa/widgets/steps/piechart/piechart.js | linea-it/qlf | import React, { Component } from 'react';
import { VictoryPie, Slice } from 'victory';
import PropTypes from 'prop-types';
import _ from 'lodash';
import flavors from '../../../../../flavors';
const arms = ['b', 'r', 'z'];
export default class PieChart extends Component {
static propTypes = {
size: PropTypes.nu... |
src/components/sidebar/sidebar.js | goinvo/InvoPlaybook | import React from 'react'
import NavMenu from '../nav-menu/nav-menu'
export default (props) => {
return (
<aside className="sidebar">
<h1 className="sidebar__title">Playbook</h1>
<div className="sidebar__nav">
<NavMenu items={ props.navItems }
activeSection={ props.activeSec... |
manager/src/components/Users/Users.js | anchoretics/ztf-work-app | import React from 'react';
import { connect } from 'dva';
import { Table, Pagination, Popconfirm } from 'antd';
import { routerRedux } from 'dva/router';
import styles from './Users.css';
import { PAGE_SIZE } from '../../constants';
const Users = ({ dispatch, list: dataSource, loading, total, page: current }) => {
c... |
app/javascript/app/components/auth/hoc/require-auth.js | GiancarlosIO/ecommerce-book-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
export default function (ComposeComponent) {
class RequireAuth extends Component {
render() {
const { authenticated } = this.props;
return (
authenticated ?
(<... |
src/parser/rogue/assassination/modules/spells/RuptureUptime.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatisticBox fro... |
public/js/components/visits/othersvisits.react.js | MadushikaPerera/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'ma... |
stories/components/form/formPassword/index.js | OperationCode/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import FormPassword from 'shared/components/form/formPassword/formPassword';
storiesOf('shared/components/form/formPassword', module)
.add('Default', () => (
<FormPassword
label="password"
/>
)); |
tp-4/euge/src/pages/posts/Formulario.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Modal, Input } from 'antd';
const { TextArea } = Input;
class Formulario extends React.Component {
state = {
id:null,
userId:null,
title: '',
body:'',
}
componentWillMount() {
this.props.actions.fetchPost(1);
}
handleOk = () => {
this.setStat... |
public/js/cat_source/es6/components/analyze/JobAnalyzeHeader.js | Ostico/MateCat | import React from 'react'
class JobAnalyzeHeader extends React.Component {
constructor(props) {
super(props)
}
calculateWords() {
this.total = 0
this.payable = 0
let self = this
this.props.totals.forEach(function (chunk) {
self.payable = self.payable + chunk.get('TOTAL_PAYABLE').get(0)... |
src/Table.js | xsistens/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/routes/common/Footer.js | ynu/res-track-wxe | import React from 'react';
const Footer = () => {
return (
<div className="weui-footer" style={{ marginTop: '10px' }}>
<p className="weui-footer__links">
<a href="http://www.itc.ynu.edu.cn" className="weui-footer__link">信息技术中心</a>
<a href="https://github.com/ynu/res-track-wxe/" className="w... |
logspace-frontend-new/src/main/agents/components/Page.react.js | Indoqa/logspace | /*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... |
src/components/logo/index.js | stevegood/stringer | import React from 'react'
import classnames from 'classnames'
const Logo = (props) => {
let p = {...props}
const { sm, md, lg, xl, xxl } = p
delete p.sm
delete p.md
delete p.lg
delete p.xl
delete p.xxl
const classes = classnames('stringer-logo', {
sm: sm,
md: md,
lg: lg,
xl: xl,
x... |
src/svg-icons/content/move-to-inbox.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3... |
src/components/Pizza.js | wmaurer/frontend_pizza_react_redux | import React, { Component } from 'react';
export default class Pizza extends Component {
render() {
const { pizza, actions: { incrementPizza, decrementPizza, removePizza } } = this.props;
return (
<div className="mdl-card mdl-shadow--2dp pizza-card">
<div className="mdl-... |
app/jsx/gradezilla/default_gradebook/slick-grid/column-headers/AssignmentColumnHeaderRenderer.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - 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... |
test/test_helper.js | bhalla-shiraz/react-video-app | 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... |
src/svg-icons/communication/speaker-phone.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
apps/customer/assets/static/js/components/LoadingMessage/index.js | tsurupin/job_search | import React from 'react';
import { Wrapper } from './styles';
const LoadingMessage = () => (
<Wrapper>
<p>Loading...</p>
</Wrapper>
);
export default LoadingMessage;
|
app/components/BusStops/RoutesList.js | Donluigimx/transporta2_admin | import React from 'react';
export default ({busStop, routes}) => (
<table className="table">
<thead>
<tr>
<th>Ruta</th>
<th>Origen</th>
<th>Destino</th>
</tr>
</thead>
<tbody>
{routes.map((route, id) => (
... |
app/containers/games/Welcome.js | weerakkodylr/react-native-login | import React from 'react'
import {View, TouchableOpacity, Text, StyleSheet, ScrollView, Dimensions} from 'react-native'
import {connect} from 'react-redux'
import Button from '../../components/controls/Button'
import * as layoutActions from '../../actions/layoutActions'
import * as LoginActions from '../../actions/logi... |
src/App.js | taskcluster/migration | import React from 'react';
import Navbar from 'react-bootstrap/lib/Navbar';
import OverviewComponent from './OverviewComponent';
import Breadcrumbs from 'react-breadcrumbs';
import { DetailsComponent, DetailsGraph, DetailsKanban, DetailsGantt } from './DetailsComponent';
import { PersonComponent } from './PersonCompone... |
app/components/DailyArtMng.js | xiaoyaomaopp/BigData-WebArt | import React from 'react';
import {
Link
} from 'react-router';
import Navbar from './Navbar';
class DailyArtMng extends React.Component {
constructor(props) {
super(props);
this.url = '';
if(!!props.params){
if('art'==props.params.type){
this.url = '/mn... |
src/routes.js | materliu/Chrome-DevTools | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
frontend/src/Components/Form/EnhancedSelectInputSelectedValue.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './EnhancedSelectInputSelectedValue.css';
function EnhancedSelectInputSelectedValue(props) {
const {
className,
children,
isDisabled
} = props;
return (
<div className={classNam... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | monica11/BuyBlue | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/scenes/home/press/pressVideos/pressVideos.js | tal87/operationcode_frontend | import React from 'react';
import styles from './pressVideos.css';
function PressVideos() {
return (
<div className={styles.videos}>
<iframe title="GitHub Universe: Operation Code" src="https://www.youtube.com/embed/xN7yMoe38xc" frameBorder="0" allowFullScreen width="755" height="425" />
<iframe titl... |
examples/auth-hooks/app.js | mihalik/react-login-ui | import React from 'react';
import Login from '../../lib/index';
let App = React.createClass({
getInitialState() {
return {user: null};
},
login(username, password) {
console.log('Login: ' + username + ' ' + password);
if (username === 'react') {
this.setState({user: 'react'});
} else {
... |
src/routes/error/ErrorPage.js | ImanMh/react-proto | /**
* 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-... |
src/svg-icons/maps/restaurant-menu.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
client/src/components/profile/components/HeatMap.js | jonathanihm/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CalendarHeatMap from '@freecodecamp/react-calendar-heatmap';
import { Row } from '@freecodecamp/react-bootstrap';
import ReactTooltip from 'react-tooltip';
import addDays from 'date-fns/add_days';
import addMonths from 'date-fns/add_mo... |
src/parser/warrior/protection/modules/features/Checklist/Module.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import ManaValues from 'parser/shared/modules/ManaValues';
import PreparationRuleAnalyzer... |
MobileApp/index.android.js | VowelWeb/CoinTradePros.com | /**
* CoinTradePros.com React Native App
* http://www.cointradepros.com/
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './App/container';
AppRegistry.registerComponent('CoinTradePros', () => App); |
src/components/notFound/NotFound.js | gtdudu/hapi-wurb | import React from 'react';
import { Link } from 'react-router';
function NotFound() {
return (
<div className="root normal" >
404 Not Found
<Link to="/" >go to </Link>
</div>
);
}
export default NotFound;
|
fields/types/cloudinaryimage/CloudinaryImageFilter.js | Yaska/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes: {
filter: React.PropTyp... |
src/app/components/FormPopup/Form.js | Krekotun/seat-booking | import React from 'react';
import { reduxForm, Field } from 'redux-form'
import validate from './validate'
import Input from './Input'
import { connect } from 'react-redux'
import { saveSeat } from 'store/modules/seats'
let Form = (props) => {
const { handleSubmit, pristine, reset, submitting, dispatch } = props
re... |
stories/Forms.stories.js | reactstrap/reactstrap | import React from 'react';
export default {
title: 'Components/Forms',
parameters: {
docs: {
description: {
component: `
[Bootstrap Forms](https://getbootstrap.com/docs/5.1/forms/overview/)
Form controls, layout options, and custom components for creating a wide variety of forms.
`
}... |
src/components/svg/icon/Butterfly.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const Butterly = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-butterly-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-butterly-desc' : '';
... |
src/pages/oxo-paxo.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Oxo Paxo' />
)
|
packages/gluestick/shared/containers/Root.js | TrueCar/gluestick | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { applyRouterMiddleware, Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import { useScroll } from 'react-router-scroll';
import prepareRoutesWithTransitionHooks from '../lib/prepareR... |
src/containers/MainLayout.js | byoigres/minutes | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { useDispatch } from 'react-redux';
import styled from 'styled-components';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
import LanguageSelector from '../components/LanguageSelector';
import { chang... |
src/Cell.js | bjackson/bjGrid | /**
* Created by brett on 6/22/16.
*/
import React from 'react';
export default class Cell extends React.Component {
static propTypes() {
return {
children: React.PropTypes.node,
};
}
render() {
return (
<td style={ this.style }>
{ this.props.children }
</td>
);
}
} |
src/containers/DevTools/DevTools.js | tabulatech/tabula-web | 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-Q">
<LogMonitor />
</DockMonit... |
src/components/Account/MyReports.js | RahulDesai92/PHR | import React, { Component } from 'react';
import { StyleSheet, Text, View,Button,ScrollView} from 'react-native';
import customstyles from '../../../assets/styles/customstyles';
import { NavigationActions } from 'react-navigation';
import { RaisedTextButton } from 'react-native-material-buttons';
import colors from '..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.