path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/NavigationBar.js
Rkiouak/react-redux-python-stocks
import React from 'react' import { Link } from 'react-router' const blue = '#337ab7' const light = '#fff' const styles = {} styles.wrapper = { padding: '10px 20px', overflow: 'hidden', background: blue, color: light } styles.link = { padding: 11, color: light, fontWeight: 200 } styles.activeLink = { ...
src/rocks/timeline-tab/toolbar/OverlayPanel.js
animachine/animachine
import React from 'react' import {Panel} from 'react-matterkit' export default class OverlayPanel extends React.Component { render () { return ( <Panel style={{ position: 'absolute', zIndex: 200, boxShadow: '0px 0px 5px 0px rgba(255,255,255,0.5)',//'0px 0px 5px 0px rgba(107,182,196...
react/src/components/CommandTree/TreeView.js
ozlerhakan/rapid
/** * Created by hakan on 15/02/2017. */ import React from 'react'; import {Treebeard} from 'react-treebeard'; import FontAwesome from 'react-fontawesome'; import data from './data'; import * as filters from './filter'; import styles from './styles'; class TreeView extends React.Component { constructor(props) { ...
src/components/article/OrderedList.js
garfieldduck/twreporter-react
'use strict' import classNames from 'classnames' import commonStyles from './Common.scss' import styles from './OrderedList.scss' import React from 'react' // eslint-disable-next-line // lodash import get from 'lodash/get' export const OrderedList = ({ content }) => { if(!Array.isArray(content)) { return null ...
website/modules/components/WebExample.js
asaf/react-router
import React from 'react' import PropTypes from 'prop-types' import Media from 'react-media' import { Block } from 'jsxstyle' import { Route } from 'react-router-dom' import Bundle from './Bundle' import FakeBrowser from './FakeBrowser' import SourceViewer from './SourceViewer' import Loading from './Loading' const We...
app/components/Keys/Confirm.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import { Button, Divider, Header, Icon, List, Segment, Table } from 'semantic-ui-react'; export default class KeysConfirm extends Component { render() { const confirmAccount = this.props.keys.confirm; const encryptWallet = this.props.encryptWallet; const...
src/components/Editor/Editor.js
cuijiaxu/react-front
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
src/components/SetLocale.js
openbasement/openbasement
import { connect } from 'react-redux'; import React from 'react'; import { I18n } from 'react-redux-i18n'; import mapDispatchToProps from '../actions'; import { mapStateToProps } from '../model/state'; @connect(mapStateToProps, mapDispatchToProps) export default class SetLocaleComponent extends React.Component { st...
app/containers/PrivateEvents.js
albertmejia/empire_room
import React from 'react'; import privateevents from '../styles/privateevents.scss'; class PrivateEvents extends React.Component { componentDidMount() { window.scrollTo(0, 0); } render() { return ( <div className={privateevents.wrapper}> <div className={private...
src/components/posts/list.js
plastical/react-theme
// External dependencies import React from 'react'; // Internal dependencies import Post from './single'; import Placeholder from '../placeholder'; const PostList = (props) => { if (!props.posts) { return null; } const posts = props.posts.map((post, i) => <Post key={`post-${i}`} {...post} {...props} /...
src/svg-icons/action/card-giftcard.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
src/components/forms/FormGroup.js
rokka-io/rokka-dashboard
import PropTypes from 'prop-types' import React from 'react' import cx from 'classnames' import RequiredIndicator from './RequiredIndicator' const FormGroup = ({ label, children, className = null, required = false, htmlFor = null, error = null }) => ( <div className={cx('rka-form-group', className, { 'ha...
svg/delete-button.js
michael-lowe-nz/NBA-battles
import React from 'react' module.exports = (dispatch) => ( <svg className="clickable" id="remove" version="1.1" id="Layer_1" x="0px" y="0px" width="50px" height="50px" viewBox="0 0 100 100" enableBackground="new 0 0 100 100" xmlSpace="preserve"> <circle fill="#FFFFFF" className="delete" stroke="#000000" stroke...
client/modules/comments/components/.stories/create_comment.js
mantrajs/mantra-sample-blog-app
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import CreateComment from '../create_comment'; storiesOf('comments.CreateComment', module) .add('default view', () => { return ( <div className='comments'> <CreateComment postId='the-id' create={action('create comment...
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
packages/mineral-ui-icons/src/IconCheckBoxIndeterminate.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconCheckBoxIndeterminate(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon ...
Package Storage/lsp_utils/node-runtime/12.20.2/node/lib/node_modules/npm/docs/src/components/home/Terminal.js
dmilith/SublimeText3-dmilith
import React from 'react' import styled, {keyframes} from 'styled-components' import {Flex, Box, Button as RebassButton} from 'rebass' import closeX from '../../images/x.svg' import {LinkButton} from '../Button' import bracket from '../../images/bracket.svg' const TerminalBody = styled(Flex)` background-color: ${(pr...
docs/src/app/components/pages/components/Slider/ExampleSimple.js
IsenrichO/mui-with-arrows
import React from 'react'; import Slider from 'material-ui/Slider'; /** * The `defaultValue` property sets the initial position of the slider. * The slider appearance changes when not at the starting position. */ const SliderExampleSimple = () => ( <div> <Slider /> <Slider defaultValue={0.5} /> <Slide...
shared/components/DemoApp/index.js
oyeanuj/react-universally
import 'normalize.css/normalize.css'; import React from 'react'; import Switch from 'react-router-dom/Switch'; import Route from 'react-router-dom/Route'; import Helmet from 'react-helmet'; import config from '../../../config'; import './globals.css'; import Error404 from './Error404'; import Header from './Header'...
client/index.js
zosman1/PatriotChat
import React from 'react'; import { AppRegistry, StyleSheet, Text, View, AsyncStorage, ScrollView, } from 'react-native'; import { StackNavigator } from 'react-navigation'; import Button from 'react-native-button'; import SocketIOClient from 'socket.io-client'; // Import other pages: import Chat from './c...
js/components/Header/index.ios.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, ListItem, List } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; ...
src/components/app.js
ric9176/hoc
import React, { Component } from 'react'; import Header from './Header' export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
console-ui/src/pages/ConfigurationManagement/ConfigEditor/ConfigEditor.js
alibaba/nacos
/* * Copyright 1999-2018 Alibaba Group Holding 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 applica...
src/app/components/pages/HomePage.js
ucokfm/admin-lte-react
import React from 'react'; import PageWrapper from '../../../lib/page/PageWrapper'; import PageHeader from '../../../lib/page/PageHeader'; import Breadcrumb from '../../../lib/page/Breadcrumb'; import PageContent from '../../../lib/page/PageContent'; import Box from '../../../lib/widgets/Box'; export default function ...
src/docs/examples/PasswordInput/ExampleAllFeatures.js
peadar33/react-component
import React from 'react'; import PasswordInput from 'ps-react/PasswordInput'; /** All features enabled */ class ExampleAllFeatures extends React.Component { constructor(props) { super(props); this.state = { password: '' }; } getQuality() { const length = this.state.password.length; r...
src/Parser/Mage/Fire/Modules/Features/CombustionMarqueeBindings.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 Wrapper from 'common/Wrapper'; import Combatants from 'Parser/Core/Modules/Combatants'; import { formatMilliseconds, formatPercentage ...
src/pages/home.js
fmakdemir/react-boilerplate
import React from 'react'; // icons import FontIcon from 'material-ui/FontIcon'; // MUI components import {Card, CardHeader, CardMedia, CardTitle, CardText, CardActions} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ...
15/notes/src/NoteItem.js
nanohop/hop_into_react
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; class NoteItem extends Component { render() { return ( <li className="list-group-item pull-left note-item" onClick={this.props.onClick}> <Button ...
js/controls/Control.js
mekto/brouter-online
import Leaflet from 'leaflet'; import React from 'react'; import ReactDOM from 'react-dom'; export default Leaflet.Control.extend({ options: { position: 'topright', }, onAdd(map) { const container = document.createElement('div'); container.className = this.options.className; Leaflet.DomEvent ...
examples/using-jest/src/components/layout.js
ChristopherBiscardi/gatsby
import React from 'react' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from './header' import './layout.css' const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { ...
src/components/panel/list/WhitePanelList.js
UncleYee/crm-ui
import React from 'react'; import WhitePanel from '../WhitePanel'; import {primaryColor} from 'utils/colors'; const styles = { root: { }, ul: { listStyle: 'none', padding: 0, margin: 0 }, li: { padding: '6px 0', height: 29, color: '#5d6266', fontSize: 13, }, number: { floa...
website/sections/Testing.js
sahat/boilerplate
import React from 'react'; import cx from 'classnames'; const TESTING_SVG = ( <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 50 50"> <path d="M 18.5 2 C 17.1 2 16 3.1 16 4.5 C 16 5.7 16.9 6.70625 18 6.90625 L 18 40.90625 C 18 44.80625 21.1 47.90625 25 47.90625 C 28.9 47.90625 32 44.8...
.storybook/preview.js
cloudbase/coriolis-web
import React from 'react' import { addDecorator } from '@storybook/react' import styled, { createGlobalStyle } from 'styled-components' import { ThemePalette, ThemeProps } from '@src/components/Theme' import Fonts from '@src/components/ui/Fonts' import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'...
node_modules/rebass/src/SectionHeader.js
HasanSa/hackathon
import React from 'react' import Base from './Base' import HeadingLink from './HeadingLink' import Text from './Text' import config from './config' /** * Header for section elements */ const SectionHeader = ({ heading, href, description, children, ...props }, { rebass }) => { const { scale, borderColor...
src/svg-icons/action/perm-data-setting.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
packages/xo-web/src/common/action-toggle.js
vatesfr/xo-web
import React from 'react' import PropTypes from 'prop-types' import ActionButton from './action-button' const ActionToggle = ({ className, value, ...props }) => ( <ActionButton {...props} btnStyle={value ? 'success' : null} icon={value ? 'toggle-on' : 'toggle-off'} /> ) ActionToggle.propTypes = { value: PropTypes...
src/routes/Hello/index.js
Raphael67/react-restify-mysql
import React from 'react' import DefaultLayout from '../../layouts/Default' export default class Hello extends React.Component { render() { return ( <DefaultLayout currentPage='hello'> <div>Hello {this.props.match.params.who}!</div> </DefaultLayout> ) } }
client/components/settings/bank-accesses/confirm-delete-access.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import { displayLabel, translate as $t } from '../../../helpers'; import { get, actions } from '../../../store'; import { registerModal } from '../../ui/modal'; import ModalContent from '../../ui/modal/content'; import CancelAndDelete from '../../ui/mo...
app/javascript/mastodon/features/search/index.js
yukimochi/mastodon
import React from 'react'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import SearchResultsContainer from 'mastodon/features/compose/containers/search_results_container'; const Search = () => ( <div className='column search-page'> <SearchContainer /> <div className='...
client/src/app/admin/panel/tickets/admin-panel-new-tickets.js
opensupports/opensupports
import React from 'react'; import {connect} from 'react-redux'; import i18n from 'lib-app/i18n'; import AdminDataAction from 'actions/admin-data-actions'; import TicketList from 'app-components/ticket-list'; import Header from 'core-components/header'; import Message from 'core-components/message'; class AdminPane...
src/DatePicker/DatePicker.js
skyiea/wix-style-react
import React from 'react'; import WixComponent from '../BaseComponents/WixComponent'; import PropTypes from 'prop-types'; import ReactDatepicker from 'react-datepicker'; import DatePickerInput from './DatePickerInput'; import moment from 'moment'; import classnames from 'classnames'; import css from './DatePicker.scss'...
src/components/partials/speedOption.js
harrison-symes/colour
import React from 'react' module.exports = (state, dispatch) => { function renderOptions() { let arr = [] for (var i = 5000; i >= 200; i = i - 200) { arr.push(<option value={i}>{i}</option>) } return arr } return ( <select onChange={(e) => dispatch({type: 'CHANGE_SPEED', payload: e.targ...
tndata_backend/chat/static/react-chat/src/components/chat.js
izzyalonso/tndata_backend
import _ from 'lodash'; import moment from 'moment'; import React, { Component } from 'react'; import Websocket from './websocket'; import AutoLinkText from 'react-autolink-text'; import ChatForm from './chat_form' import { slugify, extractVideo } from './utils'; export default class Chat extends Component { co...
lib/railspack/templates/registerComponent.js
jdmorlan/railspack
import React from 'react' import ReactDOM from 'react-dom' const getProps = (container) => { const propsString = container.getAttribute("data-react-props") const props = propsString ? JSON.parse(propsString) : null return props } export const registerComponent = (instance, containerName) => { const selector ...
js/components/missions/TaskRewardModal.js
kort/kort-reloaded
import React from 'react'; import { StyleSheet, View, Text, Image } from 'react-native'; import I18n from 'react-native-i18n'; import { Actions } from 'react-native-router-flux'; import Button from '../shared/Button'; const styles = StyleSheet.create({ container: { flex: 1, padding: 20, flexDirection: '...
src/parser/warlock/destruction/modules/features/ImmolateUptime.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, {...
assets/react/src/components/task/task_detail.js
khoa-le/crontask
import React, { Component } from 'react'; import moment from 'moment'; import uuid from 'uuid'; import TaskDetailAction from './task_detail_action.js'; export default class TaskDetail extends Component { /** @namespace this.props.handleBack */ constructor(props) { super(props); this.state = { ...
client/app/containers/LoginPage/index.js
Kielan/onDemanager
/* * LoginPage * User facing auth portal */ import React from 'react'; import { connect } from 'react-redux'; import { routeActions } from 'react-router-redux'; import { createSelector } from 'reselect'; import loggedInSelector from 'loggedInSelector'; import {Jumbotron, Input, ButtonInput } from 'react-bootstrap...
app/javascript/mastodon/features/status/components/action_bar.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMess...
news/client.js
HKuz/FreeCodeCamp
import React from 'react'; import {BrowserRouter} from 'react-router-dom'; import { render } from 'react-dom'; import NewsApp from './NewsApp'; const newsMountPoint = document.getElementById('news-app-mount'); const App = ( <BrowserRouter basename='/news'> <NewsApp /> </BrowserRouter> ); render( App, ne...
app/javascript/mastodon/components/avatar_composite.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarComposite extends React.PureComponent { static propTypes = { accounts: ImmutablePropTypes.list.isRequired, ani...
node_modules/react-router/es6/IndexRedirect.js
tacrow/tacrow
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...
test/components/map.js
worldbank-cdrp/disaster-risk-explorer
import React from 'react' import test from 'ava' import { shallow } from 'enzyme' import proxyquire from 'proxyquire' import mockboxGL from 'mapbox-gl-js-mock' import DataSelection from '../../app/assets/scripts/utils/data-selection' const { Map } = proxyquire.noCallThru().load('../../app/assets/scripts/components/map...
geonode/monitoring/frontend/monitoring/src/components/organisms/geonode-layers-analytics/index.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/shared/element-react/dist/npm/es6/src/scrollbar/Scrollbar.js
thundernet8/Elune-WWW
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inheri...
src/components/ArticleTypeSelect.js
guryanov-a/react-search
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { searchQuery } from '../api'; import Select from './Select'; import { changeSearchOffset, changeSearchOffsetEnd, changeCurrentPage, chooseArticleType, } from "../actions"; cla...
packages/material-ui-icons/src/CreateNewFolder.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CreateNewFolder = props => <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z" /> </SvgI...
docs/src/app/components/pages/components/Divider/ExampleMenu.js
xmityaz/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {Menu, MenuItem} from 'material-ui/Menu'; const style = { // Without this, the menu overflows the CodeExample container. float: 'left', }; const DividerExampleMenu = () => ( <Menu desktop={true} style={style}> <MenuItem primaryText...
src/components/common/Card.js
richardstrutt/umbrella
import React from 'react'; import {View} from 'react-native'; const Card = (props) => { return( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { borderWidth:1, borderRadius:2, borderColor:'#ddd', borderBottomWidth:0, shadowC...
sources/js/tos.js
lshap/streetlivesnyc
'use strict'; import React from 'react'; module.exports.TermsOfService = React.createClass({ render: function() { return ( <div className="StaticPage-container"> <div className="tos-content"> <div className="title">StreetlivesNYC Terms of Service</div> <div className="s...
src/svg-icons/image/photo-camera.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (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...
node/webpack/react/piece/piece.js
wushi27/nodejs201606
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; //small component var Search = React.createClass({ checkSth:function(){ var inputValue = this.refs.myInput.value; alert(inputValue); }, render:function(){ return ( <div> {this.props...
src/mixins/material-ui-theme.js
SRI-SAVE/react-components
/* Copyright 2016 SRI International 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 d...
src/pages/list.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js
IsenrichO/mui-with-arrows
import React from 'react'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerOpenRightExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handle...
client/src/components/Room.js
egdbear/simple-chat
import React from 'react'; import { ListItem } from 'material-ui/List'; import Divider from 'material-ui/Divider'; export default class Room extends React.Component { constructor(props) { super(props); this.navigate = this.navigate.bind(this); } navigate(roomId) { this.props.history.push(`dashboard/...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/linear-scale.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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 2.5 2.5c1.03 0 1.9-.62 2.29-1.5h2...
docs/server.js
koaninc/draft-js-plugins
/** * NOTE: This file must be run with babel-node as Node is not yet compatible * with all of ES6 and we also use JSX. */ import url from 'url'; import React from 'react'; import express from 'express'; import webpack from 'webpack'; import { renderToStaticMarkup } from 'react-dom/server'; import config from './web...
demo-react-redux/app/index.js
renhongl/Summary
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducer from './reducer/reducer'; import { Router, Route, browserHistory } from 'react-router'; import Dashboard from './page/dashboard'; import TestPage from './page/test'; ...
resources/src/js/components/Sidebar/components/NavBarBody.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import PropTypes from 'prop-types'; // Components import NavListItems from './NavListItems'; import { addClassModal } from '../../ModalForm/utils'; const links = [ { url: '/user', name: 'Explorar' }, { url: '/music', name: 'Tu Música' }, { url: ...
app/javascript/mastodon/features/ui/components/video_modal.js
abcang/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'mastodon/features/picture_in_picture/components/footer'; import...
app/components/ScoreBoard.js
RamonGebben/drone-fight-scoreboard
import React, { Component } from 'react'; import Fighter from './Fighter'; import Faker from 'Faker'; const defaultStartingScore = 3; const colorPallet = ['2176ae', '57b8ff', 'b66d0d', 'fbb13c', 'fe6847']; const startColors = getRandomColors(2); const startState = { fighters: [ { score: defaultStartingSco...
src/components/gradients/rgb-gradient.js
mapbox/react-colorpickr
import React from 'react'; import PropTypes from 'prop-types'; import themeable from 'react-themeable'; import { autokey } from '../../autokey'; function RGBGradient({ theme, active, color, opacityLow, opacityHigh }) { const themer = autokey(themeable(theme)); if (!active) return <noscript />; return ( <> ...
src/modules/Home/components/Users.js
YBox-POS/possys
import React from 'react'; import { Text, ScrollView, Image, View, StyleSheet, Dimensions } from 'react-native'; import styled from 'styled-components/native'; import { List, ListItem, Button} from 'react-native-elements'; import * as action from "../duck" //获取屏幕宽高 const SCREEN_WIDTH = Dimensions.get('window').width; ...
src/svg-icons/content/link.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3....
examples/todomvc/containers/TodoApp.js
ngbrown/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
react-demos/seats-reservation/src/Section.js
konvajs/site
import React from 'react'; import { Rect, Group, Text } from './react-konva'; import SubSection from './SubSection'; import { SECTION_TOP_PADDING, getSectionWidth, getSubsectionWidth, } from './layout'; export default React.memo( ({ section, height, x, y, onHoverSeat, onSelectSeat, ...
app/components/Menu/MenuList.js
cdiezmoran/playgrounds-desktop
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import jwtDecode from 'jwt-decode'; import $ from 'jquery'; class MenuList extends Component { props: { path: string } static redeemClick(e) { e.preventDefault(); $('#redeemItemModal').modal(); } render(...
src/app/components/search/AllItems.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Search from './Search'; import ErrorBoundary from '../error/ErrorBoundary'; import { safelyParseJSON } from '../../helpers'; export default function AllItems({ routeParams }) { return ( <ErrorBoun...
client/util/react-intl-test-helper.js
Skrpk/mern-sagas
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/html.js
innocentiv/vinnocenti
import React from 'react'; let stylesStr; if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`); } catch (e) { console.log(e); } } module.exports = class HTML extends React.Component { render() { let css; if (process.env.NODE_ENV === `produc...
app/react-icons/fa/volume-up.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaVolumeUp extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m18.6 7.9v24.2q0 0.6-0.4 1t-1 0.5-1-0.5l-7.4-7.4h-5.9q-0.6 0-1-0.4t-0.4-1v-...
demo/footer/footer.js
Graf009/react-mdl
import React from 'react'; import ReactDOM from 'react-dom'; import { Footer, Section, DropDownSection, LinkList } from '../../src/Footer'; class Demo extends React.Component { render() { return ( <div> <Footer size="mega"> <Section type="middle"> ...
src/carousel.js
bpicolo/nuka-carousel
'use strict'; import React from 'react'; import tweenState from 'react-tween-state'; import decorators from './decorators'; import assign from 'object-assign'; import ExecutionEnvironment from 'exenv'; React.initializeTouchEvents(true); const addEvent = function(elem, type, eventHandle) { if (elem == null || typeo...
app/javascript/mastodon/components/icon_button.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import AnimatedNumber from 'mastodon/components/animated_number'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTyp...
src/components/Nav.js
tableau-app/app
import React from 'react'; import { Link, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import Headroom from 'react-headroom'; import styled from 'styled-components'; import FlatButton from 'material-ui/FlatButton'; import Logout from './Logout'; const Title = styled.div` font-size: 2em;...
src/Parser/Warlock/Demonology/Modules/Items/T20_2set.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; const CALL_DREADSTALKERS_COOLDOWN = 15000; class T20_2set extends A...
app/javascript/mastodon/components/modal_root.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = this.state.revealed ? ...
app/components/Menu.js
ikhsanalatsary/react-mini-shop
import React from 'react'; import { Nav, Navbar, NavItem, NavDropdown, MenuItem, FormGroup, FormControl } from 'react-bootstrap'; import { Link, IndexLink } from 'react-router'; const styles = { textDecoration: 'none', textTransform: 'uppercase', fontWeight: 800, fontSize: 20 + 'px', color: '#08489D' } cons...
docs/src/app/components/pages/components/Badge/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; const BadgeExampleSimple = () => ( <div> <Badge badgeContent={4} primary={true} > <NotificationsIcon...
src/ui/sidebar/component-inspection/ComponentInspector.js
circuitsim/circuit-simulator
import React from 'react'; import radium from 'radium'; import Color from 'color'; import R from 'ramda'; import EditNumeric from './editable-types/Number'; import EditTypeSelect from './editable-types/TypeSelect'; import Button from '../../components/Button'; import camelToSpace from '../../utils/camelToSpace'; im...
src/BreadcrumbItem.js
albertojacini/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; import warning from 'react/lib/warning'; const BreadcrumbItem = React.createClass({ propTypes: { /** * If set to true, renders `span` instead of `a` */ active: React.PropTypes.bool, /** *...
src/routes/indexGatherGoods.js
daxiangaikafei/QBGoods
import React from 'react' import { Route, IndexRoute, Router } from 'dva/router' import CoreLayout from '../containers/layout' import GatherGoods from 'views/GatherGoods/page' export default function (ref) { return ( <Router history={ref.history}> <Route path='/' component={CoreLayout} name="我有好物"> ...
examples/with-graphql-hooks/pages/_app.js
BlancheXu/test
import App from 'next/app' import React from 'react' import withGraphQLClient from '../lib/with-graphql-client' import { ClientContext } from 'graphql-hooks' class MyApp extends App { render () { const { Component, pageProps, graphQLClient } = this.props return ( <ClientContext.Provider value={graphQLC...
docs/src/app/components/CodeExample/index.js
rscnt/material-ui
import React from 'react'; import {parse} from 'react-docgen'; import CodeBlock from './CodeBlock'; import ClearFix from 'material-ui/internal/ClearFix'; import Paper from 'material-ui/Paper'; class CodeExample extends React.Component { static propTypes = { children: React.PropTypes.node, code: React.PropTyp...
index.ios.js
bestofsong/rn-nav-tab-redux
'use strict' import React from 'react' import {AppRegistry} from 'react-native' import App from './app/app' AppRegistry.registerComponent('navExpRedux', () => App)
benchmarks/dom-comparison/src/app/Benchmark/index.js
risetechnologies/fela
/** * The MIT License (MIT) * Copyright (c) 2017 Paul Armstrong * https://github.com/paularmstrong/react-component-benchmark */ /* global $Values */ /** * @flow */ import * as Timing from './timing'; import React, { Component } from 'react'; import { getMean, getMedian, getStdDev } from './math'; import type { ...
lesson-7/todos/src/components/editNotesPage/EditNotesPage.js
msd-code-academy/lessons
import React from 'react' import NoteList from './NoteList' import { actionTypes, fetchNotesAsync } from '../../Reducer' import { connect } from 'react-redux' class EditNotesPage extends React.Component { componentWillMount() { this.props.dispatch(fetchNotesAsync()); } editNote = editedNote => {...
blueocean-material-icons/src/js/components/svg-icons/communication/screen-share.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.67 2.11-5.33 6-5.87V7l4 3.73-4...
src/entypo/ChevronThinLeft.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ChevronThinLeft'; let EntypoChevronThinLeft = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M13.891,17.418c0.268,0.272,0.268,0.709,0,0.979c-0.268,0.27-0.701,0.271-0.969,0l-7.8...