path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
ReportSystem/src/main/webapp/resources/js/components/index/index.js
LittleLazyCat/TXEY
import './style/index.css' import React from 'react' import { Row, Col } from 'antd'; import SiderMenu from '../common/sidermenu' import AreaStack from '../echarts/areastack' import UserMgt from '../antd/usermgt' import HeatmapCartesian from '../echarts/heatmapcartesian' export default class Index extends React.Compon...
jobs/screens/DeckScreen.js
haaswill/ReactNativeCourses
import React, { Component } from 'react'; import { View, Text, Platform } from 'react-native'; import { connect } from 'react-redux'; import { MapView } from 'expo'; import { Card, Button, Icon } from 'react-native-elements'; import Swipe from '../components/Swipe'; import { likeJob } from '../actions'; class DeckScre...
electron/app/index.js
structuresound/bbt
// @flow import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app...
demo/public/index.js
MicheleBertoli/react-count-to
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import request from 'superagent'; import CountTo from '../../dist/react-count-to'; class App extends Component { constructor() { super(); this.state = { isLoading: true, to: 0, }; this.onComplete = this.onComple...
renderer/components/Login/LoginNotAllowed.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Flex, Box } from 'rebass/styled-components' import { FormattedMessage } from 'react-intl' import Delete from 'components/Icon/Delete' import { Heading, Text, Card, CenteredContent } from 'components/UI' import messages from './messages' const LoginN...
packages/icons/src/md/image/PanoramaHorizontal.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPanoramaHorizontal(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42.86 8c.66 0 1.14.47 1.12 1.25v29.5c.01.78-.47 1.25-1.13 1.25-.19 0-.4-.04-.62-.12a52.262 52.262 0 0 0-18.24-3.29c-6.18 0-12.36 1.1-18.2...
src/index.js
hansenjl/circuit-builder-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './index.css'; import App from './containers/App'; import registerServiceWorker from './registerServiceWorker'; import store from './store'; ReactDOM.render( <Provider store={store}> <App /> </Provide...
src/svg-icons/action/delete-forever.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
web/portal/src/components/EditPanel/EditMultiOptions/index.js
trendmicro/serverless-survey-forms
// CSS import styles from './style.css'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import classNames from 'classnames'; import * as values from '../../../constants/DefaultValues'; import Mixins from '../../../mixins/global'; import EditItem from '../EditItem'; class EditMul...
frontend/modules/recipe/components/InfoPanel.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import { injectIntl, defineMessages, } from 'react-intl' import { Input } from '../../common/components/FormComponents' const RecipeHeader = ({ cookTime, prepTime, servings, customServings, info, updateServings, clearServings, intl }) => { const m...
src/js/popup.js
JonathanLigh/RRE
import React from 'react'; import ReactDom from 'react-dom'; // import { Provider } from 'react-redux'; // import configureStore from './store'; // const wrapper = document.getElementById('app'); // ReactDOM.render( // <Provider store={configureStore()}> // </Provider>, wrapper, // ); class Main extends React.Co...
app/javascript/mastodon/features/directory/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
react-roster/src/components/Player.js
bjornicus/roster
import React from 'react'; import { connect } from 'react-redux'; import { ProgressBar, Collapse, Row, Col } from 'react-bootstrap'; import TimeDisplay from './Time-display'; function totalPlayingTime(player, currentTime) { if (player.isPlaying) { return player.previousPlaytime + (currentTime - player.subI...
src/browser/intl/SwitchLocale.js
skallet/este
// @flow import type { State } from '../../common/types'; import React from 'react'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { setCurrentLocale } from '../../common/intl/actions'; import { Box, Button, } from '../app/components'; type SwitchLocaleProps = { currentLocale: st...
app/index.js
survivejs/reports-app
import 'purecss'; import './main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; main(); function main() { var app = document.createElement('div'); document.body.appendChild(app); ReactDOM.render(<App />, app); }
node_modules/react-foundation/src/components/top-bar.js
Technaesthetic/ua-tools
import React from 'react'; import { GeneralPropTypes, createClassName, generalClassNames } from '../utils'; /** * Top bar component. * http://foundation.zurb.com/sites/docs/top-bar.html * * @param {Object} props * @returns {Object} */ export const TopBar = props => { const className = createClassName( prop...
node_modules/native-base/src/basic/Badge.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import variables from '../theme/variables/platform'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Badge extends Component { render() { return ( <View r...
app/javascript/mastodon/features/list_editor/index.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
src/app/components/ProjectsFilter.js
honzachalupa/portfolio2017
import React, { Component } from 'react'; import { capitalize } from './../helpers'; import Button from './Button'; import ButtonsGroup from './ButtonsGroup'; export default class ProjectsFilter extends Component { constructor(props) { super(props); this.state = { types: this.getProjec...
examples/js/keyboard-nav/nav-with-select-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 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; products.push({ id: id, ...
src/components/Forms/UserForm.js
zerkedev/zerke-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { intlShape } from 'react-intl'; import { Field, reduxForm } from 'redux-form'; import { TextField } from 'redux-form-material-ui'; import { AvatarImageField } from '../ReduxFormFields'; import ReactList from 'react-list'; import {List...
blueocean-material-icons/src/js/components/svg-icons/action/view-headline.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline.displayName = 'ActionViewHeadline'; ActionViewHeadline.muiName = 'SvgIcon'; expo...
jobs/screens/ReviewScreen.js
haaswill/ReactNativeCourses
import React, { Component } from 'react'; import { ScrollView, View, Text, Platform, Linking } from 'react-native'; import { Button, Card, Icon } from 'react-native-elements'; import { MapView } from 'expo'; import { connect } from 'react-redux'; class ReviewScreen extends Component { // static make it a property of...
src/docs/Docs.js
alexcondorachi/ps-react-alexc
import React from 'react'; import Navigation from './Navigation'; import ComponentPage from './ComponentPage'; import componentData from '../../config/componentData'; export default class Docs extends React.Component { constructor(props) { super(props); this.state = { route: window.location.hash.substr...
js/components/TodoPage/FilterLink.react.js
ryantang333/dashboard-prototype
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { asyncSetTodosFilter } from '../../actions/AppActions'; const FilterLink = ({ active, children, onClick }) => { if (active) { return <span>{children}</span>; }; return ( <a href='#' onClick={e => { e.preventDefaul...
packages/docs/components/Examples/focus/SimpleFocusEditor/colorBlockPlugin.js
nikgraf/draft-js-plugin-editor
import React from 'react'; const ColorBlock = React.forwardRef( ( { block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, //...
app/shared_features/set_card/expanded/VideoButton.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, TouchableHighlight, Image, Platform } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import Video from 'react-native-video'; class VideoButton extends Component { ...
sample-app/app.js
Zip753/react-native-lock
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableHighlight, Alert, } from 'react-native'; var Auth0Lock = require('react-native-lock'); var credentials = require('./auth0-credentials'); var lock = new Auth0Lock(credentials); var HeaderView = React...
app/javascript/mastodon/features/notifications/components/notification.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
ui/src/containers/UserForm/index.js
LearningLocker/learninglocker
/* eslint-disable react/jsx-indent */ import React from 'react'; import { compose, withState, withProps } from 'recompose'; import { withModel } from 'ui/utils/hocs'; import { Map, List, fromJS } from 'immutable'; import classNames from 'classnames'; import styled from 'styled-components'; import ValidationList from 'u...
static/src/components/RegisterView.js
kdog1425/React-Redux-Flask-Web-Crawler
/* eslint camelcase: 0, no-underscore-dangle: 0 */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import * as action...
egghead.io/react_fundamentals/lessons/12-composable/App.js
andrisazens/learning_react
// https://jsbin.com/yiboxe/edit?js,output import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { red: 0 } this.update = this.update.bind(this) } update(e){ this.setState({ red: ReactDOM.findDOMNode(t...
demo/src/sections/Movies.js
ryandrewjohnson/react-localize-redux
// @flow import React from 'react'; import { withLocalize, Translate } from 'react-localize-redux'; import '../Main.css'; class Movies extends React.Component<any, any> { constructor(props) { super(props); this.state = { name: '' }; this.addTranslationsForActiveLanguage(); } componentDid...
src/app/components/drawer/Projects/index.js
meedan/check-web
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import ProjectsComponent from './ProjectsComponent'; const renderQuery = ({ error, props }) => { if (!error && props) { return ( <ProjectsComponent team={props.team} ...
app/containers/FilterableTable.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { filterTable } from '../actions'; import ProductTable from '../components/ProductTable'; import { filterableTable } from '../styles/filterableTable.scss'; const FilterableTable = ({ filter, onFilter }) ...
node_modules/react-bootstrap/es/ModalFooter.js
GregSantulli/react-drum-sequencer
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/FormsyColorPicker.js
faccuo/react-slingshot-auth0-sample
/* eslint react/prefer-es6-class: 0 */ import React from 'react'; import Formsy from 'formsy-react'; import ColorPicker from './ColorPicker'; const FormsyColorPicker = React.createClass({ mixins: [Formsy.Mixin], changeValue(color) { this.setValue(color); }, render() { return ( <div> <...
src/SparklinesLine.js
geminiyellow/react-sparklines
import React from 'react'; export default class SparklinesLine extends React.Component { static propTypes = { color: React.PropTypes.string, style: React.PropTypes.object }; static defaultProps = { style: {} }; render() { const { points, width, height, margin, col...
src/index.js
zachcoyle/redux-looking-glass
import React from 'react' import R from 'ramda' import { connect } from 'react-redux' // todo: refactoring const notNum = node => !R.defaultTo(false)(parseInt(node)) export const arrayFromString = s => R.filter(R.identity, R.replace(/\]/g, '', R.replace(/\[/g, '.', s) ).split('.') ) const normal...
addons/themes/astral/layouts/Blog.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Blog = React.createClass({ componentDidMount(){ require('../assets/css/main.c...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-toastify/src/ProgressBar.js
bhathiya/test
import React from 'react'; import PropTypes from 'prop-types'; import config from './config'; function ProgressBar({ delay, isRunning, closeToast, type, hide }) { const style = { animationDuration: `${delay}ms`, animationPlayState: isRunning ? 'running' : 'paused' }; style.WebkitAnimationPlayState = sty...
example/example-react/src/components/Header/Header.js
kesslerdev/quarkit
import React from 'react' import PropTypes from 'prop-types' // import the game for create instances & import {createPlayer} from '../../game' import Login from '../Login/Login' import GameInfo from '../Infos/GameInfo/GameInfo' import logo from './logo.svg' import './Header.css' const Header = ({ onClick, connected...
components/DemoAframeScene.js
gmaliandi/metavrse-toolbar
import 'aframe'; import React from 'react'; export default class DemoAframeScene extends React.Component { constructor(props) { super(props); this.interactableObjects = []; this.handleContextMenu = this.handleContextMenu.bind(this); } attachEventHandlers(objects) { for (let object of objects) {...
src/index.js
tehfailsafe/portfolio
// require('./assets/styles/bootstrap.scss'); // require('./assets/styles/main.scss'); import './assets/styles/bootstrap.scss'; import './assets/styles/main.scss'; import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, useRouterHistory, browserHistory } from 'react-router' im...
src/svg-icons/action/visibility.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibility = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-...
frontend/src/app/components/Routes.js
mozilla/testpilot
import React from 'react'; import { IndexRoute, Redirect, Route, Router } from 'react-router'; import App from '../containers/App'; import ErrorPage from '../containers/ErrorPage'; import ExperimentPage from '../containers/ExperimentPage'; import HomePage from '../containers/HomePage'; import LegacyPage from '../conta...
app/main/components/ConfirmDialog.js
BitLooter/Stuffr-frontend
import React from 'react' import PropTypes from 'prop-types' import Dialog from 'material-ui/Dialog' import RaisedButton from 'material-ui/RaisedButton' import t from '../../common/i18n' const ConfirmDialog = ({open = true, title, text, onYes, onNo}) => <Dialog title={title} actions={ <div> ...
app/Routes.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import { Router, Route, IndexRoute} from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; let history = createBrowserHistory(); // import useScroll from 'scroll-behavior/lib/useStandardScroll' import CurrentUserStore from './stores/CurrentUs...
private/Components/ViewPromo.js
Bartoshko/occasion-jitsu
import React from 'react' import GoogleMap from 'google-map-react' import {ToggleFavorite} from './Components.js' import {Link} from 'react-router-dom' // import {findById} from '../Utility/Utility.js' const findById = (stores, id) => stores.find(store => store.id === id) // ViewPromo component renders info of chosen ...
app/containers/examples/FeaturePage/index.js
GuiaLa/guiala-web-app
/* * FeaturePage * * List all the features */ /* eslint-disable react/prefer-stateless-function */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Button from 'Button'; import H1 from 'H1'; import styles from './styles.css'; export class Featur...
src/Button.js
westonplatter/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,...
src/components/DragBox/index.js
lapanoid/redux-cropper
import React from 'react'; import PureComponent from 'react-pure-render/component'; import CSSModules from "react-css-modules"; import styles from './styles.module.scss'; class DragBox extends PureComponent { render() { const {modal} = this.props; let styles = "cropper-drag-box cropper-crop"; return <div st...
app/components/Separator/index.js
JSSolutions/Perfi
import React from 'react'; import { View, ViewPropTypes } from 'react-native'; import T from 'prop-types'; import s from './styles'; const Separator = ({ withShadow, withOpacity, marginVertical, marginTop, marginBottom, style, }) => ( <View style={[ s.root, marginVertical && { marginVerti...
src/svg-icons/action/card-travel.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
examples/counter/containers/Root.js
frodereinertsen/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
src/parser/druid/feral/modules/talents/BrutalSlashHitCount.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import HitCountAoE from '../core/HitCountAoE'; /** * Despite being an AoE ability Brutal Slash is usually the best talent on its row for single tar...
packages/components/src/SubHeaderBar/TitleSubHeader/TitleSubHeader.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import Skeleton from '../../Skeleton'; import EditableText from '../../EditableText'; import titleSubHeaderCssModule from './TitleSubHeader.scss'; import Icon from '../../Icon'; import Inject from '../../Inject'; import getDefaultT from '../../translate'; i...
src/components/ExpandingButton.js
Charlie9830/pounder
import React from 'react'; import { Button, Grow, Typography, withStyles } from '@material-ui/core'; import withMouseOver from './Hocs/withMouseOver'; let styles = theme => { let base = { flexShrink: 1, display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', al...
packages/bonde-admin/src/pages/admin/mobilizations/templates/create/page.js
ourcities/rebu-client
import React from 'react' import { FormattedMessage, intlShape } from 'react-intl' import * as paths from '@/paths' import { SettingsPageLayout, SettingsPageMenuLayout, SettingsPageContentLayout } from '@/components/layout' import { Avatar, Name } from '@/mobilizations/components/list/items' import { FormRedux, ...
app/react-icons/fa/key.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaKey extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m19.6 11.4q0-1.8-1.3-3t-3-1.3-3.1 1.3-1.2 3q0 1 0.4 1.9-0.9-0.4-1.8-0.4-1.8 0-3....
docs/0.4f69213f6baaa346322a.js
quark-ui/quark-ui
webpackJsonp([0],{"0P4F":function(e,n,t){"use strict";function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function ...
src/Movable.js
jaredlunde/react-cake
import React from 'react' import Point from './Point' /** <Movable> <WillChange transform> { ({move, movableRef, style, willChange, willChangeRef}) => ( <div ref={willChangeRef} style={{ width: 200, height: 200, backgroundColor: '#000', ...
src/svg-icons/image/nature.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNature = (props) => ( <SvgIcon {...props}> <path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/> </SvgIcon> ); ImageNature = p...
src/svg-icons/toggle/check-box-outline-blank.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
src/icons/IosSnowy.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosSnowy extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <path class="st0" d="M379.9,317l-28.7-16.3c6.1-5.8,13-9.7,20.7-12.3c4.3-1...
src/app.js
cpwilkerson/login-server
import React from 'react' import ReactDOM from 'react-dom' import LoginView from './login-view' import login from './login-reducers' import {createStore, applyMiddleware} from 'redux' import thunk from 'redux-thunk' import {Provider} from 'react-redux' const store = createStore(login, applyMiddleware(thunk)) class Ap...
docs/client/components/pages/Hashtag/CustomHashtagEditor/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; import { Map } from 'immutable'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createHashtagPlugin from 'draft-js-hashtag-plugin'; import editorStyles from './editorStyles.css'; import hashtagStyles from './hashtagStyles.css'; const theme ...
geonode/contrib/monitoring/frontend/src/pages/error-details/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Header from '../../components/organisms/header'; import ErrorDetails from '../../components/organisms/error-detail'; import styles from './styles'; class Error extends React.Component { static propTypes = { params: PropTypes.object.isRequired...
[2]. Demo_RN/[14]. bag_list_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; // 导入json数据 var BadgeData = require('./BadgeData.json'); var Dimensions = require('Dimensions'); var {w...
src/components/Sidebar/MenuItem.js
zksailor534/react-adminlte-dash
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import styled from 'styled-components'; import tinycolor from 'tinycolor2'; import { fontFamilyBase, fontSizeBase, lineHeightBase, fontWeightBase, sidebarWidth, sidebarMiniWidth, screenSmMin, lightBlue, green, yellow, re...
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/Before/app/containers/LinkListContainer/index.js
phiratio/Pluralsight-materials
/* * * LinkListContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkListContainer from './selectors'; import LinkList from '../../components/LinkList'; export class LinkListContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function ren...
examples/src/components/CustomSingleValue.js
javier-garcia-anfix/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/index.js
riquet28/Weather_ReactRedux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
app/pages/admin/AuthFields/index.js
czy0729/react-alumni
/** * 认证需填写字段 * 17-03-07 判断来源add_alumni * @Date: 2017-02-19 15:58:37 * @Last Modified by: Administrator * @Last Modified time: 2017-03-18 23:14:45 */ 'use strict'; import React from 'react'; import { form, observer } from 'decorators'; import { $auth } from 'stores'; import { List, Button } from 'antd-mobile';...
app/containers/LanguageProvider/index.js
Princess310/react-chat-exp
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
gatsby-browser.js
goinvo/InvoPlaybook
import React from 'react' import { Router } from 'react-router-dom' import { Provider } from 'react-redux' import createStore from './src/redux/redux' exports.replaceRouterComponent = ({ history }) => { const store = createStore() const ConnectedRouterWrapper = ({ children }) => ( <Provider store={st...
app/components/Exit.js
SmartPowerSocket/DesktopApp
import React, { Component } from 'react'; import { remote } from 'electron'; export default class Exit extends Component { componentWillMount() { remote.getGlobal('particleEnhancement').quitApp(); } render() { return ( <div /> ); } }
stories/Input/ExampleRoundInput.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Input from 'wix-style-react/Input'; const style = { display: 'inline-block', padding: '0 5px', width: '200px', lineHeight: '22px', verticalAlign: 'top' }; const defaultProps = { size: 'normal', magnifyingGlass: true, placeholder: 'T...
js/account/src/components/Account/Account.js
fogfish/oauth2
import React from 'react' import { Flex, Box } from 'reflexbox' import { useOAuth2, WhileIO } from 'react-hook-oauth2' import Header from './Header' import Registry from '../Registry' import Issue from '../Issue' const IO = WhileIO(undefined, Issue, Registry) const UI = () => { const status = useOAuth2() return (...
static/src/components/Modals/AddTransaction.js
tferreira/piggydime
import React from 'react' import { FormattedMessage, injectIntl } from 'react-intl' import Dialog from 'material-ui/Dialog' import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField' import DatePicker from 'material-ui/DatePicker' i...
src/containers/HomePage.js
mak4alex/unicorn-shop
import React, { Component } from 'react'; export default class HomePage extends Component { render() { return ( <div> <h1>Домашняя страница</h1> </div> ); } }
src/ButtonGroup.entry.js
giovanni0918/react-component-catalog
import React from 'react'; import { render } from 'react-dom'; import ButtonGroup from './components/ButtonGroup/ButtonGroup.js'; render( <ButtonGroup className='ButtonGroup' buttons={[ { 'className': 'Button', onClick() { console.log('button') }, 'textContent': 'button' }...
website/irulez/src/components/admin_menu/Dashboard.js
deklungel/iRulez
import React, { Component } from 'react'; import './Dashboard.css'; class Admin extends Component { constructor(props) { super(props); this.props.Collapse('dashboard'); } render() { return ( <div className='Admin'> <div className='App-header'> ...
src/Parser/HolyPaladin/Modules/Items/Tier20_4set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; impor...
src/components/UI/NewEntry/NewEntry.js
wanchopen/vida
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './NewEntry.css'; import Dialog from 'material-ui/Dialog'; import {grey400, cyan500} from 'material-ui/styles/colors'; import IconButton from 'material-ui/IconButton'; import EditorBorderColor from '...
frontend/react-stack/web/src/Header.js
wesleyegberto/courses-projects
import React from 'react'; function Header(props) { return <h1>{ props.title }</h1>; } export default Header;
client/layout/guided-tours/main-tour.js
tinkertinker/wp-calypso
import React from 'react'; import { translate } from 'i18n-calypso'; import { overEvery as and } from 'lodash'; import { makeTour, Tour, Step, Next, Quit, Continue, Link, } from 'layout/guided-tours/config-elements'; import { isNewUser, isEnabled, selectedSiteIsPreviewable, selectedSiteIsCustomizable, prev...
client/index.prod.js
BitTigerInst/ElasticSearch
import React from 'react'; import routes from '../shared/routes'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { configureStore } from '../shared/redux/store/configureStore'; const store = configureStore(window.__INITIAL_STATE...
src/views/Card/CardDescription.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useTextAlignProp, } from '../../lib' /** * A card can contain a description with one or more paragraphs....
packages/es-components/src/components/patterns/callToAction/getCallToActionChildren.js
TWExchangeSolutions/es-components
import React from 'react'; export function getCallToActionChildren(children, type = 'default') { const allChildren = React.Children.toArray(children); const actions = allChildren .filter(child => child.type.name === 'Action') .map(action => { if (type === 'light') { const styleType = action.p...
course/example_2/src/routes/Home/components/HomeView.js
FMCalisto/redux-get-started
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
app/javascript/mastodon/features/bookmarked_statuses/index.js
imas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks'; import Column from '../ui/components/column'; import ColumnHeader...
ext/lib/site/home-forum/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import HomeProyectos from '../home-proyectos/component' import HomePropuestas from '../home-propuestas/component' const HomeForum = (props) => { const { params: { forum } } = props switch (forum) { case 'propuestas': return <HomePropuestas {...props} /> default: return...
src/views/ReviewSettings/DetailBox.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { Table } from 'antd' @connect( state => ({ detail: state.pages.reviewSettings.strategyDetail }) ) export default class DetailBoxView extends React.Component { render () { const { info, detail } = this.props const columns = [{ ...
src/app/containers/Support.js
pingwing/travel-guide-las-palmas
import React from 'react'; import {Component} from 'react'; export default class Support extends Component { askUltimateQuestion() { alert('the answer is 42'); } render() { return ( <form onSubmit={this.askUltimateQuestion}> <input type="text" className="support" placeholder="ask us anyth...
pyxis/components/PButton/index.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { View, Button, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ button: { marginBottom: 8, marginLeft: 40, marginRight: 40, } }); const PButton = ({ title, onPress}) => { return ( <View style={styles.button}> <Button title={title} onPr...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
pancho111203/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; /** * Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors. */ const FloatingActionButton...
src/client/components/hoc/Permissions/withPermissions.hoc.js
DBCDK/content-first
import React from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {get} from 'lodash'; import Kiosk from '../../base/Kiosk/Kiosk'; import {loadKiosk} from '../../../redux/kiosk.thunk'; import {OPEN_MODAL, CLOSE_MODAL} from '../../../redux/modal.reducer'; import permissions from './permissions.j...
src/main/app/components/system/host/Host.js
reactor/reactor-pylon
/* * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. * * 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 * * Unles...
frontend/app_v2/src/components/DictionaryDetail/DictionaryDetailPresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Disclosure } from '@headlessui/react' // FPCC import { getMediaUrl } from 'common/urlHelpers' import useIcon from 'common/useIcon' import useVisibilityIcon from 'common/useVisibilityIcon' import { makePlural }...