path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceWebViews/Container/ContainerServiceWebView.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import CoreServiceWebView from '../../CoreServiceWebView' import { accountStore, accountActions } from 'stores/account' import ContainerServiceDataReducer from 'shared/AltStores/Account/ServiceDataReducers/ContainerServiceDataReducer' import shallowCompare fr...
src/Row.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
frontend/src/components/thread/moderation/thread/merge.js
1905410/Misago
import React from 'react'; // jshint ignore:line import Form from 'misago/components/form'; import FormGroup from 'misago/components/form-group'; // jshint ignore:line import MergePolls from 'misago/components/merge-polls'; // jshint ignore:line import * as thread from 'misago/reducers/thread'; import ajax from 'misago...
examples/gatsby/plugins/gatsby-plugin-top-layout/gatsby-ssr.js
lgollut/material-ui
/* eslint-disable import/prefer-default-export, react/prop-types */ import React from 'react'; import TopLayout from './TopLayout'; export const wrapRootElement = ({ element }) => { return <TopLayout>{element}</TopLayout>; };
src/components/AttachmentModal/AttachmentPreview.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import type { AttachmentPreviewProps } from './types'; import React from 'react'; import classNames from 'classnames'; import getDocumentType from '../../utils/getDocumentType'; import getFilenameExtension from '../../utils/getFilenameExtension'; import style...
app/components/Alert/AlertProvider.js
celikmus/MathWise
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import DropdownAlert from 'react-native-dropdownalert'; class AlertProvider extends Component { static childContextTypes = { alertWithType: PropTypes.func, alert: PropTypes.func }; static p...
src/components/views/rooms/Stickerpicker.js
aperezdc/matrix-react-sdk
/* Copyright 2018 New Vector Ltd 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 ...
client/modules/Post/__tests__/components/PostListItem.spec.js
Cathje/KLP
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
fields/types/number/NumberFilter.js
Yaska/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' ...
src/components/NotesAdd.js
lukin-deema/FileSystem
import React from 'react' import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import {addNote} from '../actions' class NoteAdd extends React.Component { constructor(store) { super(); console.log(store.nextIndex); this.state = { ne...
gui/react/src/components/play/Contributors.js
williamparry/cloudRIG
import React, { Component } from 'react'; import { List, ListHeader } from "semantic-ui-react"; import 'semantic-ui-css/semantic.min.css'; const { ipcRenderer } = window.require("electron"); class Contributors extends Component { constructor(props) { super(props) this.state = {...props} this.state.loading = ...
src/interface/icons/Armory.js
fyruna/WoWAnalyzer
import React from 'react'; import ArmoryLogo from './images/Armory-logo.png'; const icon = props => ( <img src={ArmoryLogo} alt="World of Warcraft Armory" className="icon" {...props} /> ); export default icon;
app/components/CategoryList/CategoryList.js
dmitru/redux-bootstrap-starter-kit
/** * Created by dmitru on 6/5/16. */ import React from 'react' import Category from '../Category' const CategoryList = ({ categories = [] }) => { const categoriesNotEmpty = categories.length > 0 let content = [] if (categoriesNotEmpty) { content = categories.map((category) => ( <Category key={cate...
WashingmachineFrontend/vaskemaskine-app/src/components/Header/Login/LoginLogout.js
holdam/washingmachine-booking
import React from 'react'; import Login from './Login/Login' import Logout from './Logout/Logout' import './LoginLogout.css' class LoginLogout extends React.Component { constructor(props) { super(props); this.props.setup(); } render() { let panel = null; if (this.props.isLo...
src/dumb/common/GenericList.js
jeckhummer/wf-constructor
import React from 'react'; import {Clear} from "./Clear"; export const GenericList = ({ items, vertical, border, borderPredicate, }) => { return ( <div style={{ display: 'flex', height: '100%', flexDirection: vertical ? 'column' : 'row', align...
src/components/article/slideshow/thumbnails.js
garfieldduck/twreporter-react
/*eslint-disable no-console*/ 'use strict' import classNames from 'classnames' import styles from './thumbnails.scss' import React from 'react' // lodash import get from 'lodash/get' import map from 'lodash/map' const defaultThumbnailWidth = 56 const Thumbnail = (props) => { const { alt, customClassName, greyOut, ...
src/pages/client/Home.js
gramulos/EpsilonGroups
import React, { Component } from 'react'; import './Home.less'; import img_star from '../../images/start.png'; import img_customer from '../../images/customerSatisfaction.png'; import img_lamp from '../../images/lamp.png'; import img_price from '../../images/price.png'; export default class Body extends Component { ...
actor-sdk/sdk-web/src/components/Deactivated.react.js
y0ke/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import SharedContainer from '../utils/SharedContainer'; import { appName } from '../constants/ActorAppConstants'; class Deactivated extends Component { constructor...
docs/src/components/Docs/Props/EditorStateProp/index.js
michalko/draft-wyswig
import React from 'react'; import Codemirror from 'react-codemirror'; export const EditorStateLink = () => <a target="_blank" rel="noopener noreferrer" href="https://facebook.github.io/draft-js/docs/api-reference-editor-state.html#content" > EditorState </a>; export const RawEditorStateLink = () =...
test/components/Test.js
loggur/react-redux-provide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TestItem from './TestItem'; export default class Test extends Component { static propTypes = { placeholder: PropTypes.string.isRequired, list: PropTypes.arrayOf(PropTypes.object).isRequired, unshiftItem: PropTypes.func.i...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/ModalBody.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 ...
js/MyScene.js
helengray/XiFan
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native'; import MyCollectionScene from './MyCollectionScene'; import ViewsHistoryScene from './ViewsHistoryScene'; import BaseTitleBarScene from './component/BaseTitleBarScene'; export default class My...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
0xaio/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import CodeBlock from '../components/CodeBlock'; import { applyStyles } from '../utils/dom/css'; ...
app/javascript/mastodon/features/account/components/action_bar.js
summoners-riftodon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { Link } from 'react-router-dom'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; ...
node_modules/react-bootstrap/es/MediaListItem.js
NathanBWaters/jb_club
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 ...
react/features/toolbox/components/web/VideoSettingsButton.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { isVideoSettingsButtonDisabled } from '../../functions'; import { toggleVideoSettings, VideoSettingsPopup } from '../../../settings'; import VideoMuteButton from '../VideoMuteButton'; import JitsiMeetJS from '../../../base/lib-jitsi-meet/_'; import { IconArrow...
src/containers/DevToolsWindow.js
DonHansDampf/movierange
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
frontend/src/cms/routes.js
tsurupin/portfolio
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App/index'; import PostIndex from './containers/posts/Index/index'; import PostForm from './containers/posts/Form/index'; import PostShow from 'client/containers/posts/Show/index'; import ProjectIndexPreview from...
app/js/Routes.js
workco/hackathon-talent
'use strict'; import React from 'react'; import Router from 'react-router'; import App from './App'; import notFoundPage from './pages/not-found-page'; import peopleAddPage from './pages/people-add-page'; import peoplePage from './pages/people-page'; import personEditPage from './pages/person-edit-page'; import search...
src/views/blockapps-intro/SendEthersView.js
prashantpawar/blockapps-js-tutorial
import React from 'react' import AceEditor from 'react-ace' import Hightlight from 'react-highlight' import BaseView from './BaseView' import JSValidator from '../../components/JSValidator' import 'brace/mode/html' import 'brace/mode/javascript' import 'brace/theme/github' import 'highlight.js/styles/default.css' ex...
frontend/component/Signup.js
ghkk/node_dataguru
import React from 'react'; import jQuery from 'jquery'; import {signup} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Signup extends React.Component { constructor(props){ super(props); this.state ={}; } handleChange(name,e){ this.state[name] ...
src/components/posts_index.js
brettcelestre/react-blog-posts
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; import _ from 'lodash'; class PostsIndex extends Component { componentDidMount(){ this.props.fetchPosts(); } renderPosts(){ return _.map(thi...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-calendar/es/date/DateTHead.js
bhathiya/test
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DateConsta...
app/javascript/mastodon/features/account_timeline/components/header.js
robotstart/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
frontend/src/components/Footer/index.js
MelindaHasselbring/XtremeValue
import React from 'react' import { Grid, Header, Image } from 'semantic-ui-react' import { observer } from 'mobx-react' import './Footer.scss' const Footer = () => ( <footer> <div className="footer-inner"> <Grid> <Grid.Row> <Grid.Column width={4}> <Image size="tiny" src="/imag...
src/NavItem.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
fields/components/columns/CloudinaryImageSummary.js
danielmahon/keystone
import React from 'react'; const IMAGE_SIZE = 18; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: IMAGE_SIZE, overflow: 'hidden', verticalAlign: 'middle', width: IMAGE_SIZE, }; const imageStyle = { display: 'block', height: IMAGE_SIZE, left: '50%',...
example/src/views/buttons_home.js
kosiakMD/react-native-elements
import Expo, { Font } from 'expo'; import React, { Component } from 'react'; import { View, ScrollView, StyleSheet, Platform } from 'react-native'; import { createIconSetFromFontello } from 'react-native-vector-icons'; import { registerCustomIconType, Text, Button, Icon, SocialIcon, Card } from 'react-nati...
admin/client/App/shared/Popout/PopoutPane.js
Yaska/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
src/index.js
justinlawrence/chordboard
import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter as Router } from 'react-router-dom' import { Provider } from 'react-redux' import * as Sentry from '@sentry/react' import * as serviceWorker from './serviceWorker' import App from './App' import configureStore from './redux/configureStor...
gh/components/Playground.js
bitriddler/react-items-carousel
import React from 'react'; import styled from 'styled-components'; import { Button, Icon, Col, Tag, Typography } from 'antd'; import JSONEditor from './JSONEditor'; import EditorViewer from './EditorViewer'; import variations from './variations'; import { createImageChildren } from './CarouselSlideItem'; import ItemsCa...
webvis/src/components/Gauge.js
kacperzuk/mldrive
import React, { Component } from 'react'; import './Gauge.css'; class Gauge extends Component { render() { const goodBgColor = "#7EBD77", warnBgColor = "#E7D992", dangBgColor = "#E79692"; let bgColor = goodBgColor; if(this.props.value > this.props.dangerAbove || this.props.value < th...
app/javascript/mastodon/components/dropdown_menu.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
src/components/Tabs/Tabs.js
FerreiraRaphael/Music-Player-Testes
import React from 'react' import Tab from './Tab' import Indicator from './Indicator' import classes from './style.scss' import binder from '../../utils/PublicUtils' class Tabs extends React.Component { constructor(props){ super(props) binder(this, 'handleClickTab', 'moveIndicator') } handleClickT...
src/app/components/tooltipQuestion.js
webcoding/reactui-starter
import React from 'react'; import { Tooltip, OverlayTrigger } from 'react-bootstrap'; export default React.createClass( { getDefaultProps() { return { placement: 'left' }; }, render() { const tooltip = ( <Tooltip>{ this.props.children }</Tooltip> );...
src/components/Icons/FacebookIcon.js
zerkedev/zerke-app
import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; const FacebookIcon = (props) => { return ( <SvgIcon width={22} height={22} viewBox="0 0 266.893 266.895" enableBackground="new 0 0 266.893 266.895" {...props}> <path id="Blue_1_" d="M248.082,262.307c7.854,0,14.223-6.369,14.223-14....
src/svg-icons/editor/merge-type.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
examples/sidebar/app.js
arasmussen/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' import data from './data' require('./app.css') const history = useBasename(createHistory)({ basename: '/sidebar' }) class Category extends React.Component { render() { const categ...
src/routes/about/index.js
ziedAb/PVMourakiboun
/** * 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...
docs/app/Examples/elements/Label/index.js
koenvg/Semantic-UI-React
import React from 'react' import Content from './Content' import Groups from './Groups' import Types from './Types' import Variations from './Variations' const LabelExamples = () => ( <div> <Types /> <Content /> <Variations /> <Groups /> </div> ) export default LabelExamples
src/components/common/forms/RadioSelect.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; // Flux import ApplicationStore from '../../../stores/Application/ApplicationStore'; // Required components import Text from '../typography/Text'; // Instantiate logger let debug = require('debug')('tienda765'); /** * Component */ class RadioSelect extends React.Compo...
react-youtube-adaptive-loading/src/containers/SideBar/SideBarFooter/SideBarFooter.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import './SideBarFooter.scss' export function SideBarFooter() { return ( <React.Fragment> <div className='footer-block'> <div>About Press Copyright</div> <div>Creators Advertise</div> <div>Developers +MyTube</div> <div>Legal</div> </div> ...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
yangchenghu/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
admin/client/Signin/components/Alert.js
giovanniRodighiero/cms
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from '../../App/elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" c...
src/svg-icons/communication/import-contacts.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
src/svg-icons/action/swap-horiz.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
SoundOffInc/SoundOffInc.github.io
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/js/components/acl/label_permission.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; export default class LabelPermission extends Component { static propTypes = { className: PropTypes.string, }; static defaultProps = { className: '', }; renderLabel() { const component = []; const permissions...
Realization/frontend/czechidm-core/src/components/basic/PageHeader/PageHeader.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // import { makeStyles } from '@material-ui/core/styles'; // import AbstractComponent from '../AbstractComponent/AbstractComponent'; import Icon from '../Icon/Icon'; const useStyles = makeStyles((theme) => ({ root: { ...
docs/src/app/components/pages/components/Table/ExampleSimple.js
lawrence-yu/material-ui
import React from 'react'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; const TableExampleSimple = () => ( <Table> <TableHeader> <TableRow> <TableHeaderColumn>ID</TableHeaderColumn> <TableHeaderColumn>Name</TableHeaderColumn>...
src/icons/NavigationIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class NavigationIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4L9 40.59 10.41 42 24 36l13.59 6L39 40.59z"/></svg>;} };
src/svg-icons/notification/system-update.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSystemUpdate = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/> </Sv...
src/routes/filter/index.js
bigwaterconsulting/to_dash_live
/** * 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...
core/client/index.js
wp-pwa/wp-pwa
/* eslint-disable global-require, no-underscore-dangle, import/no-dynamic-require, no-console */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { types } from 'mobx-state-tree'; import { AppContainer } from 'react-hot-loader'; import request from 'superagent'; import App fr...
src/MenuItem.js
wjb12/react-bootstrap
import React from 'react'; import classnames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; export default class MenuItem extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } hand...
code/workspaces/web-app/src/components/stacks/StackCards.js
NERC-CEH/datalab
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/core/styles'; import { sortBy } from 'lodash'; import StackCard from './StackCard'; import NewStackButton from './NewStackButton'; import PermissionWrapper from ...
src/admin/components/tabs/tab.js
ccetc/platform
import React from 'react' class Tab extends React.Component { static propTypes = { label: React.PropTypes.string, active: React.PropTypes.bool, onChangeTab: React.PropTypes.func } static defaultProps = { active: false } render() { const { label, index, active } = this.props const c...
app/javascript/mastodon/features/audio/index.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { formatTime } from 'mastodon/features/video'; import Icon from 'mastodon/components/icon'; import classNames from 'classnames'; import { throttle } from 'lodash'; import { getPointerPosition, ...
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/ContestSubmission/ImageHeader.js
Zephyrrus/ubb
import React, { Component } from 'react'; import format from 'date-fns/format'; import { View, Text, StyleSheet, Image, Dimensions, } from 'react-native'; import { Icon } from 'react-native-elements'; import ImageComponent from '../../common/ImageComponent'; const win = Dimensions.get('window'); export de...
docs/src/NavMain.js
leozdgao/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
src/docs/examples/IconButton/ExampleIconButtonRight.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import IconButton from 'zs-react/IconButton'; /** IconButton right simple example */ export default function ExampleIconButton() { function handleClick() { alert('You clicked me!'); } return (<IconButton onClick = {handleClick} location="right" icon="fa fa-shopping-basket">C...
src/containers/about.js
ereide/home_page_react
import React from 'react'; import './containers.css'; import DetailedBox from '../components/detailedbox.js'; import reactlogo from '../assets/reactlogo.png'; const reactbox = ( <DetailedBox leftImage={false} image={reactlogo} heading={''} mutedheading={''} subheading={''} > <p> Thi...
src/media/js/addon/components/progressBar.js
diox/marketplace-content-tools
/* ProgressBar, primarily for file uploads. */ import React from 'react'; function toFixedDown(number, digits) { const re = new RegExp("(\\d+\\.\\d{" + digits + "})(\\d)"); const m = number.toString().match(re); return m ? parseFloat(m[1]) : number.valueOf(); } export default class ProgressBar extends React...
src/svg-icons/hardware/keyboard.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
src/renderer/components/MapFilter/MediaView/MediaView.stories.js
digidem/ecuador-map-editor
// @flow import React from 'react' import { action } from '@storybook/addon-actions' import MediaView from './MediaView' import fixtureObs from '../../../../../fixtures/observations.json' export default { title: 'MediaView' } export const defaultStory = () => { function getMediaUrl (id) { const size = 400 ...
powerauth-webflow/src/main/js/components/offlineAuthCode.js
lime-company/lime-security-powerauth-webauth
/* * Copyright 2017 Wultra s.r.o. * * 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...
app/layouts/TwoColumnLayout/index.js
waagsociety/tnl-relationizer
import './index.css'; import React from 'react'; const TwoColumnLayout = ({ children }) => <div className="TwoColumnLayout"> <div className="TwoColumnLayout-left"> {children[0]} </div> <div className="TwoColumnLayout-right"> {children[1]} </div> </div>; export default TwoColumnLayout;
app/containers/NoteListItem/index.js
joegattnet/joegatt.net-client
/** * NoteListItem * * Lists the name and the issue count of a Note */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import ListI...
src/svg-icons/av/queue-music.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...
votrfront/js/ZoznamPrihlasenychNaTermin.js
fmfi-svt/votr
import React from 'react'; import { CacheRequester, Loading } from './ajax'; import { Modal } from './layout'; import { queryConsumer } from './router'; import { sortAs, sortTable } from './sorting'; export var ZoznamPrihlasenychNaTerminColumns = [ ["Meno", 'plne_meno', sortAs.personName], ["Študijný program", '...
src/svg-icons/editor/linear-scale.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorLinearScale = (props) => ( <SvgIcon {...props}> <path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ...
ui/content/index.js
DannyvanderJagt/portfolio
import React from 'react'; import Telescope from 'telescope'; import Config from '../../../portfolio.config'; class Content extends Telescope.Component{ render(){ return ( <div className='content'> {this.props.children} </div> ); } }; export default Content;
src/components/UserDetail.js
madjid-asa/github_users_browser
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {Panel, Col, Row, Image, ListGroup, ListGroupItem } from 'react-bootstrap'; class UserDetail extends Component { render() { const msgDontFound = "Sorry, we don't have this information yet"; const name = this.props.curren...
src/svg-icons/device/screen-lock-portrait.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1....
src/components/Card/CardBase.js
sk-iv/iva-app
import React from 'react'; import PropTypes from 'prop-types'; import Clickable from '../Clickable'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import CardLayoutStandard from './CardLayoutStandard'; import CardLayoutFill from './CardLayoutFill'; if(process.env.WEBPACK) require('./Card...
src/app/components/todo/components/TodoList.js
backpackcoder/world-in-flames
import React from 'react' import classnames from 'classnames' import {findDOMNode} from 'react-dom' import Moment from '../../utils/Moment' import TodoActions from '../actions/TodoActions' import TodoStore from '../stores/TodoStore' let TodoList = React.createClass({ _toggleItem: function (item) { TodoAc...
egghead.io/react_fundamentals/lessons/06-refs/main.js
andrisazens/learning_react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
packages/showcase/plot/axis-with-turned-labels.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
assets/javascripts/kitten/components/layout/dashboard-layout/stories/menu.js
KissKissBankBank/kitten
import React from 'react' import { DashboardMenu, CheckedShieldIconNext, ChronoIconNext, CogIconNext, EyeIconNext, HomeIconNext, InfiniteIconNext, PlusIconNext, SpeechBubbleIconNext, StatsIconNext, TagIconNext, ThumbUpIconNext, UsersIconNext, WindowEditIconNext, COLORS, FlexWrapper, St...
src/Button.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
examples/with-higher-order-component/pages/index.js
arunoda/next.js
import React from 'react' import withApp from '../components/withApp' class Index extends React.Component { static getInitialProps (context) { const { isServer } = context return { isServer } } render () { const { greeting } = this.props return ( <div> <h2>Index page</h2> <h...
web/src/Home/SoundsApp/SoundsForm/SoundsForm.js
ncpierson/soundoftext
import React, { Component } from 'react'; import { HotKeys } from 'react-hotkeys'; import VoiceOptions from './VoiceOptions'; import './SoundsForm.css'; class SoundsForm extends Component { constructor() { super(); this.state = { text: '', voice: 'en-US', }; this.handleTextChange = this...
packages/wix-style-react/src/SkeletonRectangle/SkeletonRectangle.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './SkeletonRectangle.st.css'; import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from './constants'; import { DEFAULT_SKIN, SKIN_COLOR } from '../SkeletonGroup/constants'; import Box from '../Box'; import { SkeletonGroupContext } from '../...
Docker/KlusterKiteMonitoring/klusterkite-web/src/containers/AuthPage/AuthPage.js
KlusterKite/KlusterKite
import React from 'react'; import { browserHistory } from 'react-router' import Storage from '../../utils/ttl-storage'; import AuthForm from '../../components/AuthForm/AuthForm'; export default class AuthPage extends React.Component { constructor(props) { super(props); this.login = this.login.bind(this); ...
src/server.js
GLExperiments/GLExperiments
/** * 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 'babel-polyfill'; import path from 'path'; import e...
src/svg-icons/action/shopping-cart.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11...
app/components/CodeEditor.js
danielribeiro/fil
import React from 'react'; import AceEditor from 'react-ace'; import 'brace/mode/python'; import 'brace/mode/ruby'; import 'brace/theme/tomorrow_night'; import {getExtension} from 'helpers'; import {byExtension} from 'interpreters'; class CodeEditor extends React.Component { constructor(props) { super(props) ...
examples/with-babel-macros/pages/index.js
callumlocke/next.js
import React from 'react' import preval from 'preval.macro' const whoami = preval` const userInfo = require('os').userInfo() module.exports = userInfo.username ` export default WhoAmI function WhoAmI () { return ( <div style={{display: 'flex', justifyContent: 'center'}}> <h1> <pre> ...
project/vip/frontend/src/components/LoadMore/index.js
webLeeSun/webleesun.github.io
import React from 'react' // import PureRenderMixin from 'react-addons-pure-render-mixin' import './style.less' class LoadMore extends React.Component { // constructor(props, context) { // // super(props, context); // // this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this)...
docs/src/app/components/pages/components/Slider/ExampleDisabled.js
kasra-co/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; const SliderExampleDisabled = () => ( <div> <Slider disabled={true} /> <Slider disabled={true} value={0.5} /> <Slider disabled={true} value={1} /> </div> ); export default SliderExampleDisabled;