path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
app/components/Slider.js | firewenda/testwebsite | import React from 'react';
import Slider from 'react-slick';
class SimpleSlider extends React.Component{
render(){
let settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
};
return (
<div className='slide-car... |
src/js/Containers/NewsContainer.js | RoyalSix/Eagle-Connect | /**
* @file This is the container for the actual component
* This file should handle the business logic of the component
* There should be no styling/css properties in this file
* In this way we can have a separation of concerns handle
* will allow for easier testing
* {@link https://medium.com/@dan_abramov... |
packages/react/src/views/Server.js | wq/wq.app | import React from 'react';
import { useRenderContext } from '../hooks';
const HTML = '@@HTML';
export default function Server() {
const html = useRenderContext()[HTML];
return (
<>
<p>This renderer does not (yet) support server-rendered HTML.</p>
<pre>
<code>{ht... |
src/frontend/components/EventView.js | Bernie-2016/ground-control | import React from 'react'
import Relay from 'react-relay'
import {BernieText} from './styles/bernie-css'
import {Paper, Styles} from 'material-ui'
import EventPreview from './EventPreview'
import EventInvalid from './EventInvalid'
import yup from 'yup'
import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider'
imp... |
client/views/directory/ChannelsTab.js | VoiSmart/Rocket.Chat | import React from 'react';
import NotAuthorizedPage from '../../components/NotAuthorizedPage';
import { usePermission } from '../../contexts/AuthorizationContext';
import ChannelsTable from './ChannelsTable';
function ChannelsTab(props) {
const canViewPublicRooms = usePermission('view-c-room');
if (canViewPublicRo... |
app/components/H3/index.js | rajeshbhatt/shopping-cart-redux | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/Parser/Druid/Guardian/Modules/Features/FrenziedRegenGoEProcs.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatant... |
frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContentConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchCustomFormatSpecificationSchema, selectCustomFormatSpecificationSchema } from 'Store/Actions/settingsActions';
import AddSpecificationModalContent... |
src/js/views/UserArea/UserArea.js | TheoZimm/SaltyDashboard | import React from 'react';
import {AuthorizedComponent} from 'react-router-role-authorization';
import routes from '../../routes';
class UserArea extends AuthorizedComponent {
constructor(props) {
super(props);
// Get user role from localStorage(session) and define allowed roles
this.userR... |
src/svg-icons/editor/space-bar.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorSpaceBar = (props) => (
<SvgIcon {...props}>
<path d="M18 9v4H6V9H4v6h16V9z"/>
</SvgIcon>
);
EditorSpaceBar = pure(EditorSpaceBar);
EditorSpaceBar.displayName = 'EditorSpaceBar';
export default EditorS... |
src/screens/main/main.screen.js | Barylskyigb/simple-debts-react-native | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Text,
FlatList,
Image,
RefreshControl,
TouchableWithoutFeedback,
ActivityIndicator
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import IonIcon from 'react-native-vector-icons/Io... |
creditcardsimulation_redux_hooks/src/index.js | balaSpyrus/code | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import rootReducer from './reducers';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
const store = createStore(rootReducer);
ReactD... |
packages/cf-builder-table/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import { connect } from 'react-redux';
import { TableBuilder, tableReducer, tableActions } from 'cf-builder-table';
import { TableCell } from 'cf-component-table';
import { Button as ButtonUnstyled, ButtonTheme } from 'cf-component-button';
import { applyTheme } from 'cf-style-container';
co... |
react/features/base/media/components/native/Video.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { RTCView } from 'react-native-webrtc';
import { Pressable } from '../../../react';
import styles from './styles';
import VideoTransform from './VideoTransform';
/**
* The type of the React {@code Component} props of {@link Video}.
*/
type Props = {
mi... |
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/CompositeAttributeFormItem.js | openforis/collect | import React from 'react'
import { Col, Label, Row } from 'reactstrap'
const CompositeAttributeFormItem = ({ field, label, inputField, labelWidth = 50 }) => {
const widthPx = `${labelWidth}px`
return (
<Row key={field}>
<Col style={{ width: widthPx, maxWidth: widthPx }}>
<Label>{label}</Label>
... |
app/containers/LanguageProvider/index.js | oualid-mazouz/fbchallenge | /*
*
* 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... |
src/Icons/Cancel.js | hasseboulen/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=circled%20cross&i=1144421
// Created by johartcamp from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 74.8173 25.18272 9... |
frontends/xcms/app/index.js | suryakencana/niimanga | require('es6-shim');
require('./styles.css');
require("font-awesome-webpack");
require('bootstrap-table/dist/bootstrap-table.css');
require('bootstrap-table/dist/bootstrap-table.js');
import React from 'react';
import Router from 'utils/router';
import { Provider } from 'react-redux';
import configureStore from './st... |
lib/cli/generators/REACT_NATIVE/template/storybook/stories/index.js | shilman/storybook | import React from 'react';
import { Text } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import CenterView from './CenterView';
import Welcome from './Welcome'... |
fields/types/relationship/RelationshipField.js | ligson/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import superagent from 'superagent';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'RelationshipField',
shouldCollapse () {
// many:true relationsh... |
webapp-src/src/MainScreen/FullScreen.js | babelouest/taliesin | import React, { Component } from 'react';
import { Row, Col, Image, ButtonGroup, Button, MenuItem, DropdownButton } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import StateStore from '../lib/StateStore';
import i18n from '../lib/i18n';
class FullScreen extends Component {
constructor(props) ... |
app/javascript/mastodon/features/account_timeline/index.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
sonar-flow-plugin/src/main/js/components/FlowIssuesList.js | I8C/sonar-flow-plugin | import React from 'react';
import FlowIssueItem from './FlowIssueItem.js'
import {findIssues} from '../functions/sonar_api.js'
export default class FlowIssuesList extends React.PureComponent {
constructor(props) {
super(props);
// this.props.projectKey
// this.props.selectedIssue
// this.props.onSe... |
src/index.js | grishanin/moviepilot-trending | import React from 'react';
import App from './App';
require('./css/main.less');
React.render(<App />, document.getElementById('root'));
|
tests/react_modules/es6class-proptypes-callsite.js | facebook/flow | /* @flow */
import React from 'react';
import Hello from './es6class-proptypes-module';
import type {Node} from 'react';
class HelloLocal extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}... |
app/components/views/videoTabs/VideoList.js | MutatedBread/binary-academy-rn | import React, { Component } from 'react';
import { View } from 'react-native';
import {
List,
Content,
Container,
ListItem,
Left,
Right,
Body,
Button,
Thumbnail,
Text,
Icon
} from 'native-base';
import Loading from './Loading.js'
import LoadingMoreVideoSpinner from './Load... |
src/MultiCascader/test/DropdownMenuSpec.js | suitejs/suite | import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { getDOMNode, getInstance } from '@test/testUtils';
import DropdownMenu from '../DropdownMenu';
import Dropdown from '../MultiCascader';
const classPrefix = 'rs-picker-cascader-menu';
const items = [
{
value: 'abc',
label: ... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TransformerParams.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
node_modules/@expo/vector-icons/createIconSet.js | RahulDesai92/PHR | import React from 'react';
import { Text } from 'react-native';
import { Font } from 'expo';
import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set';
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';
export default function(glyphMap, fontName, expoAs... |
src/components/Main.js | Royzx/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//่ทๅๅพ็็ธๅ
ณๆฐๆฎ
var imageDatas = require('../data/imageDatas.json');
//ๅฉ็จ่ชๆง่กๅฝๆฐ๏ผๅฐๅพ็ๅไฟกๆฏ่ฝฌๆๅพ็URL่ทฏๅพไฟกๆฏ
imageDatas = (function getImageURL(imageDataArr){
for(let i = 0,j=imageDataArr.length;i<j;i++... |
src/svg-icons/navigation/arrow-drop-down-circle.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDownCircle = (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 12l-4-4h8l-4 4z"/>
</SvgIcon>
);
NavigationArrowDropDownCircle =... |
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js | brigand/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioGroupFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
fields/types/geopoint/GeoPointColumn.js | Adam14Four/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var GeoPointColumn = React.createClass({
displayName: 'GeoPointColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/Interpolate.js | mengmenglv/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',
... |
docs/src/sections/OverlaySection.js | Terminux/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function OverlaySection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<A... |
examples/todomvc/index.js | STRML/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
src/routes.js | NathanBWaters/website | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
TheRunners,
ProjectDashboard,
Outfitr,
GoAlgo,
JumpstartGUI,
Website
} from 'components';
import {
App,
Chat,
Home,
Widgets,
... |
app/renderInBrowser.js | theseushu/runcai | import React from 'react';
import ReactDOM from 'react-dom';
import { match, applyRouterMiddleware, Router } from 'react-router';
import { useScroll } from 'react-router-scroll';
import AppRoot from 'containers/AppRoot';
import FullScreenGallery from 'modules/fullScreenGallery';
import MapDialog from 'modules/mapDialog... |
packages/cf-component-progress/src/Progress.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'cf-component-link';
import { createComponent } from 'cf-style-container';
import { clearFix } from 'polished';
const styles = () => ({
position: 'relative'
});
const Bar = createComponent(
({ theme }) => ({
display: 'block',
... |
src/components/theme-legacy/form/instructions/target-state.js | MoveOnOrg/mop-frontend | import React from 'react'
const TargetState = () => (
<div>
<h4>Targeting Your Governor or State Legislature</h4>
<p>If you choose <strong>The entire State House</strong>, then your petition signers will be asked to sign a petition addressed to their individual representative in the state house of representa... |
src/screens/search/components/DestinationSearch/DestinationSearch.js | vio-lets/Larkyo-Client | import React from 'react';
// import './PeopleSearch.css';
export default class DestinationSearch extends React.Component {
constructor() {
super();
this.state = {}
}
render() {
return(
<div className="destinationSearchContainer">
<h2>Destination search ... |
src/components/NotFoundPage.js | oded-soffrin/gkm_viewer | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
frontend/components/AppRoutes.js | heekzz/PowerHour | 'use strict';
import React from 'react';
import { Router, browserHistory } from 'react-router';
import routes from '../routes';
export default class AppRoutes extends React.Component {
render() {
return (
<Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/>
);
}
... |
fixtures/ssr/src/index.js | silvestrijonathan/react | import React from 'react';
import {hydrate} from 'react-dom';
import App from './components/App';
hydrate(<App assets={window.assetManifest} />, document);
|
client/my-sites/media-library/list-plan-promo.js | allendav/wp-calypso | /**
* External dependencies
*/
import React from 'react';
import page from 'page';
import analytics from 'analytics';
import { preventWidows } from 'lib/formatting';
/**
* Internal dependencies
*/
const EmptyContent = require( 'components/empty-content' ),
Button = require( 'components/button' );
module.exports ... |
app/addons/fauxton/notifications/components/NotificationCenterPanel.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... |
client/main.js | jabhishek/react-express-webpack-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import {Router } from 'react-router';
import routes from './routes';
import Main from './Main.less'; // eslint-disable-line no-unused-vars
import createBrowserHistory from 'history/lib/createBrowserHistory';
ReactDOM.render(
(
<Router history={cr... |
app/static/js/App.js | NordicSHIFT/NordicSHIFT | // App.js
import React, { Component } from 'react';
import Main from './components/Main';
class App extends Component {
render() {
return (
<div>
<Main />
</div>
);
}
}
export default App;
|
react/liveevent/components/PowerupCount.js | jaredhasenklein/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
const PowerupCount = (props) => {
const {
color,
type,
count,
played,
isCenter,
} = props
const tooltipTitle = type.charAt(0).toUpperCase() + type.slice(1)
return (
<div className={`powerupCountContainer ${isCenter ? 'powerupC... |
app/index.js | pengfu/react-resume | /**
* Created by chang_su on 2017/5/15.
*/
import React from 'react';
import ReactDOM from 'react-dom';
require('./style/normalize.css')
require('./style/app.css')
require ('./style/fontello/css/fontello.css')
require('./style/transition.css')
import App from './components/App.jsx';
ReactDOM.render(<App />, document... |
src/components/Calculator/Calculator.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import NavBar from "../NavBar/NavBar";
import CalculatorButtons from "./CalculatorButtons";
export default class Calculator extends Component {
handleNumberClick(operand) {
this.props.pushNumber(operand);
}
handleOperator(operato... |
src/components/ShareExperience/WorkExperiencesForm/WorkInfo/IsEmployed.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import RadioDefault from 'common/form/RadioDefault';
import Select from 'common/form/Select';
import Unit from 'common/form/Unit';
import InputTitle from '../../common/InputTitle';
import {
isEmployedOptions,
jobEndingTimeYearOptions,
jobEndingTime... |
docs/src/components/Home/Preface/Preface.js | seek-oss/seek-style-guide | import React from 'react';
import { PageBlock, Section, Columns, Text } from 'seek-style-guide/react';
export default () => (
<PageBlock>
<Section header>
<Text hero>A principled design process</Text>
</Section>
<Section>
<Text>
SEEK have developed 10 principles that describe the fun... |
client/src/app/components/forms/SignupForm.js | mtiger2k/graphql-tutorial | import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { renderTextField } from './formHelpers'
const validate = values => {
const errors = {}
if (!values.dispName) {
errors.dispName = 'Required'
}
if (!values.username) {
errors.username = 'Required'
}
if (!... |
src/components/game/ScoresTable.js | marc-ed-raffalli/geo-game | import React from 'react';
import ScoreCorrect from '../../containers/ScoreCorrect';
import ScoreError from '../../containers/ScoreError';
export default () => (
<div className="d-flex text-nowrap">
<span className="col py-2 badge badge-success"><ScoreCorrect/></span>
<span className="col py-2 badge badge-d... |
src/components/header/newGame/NewGameModal.js | TechyFatih/Nuzlog | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import { actions } from 'react-redux-form';
import games from 'data/games.json';
import ConfirmModal from 'components/other/ConfirmModal';
import { RRForm, RRFControl } from 'components/form/RRF';
impor... |
src-web/js/view/History.js | kwangkim/pigment | import React from 'react';
export default class HistoryView extends React.Component {
render() {
return <div>
<HistoryViewHeader />
</div>;
}
}
class HistoryViewHeader extends React.Component {
render() {
return <span>HISTORY VIEW</span>;
}
}
|
node_modules/redux-form/es/__tests__/Fields.spec.js | Starnes81/ReduxBlogTut | 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; };
var _createClass = function () { function defineProperties(ta... |
src/routes/Counter/components/Counter.js | yoshiyoshi7/react2chv2 | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
src/routes/Music/components/MusicView.js | jhash/jhash | import './MusicView.scss'
import React from 'react'
import { Link } from 'react-router'
export class MusicView extends React.Component {
static propTypes = {}
render () {
return (
<div className='view--music row'>
<Link to='music/tabitha'>
Tabitha
</Link>
</div>
)
}... |
src/svg-icons/notification/event-busy.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventBusy = (props) => (
<SvgIcon {...props}>
<path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V... |
react+redux/src/js/compont/unSend.js | fruitGirl/mm | /**
* Created by Administrator on 2017/8/19 0019.
*/
import React from 'react'
const UnSend = () =>{
return (
<div className="unSend">
<span className="iconfont icon-unhappy icon-md"></span>
<span>่ฟๆชๅฐ้
้ๆฅๆ</span>
</div>
)
}
export default UnSend; |
src/components/TimeAndSalary/MobileInfoButtons.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { InfoButton } from 'common/Modal';
import styles from './MobileInfoButtons.module.css';
const MobileInfoButtons = ({ toggleInfoSalaryModal, toggleInfoTimeModal }) => (
<div className={styles.mobileInfoButtons}>
<div className={styles.infoBut... |
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1158.js | guardicore/monkey | import React from 'react';
import ReactTable from 'react-table';
import {renderMachineFromSystemData, ScanStatus} from './Helpers';
import MitigationsComponent from './MitigationsComponent';
class T1158 extends React.Component {
constructor(props) {
super(props);
}
static getColumns() {
return ([{
... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | TheInventrix/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
frontend/js/components/commentView.js | beetwo/toucan | import twitterText from 'twitter-text'
import PropTypes from 'prop-types';
import React from 'react';
import UserLink from './userLink'
class Comment extends React.Component {
render() {
let {comment} = this.props;
let mentions = twitterText.extractMentionsWithIndices(comment);
let parts = [];
if (me... |
frontend/advocatesearch/AdvocateDetail.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Row} from 'react-bootstrap';
import translate from '../translate';
import router from '../router';
import {ADVOCATE_DETAIL} from '../routes';
import {BasicStatistics} from '../components/statistics';
import {Deta... |
app/javascript/src/components/FormDialog.js | michelson/chaskiq | import React from 'react'
import { Transition } from '@headlessui/react'
function FormDialog (props) {
const [_open, setOpen] = React.useState(props.open)
function handleClose () {
setOpen(false)
props.handleClose && props.handleClose()
}
React.useEffect(() => setOpen(props.open), [props.open])
re... |
ext/lib/site/topic-layout/topic-article/presupuesto-share/component.js | RosarioCiudad/democracyos | import React from 'react'
import Pendiente from './pendiente'
import Proyectado from './proyectado'
export default ({ topic, forum, user, toggleVotesModal }) => (
<div className='presupuesto-container'>
{topic.attrs.state === 'pendiente' &&
<Pendiente
topic={topic}
user={user}
toggl... |
src/containers/Application.js | hannupekka/yabsa | // @flow
import styles from 'styles/containers/Application';
import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
import Header from 'components/Header';
type Props = {
children: ElementType | Array<ElementType>
}
// eslint-disable-next-line react/prefer-stateless-function
class App... |
addons/comments/src/manager/components/CommentsPanel/index.js | nfl/react-storybook | import PropTypes from 'prop-types';
import React from 'react';
import CommentList from '../CommentList';
import CommentForm from '../CommentForm';
import style from './style';
export default function CommentsPanel(props) {
if (props.loading) {
return (
<div style={style.wrapper}>
<div style={style.... |
src/svg-icons/editor/format-italic.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
react-apollo/src/containers/AuthPage/index.js | strapi/strapi-examples | /**
*
* AuthPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { findIndex, get, map, replace, set } from 'lodash';
import { Link } from 'react-router-dom';
import Button from '../../components/Button';
import FormDivider from '../../components/FormDivider';
import Input from '../../c... |
src/components/ui/ServiceIcon.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import injectSheet from 'react-jss';
import classnames from 'classnames';
import ServiceModel from '../../models/Service';
const styles = theme => ({
root: {
height: 'auto',
},
icon: {
wi... |
src/svg-icons/device/signal-cellular-no-sim.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ... |
node_modules/react-bootstrap/es/SplitToggle.js | darklilium/Factigis_2 | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
client/index.js | vudayagirivaibhav/freecodecamp | import Rx from 'rx';
import React from 'react';
import Fetchr from 'fetchr';
import debugFactory from 'debug';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import { hydrate } from 'thundercats';
import { Render } from 'thundercats-react';
import { app$ } from '../co... |
BlindshopApp/__tests__/index.android.js | shs11023/Blindshop | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
clients/react/src/routes.js | Boychenko/sample-todo-2016 | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/App';
import ItemsListPage from './components/Items/ListPage';
import ItemEdit from './components/Items/EditPage';
import AboutPage from './components/AboutPage';
import NotFoundPage from './components/NotFoundPage... |
frontend/Login/ConnectedLogin.js | fdemian/Morpheus | import React from 'react';
import { connect } from 'react-redux';
import Login from './Login';
import {updateUsernameFn, updatePasswordFn} from '../Register/Actions';
import login from './Actions';
const mapStateToProps = (state) => {
return {
oauthProviders: state.app.oauth,
isLoggedIn: state.session.logged... |
app/components/ConsoleToolbar.js | kidaa/fil | import React from 'react';
import {connect} from 'react-redux';
import {setPreference} from 'actions/preferences';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class ConsoleToolbar extends React.Component {
handleRunButton(event) {
event.preventDefault();
this.props.onRun(... |
tools/playground/components/Section/Section.js | auth0/web-header | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames/bind';
import styles from './Section.styl';
const cx = classNames.bind(styles);
const Section = ({ children, title, dark }) =>
<div>
<h2 className="container text-center">{title}</h2>
<div className={cx('sectio... |
src/routes/competition-show/competition-show.component.js | YGO/compe-frontend | import React from 'react'
import Radium from 'radium'
import PropTypes from 'prop-types'
import LeadersBoardContainer from './leadersboard.container'
import ScoreToggler from '../../components/leadersboard/score-toggler.component'
import lineBtnImg from './assets/linebutton_82x20.png'
import gnIconImg from './assets/gn... |
pages/index.js | falconi1812/falconi | import React, { Component } from 'react';
import ReactPixel from 'react-facebook-pixel';
import Header from 'components/Header/Header';
import Intro from 'components/Intro/Intro';
import Who from 'components/Who/Who';
import What from 'components/What/What';
import How from 'components/How/How';
import Services from 'c... |
src/components/common/icons/Comment2.js | WendellLiu/GoodJobShare | import React from 'react';
/* eslint-disable */
const Comment2 = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<g transform="translate(0 6)">
<path d="M13.5463199,136.724864 C14.8088582,138.042797 16.5145543,138.767545 18.3425804,138.767545 C20.6922403,138.767545 23.0372839,1... |
src/App.js | nihalgonsalves/react-cellular-automata | import React from 'react';
import './App.css';
import 'bulma/css/bulma.css';
import { dec2bin, ascii2bin } from './lib/util';
import AutomataIterator from './lib/AutomataIterator';
import SettingsPanel from './components/SettingsPanel';
import PlaybackPanel from './components/PlaybackPanel';
import { MAX_GENERATION... |
src/forms/AddSelection/AddSelectionForm.js | jobdoc/selections-app | import React from 'react'
import { Field } from 'redux-form'
import MenuItem from 'material-ui/MenuItem'
import {
SelectField,
TextField
} from 'redux-form-material-ui'
export const AddSelectionForm = (props) => (
<form onSubmit={props.handleSubmit}>
<Field name='item' component={TextField} hintText='Item' /... |
app/javascript/components/MemberDetailsForm/MemberDetailsForm.js | SumOfUs/Champaign | // weak
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import _ from 'lodash';
import Button from '../Button/Button';
import { updateForm } from '../../state/fundraiser/actions';
import FieldShape from '../FieldShape/FieldShape';
import e... |
app/components/Header.js | Mikkael3/tiea207projekti2015 | /*
* Joonas Vilppunen, Markus Muranen, Niko Heikkinen
* MIT Licence
* 2015
*/
import React from 'react';
import {Link} from 'react-router';
/*import FooterStore from '../stores/FooterStore';
import FooterActions from '../actions/FooterActions';
*/
class Header extends React.Component {
/*
constructor(props) {
super... |
src/svg-icons/editor/border-clear.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
blueprints/view/files/__test__/views/__name__View.spec.js | cargo-transport/web-frontend | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
src/slides/observer.js | philpl/talk-observe-the-future | import React from 'react'
import { Slide, Text, CodePane } from 'spectacle'
import { codeBackground } from '../constants/colors'
import observerPattern from '~/assets/observer-pattern.example'
export default (
<Slide transition={[ 'slide' ]}>
<Text
textColor='tertiary'
textSize='1.8em'
margin... |
node_modules/react-bootstrap/es/Breadcrumb.js | joekay/awebb | 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 ... |
src/components/hero/hero.js | compwhile/compwhile.io | import React, { Component } from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import gitHubLogo from './github.png';
import './hero.css';
class Hero extends Component {
render() {
return (
<div className="hero">
<Row>
<Col>
<div className="text"><strong>compwhi... |
src/views/components/logos/github.js | djfrsn/dashboard-cl | import React from 'react';
export default function GitHubLogo() {
return (
<svg viewBox="0 0 20 20">
<path d="M10 0C4.5 0 0 4.5 0 10c0 4.4 2.9 8.2 6.8 9.5.5.1.7-.2.7-.5v-1.9c-2.5.5-3.2-.6-3.4-1.1-.1-.3-.6-1.2-1-1.4-.4-.2-.9-.6 0-.7.8 0 1.3.7 1.5 1 .9 1.5 2.4 1.1 3 .9.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.2-4.6-5 ... |
duckr/app/components/Duck/Duck.js | josedab/react-exercises | import React from 'react'
import PropTypes from 'prop-types'
import { formatTimestamp } from 'helpers/utils'
import Reply from 'react-icons/lib/fa/mail-reply'
import Star from 'react-icons/lib/fa/star'
import {
duckContainer, contentContainer, avatar, actionContainer,
header, text, likeReplyContainer, icon, likedIc... |
setup/src/universal/features/routing/hoc/HOCRedirect.js | ch-apptitude/goomi | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import _ from 'lodash';
import { selectUserStatus } from 'features/user/selectors';
import { USER_STATUS } from 'features/user/constants';
import LoginRedirect from... |
src/components/IndicHuitre.js | olivmarcel/aquack | import React, { Component } from 'react';
import { Grid, Col, Jumbotron, Button, ToggleButtonGroup, ToggleButton } from 'react-bootstrap';
import Carte from "./Carte";
export default class Indic extends Component {
altIndic() {
console.log("...");
}
render() {
const indicHuitre = [1,2,4,6,7,8,9,10];
return... |
client/src/entwine/TinyMCE_ssembed.js | open-sausages/silverstripe-assets-gallery | /* global tinymce, window */
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
import ShortcodeSerialiser from 'lib/ShortcodeSerialiser';
import InsertEmbedModal from 'components/InsertEmbedModal/InsertEmbedModal';
import i18n from 'i... |
test/helpers/shallowRenderHelper.js | malecki/gcmeme | /**
* 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'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.