path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
MobileApp/node_modules/react-native-vector-icons/lib/create-icon-set.js | VowelWeb/CoinTradePros.com | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
NativeModules,
Platform,
PixelRatio,
processColor,
Text,
} from './react-native';
import createIconButtonComponent from './icon-button';
import createTabBarItemIOSComponent from './tab-bar-item-ios';
import createToolbarAn... |
ajax/libs/react-instantsearch/3.3.1/Dom.js | sufuf3/cdnjs | /*! ReactInstantSearch 3.3.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
src/native/todos/Todo.js | robinpokorny/este | // @flow weak
import React from 'react';
import theme from '../app/themes/initial';
import { Checkbox, TextInput } from '../app/components';
import { StyleSheet, View } from 'react-native';
const styles = StyleSheet.create({
todo: {
alignItems: 'center',
flex: 1,
flexDirection: 'row',
},
checkbox: {
... |
src/svg-icons/image/blur-off.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurOff = (props) => (
<SvgIcon {...props}>
<path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2... |
app/javascript/mastodon/features/ui/components/audio_modal.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Audio from 'mastodon/features/audio';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import { previewState } from './vide... |
src/svg-icons/image/crop-landscape.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape = pure(ImageCro... |
src/components/Radial.react.js | phnz/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
01-modules/src/index.js | benmvp/react-esnext | // Module imports to load in dependencies
// Uses default imports
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
ReactDOM.render(
<App url="//localhost:3000/api/comments" pollInterval={2000} />,
document.getElementById('app')
);
|
src/static/containers/Root/Root.prod.js | qwertypomy/rental | import React from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from '../../routes';
export default class Root extends React.Component {
static propTypes = {
store: React.PropTypes.shape().isRequired,
history: React.PropTypes.shape().isRequi... |
frontend/src/Components/Table/VirtualTableHeader.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import styles from './VirtualTableHeader.css';
function VirtualTableHeader({ children }) {
return (
<div className={styles.header}>
{children}
</div>
);
}
VirtualTableHeader.propTypes = {
children: PropTypes.node
};
export default Vir... |
react/features/notifications/components/web/NotificationsContainer.js | jitsi/jitsi-meet | // @flow
import { FlagGroupContext } from '@atlaskit/flag/flag-group';
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import { withStyles } from '@material-ui/styles';
import clsx from 'clsx';
import React, { Component } from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
... |
docs/app/Examples/elements/Button/Content/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ButtonContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Conditionals'
descrip... |
src/app/components/AutoCompleteExample.js | leoliew/react-webpack-example | /**
* Created by leoliew on 2016/11/28.
*/
import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import MenuItem from 'material-ui/MenuItem';
impor... |
src/navigation/index.js | KennethMa/Readhub-Client | import React from 'react';
import { Actions, Scene } from 'react-native-router-flux';
import { HomeContainer, SettingsContainer } from '../containers';
import AppConfig from '../constants/config';
import { AppSizes, AppStyles } from '../theme';
import Placeholder from '../components/general/Placeholder';
import { TabIc... |
src/admin/client/modules/products/editHead/index.js | cezerin/cezerin | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { deleteCurrentProduct } from '../actions';
import Buttons from './components/buttons';
const mapStateToProps = (state, ownProps) => {
return {
product: state.products.editProduct
};
};
const mapDis... |
src/index.js | sel129/lofter | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/jsx/developer_keys/ToolConfigurationForm.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
_site/src/components/header/custom-textfield.js | eemp/elasticsearch-scribe | import React from 'react'
import TextField from 'material-ui/lib/text-field'
/*
* expect following props:
* autocompleteHandler
* source
*/
class CustomTextField extends React.Component {
constructor(props) {
super(props);
this.state = {
hintText : this.props.hintText,
... |
src/svg-icons/content/low-priority.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
frontend/src/screens/survey-report/survey-report.js | linea-it/qlf | import React from 'react';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
import { FadeLoader } from 'halogenium';
import Input from '@material-ui/core/Input';
import InputLabel from '... |
src/index.js | rxhluck/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/interface/icons/Login.js | FaideWW/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/login/214301/
// Login by Yaroslav Samoylov from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" {...other}>
<path d="M24,90h-3c-4.962,0-9-4.037-9-9V14c0-4.963,4.038-9,9-9h3v2h-3c-3.86,0-7,... |
admin/src/react/template-list-page/operation.js | sggdv/vegan | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {
PageHeader,
Button,
Glyphicon,
} from 'react-bootstrap';
import TemplateAddPage from '../template-add-page';
// 表单列表页面中的操作控件
export default class Operation extends Component {
constructor(props) {
super(props);
}
render() {
... |
yycomponent/cascader/Cascader.js | 77ircloud/yycomponent | import React from 'react';
import { Cascader as _Cascader } from 'antd';
const getPopupContainer=(target)=>{//弹框挂载点
if(target&&target.closest&&target.closest('.body')){
return target.closest('.body');
}
return document.body;
};
class Cascader extends React.Component{
constructor(props){
super(props);
... |
js/components/Skillcard.js | fractal-mind/portfolio | import React from 'react';
class Skillcard extends React.Component {
render(){
if (this.props.soft) {
return (
<div className="softSkillCard z-depth-3">{this.props.icon}
<p className="softSkillName">{this.props.name}</p>
</div>
)
}
else {
return(
<div cla... |
client/src/index.js | Husterknupp/fxck | import ReactDOM from 'react-dom';
import React from 'react';
import Game from './game.jsx';
ReactDOM.render(
<Game />,
document.getElementById('root')
);
|
webapp/client/src/DocsPage.js | mikemag/MonkeyCAM | /*
* Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag)
*
* This source code is licensed under the Apache license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import { Grid, Row, Col, Panel } from 'react-bootstrap';
const ti... |
src/client.js | KevinRamsunder/cunysearch-node | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
client/node_modules/uu5g03/dist-node/bricks/button-group.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js';
import Button from './button.js';
import './button-group.less';
export const ButtonGroup = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
Colo... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
app/config/routes.js | ianmilliken/origimill | import React from 'react';
import {Router, Route, IndexRoute, hashHistory, browserHistory} from 'react-router';
import SiteWrapper from '../components/SiteWrapper';
import Home from '../components/Home';
import About from '../components/About';
import Contact from '../components/Contact';
import ProjectDetail from '..... |
examples/NavigationPlayground/js/CustomTabs.js | Steviey/win-react-navigation | /**
* @flow
*/
import React from 'react';
import {
Button,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import {
createNavigator,
createNavigationContainer,
TabRouter,
addNavigationHelpers,
} from 'react-navigation';
import SampleText from './SampleText... |
Web/src/components/ValidatedInput/InputContainer.js | CMITInternational/Guitars | import React from 'react';
export default class InputContainer extends React.Component {
componentWillMount () {
this._inputs = {};
}
componentWillUnmount () {
}
registerInput (input) {
let type = input.props.type;
let name = input.props.name;
if (!name) {
throw new Error('Input ' +... |
admin/src/layout-components/ExampleWrapperSimple/index.js | servinglynk/servinglynk-hmis | import React, { Component } from 'react';
import { CardBody, Card, CardHeader } from 'reactstrap';
export default class ExampleWrapperSimple extends Component {
render() {
return (
<Card className="card-box mb-5">
<CardHeader>
<div className="card-header--title font-size-md font-weight-b... |
src/shared/components/DevTools.js | suranartnc/react-redux-universal-starter-kit | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
const DevTools = createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIs... |
TodoWonder/js/TodoWonder.js | lintonye/react-native-diary |
/**
* @flow
*/
import React, { Component } from 'react';
import ReactNative from 'react-native'
import TWNavigator from './TWNavigator'
const {
View,
Text,
StatusBar,
} = ReactNative
class TodoWonder extends Component {
constructor(props, context) {
super(props, context)
this.state = {
email... |
fields/types/text/TextFilter.js | sendyhalim/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ la... |
components/styling.js | firejune/react-desktop-playground | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
const pseudos = [
'hover',
'active',
'focus',
'checked',
'placeholder',
'first-child',
'last-child',
];
const prefixedClasses = ['user-select', 'app-region', 'transform', 'transition'];
const prefixes = [
'-webkit-',
... |
src/Popover.js | yuche/react-bootstrap | /* eslint-disable react/no-multi-comp */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id att... |
modules/PodsByLabel.js | jdeskins/k8s-custom-dashboard | import React from 'react'
import axios from 'axios';
import { Link } from 'react-router'
import Pod from './elements/Pod'
var timer;
export default React.createClass({
getInitialState: function() {
return {
pods: [],
podsByNodes: {},
title: 'Pods By Label',
refreshValue: '0',
lab... |
docs/src/app/components/pages/components/Drawer/ExampleSimple.js | lawrence-yu/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handl... |
src/svg-icons/av/add-to-queue.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAddToQueue = (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 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/>
... |
step02/App/src/components/Loader/index.ios.js | grokbot/intro-to-react-native | import React, { Component } from 'react';
import { ActivityIndicator } from 'react-native';
import { Theme, Color } from "../../theme";
export class Loader extends Component {
render() {
return (
<ActivityIndicator size="large" style={[Theme.loader, Theme.centered]} color={Color.white} />
)
}
}
|
app/scripts/lang.js | agevio/agevio-react-demo | import React from 'react';
import t from 'agevio.js';
export default React.createClass({
handleChange(e) {
t.setLocale(e.target.value);
},
render() {
const options = t.getLanguages().map((lang) => {
const locale = t.getLocale(lang);
return <option value={locale} ke... |
src/svg-icons/notification/airline-seat-legroom-reduced.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomReduced = (props) => (
<SvgIcon {...props}>
<path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1... |
src/views/PlaygroundView.js | terakilobyte/terakilobyte.github.io | import React from 'react';
import ProjectWell from 'components/ProjectWell/ProjectWell';
import 'styles/PlaygroundView.scss';
const projects = [
{
link: '/tictactoe',
source: 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Tic_tac_toe.svg/2000px-Tic_tac_toe.svg.png'
}
];
const PlaygroundView = ... |
docs/app/Examples/elements/Segment/Groups/SegmentExampleSegments.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSegments = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentE... |
src/Collapse/index.js | xDae/styled-bootstrap | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
import omit from 'lodash.omit';
import styled, { css } from 'styled-components';
import themeProp from '../utils/theme';
import transitionCollapse from './default-theme';
const Wra... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | ruikong/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
src/applications/edu-benefits/feedback-tool/config/form.js | department-of-veterans-affairs/vets-website | import merge from 'lodash/merge';
import React from 'react';
import fullSchema from 'vets-json-schema/dist/FEEDBACK-TOOL-schema.json';
import dateRangeUI from 'platform/forms-system/src/js/definitions/dateRange';
import phoneUI from 'platform/forms-system/src/js/definitions/phone';
import emailUI from 'platform/forms-s... |
examples/App/Demo/Toast/index.js | tangjinzhou/biz-mobile-ui | import React from 'react'
import {Toast,Button, colors} from '@bizfe/biz-mobile-ui'
import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util';
export default class PopupDemo extends React.Component {
constructor(props){
super(props)
}
showToast(fn, title) {
fn(title, 1000, ()=> {
... |
examples/FacebookTabsExample/FacebookTabBar.js | franvera/react-native-scrollable-tab-view | import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
const FacebookTabBar = React.createClass({
tabIcons: [],
propTypes: {
goToPage: React.PropTypes.func,
activeTab: React.PropTypes.number,
t... |
src/screens/MyPage/MyWorks.js | alphasp/pxview | import React, { Component } from 'react';
import UserIllusts from '../Shared/UserIllusts';
import UserMangas from '../Shared/UserMangas';
import UserNovels from '../Shared/UserNovels';
import { connectLocalization } from '../../components/Localization';
import PXTabView from '../../components/PXTabView';
class MyWorks... |
src/svg-icons/action/spellcheck.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpellcheck = (props) => (
<SvgIcon {...props}>
<path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-... |
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js | IsenrichO/mui-with-arrows | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import areIntlLocalesSupported from 'intl-locales-supported';
import persianUtils from 'material-ui-persian-date-picker-utils';
let DateTimeFormat;
/**
* Use the native Intl.DateTimeFormat if available, or a polyfill if not.
*/
if (areIntlL... |
app/javascript/mastodon/features/account_timeline/components/header.js | kirakiratter/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
src/components/Main.js | Jazmon/TESK-app | require('normalize.css');
require('styles/App.scss');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className='index'>
<img src={yeomanImage} alt='Yeoman Generator' />
<div className='not... |
server/sonar-web/src/main/js/apps/code/components/App.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/client.js | OndrejPulicar/GridEditor | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
es/components/PlaylistManager/SearchResults/LoadingSearchResults.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import CircularProgress from "@material-ui/core/es/CircularProgress";
var _ref =
/*#__PURE__*/
_jsx("div", {
className: "PlaylistPanel-loading"
}, void 0, _jsx(CircularProgress, {
size: "100%"
}));
var LoadingSearchResults = functio... |
examples/js/pagination/demo.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import DefaultPaginationTable from './default-pagination-table';
import CustomPaginationTable from './custom-pagination-table';
import PaginationHookTable from './pagination-hook-table';
class Demo extends React.Component {
render() {
return (
<div>
... |
examples/src/game.js | ebabel-eu/generic-dice | import React from 'react';
import { render } from 'react-dom';
import Dice from '../../index';
render((
<div>
<Dice />
<Dice face={6} />
<Dice face={5} rolling={false} size={10} />
</div>
), document.getElementById('game'));
|
fixtures/attribute-behavior/src/index.js | anushreesubramani/react | import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/client/components/logout.js | fabriciocolombo/este | import React from 'react';
import {logout} from '../auth/actions';
import {msg} from '../intl/store';
export default class Logout extends React.Component {
render() {
return (
<div className="logout">
<button
children={msg('auth.logout.button')}
onClick={logout}
/>
... |
resume-app/src/components/Job.js | robsonperassoli/robsonperassoli.github.io | import React from 'react'
import styled from 'styled-components'
const Container = styled.div`
display: flex;
flex-direction: column;
&:not(:last-child) {
padding-bottom: 1em;
margin-bottom: 1.5em;
border-bottom: 1px solid #ccc;
}
`
const Date = styled.span`
font-size: 0.8em;
margin-bottom: 0.... |
index.js | appintheair/react-native-looped-carousel | import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
ScrollView,
TouchableOpacity,
View,
ViewPropTypes,
TouchableWithoutFeedback,
} from 'react-native';
import PropTypes from 'prop-types';
import isEqual from 'lodash.isequal';
const PAGE_CHANGE_DELAY = 4000;
// if ViewPropTy... |
src/client/react/user/stages/RegistrationClosed/index.js | bwyap/ptc-amazing-g-race | import React from 'react';
import { connect } from 'react-redux';
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
import NotFoundPage from '../../../pages/NotFound';
import AppContainer from '../../../../../../lib/react/components/AppContainer';
import LoginRefresher from '../../../components... |
features/fileCenter/views/fileCenter.js | zymokey/mission-park | import React from 'react';
import { connect } from 'react-redux';
import FileCenterHead from '../components/fileCenterHead';
import FileProps from '../components/fileProps';
import FileHandler from '../components/fileHandler';
import FileList from '../components/fileList';
import Uploader from '../components/uploader';... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | jamesbond12/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
conference-management-system-front-end/src/components/addUser.js | Kokosowys/conference-management-system | import React from 'react';
import axios from 'axios';
import hash from 'object-hash';
class AddUser extends React.Component {
state = {
formHasErrors: false,
userAdded: false
}
handleSubmit = (event) => {
//console.log("validating...");
event.preventDefault();
if (th... |
src/svg-icons/device/signal-wifi-3-bar.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0... |
src/components/AboutPage.js | daniloprates/redux-synth | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the... |
src/js/components/line.js | sepro/React-Gallery | import React from 'react';
import styled from 'styled-components';
const Line = styled.hr`
border: 0;
height: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
`
export default Line; |
packages/ringcentral-widgets-docs/src/app/pages/Components/VoicemailPlayer/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/stories/index.js | phola/react-xlsx | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import { WorkBook, Sheet, Cell, XTrigger } from '../index'
import FileSaver from 'file-saver'
import { simple, big, subtest, subtestHOC, drop } from '../instances'
const defaultCellStyle = {
font: { name: 'Verdana', sz: 11, color: 'FF00F... |
frontend/src/Calendar/Options/CalendarOptionsModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import CalendarOptionsModalContentConnector from './CalendarOptionsModalContentConnector';
function CalendarOptionsModal(props) {
const {
isOpen,
onModalClose
} = props;
return (
<Modal
i... |
src/svg-icons/maps/local-shipping.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalShipping = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-... |
game-of-life-react-parcel/src/App.js | LandRover/gym | import React, { Component } from 'react';
import GameOfLife from './GameOfLife';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<h1>Conway's Game of Life</h1>
<GameOfLife />
</div>
);
}
}
export default App;
|
app/javascript/mastodon/features/standalone/public_timeline/index.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import { expandPublicTimeline } from '../../../actions/timelines';
import Column from '../../../components/column';
import ColumnHeader from ... |
src/views/Blocks/Base.js | abachman/my-new-tab | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Button from 'react-bootstrap/lib/Button'
import Glyphicon from 'react-bootstrap/lib/Glyphicon'
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'
import Color from 'lib/Color'
import Actions from 'actions'
... |
frame-react16/src/Users/index.js | shenqingling/myTemplates | import React from 'react';
import Loadable from "react-loadable";
import Loading from "../Loading";
const LoadableComponent = Loadable({
loader: () => import("./Users"),
loading: Loading
});
export default LoadableComponent; |
stories/Sticker/CustomStickerEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createStickerPlugin from 'draft-js-sticker-plugin';
import editorStyles from './editorStyles.css';
import stickers from './stickers';
const stickerPlugin = createStickerPlugin({ sticke... |
src/components/Loader/index.js | calumet/realtime-client | import React from 'react';
import classNames from 'classnames';
import Halogen from 'halogen';
import { DESIGN } from 'src/settings';
export default function Loader (props) {
const { className, children, ...rest } = props;
const cls = classNames('loader', className);
return (
<div className={cls} {...rest}... |
packages/react/components/block-header.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7BlockHeader extends React.Component {
c... |
example/index.js | windreamlion/yd-document | import React from 'react';
import ReactDOM from 'react-dom';
import Document from '../src/Document';
// let config = {bgColor:'#ff00ff',bgImg:'img/art.jpg'};
// let templateData = {};
ReactDOM.render(<Document config={} templateData={}/>, document.getElementById('container'));
|
test/bigtest/helpers/Harness.js | folio-org/stripes-core | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';
import { reducer as formReducer } from 'redux-form';
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import componentsTranslations from '@folio/stripes-components/tran... |
lib/js/Tab.js | travelbird/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {
View,
} from 'react-native';
import SafeModule from 'react-native-safe-module';
import { processConfig } from './utils';
const NativeTab = SafeModule.component({
viewName: 'NativeNavigationTabView',
mockComponent: () => <View />,
});
class ... |
app/javascript/mastodon/components/avatar_composite.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
src/components/icons/RemoveCircleIcon.js | austinknight/ui-components | import React from 'react';
const RemoveCircleIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" fill="currentColor">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 ... |
src/svg-icons/notification/ondemand-video.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationOndemandVideo = (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 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIc... |
src/routes/Counter/components/Counter.js | achadha0111/hack-the-burgh | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
packages/theme-patternfly-org/components/inlineAlert/inlineAlert.js | patternfly/patternfly-org | import React from 'react';
import { Alert } from '@patternfly/react-core';
export const InlineAlert = ({
title,
variant = 'info',
children
}) => (
<Alert
variant={variant}
title={title}
className="pf-u-my-md"
style={{ marginBottom: '1rem' }}
isInline
>
{children}
</Alert>
);
|
app/javascript/mastodon/features/list_editor/components/search.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
import Icon from... |
client/src/app/components/ui/RFCheckbox.js | zraees/sms-project | import React from 'react'
import classNames from 'classnames'
import Msg from '../i18n/Msg'
import LanguageStore from '../i18n/LanguageStore'
const RFCheckbox = ({input, label, disabled, readOnly, labelClassName, labelIconClassName, onBlur, meta: {asyncValidating, touched, error, warning}}) => (
<div> ... |
src/routes/register/index.js | luznlun/kkRoom | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Register from './Registe... |
docs/src/examples/collections/Table/Variations/TableExampleSmall.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleSmall = () => (
<Table size='small'>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
... |
mxcube3/ui/components/SampleChanger/SampleChanger.js | amilan/mxcube3 | import React from 'react';
import { Panel, Button, OverlayTrigger, Tooltip, Glyphicon, ButtonToolbar } from 'react-bootstrap';
import 'bootstrap-webpack!bootstrap-webpack/bootstrap.config.js';
import './SampleChanger.css';
/* eslint-disable react/no-multi-comp */
export class SampleChangerTree extends React.Component ... |
src/react/components/Nav.js | suranartnc/isomorphic-react-redux-tutorial | import React from 'react';
import { Link } from 'react-router';
export default () => {
return (
<nav>
<ul>
<li><Link to={'/'}>Home</Link></li>
</ul>
</nav>
);
} |
public/js/recent-game.js | telrikk/ask-zilean | import React from 'react';
export default function RecentGame(props) {
const nonTrinkets = props.game.summoner.items.filter(item => !item.isTrinket).map(item =>
(
<img key={item.imageURL} role="presentation" className="item-image" src={item.imageURL} />
));
const trinket = props.game.summoner.items.filter(... |
admin/client/App/shared/Popout/PopoutListHeading.js | dryna/keystone-twoje-urodziny | /**
* Render a popout list heading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.