path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/explore/statuses.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusList from 'mastodon/components/status_list'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { fetchTrendingStatuses, expandTrendingStatuse...
src/App/Blockchain.js
kgstew/whitesands
import React, { Component } from 'react'; import './App.css'; const SHA256 = require("crypto-js/sha256"); class Block { constructor(index, timestamp, data, previousHash = '') { this.index = index; this.previousHash = previousHash; this.timestamp = timestamp; this.data = data; this.hash...
src/icons/SocialAndroid.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialAndroid extends React.Component { render() { if(this.props.bare) { return <g> <g> <g> <path d="M144,268.4V358c0,6.9,4.5,14,11.4,14H184v52c0,13.3,10.7,24,24,24s24-10.7,24-24v-52h49v52c0,7.5,3.4,14.2,8...
fields/types/relationship/RelationshipColumn.js
davibe/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.create...
frontend/component/Header.js
ivernaloo/practice-node-project
import React from 'react'; import {Link} from 'react-router'; import {loginUser, logout} from '../lib/client'; export default class Header extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { loginUser() .then(user => this.setState({user})) ...
src/app/components/localSignupForm.js
nazar/soapee-ui
import React from 'react'; import LocalAuthenticationForm from 'components/localAuthenticationForm'; import ValidateSignupFields from 'services/validateSignupFields'; import authActions from 'actions/auth'; export default React.createClass( { getInitialState() { return { errors: {} };...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
NS-Kazuki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
examples/dynamic-segments/app.js
chunwei/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
geonode/monitoring/frontend/monitoring/src/containers/main.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
src/components/Main.js
pdx-code/teampro
require('normalize.css'); require('styles/App.css'); import React from 'react'; import TimelogCard from './widgets/timelogs/CardComponent'; let injectTapEventPlugin = require("react-tap-event-plugin"); injectTapEventPlugin(); class AppComponent extends React.Component { constructor(props) { super(props); } ...
fields/types/relationship/RelationshipColumn.js
jstockwin/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
src/svg-icons/action/tab.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTab = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/> </SvgIcon> ); ActionTab = pure(ActionTab); ActionTab....
src/Accordion.js
aparticka/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
jiguoling/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
src/client.js
noraesae/yomiko
/** * 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 createStore from './redux/create'; import ApiClient from '....
examples/js/style/tr-class-function-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
Rogerlin2013/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
toko926/sakerakuintweb
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/app/components/App.js
eveld/isomorphic-js
'use strict'; import React from 'react'; /** * The root component of the application. */ class App extends React.Component { constructor(props) { super(props); this.state = {}; } /** * @inheritdoc * @return {boolean} Whether or not the component should update */ shouldComponentUpdate() { ...
stories/FieldWithSelectionComposite/index.js
nirhart/wix-style-react
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample'; import Markdown from '../utils/Components/Markdown'; import Readme from '../../src/Composite/FieldWithSelectionComposite/README.md'; import ExampleStandard from './Ex...
src/ButtonInput.js
AlexKVal/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
src/components/EntityList.js
lxanders/react-clientside-example
import React from 'react'; import EntityListItem from './EntityListItem'; import { entitiesList as entitiesListDefinition } from '../lib/typeDefinitions'; const EntityList = ({ entities }) => { const entitiesHeader = entities.length > 0 ? <h2>Entities</h2> : null; return ( <section className='entity-l...
frontend/src/Components/Table/VirtualTableRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import styles from './VirtualTableRow.css'; function VirtualTableRow(props) { const { className, children, style, ...otherProps } = props; return ( <div className={className} style={style} {...otherProps} > ...
features/groupchat/components/chatMessage.js
zymokey/mission-park
import React from 'react'; import { getLocaleDate } from '../../../utils'; import ImageMessage from './imageMessage'; class ChatMessage extends React.Component { render(){ const { message, file, timestamp, senderId, senderName } = this.props.message; let _timestamp = timestamp; let checkByself = this.props.d...
app/scripts/components/networks-selector.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { selectNetwork, showNetworks } from '../actions/app-actions'; import { availableNetworksSelector } from '../selectors/node-networks'; import NetworkSelectorItem from './network-selector-item'; class NetworkS...
src/DropdownStateMixin.js
Cellule/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; /** * Checks whether a node is within * a root nodes tree * * @param {DOMElement} node * @param {DOMElement} root * @returns {boolean} */ function isNodeInRoot(node, root) { while (node) { ...
client/sidebar/Item/skeletons/Skeleton.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import ExtendedSkeleton from '../ExtendedSkeleton'; import CondensedSkeleton from './CondensedSkeleton'; import MediumSkeleton from './MediumSkeleton'; export default { title: 'Sidebar/Skeleton', }; export const CondensedWithAvatar = () => <CondensedSkeleton showAvatar={true} />; export c...
example/components/Anchor.js
a-type/studs
import React from 'react'; import styled from 'styled-components'; import theme from '../theme'; const select = theme .register('Anchor', theme => ({ color: theme.colors.primary, fontWeight: 'bold', })) .addVariant('secondary', theme => ({ color: theme.colors.secondary, })) .createSelector(); co...
src/svg-icons/content/move-to-inbox.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMoveToInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3...
renderer/components/Icon/Error.js
LN-Zap/zap-desktop
import React from 'react' const SvgError = props => ( <svg height="1em" viewBox="0 0 17 17" width="1em" {...props}> <path d="M9.512 8.333l1.91-1.91a.833.833 0 0 0-1.178-1.179l-1.91 1.91-1.911-1.91a.833.833 0 1 0-1.179 1.179l1.91 1.91-1.91 1.911a.833.833 0 1 0 1.179 1.179l1.91-1.911 1.911 1.91a.833.833 0 0 ...
node_modules/react-router/es6/IndexRedirect.js
UpStage-Community/upstage-web
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
static/react/app.js
Jpadilla1/notaso
import React from 'react'; import ReactDOM from 'react-dom'; import Search from './components/Search'; ReactDOM.render(<Search/>, document.getElementById('react-search'));
dva/wd/src/components/Form/ZInput.js
imuntil/React
/* eslint-disable no-prototype-builtins */ import React from 'react'; import PropTypes from 'prop-types' import TweenOne from 'rc-tween-one' // import styles from './ZInput.css'; class ZInput extends React.Component { constructor(props) { super(props) const { value = '', minL, maxL } = this.props if (min...
src/main.js
kubeless/kubeless-ui
/* Copyright 2017 Bitnami. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distri...
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js
shengnian/shengnian-ui-react
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'shengnian-ui-react' const LoaderExampleIndeterminate = () => ( <div> <Segment> <Dimmer active> <Loader indeterminate>Preparing Files</Loader> </Dimmer> <Image src='/assets/images/wireframe/short-paragraph.png' />...
src/svg-icons/device/airplanemode-active.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
docs/pages/api-docs/card.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/card'; const requireRaw = require.context('!raw-loader!./', false, /\/card\.md$/); export default function Page({ docs }) { ...
src/index.js
sebastiandeutsch/react-redux-less-mocha-chai
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('application') );
src/index.js
manar007/react-event-calendar
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {BrowserRouter, Match, Miss} from 'react-router' import './css/./bootstrap.min.css'; import './css/./main.css'; import configureStore from './store/configureStore'; import Calendar from './components/Calendar' ...
Libraries/Components/TextInput/TextInput.js
callstack-io/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { Platform } from '../../base/react'; import { CHROME, FIREFOX, IE, SAFARI } from './browserLinks'; import HideNotificationBarStyle from './HideNotificationBarStyle'; /** * The namespace of the CSS styles of U...
app/components/AppError/index.js
nelsonomuto/budgeting-sample-app-webpack2
import React from 'react'; import styles from './style.scss'; const AppError = () => ( <div className={styles.errorScreen}> <div className={styles.errorContainer}> <h1 className={styles.errorTitle}>{`Sorry, something went wrong.`}</h1> <p>{`We're working on it and we'll get it fixed as soon as we can...
dispatch/static/manager/src/js/components/EventEditor/EventPendingTag.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import eventsActions from '../../actions/EventsActions' require('../../../styles/components/event_audit.scss') class EventPendingTagComponent extends React.Component { componentDidMount() { this.props.countPend...
docs/src/sections/FormSection.js
SSLcom/Bootsharp
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function FormSection() { return ( <div className="bs-docs-section"> <h1 className="page-header"> <Anch...
examples/01 Dustbin/Multiple Targets/Container.js
srajko/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; import ItemTypes from './ItemTypes'; import update from 'react/lib/update'; @DragDropContext(HTM...
old-or-not-typescript/learn-redux/counter/index.js
janaagaard75/framework-investigations
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') function render() { ReactDOM.render( <Counter value={...
packages/login-ui/components/UserRow/UserRow.js
ChronoBank/ChronoMint
/** * Copyright 2017–2019, LaborX PTY * Licensed under the AGPL Version 3 license. */ import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { Link } from 'react-router' import actionIcon from 'assets/img/icons/list.svg' import './UserRow.scss' export default class ...
src/routes/Home/HomeComponent.js
TriPSs/react-esc-example
import React from 'react' import Helmet from 'react-helmet' import DuckImage from 'styles/assets/Duck.jpg' import classes from './Home.scss' export const Home = () => ( <div> <Helmet title={'Home'} /> <h4>Welcome!</h4> <img alt="This is a duck, because Redux!" className={classes.duck} s...
src/Parser/DemonHunter/Havoc/Modules/Items/DelusionsOfGrandeur.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatNumber, formatPercentage, formatDuration } from 'common/format'; import SUGGESTION_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTA...
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
orenklein/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/components/ErrorBox/index.js
trebor/tsomi
// @flow import React from 'react' import { type Element } from 'react' import config from '../../config' require('./main.css') type ErrorProps = { msg: string, } const ErrorBox = (props: ErrorProps): Element<'div'> => React.createElement( 'div', { className: 'error-box' }, React.createElement( ...
client/index.dev.js
BitTigerInst/ElasticSearch
import React from 'react'; import routes from '../shared/routes'; import DevTools from '../shared/container/DevTools/DevTools'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { configureStore } from '../shared/redux/store/configu...
src/modules/AppRouter.js
yogakurniawan/phoney-mobile
/*eslint-disable react/prop-types*/ import React from 'react'; import CounterViewContainer from './counter/CounterViewContainer'; import ColorViewContainer from './colors/ColorViewContainer'; /** * AppRouter is responsible for mapping a navigator scene to a view */ export default function AppRouter(props) { const...
packages/es-components/src/components/util/DropIn.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import Transition from 'react-transition-group/Transition'; const DropIn = ({ children, duration, ...otherProps }) => { const transitionStyles = { opacity: 0, transform: `translate(0, -25%)`, transition: `transform ${duration}ms ease-out, opa...
src/components/pages/homePage.js
AngeliaGong/AngeliaGong.github.io
import React, { Component } from 'react'; // components // includes class Homepage extends Component { render() { return ( <div className='container-fluid homepage'> <img className='profile' src={require('../pics/profile.png')} /> <h1> Angelia Gong </...
src/renderer/components/requests/headers.js
niklasi/halland-proxy
import React from 'react' const transformHeaders = (headers) => { return Object.keys(headers).map(header => { return {key: header, value: headers[header]} }) } const headerMapper = (header, index) => <li key={`${header.key}-${index}`}>{`${header.key}: ${header.value}`}</li> export default ({ headers }) => <u...
js/BaseComponents/FloatingButton.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/components/common/logo.js
liuyuanquan/kankan
import React from 'react'; class Logo extends React.Component { render() { return ( <a className='logobox' href={this.props.href} target='_blank' title={this.props.title}> <i className='logo'></i> </a> ); } } Logo.defaultProps = { href: 'http://starzone.kankan.com/act/kankan/index.html', title: '响巢看看...
src/react/index.js
sapegin/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
examples/browserify-gulp-example/src/app/app.js
skarnecki/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './Main'; // Our custom react component //Needed for onTouchTap //Can go away when react 1.0 release //Check this repo: //https://github.com/zilverline/react-tap-event-plugin injectT...
examples/todomvc/index.js
mattybow/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/containers/Home/Home.js
harouf/react-redux-searchportal
import React, { Component } from 'react'; // import { Link } from 'react-router'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = require('./logo.png'); return ( <div classNam...
docs/src/pages/components/slider/VerticalSlider.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; const useStyles = makeStyles({ root: { height: 300, }, }); function valuetext(value) { return `${value}°C`; } const marks =...
src/interface/report/Results/Timeline/Component.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { EventType } from 'parser/core/Events'; import { formatDuration } from 'common/format'; import DragScroll from 'interface/common/DragScroll'; import CASTS_THAT_ARENT_CASTS from 'parser/core/CASTS_THAT_ARENT_CASTS'; import Abilities from 'parser/co...
docs/src/app/components/pages/components/Card/ExampleControlled.js
ruifortes/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
src/js/components/ui/Frame/Frame.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './Frame.scss'; export default class Frame extends Component { static propTypes = { title : PropTypes.string, onClickHandler: PropTypes.func }; handleClick() { if (this.props.o...
client/src/Navbar.js
roxroy/codeploy
import React, { Component } from 'react'; import './App.css'; const Menu = require('./Menu'); const Search = require('./Search'); class Navbar extends Component { constructor(props) { super(props); this.state = { loggedIn: this.props.loggedIn } } render() { return ( <div className="n...
src/views/components/user-card/index.js
zerubeus/sawt
import React from 'react'; import { NavLink } from 'react-router-dom'; import { User } from '../../../core/users'; import FormattedInteger from '../formatted-integer'; import PropTypes from 'prop-types'; function UserCard({user}) { return ( <article className="user-card"> <div className="g-row g-cont"> ...
src/AppBundle/Resources/static/jsx/util/DataTable.js
viszerale-therapie/simple-courses
import $ from 'jquery'; import URL from 'js-handy-url'; import moment from 'moment'; import React from 'react'; import tl from './translator'; import actions from './actions'; import app from '../app/app'; import DynForm from './DynForm'; import messaging from './messaging'; import DataTableView from '../view/DataTabl...
client/src/components/dashboard/profile/utils/trash-look-five.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import Modal from 'react-modal'; import MdDelete from 'react-icons/lib/md/delete'; const cookie = require('react-cookie') const axios = require('axios'); class TrashLookFive extends React.Component { constructor(props) { super(props); this.trashLook = thi...
app/javascript/mastodon/features/ui/components/embed_modal.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/CardColumns.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { ...
app/components/Info.js
chehitskenniexd/Archiver
import React, { Component } from 'react'; import { Link, hashHistory } from 'react-router'; import { connect } from 'react-redux'; import styles from './Info.css'; import MainHome from './MainHome'; import Add from './Add'; import Collaborator from './Collaborator'; import PageRender from './PageRender'; export class...
packages/node_modules/@webex/react-component-activity-share-thumbnail/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {bytesToSize, getFileIcon} from '@webex/react-component-utils'; import ShareFile from '@webex/react-component-activity-share-file'; import { Button, ContentItem, Icon } from '@momentum-ui/react'; import st...
app/components/ellipsis.js
it-surya/hack-jeninvest
import React from 'react'; import {View, StyleSheet} from 'react-native'; import {RkStyleSheet} from 'react-native-ui-kitten'; export class Ellipsis extends React.Component { render() { return ( <View style={styles.container}> <View style={styles.dot}/> <View style={styles.dot}/> <V...
client/src/components/TransactionTable.js
Nauktis/inab
import React from 'react'; import { connect } from 'react-redux'; import Transaction from './Transaction'; import EditableTransaction from './EditableTransaction'; import * as actions from '../actions'; import {getTransactions} from '../selectors/transactions'; import {getCategoriesById} from '../selectors/categories';...
app/src/extension/views/consult/index.js
get-focus/focus-help-center
import React from 'react'; import '../../style'; import ArticleConsult from '../../../common/components/article-consult'; import {IconButton} from 'material-ui'; import {browserHistory} from 'react-router'; import {backOfficeUrl} from '../../../common/server/config'; function renderLeftContent() { return ( ...
src/pages/newBet.js
delta-plus/andsquare
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Text, TextInput, View, dismissKeyboard, BackAndroid, AsyncStorage } from 'react-native'; import DismissKeyboard from 'dismissKeyboard'; import Toast from 'react-native-smart-toast'; import Button from '../components/button'; im...
shared/components/NavButton.js
jchappypig/tickets-app-react-redux-node
import React, { Component } from 'react'; import {Button} from 'react-bootstrap'; class NavButton extends Component { handleClick(e) { let {url, action} = this.props; action && action(e); this.context.router.push(url); } render() { let {text} = this.props; return ( <Button onClick={t...
src/main.js
joyvuu-dave/comeals-ui-react
/* @flow */ import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import makeRoutes from './routes' import Root from './containers/Root' impo...
webpack/move_to_pf/react-bootstrap-select/index.js
johnpmitsch/katello
// This component should be replaced with a react version /* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; import { FormControl } from 'react-bootstrap'; import PropTypes from 'prop-types'; require('jquery'); require('bootstrap-select'); class BootstrapSelect extends React.Component {...
src/index.js
bobrown101/phi-tau
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; // import thunk from 'redux-thunk'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore} from 'react-router-redux'; import routes from './routes'; im...
src/components/TimerForm/index.js
Nargonath/getshitdone
import React, { Component } from 'react'; import { func } from 'prop-types'; import Input from './Input'; import Submit from './Submit'; class TimerForm extends Component { constructor(props) { super(props); this.state = { name: '', duration: '00:00' }; } handleChange = event => { this.setState({ ...
imports/ui/layouts/AuthorizedLayout/AuthorizedLayout.js
jamiebones/Journal_Publication
import React from 'react'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; import { Grid, Alert, Button , Row , Col } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import PageEmailBuilder from '../../pages/PageEmailBuilder/PageEmailBuilder'; import Authorized from '../../c...
app/javascript/flavours/glitch/features/notifications/components/setting_toggle.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
node_modules/react-router/es/Redirect.js
swapnilabnave/swapnilabnave.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
imports/ui/views/change-password.js
dklisiaris/boomabu
import React from 'react'; import { Link } from 'react-router'; import { browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import { renderErrorsFor } from '../../modules/utils'; export class ChangePassword extends React.Component { constructor(props) { super(props); this.state = {...
examples/js/advance/insert-type-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jo...
src/containers/Home/Home.js
MarkPhillips7/happy-holidays
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from '../../config'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from clien...
src/components/Avatar/Avatar.js
ortonomy/flingapp-frontend
import React, { Component } from 'react'; import styles from './Avatar.module.css'; import { connect } from 'react-redux'; import md5 from 'md5'; @connect( state => ({ state: state }), null ) class Avatar extends Component { constructor(props) { super(props); this.getUserName = this.getUserName.bin...
src/routes/not-found/index.js
bharathbhsp/refactored-funicular
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/utils/connectToNodes.js
ysaaron/react-collapse-tree
import React, { Component } from 'react'; import { DragSource, DropTarget } from 'react-dnd'; export default (DecoratedComponent) => { class Wrapper extends Component { constructor(props) { super(props); this.isMouseDown = false; this.isMouseMoving = false; this.getTranslate = this.getTr...
admin/client/App/shared/InvalidFieldType.js
concoursbyappointment/keystoneRedux
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
src/components/Chat/Input/UserSuggestion.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import ListItemText from '@material-ui/core/ListItemText'; import Avatar from '../../Avatar'; import Suggestion from './Suggestion'; const UserSuggestion = ({ value: user, ...props }) => ( ...
packages/demo/src/components/ContentAddRemove.js
marnusw/react-css-transition-replace
import React from 'react' import Button from 'react-bootstrap/es/Button' import ReactCSSTransitionReplace from 'react-css-transition-replace' class ContentAddRemove extends React.Component { state = { added: false } handleClick = () => { this.setState({ added: !this.state.added }) } render() { const ...
src/routes/Post/components/Post.js
YoEight/corecursion-react-redux
import React from 'react' import './Post.scss' class Post extends React.Component { componentDidMount() { this.props.loadPost(this.props.params.postName) } render () { if (this.props.post.notLoaded) { return ( <div> Loading… </div> ) } else if (this.props.post....
pootle/static/js/shared/components/FormSelectInput.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Select from 'react-selec...
app/pages/HomePage/index.js
sekkithub/wg
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import shouldPureComponentUpdate from 'react-pure-render/function'; import Container from 'Container'; import Wrapper fro...
video_browser/src/components/search_bar.js
titusjin/reduxExp
<<<<<<< HEAD import React, { Component } from 'react'; ======= import React, { Component } from "react"; >>>>>>> upstream/master class SearchBar extends Component { constructor(props) { super(props); <<<<<<< HEAD this.state = { term: '' }; ======= this.state = { term: "" }; >>>>>>> upstream/master } ...
examples/src/components/StatesField.js
benchrise/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var id = 0; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var StatesField = React.createClass({ displayName: 'StatesField', p...