path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/chat/groups/GroupView.js | elarasu/roverz-chat | /**
* Groups Screen
*/
import React, { Component } from 'react';
import { Actions } from 'react-native-router-flux';
import {
ScrollView,
Text,
View,
StatusBar,
TouchableOpacity,
StyleSheet,
AppState,
} from 'react-native';
import { ListView } from 'realm/react-native';
import moment from 'moment';
imp... |
lens-ui/app/components/AdhocQueryComponent.js | sushilmohanty/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
screens/home/Home.js | keuss/react-router-redux-sandbox | import React from 'react'
import {connect} from 'react-redux'
import _ from 'lodash'
import {fetchAccounts, setSelectedAccount} from './actions'
import {AccountDetails, AccountList, BalanceGraph} from './components'
class Home extends React.Component {
constructor(props){
super(props)
this.handleAccountCli... |
src/components/App/index.js | koden-km/sc-react-redux | import React from 'react';
function App({ children }) {
return <div>{children}</div>;
}
export default App;
|
v21/v21.0.0/sdk/barcodescanner.js | ccheever/expo-docs | import markdown from 'markdown-in-js'
import withDoc, { components } from '~/lib/with-doc'
import { expoteam } from '~/data/team'
// import { InternalLink, ExternalLink } from "~/components/text/link";
// import { P } from "~/components/text/paragraph";
// import Image from '~/components/base/image'
import { Code } fr... |
tests/Rules-isEmail-spec.js | bitgaming/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
index.ios.js | ericmasiello/TrailReporter | import {Provider} from 'react-redux';
import store from './src/redux/store';
import AppViewContainer from './src/modules/AppViewContainer';
import React from 'react';
import {AppRegistry} from 'react-native';
const TrailReporter = React.createClass({
render() {
return (
<Provider store={store}>
<... |
js/jqwidgets/demos/react/app/calendar/restrictdaterange/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js';
class App extends React.Component {
render() {
return (
<div>
<div>The navigation is restricted from 01/01/2010 to 01/01/2015</div>
... |
app/components/CanvasComponent.js | nchathu2014/canvas_react | import React from 'react';
import ReactDOM from 'react-dom';
import MenuComponent from './MenuComponent';
import ViewComponent from './ViewComponent';
var CanvasComponent = React.createClass({
popUpClose:function(){
$(".popUpModal").show().hide("slide", {direction: "right" }, 500 );//slide animated to po... |
app/config/routes.js | cbrwizard/cbr-landing | //import React from 'react';
//import Router from 'react-router';
//import App from './../components/app/main';
//import Index from './../components/regular/pages/index/main';
//import Admin from './../components/admin/pages/index/main';
//
//const Route = Router.Route;
//const DefaultRoute = Router.DefaultRoute;
//
//... |
src/routes/Users/containers/userDetailContainer.js | roslaneshellanoo/react-redux-tutorial | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
class UserDetail extends React.Component {
render () {
if (!this.props.user) {
return (
<h4>Select a user...</h4>
)
}
return (
<ul className='wrap-user-detail list-group'>
... |
src/applications/find-forms/widgets/createFindVaFormsPDFDownloadHelper/DownloadPDFGuidance.js | department-of-veterans-affairs/vets-website | // Dependencies.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
// relative imports
import DownloadPDFModal from './DownloadPDFModal';
import InvalidFormDownload from './InvalidFormAlert';
import recordEvent from 'platform/monitoring/record-event';
import { sentryL... |
src/routes/savoringYourPet/SavoringYourPet.js | goldylucks/adamgoldman.me | // @flow
/* eslint-disable react/no-unescaped-entities */
import React from 'react'
import axios from 'axios'
import withStyles from 'isomorphic-style-loader/lib/withStyles'
import MessengerFixed from './MessengerFixed'
import testimonials from './testimonialsData'
import FAQContainer from './FAQContainer'
import Mob... |
ZWRNProject/app/src/views/UI/KeyboardAvoidingView/KeyboardAvoidingViewExample.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import {KeyboardAvoidingView, Modal, SegmentedControlIOS,StyleSheet,Text,TextInput,TouchableHighlight,View} from 'react-native';
const UIExplorerBlock = require('../../UIExplorer/UIExplorerBlock');
const UIExplorerPage = require('../../UIExplorer/UIExplorerPage');
export def... |
blueocean-material-icons/src/js/components/svg-icons/action/view-module.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewModule = (props) => (
<SvgIcon {...props}>
<path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/>
</SvgIcon>
);
ActionViewModule.displayName = 'ActionViewModule';
ActionViewModule.muiNam... |
src/components/top-level-entity-modal/top-level-entity-modal.js | mpigsley/sectors-without-number | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactHintFactory from 'react-hint';
import { RefreshCw, X, Plus } from 'react-feather';
import { FormattedMessage, intlShape } from 'react-intl';
import Modal from 'primitives/modal/modal';
import Button from 'primitives/other/button'... |
src/app/components/gooey-nav/gooeyNavItem.js | lmcjt37/kulor-reactify | import React from 'react';
export default ({
onClick,
theme,
icon,
label
}) => (
<a href="#" {...{onClick}} className={ theme['menu-item'] } >
<i className="material-icons" >{icon}</i>
<span className={ theme['menu-item-span']}>{label}</span>
</a>
);
|
src/app/utils/SlateEditor/Image.js | TimCliff/steemit.com | import React from 'react';
import { connect } from 'react-redux';
export default connect(
(state, ownProps) => ownProps,
dispatch => ({
uploadImage: (file, dataUrl, filename, progress) => {
dispatch({
type: 'user/UPLOAD_IMAGE',
payload: { file, dataUrl, filen... |
src/icons/DeviceHubIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class DeviceHubIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3... |
src/components/UserMenu.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Scrollbars } from 'react-custom-scrollbars';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import './UserMenu.less';
class UserMenu extends React.Component {
static propTypes = {
onChang... |
client/app/components/auth/PasswordInput.js | joelseq/SourceGrade | import React from 'react';
import {
FormGroup,
FormControl,
ControlLabel,
Alert,
} from 'react-bootstrap';
/* eslint-disable react/prop-types */
const PasswordInput = ({ input, meta: { touched, error }, ...custom }) => {
let validationState = null;
if (touched) {
validationState = error ? 'error' : 's... |
src/svg-icons/alert/warning.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
packages/reactor-kitchensink/src/App.js | markbrocato/extjs-reactor | import React from 'react'
import Layout from './Layout';
import { HashRouter as Router, Route } from 'react-router-dom'
import createHistory from 'history/createHashHistory'
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import reducer from './reducer';
import { routeDidCh... |
admin/client/App/screens/List/components/Filtering/ListFilters.js | everisARQ/keystone | import React from 'react';
import filterComponents from '../../../../../fields/filters';
import Popout from '../../../../shared/Popout';
import { Pill } from 'elemental';
import { setFilter, clearFilter, clearAllFilters } from '../../actions';
const Filter = React.createClass({
propTypes: {
filter: React.PropTypes... |
app/javascript/mastodon/features/list_adder/index.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
client/index.js | kieusonlam/feathers-react-mobx-starter | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'mobx-react'
import { Router, RouterContext, browserHistory } from 'react-router'
import { createClientState } from './state'
import createRoutes from './routes'
import autorun from './autorun.js'
// Get actions object
import actio... |
src/components/MultiSelect/FilterableMultiSelect.js | joshblack/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 cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Downshift from 'downshift';
import isEqual... |
src/profile/details/EditPassword.js | VasilyShelkov/ClientRelationshipManagerUI | import React from 'react';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import { loader } from 'graphql.macro';
import { graphql } from 'react-apollo';
import {
renderTextField,
required,
minLength,
} from '../../shared/FormElements';
import StandardForm from '../../shared/StandardForm';
cons... |
src/browser/me/ProfilePage.js | chad099/react-native-boilerplate | // @flow
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { Box, Paragraph } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { Title } from '../components';
const ProfilePage = () => (
<Box>
<Title message={linksMessages.profile} ... |
imports/ui/pages/Miscellaneous/Signup/Signup.js | haraneesh/mydev | import React from 'react';
import { Meteor } from 'meteor/meteor';
import {
Panel, Row, Col, FormGroup, ControlLabel, Button,
} from 'react-bootstrap';
import PropTypes from 'prop-types';
import { toast } from 'react-toastify';
import { acceptInvitation } from '../../../../api/Invitations/methods';
// import OAuthLog... |
docs/src/components/usage-example.js | kwangkim/nuclear-js | import React from 'react'
import { Reactor, Store, toImmutable } from 'nuclear-js'
import Code from './code'
const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js'
import React from 'react'
const reactor = new Reactor({ debug: true });
reactor.registerStores({
typeFilter: Store({
getInitia... |
client/admin/users/Skeleton.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box, Skeleton } from '@rocket.chat/fuselage';
export const FormSkeleton = (props) => <Box w='full' pb='x24' {...props}>
<Skeleton mbe='x8' />
<Skeleton mbe='x4'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
</Box>;
|
projects/yanset/src/App.js | taoxiang1995/taoxiang1995.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Header from './components/header';
import Config from './config';
import Tab from './components/tab';
import TabsContainer from './containers/TabsContainer';
class App extends Component {
render() {
return (
... |
packages/material-ui-icons/src/AlarmAdd.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AlarmAdd = props =>
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9... |
imports/ui/layouts/App.js | KyneSilverhide/team-manager | import React from 'react';
import { Grid } from 'react-bootstrap';
import AppNavigation from '../containers/AppNavigation.js';
const App = ({ children }) => (
<div>
<AppNavigation />
<Grid>
{ children }
</Grid>
</div>
);
App.propTypes = {
children: React.PropTypes.node,
};
export default App;... |
src/svg-icons/editor/functions.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFunctions = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/>
</SvgIcon>
);
EditorFunctions = pure(EditorFunctions);
EditorFunctions.displayName = 'EditorFunctions... |
src/svg-icons/image/landscape.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLandscape = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageLandscape = pure(ImageLandscape);
ImageLandscape.displayName... |
app/scripts/main.js | dburdick/react-material-starterkit | import React from 'react';
import Router from 'react-router';
import routes from './routes';
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
Rout... |
src/components/Sidebar/InterestingPeople.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import User from './User';
import './InterestingPeople.less';
const InterestingPeople = ({ users, onRefresh }) => (
<div className="InterestingPeople">
<div class... |
src/components/MenuItemFactory.js | dkozar/react-data-menu | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
var classnames = require('classnames');
export default class MenuItemFactory {
constructor(renderers, classPrefix) {
this.renderers = renderers;
this.classPrefix = classPrefix;
}
createItem(data, key, classes, co... |
src/index.js | isairz/Chess | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
5.3.0/src/routes.js | erikras/redux-form-docs | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import markdownPage from 'components/markdownPage'
import App from 'pages/App'
import Home from 'pages/Home'
import Simple from 'pages/examples/Simple'
import ComplexValues from 'pages/examples/ComplexValues'
import File from 'pages/exa... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'mastodon/components/status_content';
import AttachmentList from 'mastodon/components/attachment_list'... |
dashboard/client/src/js/components/modules/ExperimentHeader.js | jigarjain/sieve | import React from 'react';
import {Link} from '../../utils/router';
// Returns the `Start/Pause` button component for Experiment
function getExperimentStatusButton(experiment, errorType, onStatusToggle) {
let btnTxt;
let isDisabled = Boolean(errorType);
if (experiment.isActive) {
btnTxt = 'Pause';... |
local-cli/templates/HelloWorld/index.ios.js | DannyvanderJagt/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
packages/zensroom/lib/components/common/Home.js | SachaG/Zensroom | /*
Home
*/
import React from 'react';
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
import { FormattedMessage } from 'meteor/vulcan:i18n';
import compose from 'recompose/compose';
// import RoomsList from '../rooms/RoomsList';
// import RoomsSearchForm from '../rooms/RoomsSea... |
src/pages/sorting/Pigeonhole/Pigeonhole.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Pigeonhole extends React.Component {
render() {
return (
<div>Pigeonhole</div>
)
}
}
export default Pigeonhole |
examples/counter/containers/CounterApp.js | olegsxm/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
co... |
docs/app/Examples/views/Card/Content/CardExampleContentBlock.js | shengnian/shengnian-ui-react | import React from 'react'
import { Card, Feed } from 'shengnian-ui-react'
const CardExampleContentBlock = () => (
<Card>
<Card.Content>
<Card.Header>
Recent Activity
</Card.Header>
</Card.Content>
<Card.Content>
<Feed>
<Feed.Event>
<Feed.Label image='/assets/im... |
src/containers/grid_old.js | bryankle/dungeoncrawler | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { storeDamage } from '../actions/store-damage';
//import Hero from '../img/Hero';
import Dungeon from './generateDungeon';
import Hero from '../components/hero';
import Rat from '../compon... |
src/client.js | KeKs0r/evodemo | /* global __DEVTOOLS__ */
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import createStore from './redux/create';
import ApiClient from './ApiClient';
import universalRouter from './universalRouter';
const history = new Browser... |
src/website/app/demos/Radio/RadioGroup/propsComment.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
export default (
<p>
Unlike most other components, which apply undocumented properties to the
root element, RadioGroup applies undocumented properties, including{' '}
<a href="/styling#customization-techniques-try-theming-first-{{8}}-{{14}}-prop">
<code>as</co... |
src/common/ui/Button/index.js | MadeInHaus/react-redux-webpack-starter | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from '@ui';
import cx from 'classnames';
import styles from './Button.scss';
const Button = ({ className, href, theme, to, ...props }) => {
const classNames = cx(styles.root, className, styles[theme]);
if (to || href) {
re... |
src/components/noteDetailsList.js | onepiece8971/rememberNote | import React from 'react';
import {FlatList} from 'react-native';
import CS from '../css/convertSize';
import {
ContentView,
TopView,
TopText,
DetailsContentView,
DetailsSmallView,
TextView,
TitleText,
MiddleTextView,
MiddleText,
FootTextView,
FootLeftTex,
FootRightTex,
RightViewForAllNote
} f... |
fixtures/blocks/src/index.js | cpojer/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.
*/
import React from 'react';
import {unstable_createRoot as createRoot} from 'react-dom';
import './index.css';
import Router from '... |
app/main_app.js | GDGVIT/website-stat-electron | import React from 'react';
import Card from './card.js';
import Screenshot from './screenshot.js';
import LoadTime from './loadtime';
import Requests from './requests';
import Rulelist from './rule_list';
import PageGrade from './page_grade';
import Size from './size';
import Preloader from './preloader';
import Circul... |
assets/javascripts/sso/components/AdminListGroupCard.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {History} from 'react-router';
import {Admin} from '../models/Models';
let AdminListGroupCard = React.createClass({
mixins: [History],
getInitialState() {
return {
groups: [],
};
},
componentDidMount() {
this.reload()... |
docs/src/app/components/pages/components/IconButton/ExampleSimple.js | rscnt/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
const IconButtonExampleSimple = () => (
<div>
<IconButton iconClassName="muidocs-icon-custom-github" />
<IconButton iconClassName="muidocs-icon-custom-github" disabled={true} />
</div>
);
export default IconButtonExampleSimple;
|
antd-dva/ant-design-pro-demo/test/src/routes/Profile/BasicProfile.js | JianmingXia/StudyTest | import React, { Component } from 'react';
import { connect } from 'dva';
import { Card, Badge, Table, Divider } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import DescriptionList from '../../components/DescriptionList';
import styles from './BasicProfile.less';
const { Description } = D... |
fields/types/geopoint/GeoPointField.js | jstockwin/keystone | import Field from '../Field';
import React from 'react';
import { FormRow, FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = this.props;
c... |
src/esm/components/graphics/icons-next/airplane-icon-next/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 AirplaneIconNext = function AirplaneIconNext(_ref) {
var... |
app/components/packages.component.js | karlitos/Android-Adb-Tweaker | import React from 'react';
class Packages extends React.Component {
constructor(props) {
super(props);
this.state = {filesToInstall: []};
}
// handles the drop event
handleApkDrop(event) {
const droppedFiles = event.dataTransfer.files;
// convert the FileList collection to flat array containin... |
app/components/Container/index.js | sekkithub/wg | import React from 'react';
import styles from './styles.css';
function Container(props) {
return (
<div className={ styles.container } { ...props } />
);
}
export default Container;
|
node_modules/semantic-ui-react/src/collections/Form/FormRadio.js | IgorKilipenko/KTS_React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Radio from '../../addons/Radio'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Radio} />
* @see Form
* @see Radio
*/
function FormRadio(props) {
const { contr... |
admin/client/App/shared/Popout/PopoutPane.js | jacargentina/keystone | /**
* Render a popout pane, calls props.onLayout when the component mounts
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: Re... |
js/components/entryCounter.js | yyankowski/relay-notes | import React from 'react';
import Relay from 'react-relay';
class EntryCounter extends React.Component {
render() {
let {entryNum} = this.props;
let strLabelText = entryNum == 1 ? "item" : "items";
return (
<div id="notes-counter">{entryNum} {strLabelText}.</div>
);
}
}
export default E... |
src/svg-icons/action/history.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/containers/ProfileListItem.js | JustPeople/app | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import styled from 'styled-components'
import LocationName from './LocationName'
import * as Selectors from '../selectors'
function ProfileBackgroundColor(props) {
switch (props.gender) {
case 'f': ret... |
src/svg-icons/notification/personal-video.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
assets/js/src/index.js | nathandao/git.report | require('../../css/main.css');
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router';
import routes from 'routes';
import createHistory from 'history/lib/createBrowserHistory';
import RepoServices from 'services/RepoServices';
RepoServices.initData();
const history = cre... |
fields/types/relationship/RelationshipFilter.js | mikaoelitiana/keystone | import async from 'async';
import React from 'react';
import xhr from 'xhr';
import { Button, FormField, FormInput, InputGroup, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Linked To', value: false },
{ label: 'NOT Lin... |
react/features/chat/components/native/GifMessage.js | jitsi/jitsi-meet | import React from 'react';
import { Image, View } from 'react-native';
import { GIF_PREFIX } from '../../../gifs/constants';
import styles from './styles';
type Props = {
/**
* The formatted gif message.
*/
message: string
}
const GifMessage = ({ message }: Props) => {
const url = message.sub... |
pages/skills.js | xzin/homepage | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from 'react-helmet'
import { config } from 'config'
const styles={
item:{
listStyleType:'square',
fontFamily:'Ubuntu'
}
}
export default class Index extends React.Component {
render() {
... |
src/Tabs/Tab.js | react-mdl/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const propTypes = {
active: PropTypes.bool,
className: PropTypes.string,
component: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
PropTypes.func
]),
cssPrefix: Pr... |
src/svg-icons/communication/call-merge.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
actor-apps/app-web/src/app/utils/require-auth.js | boneyao/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/components/Header.js | weitaiting/jstrainingproject | import React from 'react';
const Header = ({ message }) => {
return (
<h2 className="Header text-center">
{message}
</h2>
);
};
Header.propTypes = {
message: React.PropTypes.string
};
export default Header;
|
app/javascript/mastodon/features/compose/components/compose_form.js | robotstart/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
public/js/components/selector.js | MelanistOnca/bookList | import React from 'react';
import { render } from 'react-dom';
export default class Selector extends React.Component{
selectedListChanged(selectList,e){
// console.log('selection was changed');
// console.log(selectList, 'selectList passed to selectedListChanged() in components/updateLists.js');
let cho... |
frontend/link/disputeverify/Container.js | datoszs/czech-lawyers | import React from 'react';
import {PageHeader} from 'react-bootstrap';
import {Msg, PageTitle} from '../../containers';
import ResultContainer from './ResultContainer';
import CaseButton from './CaseButton';
export default () => (
<section>
<PageTitle msg="case.dispute.verify.title" />
<PageHeader>... |
src/PageHeader.js | jamon/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;
|
examples/Aviato/app/components/index.js | jmurzy/react-router-native | /* @noflow */
import React from 'react';
import {
View,
} from 'react-native';
import {
Header,
} from 'react-router-native';
import styles from './styles';
export const component = (backgroundColor) => (props) => (
<View style={[styles.component, { backgroundColor }]}>
{props.children}
</View>
);
expo... |
frontend/routes.js | StefanKjartansson/drf-react-skeleton | import React from 'react';
import {
Router,
Route,
IndexRoute,
hashHistory,
Redirect,
} from 'react-router';
import ErrorPage from './pages/ErrorPage';
import Home from './pages/Home';
import Login from './pages/Login';
import Master from './master';
import API from 'api';
import Radium from 'radium';
const... |
app/components/CopyToClipboard.js | surrealroad/electron-react-boilerplate | // @flow
import React, { Component } from 'react';
// import { Link } from 'react-router-dom';
import { Button } from 'hig-react';
export default class CopyToClipboard extends Component {
props: {
copy: () => void
};
render() {
const { copy } = this.props;
return (
<div>
<Button onClic... |
app/components/Toggle/index.js | ParAnton/ngps-gui-core | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
examples/todos-with-undo/containers/AddTodo.js | naoishii/ohk2016C | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<input ref={node => {
input = node
}} />
<button onClick={() => {
dispatch(addTodo(input.value))
input.value... |
test/assertions/TreePaneAsserter.js | tomkp/react-tree-pane | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import chai from 'chai';
const expect = chai.expect;
import NodeAsserter from './NodeAsserter';
export default class TreePaneAsserter {
constructor(jsx) {
this.element = document.createElement('d... |
app/javascript/mastodon/components/load_more.js | KnzkDev/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
disabled: PropTypes.bool,
visible: PropTypes.bool,
}
static defaultProps = {
vi... |
ui/src/js/findTree/TreesFound.js | Dica-Developer/weplantaforest | import counterpart from 'counterpart';
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class TreesFound extends Component {
constructor(props) {
super(props);
this.state = {
treeCount: 0,
treeWord: ''
};
}
componentDidMount() {
var treeCo... |
src/components/dashboard/setlist_card.js | jmdelcarmen/gartist | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import actions from '../../actions';
class SetlistCard extends Component {
render() {
const { _id, artist, performanceDate, songs, venue, comment, thumbnailUrl } = this.props.setlist;
... |
src/container.js | tea-js/chameleon | /**
* container组件
*/
import React from 'react';
/**
* Usage:
* import {Container} from 'chameleon';
*
* React.createClass({
* render() {
* return (
* <Container>
* </Container>
* );
* }
* });
*/
export default React.createClass({
getDefaultProps() {
return {
fluid: f... |
clients/components/ProSettings/ProFreeTrial/ProFreeTrial.js | CalderaWP/Caldera-Forms | import React from 'react';
import propTypes from 'prop-types';
import classNames from 'classnames';
import {Button} from 'react';
/**
* Create the ProFreeTrial UI
* @param {Object} props
* @return {*}
* @constructor
*/
export const ProFreeTrial = (props) => {
const documentationHref = `https://calderaforms.com/d... |
src/client.js | dieface/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
app/src/components/Folder/FolderPopover.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import Popover from 'react-popover';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import FeedToFolderModal from './FeedToFolderModal';
import Loader from '../Loader';
import { updateFolder } from '../../api/folderAP... |
demo/demoFactory/components/groupComponents/Group.js | gearz-lab/redux-autoform | import React from 'react';
import { array, object, string } from 'prop-types';
export default class Group extends React.Component {
static propTypes = {
component: string,
fields: array.isRequired,
layout: object.isRequired,
componentFactory: object.isRequired
};
getCompone... |
src/client/auth/login.react.js | jaegerpicker/GLDice | import './login.styl';
import * as actions from './actions';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter.react';
import immutable from 'immutable';
import {focusInvalidField} from '../lib/validation';
import {msg} from '../intl/s... |
actor-apps/app-web/src/app/components/DialogSection.react.js | winiceo/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
im... |
src/svg-icons/device/nfc.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
assets/node_modules/react-router/es6/IndexLink.js | janta-devs/janta | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
app/components/PlayControl/index.js | scampersand/sonos-front | import React from 'react'
import PlayPauseButton from 'components/PlayPauseButton';
import BackButton from 'components/BackButton';
import NextButton from 'components/NextButton';
import styles from './styles.css';
export default function PlayControl(props) {
return (
<div className={styles.playControl}>
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.