path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/app/components/pages/account/account-api-key.js
LINKIWI/linkr
import copy from 'copy-to-clipboard'; import Link from 'react-router/lib/Link'; import React from 'react'; import AccountRegenerateAPIKeyModal from './account-regenerate-api-key-modal'; import Button from '../../ui/button'; import TextField from '../../ui/text-field'; import Tooltip from '../../ui/tooltip'; import c...
js/jqwidgets/demos/react/app/tabs/mapinsidetab/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { render() { let initialize = () => { let mapCanvas = document.getElementById('map-canvas'); let mapOptions = { ...
src/routes/home/components/SignupForm/SignupForm.js
TodoWishlist/VizResume
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import styles from './SignupForm.css'; const SignupForm = ({ dataSet }) => { const flex = dataSet.position === 'top' ? { display: 'flex', flexDirection: 'row' } : { display: 'flex', flexDirection: 'column' }; const width = ...
src/containers/DevTools.js
blaqbern/lists
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"> <LogMonitor theme="tomorro...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
hai-cea/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
src/client/components/quick-summary/index.js
adamgruber/mochawesome-report-generator
import React from 'react'; import PropTypes from 'prop-types'; import { Duration, Icon } from 'components'; import classNames from 'classnames/bind'; import styles from './quick-summary.css'; const cx = classNames.bind(styles); const QuickSummary = ({ onQuickFilterClick, singleFilter, stats }) => { const { dura...
src/index.js
blinksocks/blinksocks-desktop
import React from 'react'; import ReactDOM from 'react-dom'; import {HashRouter, Route} from 'react-router-dom'; import {MuiThemeProvider, getMuiTheme} from 'material-ui/styles'; import injectTapEventPlugin from 'react-tap-event-plugin'; import 'notie'; import 'notie/dist/notie.min.css'; import {App, Logs} from './con...
src/client/components/pure/Contact.js
megmatty/letsplay-fullstack
import React, { Component } from 'react'; import axios from 'axios'; import ReactDOM from "react-dom"; //Contact Friends Form View class Contact extends Component { submitForm = (event) => { event.preventDefault(); const message = ReactDOM.findDOMNode(this.refs.message).value; const email = { "to"...
components/ui/SliderSelect.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // Components import Icon from 'components/ui/icon'; import Spinner from 'components/ui/Spinner'; // Types /** * Item of the selector * The "as" attribute is an alternate label displayed when the * option is selecte...
routes/HealthyGen/HealthyGen.js
RickFrom1987/rickfrom1987.com
import React from 'react'; import ArticleLayout from '../../components/Layout/ArticleLayout'; import { title, url, html } from './HealthyGen.md'; class HealthyGenPage extends React.Component { componentDidMount() { document.title = title; } render() { return ( <ArticleLayout title={title} url={ur...
node_modules/react-bootstrap/es/MediaRight.js
ASIX-ALS/asix-final-project-frontend
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/routes.js
bryancr89/uLikeReact
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import FuelSavingsPage from './containers/FuelSavingsPage'; // eslint-disable-line import/no-named-as-default import AboutPage from './components/AboutPage.js';...
packages/example-phone/src/scripts/components/common/video.js
Josh-Dykstra/spark-js-sdk
import React from 'react'; export default function Video(props) { return ( <div className="video-container"> <video autoPlay {...props} /> </div> ); }
src/user/screens/following-list.screen.js
Antoine38660/git-point
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FlatList, View } from 'react-native'; import { ViewContainer, UserListItem, LoadingUserListItem } from 'components'; import { getFollowing } from 'user'; const mapStateToProps = state ...
src/client.js
chunkai1312/universal-react-redux-starter-kit
import React from 'react' import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import configureStore from './store/configureStore' import Root from './containers/Root' const preloadedState = window.__PRELOADED_STATE__ const store = c...
test3/src/main.js
fengnovo/webpack-react
import React from 'react' import ReactDOM from 'react-dom' import { createStore,applyMiddleware } from 'redux' import { Provider,connect } from 'react-redux' import thunk from 'redux-thunk' import Jisuanqi from './Jisuanqi' const JIA = {type: 'jia'} const JIAN = {type: 'jian'} let ajaxData = (dispatch,type) => { ...
javascript/AddOn/Waiting.js
AppStateESS/stories
import React from 'react' import PropTypes from 'prop-types' const Waiting = (props) => { let message if (props.message.length === 0) { message = <span>Loading {props.label}...</span> } else { message = props.message } return ( <div className="lead text-center"> <i className="fa fa-cog fa-s...
app/javascript/flavours/glitch/features/keyboard_shortcuts/index.js
im-in-space/mastodon
import React from 'react'; import Column from 'flavours/glitch/features/ui/components/column'; import ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'p...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
lucketta/got-quote-generator
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
examples/webpack-gulp-react/app/scripts/containers/index.js
demones/react-guide
import React from 'react'; import {render} from 'react-dom'; import Index from 'components/Index'; import 'styles/main.css'; render(( <Index/> ), document.getElementById('layout'));
src/React/Viewers/ImageBuilderViewer/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import AbstractViewerMenu from '../AbstractViewerMenu'; import WidgetFactory from '../../CollapsibleControls/CollapsibleControlFactory'; import ImageRenderer from '../../Renderers/ImageRenderer'; export default class ImageBuilderViewer extends React.Compo...
android/source/component/offlinePostBar.js
cloudfavorites/favorites
import React, { Component } from 'react'; import { Text, View, Image, Alert, ToastAndroid, TouchableOpacity } from 'react-native'; import moment from 'moment'; import Icon from 'react-native-vector-icons/Ionicons'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import { PostBarStyles, StyleConfig }...
src/routes/error/index.js
Tim-Thomas/beer-board
/** * 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 ErrorPage from './Err...
src/ChatList/ChatList.js
abdurrahmanekr/react-chat-elements
import React, { Component } from 'react'; import './ChatList.css'; import ChatItem from '../ChatItem/ChatItem'; const classNames = require('classnames'); export class ChatList extends Component { onClick(item, i, e) { if (this.props.onClick instanceof Function) this.props.onClick(item, i, e)...
docs/app/Examples/elements/Container/Variations/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ContainerVariationsExamples = () => ( <ExampleSection title='Variations'> <Comp...
app/containers/BrowserWindow.js
joshuef/peruse
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as TabActions from 'actions/tabs_actions'; import * as NotificationActions from 'actions/notification_actions'; import * as UiActions from 'actions/ui_actions'; import * as Book...
web/components/Credentials/ListCredentials.js
earaujoassis/watchman
import React from 'react'; const CredentialAction = ({ inactivateCredential, credential, user }) => { if (credential.is_active) { return ( <button className="anchor" type="button" onClick={() => inactivateCredential(user.id, credential.id)} > Make inactive </butt...
components/LoginScreen.js
marincelo/xczld-app
import { serverUrl, secondaryColor } from '../constants'; import React from 'react'; import { View, AsyncStorage } from 'react-native'; import { Text, FormLabel, FormInput, Button } from 'react-native-elements'; class LoginScreen extends React.PureComponent { state = { emailInput: '', phoneNumberInput: '', ...
react/features/overlay/components/AbstractPageReloadOverlay.js
bgrozev/jitsi-meet
// @flow import { randomInt } from 'js-utils/random'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createPageReloadScheduledEvent, sendAnalytics } from '../../analytics'; import { reloadNow } from '../../app'; import { isFatalJitsiConferenceError, isFatalJi...
src/svg-icons/editor/multiline-chart.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMultilineChart = (props) => ( <SvgIcon {...props}> <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3...
components/Deck/ContentPanel/AttachQuestions/AttachQuestionsAnswersList.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import AttachQuestionsAnswersItem from './AttachQuestionsAnswersItem'; import AttachQuestionsModalStore from '../../../../stores/AttachQuestionsModalStore'; import { Accordion } from 'semantic-ui-react'...
fields/types/markdown/MarkdownColumn.js
joerter/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
src/components/receiptUpload/ACLUCloudwok.js
lukebelliveau/aclu-matchers
import React from 'react'; const success = { title: 'Thank you for multiplying!', subtitle: 'Your donation has been multiplied!', text: `We'll tweet this receipt to all of our people who are matching donations. If you found this useful, please share with your network. The more money matched, the more mo...
dva/wind-tunnel/src/routes/P2.js
imuntil/React
import React from 'react' import MainLayout from '../components/MainLayout/MainLayout' import FadeInOut from '../components/Animation/FadeInOut' import Game from '../components/Game/Game' import GameOver from '../components/Game/GameOver' import { connect } from 'dva' import { routerRedux } from 'dva/router' function ...
src/js/components/icons/base/DriveCage.js
odedre/grommet-final
/** * @description DriveCage SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
richardsimms/rsimms
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
node_modules/antd/es/table/SelectionCheckboxAll.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; 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-run...
src/components/headline.js
marcusdarmstrong/cloth-io
import React from 'react'; import Avatar from './avatar'; import Byline from './byline'; import uriParser from '../util/uri-parser'; const Headline = ({ post, hasSeparator }) => { const link = (post.url) ? uriParser(post.url).host : null; const postLink = `/p/${post.urlstring}`; if (link) { return ( <...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
cheneus/SinglePgApp-Restaurant
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'));
components/content/Content.js
m-mcgowan/brewpi-device-viewer
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * * Copyright © 2015-2016 Konstantin Tarkus (@koistya) * * 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 Layo...
rnkitExample/index.ios.js
bjyas/react-native-rnkit
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import {PopupDatePicker} from '../' class rnkitExample extends Component { constructor(props){ super(prop...
node_modules/react-router/es6/withRouter.js
mrjkc/react-redux
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
react/components-test/src/App.js
MarioCodes/ProyectosClaseDAM
import React, { Component } from 'react'; import './App.css'; import HelloWorld from './component/HelloWorld' class App extends Component { render() { return ( <div className="App"> <HelloWorld/> </div> ); } } export default App;
app/components/ToolsPageComponents/index.js
rapicastillo/beautifulrising-client
/** * * ToolsPageComponents * */ import React from 'react'; import styled from 'styled-components'; import SmallSectionHeader from 'components/SmallSectionHeader'; import ContentBlock from 'components/ContentBlock'; import { ToolType, ToolTitle } from 'components/ToolsComponents'; import { CommonLeftHeader } from 'com...
src/components/FeedLoader.js
adamfaryna/flickr-public-gallery
/* * Copyright (C) 2017 Adam Faryna <adamfaryna@appdy.net> * * Distributed under terms of the BSD 2-Clause license. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BehaviorSubject, Observable } from 'rxjs/Rx'; import FeedItem from './FeedItem'; import LoadingIndicator from...
app/components/SteelDayPage/PDFviewer.js
tenhaus/bbwelding
import React from 'react'; import PDF from 'react-pdf-js'; class MyPdfViewer extends React.Component { constructor(props) { super(props); this.onDocumentComplete = this.onDocumentComplete.bind(this); this.onPageCompleted = this.onPageCompleted.bind(this); this.handlePrevious = this.handlePrevious.bi...
src/components/microblog/LocationArchiveItem/index.js
jwngr/jwn.gr
import React from 'react'; import {Link} from 'react-router-dom'; import './index.css'; import {getDateRange} from '../utils'; const LocationArchiveItem = ({id, name, postIds}) => { const shortLocationName = name.split(',')[0]; const postsCount = postIds.length; const postOrPosts = postsCount === 1 ? 'post' : ...
node_modules/@material-ui/core/es/Chip/Chip.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import warning from 'warning'; import CancelIcon from '../internal/svg-icons/Can...
src/containers/nav.js
everywherebible/app
// @flow import React from 'react'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import type {State} from '../reducer'; import Nav from '../ui/nav'; const stateToProps = ({preferences: {enableFocusMode}}: State) => ({enableFocusMode}); const BASE_STYLE = {transition: 'opacity ...
dispatch/static/manager/src/js/components/WidgetFields.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import WidgetField from './ZoneEditor/WidgetField' class WidgetFieldsComponent extends React.Component { render() { const widget = this.props.entities.widgets[this.props.widgetId] const fields = widget ? widget.fields.map((field) => ( <Wi...
src/js/containers/subMenu.js
nicksenger/JSchematic
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import SubButton from './subButton.js'; require("../../css/components/subMenu.scss"); class SubMenu extends Component { render() { const buttons = (this.props.subInfo.down ? th...
lib/editor/components/question_editors/PersonalInfoQuestionEditor.js
jirokun/survey-designer-js
import React from 'react'; import BaseQuestionEditor from './BaseQuestionEditor'; export default function PersonalInfoQuestionEditor(props) { const { page, question } = props; return ( <BaseQuestionEditor page={page} question={question} editorTitle="個人情報" item title descrip...
src/components/DataPicker/WeekHeader.js
Jguardado/HiRproject
import React, { Component } from 'react'; export default class WeekHeader extends Component { render() { return ( <div className='week-header'> <span>Sun</span> <span>Mon</span> <span>Tue</span> <span>Wed</span> <span>Thu</span> <span>Fri</span> <spa...
ui/src/pages/portfolio/index.js
danielbh/danielhollcraft.com
import React from 'react' import './index.scss' export default ({ data }) => { return ( <section> <div className="container"> <header className="major"> <h2>Portfolio</h2> </header> <div className="features"> {data.allMarkdownRemark.edges.map(({ node }) => { ...
src/components/when-am-i-free/when-am-i-free.js
ebabel-eu/ebabel-home
import React, { Component } from 'react'; import Header from '../header/header'; export default class WhenAmIFree extends Component { render() { return ( <article className='row'> <Header title='Let&apos;s schedule a call or a meeting' subtitle='I indicate in my agenda the bloc...
examples/04 Sortable/Simple/index.js
randrianov/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableSimple { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> </p> <p> It i...
src/components/Knob.js
rsimmons/plinth
import React from 'react' const DRAG_PIXELS_TO_NORMALIZED_VALUE = 0.008; const clampUnit = (v) => { if (v < 0) { return 0; } else if (v > 1) { return 1; } else if (isNaN(v)) { return 0; } else { return v; } } export default class Knob extends React.Component { constructor(props) { su...
src/containers/RandomData.js
cygni/cygni-competence-react
import React from 'react'; import SpaceForecast from '../components/SpaceForecast'; const RandomDataContainer = React.createClass({ getInitialState() { return { weatherdata: this._getRandomWeatherData() }; }, componentDidMount() { this.interval = setInterval(this._updateWeatherData, 1000); },...
src/pages/fpv-gear-list.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import styled from 'styled-components' import Layout from '../components/structure/layout' const Section = styled.section` text-align: center; ` const FPVGearListPage = () => ( <Layout> <Section> <h1>Recommended gear for flying FPV drones</h1> <p>There's essentially 3 var...
src/pages/NotFound/index.js
yiweimatou/admin-antd
import React from 'react'; import { Button } from 'antd'; import styles from './index.css'; const NotFound = () => ( <div className={styles.normal}> <div className={styles.container}> <h1 className={styles.title}>404</h1> <p className={styles.desc}>未找到该页面</p> <a href="/"><Button type=...
src/people/notifs/PeopleFormNotifs.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import FormNotifications from '../../elements/FormNotifications'; import AddItemFailNotif from './AddItemFailNotif'; import EditItemFailNotif from './EditItemFailNotif'; /// // View /// class PeopleFormNotifsView extends Component { render() { r...
react-vr/v1-cube/index.vr.js
nikgraf/webvr-experiments
import React from 'react'; import { AppRegistry, asset, StyleSheet, Pano, View, Model, PointLight, } from 'react-vr'; export default class HelloWorld extends React.Component { render() { return ( <View> <PointLight style={{color: 'white', transform: [{translate: [0, 400, 700...
src/components/common/StoryFeedbackRow.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { Row, Col } from 'react-flexbox-grid/lib'; import AppButton from './AppButton'; import { googleFavIconUrl, storyDomainName } from '../../lib/urlUtil'; import { trimToMaxLength } from '../../lib/stringUtil'; i...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/FormLabel.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import classNames from 'classnames'; import React from 'react'; import warning from 'warning'; import mapContextToProps from 'react-context-toolbox/mapContextTo...
react-movie-network-aware-loading/src/index.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App/App'; import './index.css'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister()...
src/Scene/StorageScene.js
wangliguang/myRNTools
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, TextInput, } from 'react-native'; import { goBack, } from '../Route'; import Storage from '../tools/Storage' import * as...
stories/Input/ExampleStandard.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' }; const Example = ({theme}) => <div> <div className="ltr" style={style}>Input<br/><Input theme={theme}/...
app/user/dashboard/HomeTab.js
sagnikm95/internship-portal
import React from 'react'; import { Card, Container } from 'semantic-ui-react'; import Axios from 'axios'; import PostItem from '../../common/post/PostItem'; import Auth from '../../auth/modules/Auth'; export default class HomeTab extends React.Component { constructor() { super(); this.state = { posts: [] }...
stories/CollapsiblePanel.js
Talend/react-talend-components
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { CollapsiblePanel, IconsProvider } from '../src/index'; const content = [ { label: 'Content1', description: 'Description1', }, { label: 'Content2', description: 'Description2', }, ]; const status = { displayMode: '...
src/svg-icons/communication/live-help.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLiveHelp = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13...
ReactJS_Seed_Project/app/components/layouts/Blank.js
huang6349/inspinia
import React from 'react'; class Blank extends React.Component { render() { return ( <div> {this.props.children} </div> ) } componentDidMount(){ $('body').addClass('gray-bg'); } componentWillUnmount(){ $('body').removeClass(...
client/app/components/Stories.js
adrianbaertschi/poinz
import React from 'react'; import Immutable from 'immutable'; import { connect } from 'react-redux'; import Story from './Story'; import StoryEditForm from './StoryEditForm'; /** * A list of stories (in the backlog) */ const Stories = ({ stories }) => { const sortedStories = stories .toList() .sort(story...
app/containers/App/index.js
talal7860/punch-assignment-react
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
src/containers/Asians/index.js
westoncolemanl/tabbr-web
import React from 'react' import Route from 'react-router-dom/Route' import TabControls from './TabControls' import Published from './Published' import Registration from './Registration' import BreaksCalculator from './BreaksCalculator' export default () => <div> <Route path={'/asians/tab-controls/:id'} ...
src/Client.js
bpa/cyborg-rally
import { extendObservable } from 'mobx'; import { ws, GameContext } from './Util'; import React from 'react'; import Lobby from "./Lobby"; import Playing from "./Playing"; import RegisteredComponent from './RegisteredComponent'; import theme from "./theme"; import { Grommet } from 'grommet'; /*eslint no-extend-native:...
client/index.js
ringill/react
/* ./client/index.js */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.jsx'; ReactDOM.render(<App />, document.getElementById('root'));
src/containers/PhotosNext/Photo/index.js
AlexeySmolyakov/likeometer-redux
import React from 'react'; import PropTypes from 'prop-types'; import { useImageLoaded } from 'helpers/hooks'; import { getPhotoSrcFromSizes } from 'helpers'; import heartIcon from 'assets/heart.svg'; import * as Styled from './styled'; const Photo = ({ photo }) => { const imageSrc = getPhotoSrcFromSizes(photo.size...
src/modules/about/index.js
skydaya/react-sell
/** * Created by dllo on 17/8/28. */ import React from 'react' import ReactDOM from 'react-dom' import App from './app' ReactDOM.render( <App />, document.getElementById('about') )
shopping-cart-app/src/components/routes/Checkout/Checkout.js
JCFlores/shoppingCart
import React, { Component } from 'react'; import Wrapper from '../../Wrapper'; import Header from '../../Header'; import Cart from "../../Cart"; import cartItems from '../../../cartItems.json'; import './Checkout.css'; class Checkout extends Component { constructor(props) { super(props); this.state...
src/routes/dashboard/components/browser.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import styles from './browser.less' import { color } from '../../../utils' const status = { 1: { color: color.green, }, 2: { color: color.red, }, 3: { color: color.blue, }, 4: { color: color.yel...
src/docs/components/IconDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Header from 'grommet/components/Header'; import Heading from 'grommet/components/Heading'; import SearchInput from 'grommet/components/SearchInput'; import Box from 'grommet/components/Box'; import Til...
ajax/libs/react-instantsearch/4.1.1/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/components/Flex/Flex.stories.js
Mojja/Gojji
import React from 'react' import { storiesOf } from '@storybook/react' // import { action } from '@storybook/addon-actions' import Flex from './Flex' storiesOf('Flex', module).add('with debug', () => ( <Flex center debug> <Flex style={{ borderColor: 'green', width: 42, height: 42 }} debug /> <Flex column de...
src/components/organizations/organization-details.js
FranckCo/Operation-Explorer
import React from 'react'; import ReactTooltip from 'react-tooltip'; import { sparqlConnect } from 'sparql-connect'; import OrganizationHierarchy from './organization-hierarchy'; import Spinner from 'components/shared/spinner' import D from 'i18n' /** * Builds the query that retrieves the details on a given organiza...
admin/client/App/components/Navigation/Secondary/NavItem.js
webteckie/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
src/index.js
addi90/redux-todo
import injectTapEventPlugin from 'react-tap-event-plugin'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import todoReducer from './reducers'; import App from './components/App'; let store = createStore(todoReducer); rende...
app/javascript/mastodon/components/load_pending.js
danhunsaker/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadPending extends React.PureComponent { static propTypes = { onClick: PropTypes.func, count: PropTypes.number, } render() { const { count } = this.props; return ...
src/svg-icons/image/music-note.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote = pure(ImageMusicNote); ImageM...
frontend/views/Bukikurabe.react.js
ryym/bukikurabe
import React from 'react'; import WeaponList from './WeaponList'; import ComparedWeapon from './ComparedWeapon'; import SpecComparison from './SpecComparison'; import connectWithReader from '../connect-with-reader'; import { actions } from '../actions'; import { bindMethodContext } from './util'; const { GLANCE_AT_W...
client/Main/Main.js
PicDrop/PicDrop
import React from 'react'; import { connect } from 'react-redux'; import Navbar from './Navbar/Navbar'; import axios from 'axios'; import userPicsActions from '../actions/userPicsActions'; import tagsActions from '../actions/tagsActions'; import foldersActions from '../actions/foldersActions'; import profileActions fro...
app/src/components/UserCard.js
alpcanaydin/github-stats-for-turkey
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import './UserCard.css'; const UserCard = ({ user, index }) => ( <div className="card UserCard"> <div className="card-content"> <div className="media"> <div className="media-left"> <fi...
app/javascript/mastodon/features/picture_in_picture/components/footer.js
cobodo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import classNames from 'classna...
app/components/message.js
escalant3/react-for-humans
import React from 'react'; class Message extends React.Component { render() { return <h3>Message {this.props.params.id}</h3> } } export default Message
src/smart/common/VATPayerToggle.js
jeckhummer/ebidding-commercial
import React from 'react'; import {Checkbox} from 'semantic-ui-react'; import {connect} from "react-redux"; import {toggleIsVATPayer} from "../../actions"; let VATPayerToggle = (props) => { return ( <Checkbox label="I am VAT payer" {...props} /> ); }; function mapStateT...
src/svg-icons/image/exposure-zero.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureZero = (props) => ( <SvgIcon {...props}> <path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44...
pkg/users/expiration-dialogs.js
cockpit-project/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
barakmitz/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
src/components/Chat/NotificationMessages/NowPlayingMessage.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Divider from '@mui/material/Divider'; import MessageTimestamp from '../MessageTimestamp'; function NowPlayingMessage({ entry, timestamp }) { return ( <div className="NowPlayingMessage"> <Divider> {entry.artist} – {entry.title} ...
src/components/ag-large/index.js
AvaKathrynShaw/My-React-Material-Dashboard
'use strict'; import ReactDOM from 'react-dom'; import React from 'react'; import LargeGrid from './largeGrid.jsx'; // is there a better way of doing this? import 'ag-grid-root/dist/styles/ag-grid.css'; import 'ag-grid-root/dist/styles/theme-fresh.css'; // waiting for dom to load before booting react. we could alte...
app/javascript/mastodon/features/status/components/detailed_status.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...