path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Realization/frontend/czechidm-core/src/content/task/TaskInstancesView.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
//
import * as Basic from '../../components/basic';
import * as Domain from '../../domain';
import { WorkflowTaskInstanceManager } from '../../redux';
import TaskInstanceTable from './TaskInstanceTable';
/**
* List of... |
src/components/search_bar.js | Peterrkang/Locals | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
export default class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
}
handleKeyPress(target) {
if(target.charCode == 13){
target.preventDefault();
... |
test/e2e/prerender/pages/fallback-only/[slug].js | JeromeFitz/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getStaticPaths() {
return {
paths: [],
fallback: true,
}
}
export async function getStaticProps({ params }) {
await new Promise((resolve) => setTimeout(resolve, 1000))
return {
pro... |
lib/components/ProgressBar.js | gramakri/filepizza | import React from 'react'
import classnames from 'classnames'
function formatProgress(dec) {
return (dec * 100).toPrecision(3) + "%"
}
export default class ProgressBar extends React.Component {
render() {
const failed = this.props.value < 0;
const inProgress = this.props.value < 1 && this.props.value >= ... |
projects/model-threating-tool/src/components/Header.js | hodovanyuk/hodovanyuk.github.io | import React, { Component } from 'react';
import {Navbar, Nav, NavItem} from 'react-bootstrap';
class Header extends Component {
render() {
return (
<Navbar inverse collapseOnSelect className="header" fluid>
<Navbar.Header>
<Navbar.Brand>
... |
src/components/slide12.js | lucky3mvp/react-demo | import React from 'react'
import Header from './slide-header'
import Footer from './slide-footer'
export default React.createClass({
getInitialState () {
return {
first: false,
last: false,
index: 12
}
},
render () {
return (
<div className="m-slide slide12">
<Hea... |
src/components/Chat/Chat.js | lucaslencinas/react-node-socketio-template | import React from 'react';
import PropTypes from 'prop-types';
import * as socketio from '~/utils/socket.io';
import uuid from 'uuid';
import styles from './Chat.css';
class Chat extends React.Component {
constructor(props) {
super(props);
this.handleSend = this.handleSend.bind(this);
this.handleMessage... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Table.js | OpenKGB/webcode | 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/routes/app/routes/dashboard/components/EngagementStats.js | ahthamrin/kbri-admin2 | import React from 'react';
import ReactEcharts from 'components/ReactECharts';
import CHARTCONFIG from 'constants/ChartConfig';
// Engagment pie charts
const labelTop = {
normal: {
show: true,
position: 'center',
formatter: '{b}',
textStyle: {
color: 'rgba(0,0,0,.54)',
baseline: 'bottom',... |
tp-3/juan-pablo-gonzalez/src/components/pages/alumnos/components/form/AlumnoForm.js | solp/sovos-reactivo-2017 | import React from 'react';
// Since this component is simple and static, there's no parent container for it.
const AlumnoForm = () => {
return (
<div>
<h2 className="alt-header">Formulario Alumno </h2>
<p>
aqui va el formulario del alumno
</p>
</div>
);
};
export default AlumnoF... |
src/modules/ModalSearchTextWithCallback.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import {Button, Modal, Well} from 'react-bootstrap';
import SearchText from '../SearchText';
import MessageIcons from '../helpers/MessageIcons';
/**
* Display modal text search that allows user to select a doc.
*/
export class ModalSearchTextWithCallback... |
src/client/app/createactions.js | cazacugmihai/este | import Component from '../components/component.react';
import React from 'react';
import fetch from 'isomorphic-fetch';
import {createValidate} from '../validate';
import * as authActions from '../auth/actions';
import * as todosActions from '../todos/actions';
const actions = [authActions, todosActions];
export def... |
src/routes.js | Boughtmanatee5/webpack-example | import React from 'react';
import {Route} from 'react-router';
import Main from 'components/main';
import Example from 'components/example';
const routes = (
<Route handler={Main}>
<Route name='example' handler={Example}/>
</Route>
);
export default routes;
|
src/widgets/Loading.js | Sekhmet/busy | import React from 'react';
import './Loading.scss';
export default ({ color, className, style }) =>
<div
style={style}
className={
color
? `Loading Loading--${color} text-center ${className}`
: `Loading text-center ${className}`
}
>
<span>●</span>
<span>●</span>
<span>... |
src/svg-icons/social/people.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/assignment-ind.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAssignmentInd = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z... |
src/svg-icons/hardware/power-input.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput = pure(HardwarePowerInput);
HardwarePowerInput.dis... |
src/nav/section.js | govau/service-manual | import PropTypes from 'prop-types';
import Slugify from 'slugify';
import React from 'react';
import { InpageNavSection } from '../../scripts/uikit/inpage-nav';
/**
* The section component
*/
const Section = ( page ) => {
const HeadingTag = `h${ page.level ? page.level : 2 }`;
return (
<div className="au-bod... |
src/browser/extension/inject/index.js | phucpnt/mapofa | import React from 'react';
import { render } from 'react-dom';
import Root from 'app/containers/RootPodioInject';
import configureStore from 'app/store/configureStore';
configureStore(store => {
window.addEventListener('load', () => {
let injectDiv = document.createElement('div');
injectDiv.id = 'mapofa-inj... |
src/Parser/Priest/Holy/Modules/PriestCore/Divinity.js | enragednuke/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatNumber, formatThousands } from 'common/format';
// dependencies
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/S... |
ui/src/main/js/components/TaskListItem.js | medallia/aurora | import React from 'react';
import { Link } from 'react-router-dom';
import TaskListItemActions from 'components/TaskListItemActions';
import TaskStateMachine from 'components/TaskStateMachine';
import { RelativeTime } from 'components/Time';
import { getClassForScheduleStatus, getDuration, getLastEventTime, isActive ... |
src/components/Feedback/Feedback.js | BrettHoyer/fatwithfriends | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/container/home.js | ftmatsumoto/crss | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import ActionCheckCircle from 'material-ui/svg-icons/action/check-circle';
import question from '../asset/question.svg';
import calendar from '../asset/calendar.svg';
import we... |
src/components/listOfMatch/listOfAgentPropertysView.js | gordongordon/hom | import React from 'react'
import { List, Toast, NoticeBar, Icon, Card, SwipeAction, Stepper, Picker, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl } from 'antd-mobile';
import { createForm } from 'rc-form';
// import moment from 'moment';
// import 'moment/locale/zh-cn';
import { agentModel }... |
src/routes/tests/Tests.js | fkn/ndo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Tests.css';
class Tests extends Component {
static propTypes = {
title: PropTypes.string.isRequired,
};
render() {
const { title } = this.props;... |
imports/ui/components/surveyBuilder/FormInspector.js | ctagroup/home-app | import React from 'react';
import AutoForm from 'uniforms-bootstrap3/AutoForm';
import AutoField from 'uniforms-bootstrap3/AutoField';
import VariableField from '/imports/ui/components/surveyBuilder/formFields/VariableField';
import { handleFormTransform } from './helpers';
export default class FormInspector extends ... |
app/javascript/mastodon/features/favourites/index.js | res-ac/mstdn.res.ac | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
UI/src/components/Setting.js | ssvictorlin/PI | import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
const Setting = (props) => {
return (
<View hitSlop={{top: 5, bottom: 5, left: 5, right: 5}}>
<Icon size={30} style={styles.gear} name... |
app/components/appbar/Breadcrumb.js | jaadam/golfer-web | import React from 'react';
import { Link } from 'react-router';
class Breadcrumb extends React.Component {
render() {
const { routes } = this.props;
const depth = routes.length;
return (
<ul>
{ routes.map((item, index) =>
<li key={ index }>
<Link
to={ it... |
Rosa_Madeira/Revendedor/src/components/screens/NoteScreen.js | victorditadi/IQApp | import React, { Component } from 'react';
import { Text, View, AsyncStorage } from 'react-native';
import NotificacoesLista from '../notificacoes/NotificacoesLista';
class NoteScreen extends Component {
render() {
return(
<View style={{flex: 1, backgroundColor: '#ede6de'}}>
<View style={{marginT... |
app/views/NotFoundPage/index.js | ThiagoFacchini/3DUX | // @flow
// --------------------------------------------------------
// REACT / REDUX IMPORTS
// --------------------------------------------------------
import React from 'react'
import { FormattedMessage, injectIntl } from 'react-intl'
// --------------------------------------------------------
// -----------------... |
src/components/StoneQuest/May2013.js | mattschwartz/mattschwartz | import React from 'react'
import ImagePreview from './ImagePreview';
import stonequest2d from '../../res/worldsbetween/stonequest_2dgraphics_mar_2013.png'
import stonequestHella from '../../res/worldsbetween/stonequest_may_2013.png'
import EntryHeading from './EntryHeading';
export default () => (
<>
<Ent... |
src/components/Icon.js | droberts84/react-flux-redux-talk | import React from 'react';
export function Icon(props) {
var classNames = "fa fa-" + props.type
return(
<i className={classNames} />
)
}
|
classic/src/scenes/mailboxes/src/Components/ServiceTooltip/ServiceTooltipSimpleContent.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { accountStore } from 'stores/account'
class ServiceTooltipContent extends React.Component {
/* **************************************************************************/
// Class
/* ***... |
actor-sdk/sdk-web/src/components/common/ConnectionState.react.js | ljshj/actor-platform | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import { FormattedMessage } from 'react-intl';
import SharedContainer from '../../utils/SharedContainer';
import { appName, ConnectionStates } from '../../constants/ActorApp... |
src/components/Homepage/components/NameAndTitle.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class NameAndTitle extends Component {
render() {
const { data } = this.props;
const name = data.pictureAndInfoBox.name;
const title = data.pictureAndInfoBox.title;
return(
<div>
<h2 className="resume-nam... |
docs/app/Examples/modules/Popup/Variations/PopupExampleOffset.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Icon, Popup } from 'semantic-ui-react'
const PopupExampleOffset = () => (
<div>
<Popup
trigger={<Icon size='large' name='heart' circular />}
content='Way off to the left'
offset={50}
positioning='left center'
/>
<Popup
trigger={<Icon size='... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | vasekric/regrinder | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/svg-icons/hardware/toys.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
docs/public/static/examples/v37.0.0/tutorial/image-picker-show.js | exponent/exponent | import React from 'react';
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
export default function App() {
let [selectedImage, setSelectedImage] = React.useState(null);
let openImagePickerAsync = async () => {
let permissionResu... |
app/components/Navbar.js | aaronjameslang/nhshd17 | // @flow
import React, { Component } from 'react';
import { Link, hashHistory } from 'react-router';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import FlatButton from 'material-ui/Fla... |
src/decorators/withViewport.js | pfryga/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/modules/shared/ui/navbar.js | diegoangel/erp-frontend | import React from 'react'
const Navbar = (props) => {
return(
<div>
{props.children}
</div>
)
}
export default Navbar |
app/javascript/src/client/states/index.js | rringler/billtalk | import _ from 'lodash';
import React, { Component } from 'react';
import { Col } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import { connect } from 'react-redux';
import { fetchStates } from './actions';
class StatesIndex extends Component {
componentDidMount() {
this.props.... |
src/day1/1.jsx.js | zhufengnodejs/201705react | /**
* react是核心库 设置房子
*/
import React from 'react';
//react-dom是跟DOM操作相关的库 盖房子
import ReactDOM from 'react-dom';
/**
* 1. render渲染的意思
* 2. 把一个h1标签添加到root这个DOM元素的内部
* 3. react对JS作了扩展,react使用的自己的扩展的jsx语法
* 4. javascript+xml(html) 这是一种可以让html和js混合书写的一种语法
* 5.
*/
let ele = <h1>hello</h1>;
console.log(ele);
//虚拟DOM
/... |
packages/bonde-admin/src/mobilizations/components/list/items/users.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { FormattedMessage } from 'react-intl'
const Users = ({ users_count: usersCount }) => (
<div className='users px3 col col-2'>
{usersCount || '-'}
</div>
)
Users.propTypes = {
users_count: PropTypes.oneOfType([
PropTypes.string,
Prop... |
src/views/EditDeleteForTable.react.js | Cron-J/CSV-Redux | import React from 'react';
import { Button } from 'react-bootstrap';
// import messageActions from 'actions/message/MessageActions';
export default class EditDeleteForTable extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
_onEditAction() {
this.props.editAction(this.pro... |
src/pages/Charts/UserBehavior.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import Chart from 'react-chartist';
let data = {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
series: [
[542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895],
[412, 243, 280, 580, 453, 353, 300, 364, 368, 410, 636, 695]
]
... |
client/router/toString.js | jasonf7/memories-of-harambe | import React from 'react';
import { Provider } from 'react-redux';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import Helmet from 'react-helmet';
import createRoutes from './routes';
import { createStore, setAsCurrentStore } from '../store';
/**
* Handle HTT... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/ModalDialog.js | jmanday/Master | 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 ... |
libraries/yjs/data-visualization/src/index.js | vivaxy/course | /**
* @author vivaxy
* @since 2021-07-08
*/
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
);
|
src/components/FoodTypeListItem.js | Raunak1001/FoodyFu | /**
* Created by raunak on 20/6/17.
*/
import React from 'react';
import {Link} from 'react-router-dom'
export default class FoodTypeListItem extends React.Component {
render(){
const type=this.props.type;
return(<div>
<div className="container-dishes">
<div className="cl... |
src/components/Tag/Tag.js | F-Ruxton/taskata | import React from 'react';
import PropTypes from 'prop-types';
import './Tag.css';
import Button from '../Button/Button';
import { getTagTextColor } from '../../utils/utils';
const Tag = ({ tag, handleClick, getTagColor, active }) => {
let color = getTagColor(tag);
let textColor = getTagTextColor({tagColor: color}... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | clworld/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
app/javascript/mastodon/features/ui/components/actions_modal.js | 5thfloor/ichiji-social | 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 '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
app/javascript/mastodon/components/column_header.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
src/svg-icons/maps/local-see.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
src/modules/discussion/components/DiscussionComment/DiscussionComment.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import './DiscussionComment.css';
const DiscussionComment = ({ user, updatedAt, content }) => (
<div className="discussionComment">
<div className="discussionTitleContainer">
<span className="discussionTitle">Discussion</span>
</div>
<div class... |
modules/Lifecycle.js | MattSPalmer/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
packages/wix-style-react/src/CustomModalLayout/docs/examples/MarketingExample.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
import { Modal, Button, Box, CustomModalLayout } from 'wix-style-react';
class MarketingExample extends React.Component {
state = {
isModalOpened: false,
};
openModal = () => this.setState({ isModalOpened: true });
closeModal = () => this.setState({ isModal... |
src/mui/layout/Title.js | marmelab/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import translate from '../../i18n/translate';
const Title = ({ defaultTitle, record, title, translate }) => {
if (!title) {
return <span>{defaultTitle}</span>;
}
if (typeof title === 'string') {
return <span>{translate(title, { ... |
packages/@vega/review-tool/src/components/ArticleSnapshot.js | VegaPublish/vega-studio | import React from 'react'
import PropTypes from 'prop-types'
import {FormBuilder} from 'part:@lyra/form-builder'
import schema from 'part:@lyra/base/schema'
import styles from './styles/ArticleSnapshot.css'
import WithPointersAsMarkers from 'part:@lyra/components/with-pointers-as-markers'
const preventDefault = event ... |
src/containers/contact_form.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
import { FormGroup, ControlLabel, FormControl, Radio, Button } from 'react-bootstrap';
import FieldGroup from '../components/field_group';
class ContactForm extends Component {
render() {
const form = th... |
packages/material-ui-icons/src/Pause.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z" /></g>
, 'Pause');
|
ajax/libs/recompose/0.20.1/Recompose.js | kiwi89/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
debugger/cerebral-debugger/src/components/Debugger/Inspector/JSONInput/index.js | idream3/cerebral | import './styles.css'
import React from 'react'
import {connect} from 'cerebral/react'
import {
isObject,
isArray
} from '../../../../common/utils'
export default connect({},
class JSONInput extends React.Component {
constructor (props) {
super(props)
this.state = {
isValid: true,
... |
src/routes/users/UserList.js | terryli1643/thinkmore | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import styles from './UserList.less'
import classnames from 'classnames'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import { DropOption } from '../../components'
const confirm = Modal.confirm
fu... |
lib/components/modification/json-editor.js | conveyal/analysis-ui | import {Button, Stack, Textarea, Text} from '@chakra-ui/react'
import omit from 'lodash/omit'
import React from 'react'
import message from 'lib/message'
const omitAttributes = (m) =>
omit(m, [
'_id',
'accessGroup',
'createdAt',
'createdBy',
'nonce',
'projectId',
'type',
'updatedAt',... |
ajax/libs/react-instantsearch/4.3.0/Connectors.js | sufuf3/cdnjs | /*! ReactInstantSearch 4.3.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/Table/components/TableHeaderCell.js | Pearson-Higher-Ed/compounds | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from '../../Icon';
export default class TableHeaderCell extends Component {
static propTypes = {
children: PropTypes.node,
scope: PropTypes.string,
inputId: PropTypes.string,
containerId: PropTypes.string,
... |
mobile_app/src/routes.js | xudaosong/MyMoney | require('rk-toast/assets/index.less')
require('./styles/money.scss')
import React from 'react'
import ReactDOM from 'react-dom'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import injectTapEventPlugin from 'react-tap-event-plugin'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import {R... |
share/components/SignUp/SignUp.js | caojs/password-manager-server | import React from 'react';
import { Link } from 'react-router';
import { Field } from 'redux-form/immutable';
import FaUser from 'react-icons/lib/fa/user';
import FaLock from 'react-icons/lib/fa/lock';
import classNames from 'classnames';
import Button from '../Common/Button';
import ErrorMessages from '../Common/Error... |
src/index.js | francocorreasosa/ClimaUY | import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import AppWithNavigation from './navigation';
import store from './store';
const ClimaUY = () => (
<Provider store={store}>
<AppWithNavigation />
</Provider>
);
AppRegistry.registerComponent('ClimaUY... |
app/components/H3/index.js | iFatansyReact/react-boilerplate-imagine | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/parser/druid/restoration/modules/items/azeritetraits/LaserMatrixRestoDruid.js | FaideWW/WoWAnalyzer | import React from 'react';
import LaserMatrix from 'parser/shared/modules/spells/bfa/azeritetraits/LaserMatrix';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/oth... |
corona-ide-ui/src/Components/App.js | Corona-IDE/corona-ide | import React, { Component } from 'react';
import ProjectTree from './ProjectTree/ProjectTree';
import '@starchart-labs/react-flightdeck/dist/styles/Modal.css';
import '../Style/App.css';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
library.add(f... |
app/src/components/Header.js | nickdecooman/template-react-frontend | // @flow
import React from 'react';
import { TEAL_700, WHITE } from '../styles/colors';
import {
StyleSheet,
css,
type SheetDefinition,
getStyle,
getStyleSheet,
} from '../utils/aphrodite';
import { Title } from './Common';
type Props = {
title: string,
logo: string,
styleSheet?: {
header?: SheetD... |
src/views/HomeView.js | terakilobyte/geoff2 | import React from 'react';
import {
bindActionCreators
}
from 'redux';
import {
connect
}
from 'react-redux';
import counterActions from 'actions/counter';
import _ from 'lodash';
import $ from 'jquery';
// We define mapStateToProps and mapDispatchToProps where we'd normally use
// the @connect decorator so the da... |
client/app/mentor/Home/index.js | prilutskiy/hackathon | import React, { Component } from 'react';
import { Header, Icon, Segment, List } from 'semantic-ui-react';
import { createContainer } from 'meteor/react-meteor-data';
import { Achievs } from '../../../../imports/api/achievs.js';
class Home extends Component {
constructor(props) {
super(props);
}
render()... |
src/components/Patterns/LeftPane/PatternsLeftPaneComponent.js | coolshare/ReactReduxPattern | import React from 'react';
import classNames from 'classnames';
import InfiniteTree from 'react-infinite-tree';
import 'react-infinite-tree/dist/react-infinite-tree.css';
import cs from '../../../services/CommunicationService'
import HousingInfo from '../../MainPage/FormTable/HousingInfo/HousingInfo'
export default cl... |
example7/src/components/SquareFader.js | JoeTheDave/Talk-ReactUpAndRunning |
//SquareFader.js
import React from 'react';
import {findDOMNode} from 'React-dom';
class SquareFader extends React.Component{
constructor (props) {
super(props);
}
componentWillReceiveProps(nextProps) {
if (nextProps.visible !== this.props.visible) {
if (nextProps.visible) {
... |
ui/src/components/workflow/WorkflowMetaDetails.js | soup11/conductor | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Breadcrumb, BreadcrumbItem, Grid, Row, Col, Well, OverlayTrigger,Button,Popover, Panel, Tabs, Tab } from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import { connect } from 'react-redu... |
src/app/containers/Login.js | nileshp-cuelogic/react-redux-training | import React from 'react'
import { connect } from 'react-redux'
import { LoginComponent } from '../components/Login'
import { onLogin } from '../actions/userActions'
class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
credentials: {
us... |
client/views/PlayerView.js | theogravity/beatbox-player | import React from 'react'
import MusicList from '../components/music-list/MusicList'
export default class PlayerView extends React.Component {
static displayName = 'PlayerView'
static propTypes = {
actions: React.PropTypes.object
}
render () {
return (
<div className='container'>
<Music... |
packages/vs-button/src/index.js | vivintsolar-oss/react-components | import React, { Component } from 'react';
class VSButton extends Component {
constructor(props) {
super(props);
this.toggleHover = this.toggleHover.bind(this);
this.toggleActive = this.toggleActive.bind(this);
this.state = {
hover: false,
active: false,
dark: false,
};
}
... |
test/integration/scss-fixtures/single-global/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
client/src/pages/searchResults/index.js | csleary/nemp3 | import { shallowEqual, useDispatch, useSelector } from 'react-redux';
import Button from 'components/button';
import React from 'react';
import RenderRelease from 'components/renderRelease';
import Spinner from 'components/spinner';
import { clearResults } from 'features/search';
import { faTimes } from '@fortawesome/f... |
examples/star-wars/js/components/StarWarsShip.js | IlyasM/relayWorking | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import React from... |
src/components/checkout/Checkout.js | elmahdim/estore-react | import React, { Component } from 'react';
import {Link} from 'react-router';
import Hero from '../catalog/Hero';
class Checkout extends Component {
constructor() {
super();
this.state = {
hero: {
title: 'Checkout',
subtitle: 'Consectetur adipisicing elit.'
}
};
}
render()... |
src/svg-icons/device/add-alarm.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAddAlarm = (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.... |
src/routes.js | HasanSa/hackathon | import React from 'react';
import {Route} from 'react-router';
import {App,
Media,
NotFound,
} from 'containers';
export default (store) => { // eslint-disable-line
/**
* Please keep routes in alphabetical order
*/
return (
<Route path="/" component={App}>
{ /* Routes */ }
<Route ... |
node_modules/react-dropzone/examples/Accept/index.js | EmersonAntonioDaSiilva/poc-dipol-nlc | import React from 'react';
export default class Accept extends React.Component {
state = {
accepted: [],
rejected: []
}
render() {
return (
<section>
<div className="dropzone">
<Dropzone
accept="image/jpeg, image/png"
onDrop={(accepted, rejected) => { ... |
app/javascript/mastodon/features/list_editor/components/edit_list_form.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
src/components/cell/cell.js | deepdeeppink/dogwalk | import React from 'react'
import classnames from 'classnames'
let Cell = React.createClass({
getInitialState: function() {
return {
slideIndex: 0,
changing: false,
}
},
componentWillReceiveProps: function(nextProps) {
let nextSlideNumber = nextProps.slideIndex % this.props.slideCount... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | hugogameiro/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../../../components/icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from '../../ui/util/optional_motion';
im... |
src/components/Video/Video.js | VirtualClub/vclub | import React from 'react';
const mediaEvents = [
'abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended',
'error', 'interruptbegin', 'interruptend', 'loadeddata', 'loadedmetadata', 'loadstart',
'onencrypted', 'pause', 'play', 'playing', /* 'progress', */ 'ratechange', 'seeked', '... |
src/index.js | chrisgonzalez/d3-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import { applyMiddleware, createStore } from 'redux';
import createLogger from 'redux-logger';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import rootReducers from './reducers';
const logger = ... |
node_modules/rc-select/es/OptGroup.js | ZSMingNB/react-news | 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';
var OptGroup = function (_React$Component) {
_inherits(OptGroup, _React$Comp... |
client/components/network/network.js | Camcan/inu-I-know | import React, { Component } from 'react';
import vis from 'vis';
export default class Network extends Component {
constructor(props){
super(props);
this.drawNetwork = this.drawNetwork.bind(this);
}
componentDidMount(){
this.drawNetwork(this.props.data, this.props.rels);
this.setStat... |
app/containers/App.js | andrewjong/react-interactive-calculator | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.