path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/clients/next/components/dropzone.js
garbin/koapp
import React from 'react' import Dropzone from 'react-dropzone' import { connect } from 'react-redux' import { api } from '../redux/actions' export default function dropzone (options) { const { onSuccess = console.log, onError = console.error, mapStateToProps = state => ({api: state.api}), keyName = ...
src/svg-icons/notification/wc.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWc = (props) => ( <SvgIcon {...props}> <path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6...
src/client/story_box.js
2braincells2go/hacker-menu
import React from 'react' import _ from 'lodash' import Client from 'electron-rpc/client' import StoryList from './story_list.js' import Spinner from './spinner.js' import Menu from './menu.js' import StoryType from '../model/story_type' export default class StoryBox extends React.Component { constructor (props) { ...
src/parser/druid/restoration/modules/talents/Flourish.js
fyruna/WoWAnalyzer
import React from 'react'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/others/StatisticBox'; import { formatPercentage, formatNumber } from 'common/format'; import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing'; import SpellIcon from 'comm...
app/jsx/gradebook-history/SearchForm.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
examples/with-apollo-and-redux-saga/components/PostVoteDown.js
BlancheXu/test
import React from 'react' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import PostVoteButton from './PostVoteButton' function PostVoteDown ({ downvote, votes, id }) { return ( <PostVoteButton id={id} votes={votes} className='downvote' onClickHandler={() => downvote...
packages/react-devtools-shared/src/devtools/views/Components/HocBadges.js
rricard/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import { ElementTypeForwardRef, ElementTypeMemo, } from 'react-devtools-shared/src/type...
src/svg-icons/image/filter-tilt-shift.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
exercise-07/src/components/PokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { propType } from 'graphql-anywhere' import gql from 'graphql-tag' import { graphql } from 'react-apollo' import styled from 'styled-components' const Button = styled.div` background-color: ${props => props.save ? '#2BC3A1' : ''}; color: ${props => props.save ? 'white' : props.dele...
examples/basic/src/components/RandomButton/RandomButton.js
sapegin/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import './RandomButton.css'; /** * Button that changes label on every click. */ // eslint-disable-next-line import/prefer-default-export export class RandomButton extends Component { static propTypes =...
packages/core/admin/admin/src/content-manager/components/DynamicComponentCard/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import Wrapper from './Wrapper'; const DynamicComponentCard = ({ children, componentUid, friendlyName, icon, onClick }) => { return ( <Wrapper onClick={e => { e.preventDe...
frontend/src/Settings/Quality/Definition/QualityDefinition.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ReactSlider from 'react-slider'; import NumberInput from 'Components/Form/NumberInput'; import TextInput from 'Components/Form/TextInput'; import Label from 'Components/Label'; import Popover from 'Components/Tooltip/Popover'; import {...
src/pages/resume.js
evanfrawley/evanfrawley.github.io
import React from 'react' const Resume = () => ( <div> <p>My resume can be found <a href="/Frawley_Resume.pdf" target="_blank">here</a>.</p> </div> ) export default Resume
src/svg-icons/image/crop-16-9.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
docs/app/components/preview/index.js
VACO-GitHub/vaco-components-library
/*eslint-disable no-eval*/ import React from 'react'; import ReactDOM from 'react-dom'; import { ThemeProvider } from 'react-css-themr'; import { transform } from 'babel-standalone'; import * as ReactToolbox from 'react-toolbox'; import theme from '../../theme/theme.js'; import style from './style'; const ERROR_TIMEOU...
src/svg-icons/action/settings-input-composite.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
src/svg-icons/action/view-week.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
dashboard-ui/app/components/queue/ACL.js
CloudBoost/cloudboost
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, Button } from 'react-bootstrap'; import { updateQueue } from '../../actions'; import { connect } from 'react-redux'; import ACLRows from './aclRows.js'; export class ACL extends React.Component { static propTypes = { selectedQueue: Pr...
react/features/prejoin/components/DropdownButton.js
gpolitis/jitsi-meet
// @flow import { withStyles } from '@material-ui/styles'; import React from 'react'; import { Icon } from '../../base/icons'; type Props = { /** * The css classes generated from theme. */ classes: Object, /** * Attribute used in automated testing. */ dataTestId: string, /*...
src/svg-icons/image/brightness-2.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness2 = (props) => ( <SvgIcon {...props}> <path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/> </SvgIcon> ); I...
src/components/quiz/QuizPage.js
zulis/react-quiz-demo
import React from 'react'; import Question from './Question'; import * as ApiCtrl from '../../controllers/ApiController'; class QuizPage extends React.Component { constructor(props) { super(props); this.state = { quiz: {}, userAnswers: [], step: 0 }; ...
src/fields/DatePicker/index.js
cantonjs/re-admin
import React from 'react'; import PropTypes from 'prop-types'; import { DatePicker } from 'components/Form'; import field from 'hocs/field'; import moment from 'moment'; import { isString, isObject, isFunction } from 'utils/fp'; import renderDate from 'utils/renderDate'; const buildInDefaultProps = { inputFilter(val)...
src/components/Navbar.js
emjayoh/nsii
import React from 'react' import { Link } from 'gatsby' import github from '../img/github-icon.svg' import logo from '../img/logo.svg' const Navbar = class extends React.Component { componentDidMount() { // Get all "navbar-burger" elements const $navbarBurgers = Array.prototype.slice.call(document.querySelec...
examples/official-storybook/stories/addon-queryparams.stories.js
kadirahq/react-storybook
import { document } from 'global'; import React from 'react'; export default { title: 'Addons/QueryParams', parameters: { query: { mock: true, }, }, }; export const MockIsTrue = () => ( <div>This story should have an extra url query param: {document.location.search}</div> ); MockIsTrue.storyNa...
src/components/Weui/mediabox/mediabox_desc.js
ynu/ecard-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class MediaBoxDescription extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ weui_media_desc: true }, cl...
packages/material-ui-icons/src/WbIncandescent.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let WbIncandescent = props => <SvgIcon {...props}> <path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.69 ...
stories/Emoji/CustomEmojiEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createEmojiPlugin from 'draft-js-emoji-plugin'; import editorStyles from './editorStyles.css'; const emojiPlugin = createEmojiPlugin({ useNativeArt: true }); const { EmojiSuggestions, EmojiSe...
src/main/internal/adaption/react/Boundary.js
mcjazzyfunky/js-surface
// external imports import React from 'react' // --- Boundary ----------------------------------------------------- class Boundary extends React.Component { componentDidCatch(error, info) { if (this.props.fallback) { this.props.fallback(error, info) } } render() { return this.props.children ...
src/app.js
VahanAper/checkin
import React, { Component } from 'react'; import { geolocated } from 'react-geolocated'; import { Header, CheckinMap, CheckinButton, CheckinList, Modal, CheckinReduxForm as CheckinForm } from './components'; class App extends Component { renderGeolocation() { const { coords } = this.props; if (!t...
src/dataTypes/Null.js
mrose/react-dump
import React from 'react'; import { Row, Table } from '../format'; export const Null = ( props ) => { const opts = props.opts || { expand:true , format:'html' , label:'Null' } let { label, expand } = opts return ( <T...
gitweb/public/js/routes.js
alanctgardner/gitweb
import React from 'react'; import Router from 'react-router'; var { Route, RouteHandler } = Router; import { GithubPanel } from 'components/github-panel'; import { RepoPanel } from 'components/repo-panel'; import authStore from 'stores/auth-store'; var TopNav = React.createClass({ renderLoggedOut() { return ( ...
demo/app/screens/login/LoginScreen.js
braveliuchina/pig-react-native
import React, { Component } from 'react'; import { ToolbarAndroid, AppRegistry, StyleSheet, Text, ScrollView, View, Image, TextInput, TouchableOpacity } from 'react-native'; import Cookie from 'react-native-cookie'; import {Images, LoginStyles} from '../../resource/'; import {EditView, LoginButton, Ne...
src/js/components/Carousel.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from './Box'; import Tiles from './Tiles'; import Tile from './Tile'; import Button from './Button'; import PreviousIcon fro...
src/containers/App/App.js
hirzanalhakim/testKumparan
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { IndexLink } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'react-bootstrap/lib/Nav'; import NavIte...
src/svg-icons/notification/disc-full.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDiscFull = (props) => ( <SvgIcon {...props}> <path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> ...
src/svg-icons/image/exposure-plus-1.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus1 = (props) => ( <SvgIcon {...props}> <path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/> </SvgIcon> ); ImageExposurePlus1 = pure(ImageExposurePlus1); ImageEx...
screens/CompanyProfileScreen/CompanyProfile.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import PropTypes from 'prop-types' import { Colors } from 'constants' import { object } from 'utilities' import { Video } from '@components' const styles = StyleSheet.create( { container: { backgroundColor: '#fff', flexDirection...
frontend/src/Settings/Indexers/Indexers/AddIndexerModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBo...
src/components/LoginFormComponent.js
loehnertz/HSRMMedialabTimetableApp
import React, { Component } from 'react'; import { Text, View, ScrollView, TouchableOpacity, ActivityIndicator, Linking, AsyncStorage, Platform } from 'react-native'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import * as Keychain from 'rea...
src/components/Starred/Styles.js
BastienAlvez/ReactNativeHue
import React from 'react'; import { StyleSheet, } from 'react-native'; var styles = StyleSheet.create({ }); module.exports = styles;
src/components/navbar.js
icartusacrimea/portfolio_reactredux
import React, { Component } from 'react'; class Navbar extends Component { constructor(props) { super(props); this.changeView2 = this.changeView2.bind(this); } changeView2(e) { e.preventDefault(); console.log(e.target.value); this.props.showSection(e.target.value); } render() { return ( <nav class...
app/javascript/mastodon/features/video/index.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
examples/universal/client/index.js
bkniffler/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
v0.0.1/app/footer.js
reactjs-id/reactjs-id.github.io
import React from 'react'; import axios from 'axios'; class Footer extends React.Component { render() { return ( <footer className="footer" id="join-us"> <div className="content" style={{paddingTop: 0}}> <div className=""> <p style={{p...
src/common/MyDialog.js
IACJ/react-datastructer
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import '../common/common.css'; /** * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatBut...
src/components/Home.js
juanesarango/github-battle
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Home extends Component { render() { return ( <div className="home-container"> <h1>Github Battle: Battle your friends... and stuff.</h1> <Link className="button" to="/battle"> Battle </...
Console/app/node_modules/antd/es/anchor/Anchor.js
RisenEsports/RisenEsports.github.io
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import ReactDOM f...
src/components/statusLabel/statusLabel.stories.js
teamleadercrm/teamleader-ui
import React from 'react'; import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils'; import StatusLabel from './StatusLabel'; export default { component: StatusLabel, title: addStoryInGroup(LOW_LEVEL_BLOCKS, 'Status Label'), parameters: { design: { type: 'figma', url: 'https...
src/components/Projects/ProjectsPage.js
liutongchen/liutong-chen-website
import React from 'react'; import personalInfo from '../../../src/info'; import {Row, Col} from 'react-bootstrap'; import ProjectComponents from './projectComponents'; import ScrollToTopOnMount from '../commons/ScrollToTopOnMount'; class ProjectsPage extends React.Component { render() { return ( ...
src/_core/index.js
asidiali/pivotal.press
import { HomeView, Layout, ProjectStoriesView, ProjectsView, } from '../views'; import { Route, Router, hashHistory, } from 'react-router'; import App from './app'; import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import ls from 'local-storage'; import {render} ...
presentation/slides/redux.js
tdmckinn/react-es-presentation
import React from 'react'; import { Heading, Slide, Text, Layout, Fill, List, ListItem } from 'spectacle'; const images = { reduxLogo: require('../../assets/images/redux.svg'), reduxFlow: require('../../assets/images/reduxFlow.jpg') }; const purple = '#764ABC'; const ReduxSlides = [ <Slide transition={...
public/components/wz-menu/wz-menu-management.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for registering agents. * Copyright (C) 2015-2022 Wazuh, Inc. * * 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 2 of the License, or * (at ...
src/components/App.js
henrikra/reactive-movies
import React, { Component } from 'react'; import $ from 'jquery'; import SearchBar from './SearchBar'; import MovieList from './MovieList'; import InfiniteScroll from './InfiniteScroll'; import ResultsHeader from './ResultsHeader'; import {apiKey} from '../apiKey'; require('../styles/style.scss'); export default cla...
src/route/enduser/UserList.js
simors/yjbAdmin
import React from 'react'; import {connect} from 'react-redux'; import {Table, Popconfirm, message} from 'antd'; import moment from 'moment'; import {action, selector} from './redux'; import {action as authAction, selector as authSelector, AUTH_USER_STATUS} from '../../util/auth/'; class UserList extends React.Compone...
app/javascript/mastodon/features/notifications/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
client/modules/core/routes.js
LikeJasper/mantra-plus
import React from 'react'; import { mount } from 'react-mounter'; import MainLayout from './containers/main_layout'; import PostList from './containers/postlist'; import Post from './containers/post'; import NewPost from './containers/newpost'; export default function (injectDeps, { FlowRouter }) { const MainLayout...
ignite/DevScreens/PluginExamplesScreen.js
littletimo/beer-counter
// Fair Warning: PluginExamples has a good bit of Ignite automation in editing. // Though robust, if you should modify this file, review your changes with us // As to not break the automated addition/subtractions. import React from 'react' import { View, ScrollView, Text, TouchableOpacity, Image } from 'react-native' ...
app/javascript/mastodon/components/poll.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
app/components/activities/TagsCard.js
cmilfont/zonaextrema
import React from 'react'; export default function TagsCard( {description=''} ) { const createTag = (tag, index) => tag.length? <a key={ `tag${index}` }>{tag.trim()}</a> : ''; const list = description.split(' ') .map( createTag ); return ( <div className="mdl-cell--hide-phone ta...
src/features/tab-view/favorites/index.js
rldona/react-native-tab-view-seed
import React, { Component } from 'react'; import { ScrollView, StyleSheet, Text, View } from 'react-native'; import * as firebase from 'firebase'; import * as colors from '../../../common/colors'; import * as themoviedb from '../../../services/movies-service'; import * as userService from '../../../services/u...
src/routes/dashboard/components/sales.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import styles from './sales.less' import classnames from 'classnames' import { color } from '../../../utils' import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Sales ({ data }) { return ( ...
src/client/components/set-name.js
caseywebdev/bruteball
import React from 'react'; import store from '../utils/store'; const handleKeyDown = ({key, target: {value: name}}) => { if (key === 'Enter') store.run({query: ['updateUser!', {name}]}); }; export default () => <input defaultValue={store.get(['user', 'name'])} onKeyDown={handleKeyDown} />;
client/index.js
KCPSoftware/KCPS-React-Starterkit
/* eslint-disable global-require */ import React from 'react'; import { render } from 'react-dom'; import BrowserRouter from 'react-router-dom/BrowserRouter'; import asyncBootstrapper from 'react-async-bootstrapper'; import { AsyncComponentProvider } from 'react-async-component'; import configureStore from '../shared/...
js/App/Components/TabViews/SubViews/GenericDashboardTile.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/app/core/atoms/icon/icons/settings.js
blowsys/reservo
import React from 'react'; const Settings = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><path d="M12.327,6.346h-0.825c-0.114-0.685-0.382-1.317-0.769-1.859l0.583-0.583c0.17-0.17,0.17-0.445,0-0.615 l-0.432-0.432c-0.17-0.17-0.445-0.17-0.615,0L9.686,3.44C9.144,3.052,8.512,2.785,7.827,2.671V1.846c...
src/js/index.js
grommet/next-sample
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const element = document.getElementById('content'); ReactDOM.render(<App />, element); document.body.classList.remove('loading');
src/svg-icons/image/looks-one.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
node_modules/redux-devtools-log-monitor/src/LogMonitorButton.js
HasanSa/hackathon
import React from 'react'; import brighten from './brighten'; import shouldPureComponentUpdate from 'react-pure-render/function'; const styles = { base: { cursor: 'pointer', fontWeight: 'bold', borderRadius: 3, padding: 4, marginLeft: 3, marginRight: 3, marginTop: 5, marginBottom: 5, ...
src/views/Feed/FeedContent.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthand, customPropTypes, getElementType, getUnhandledProps, } from '../../lib' import FeedDate from './FeedDate' import FeedExtra from './FeedExtra' import FeedMeta from './FeedMeta' import Fee...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
src/parser/druid/feral/modules/talents/SavageRoarUptime.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';...
src/browser/main.js
vacuumlabs/este
import React from 'react'; import ReactDOM from 'react-dom'; import configureReporting from '../common/configureReporting'; import configureStore from '../common/configureStore'; import createEngine from 'redux-storage-engine-localstorage'; import createRoutes from './createRoutes'; import { Provider } from 'react-redu...
client/templateComponent.js
mordrax/cotwmtor
import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import * as actions from '/actions/index.js'; import * as cotw from '/core/cotwContent.js'; export const ComponentName = ({}) => ( <div className="ComponentName-component"> </div> ); ComponentName.PropTypes = { //React.Pr...
client/me/notification-settings/controller.js
allendav/wp-calypso
/** * External dependencies */ import React from 'react'; /** * Internal dependencies */ import analytics from 'analytics'; import i18n from 'lib/mixins/i18n'; import userSettings from 'lib/user-settings'; import titleActions from 'lib/screen-title/actions'; import { renderWithReduxStore } from 'lib/react-helpers'...
src/parser/druid/balance/modules/talents/azeritetraits/DawningSun.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import AzeritePowerStatistic from 'interface/statis...
techCurriculum/ui/solutions/2.6/src/components/Card.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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...
examples/custom-validation/app.js
sdemjanenko/formsy-react
import React from 'react'; import ReactDOM from 'react-dom'; import Formsy from 'formsy-react'; import MyInput from './../components/Input'; const currentYear = new Date().getFullYear(); const validators = { time: { regexp: /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/, message: 'Not valid ...
src/apps/storefront/src/components/product/index.js
Kevnz/shopkeep
import React from 'react'; class ProductCard extends React.Component { render() { const { product } = this.props; return ( <div className="card" style={{display: 'inline-block'}}> <img src={product.images[0].thumbnail} alt="" className="section media" /> <d...
frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import FileBrowserModal from 'Components/FileBrowser/FileBrowserModal'; import Icon from 'Components/Icon'; import Button from 'Components/Link/Button'; import ...
app/pages/serviceDetailPage.js
shiyunjie/scs
/** * Created by shiyunjie on 16/12/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Platform, TouchableOpacity, ScrollView, TextInput, Linking, NativeAppEventEmitter, Alert, } from 'react-native'; import UploadPage from './uploadPage' import L...
examples/enzyme/CheckboxWithLabel.js
bookman25/jest
// Copyright 2004-present Facebook. All Rights Reserved. import React from 'react'; export default class CheckboxWithLabel extends React.Component { state = { isChecked: false, }; onChange = () => { this.setState({isChecked: !this.state.isChecked}); }; render() { return ( <label> ...
test/js/release_test/ViroPivotTest.js
viromedia/viro
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroSceneNavigator, ViroScene, ViroBox, ViroMaterials, ViroNode, ViroOrbitCamera, Vi...
test/test_helper.js
laniywh/game-of-life
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/index.js
kkrizka/bex
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
packages/react-error-overlay/src/components/NavigationBar.js
christiantinauer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red, redTransparent } from '../styles'; const navigationBarStyle = { marginBottom: '0...
react/src/Monitor.js
gschrader/ratpack-react-boilerplate
import React from 'react'; import {Card, Col, ProgressBar, Row} from 'react-bootstrap'; import Countdown from 'countdown'; import bytes from 'bytes'; import {useWs} from "./hooks"; const Item = props => ( <Row> <Col md={4}> <strong>{props.label}</strong> </Col> <Col md={8}> ...
components/Home/Imprint.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import StaticPage from './StaticPage'; import {FormattedMessage, defineMessages} from 'react-intl'; import setDocumentTitle from '../../actions/setDocumentTitle'; class Imprint extends React.Component { componentDidMount() { this.context.execu...
src/components/Login/map.js
ascrutae/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/routes/notFound/NotFound.js
cineindustria/site
/** * 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 PropTypes from 'prop-...
webapp/components/PortalPopover/Tooltip.js
raksuns/universal-iraks
import React from 'react'; import Portal from './ReactPortal'; import PositionProvider from './PositionProvider'; import { SIZE, FOREGROUND, BORDER_COLOUR, POSITION, BORDER_WIDTH, USE_FOREGROUND, CLASS_BASE, DEFAULT_ARROW_MARGIN, } from './constants'; const ToolTip = (props) => { const defaults = { classB...
src/modules/textNodes/layouts/TextNodesLayout/TextNodesEditorLayout.js
CtrHellenicStudies/Commentary
import React from 'react'; import Cookies from 'js-cookie'; import PropTypes from 'prop-types'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; // components import Header from '../../../../components/navigation/Header'; import TextNodesEdi...
presentation/examples/fragments/example.js
lemieux/smooch-react-talk
import React, { Component } from 'react'; export class FragmentsExample extends Component { render() { const items = ['item 1', 'item 2', 'item 3']; const fragment = items.map((item, index) => { return <li key={ index }> { item } </li>; }); return ( <ul style...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch06/06_05/start/src/index.js
yevheniyc/Autodidact
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import './stylesheets/index.scss' import { App } from './components/App' import { Whoops404 } from './components/Whoops404' import { Router, Route, hashHistory } from 'react-router' window.React = React render( <Router histor...
pages/_document.js
dawnlabs/carbon
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' export default class extends Document { render() { return ( <React.StrictMode> <html lang="en"> <Head /> <body> <Main /> <NextScript /> </body> </...
app/features/contact/InputField.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Block, Label, Input, Note, ValidationMessage } from './styles'; const InputField = ({ input, meta, label, placeholder, note }) => ( <Block> <Label htmlFor={input.name}> <span>{label || input.name}</span> <Input id={input.name} t...
src/client.js
FamilyPlanerTeam/family-planner
/** * 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 ReactDOM from 'react-...
packages/es-components/src/components/controls/radio-buttons/RadioGroup.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import { noop } from 'lodash'; function RadioGroup({ name, disableAllOptions, selectedValue, children, onChange, ...rest }) { return React.Children.map(children, (child, index) => { const key = `${name}-option-${index + 1}`; const dis...
src/Parser/ElementalShaman/CONFIG.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPECS from 'common/SPECS'; import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { spec: SPECS.ELEMENTAL_SHAMAN, maintainer: '@fasib', completeness: SPEC_A...
src/components/ui/WebviewLoader/index.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import injectSheet from 'react-jss'; import FullscreenLoader from '../FullscreenLoader'; import styles from './styles'; export default @observer @injectSheet(styles) class WebviewLoader extends Compon...
examples/forms-material-ui/src/components/forms-create-wizard-generic/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import config from './config'; export default createReactClass({ render: function() { return lore.forms.tweet.create(config); } });