path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/modules/Accordion/Variations/AccordionExampleExclusive.js
aabustamante/Semantic-UI-React
import _ from 'lodash' import faker from 'faker' import React from 'react' import { Accordion } from 'semantic-ui-react' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExampleExclusive = () => ( <Accordion panels={panels} exclusive={false}...
node_modules/react-bootstrap/es/CarouselCaption.js
C0deSamurai/muzjiks
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 ...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupBasicColored.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupBasicColored = () => ( <Button.Group> <Button basic color='red'>One</Button> <Button basic color='green'>Two</Button> <Button basic color='blue'>Three</Button> </Button.Group> ) export default ButtonExampleGro...
src/pages/reading/book.js
joefraley/ratticusscript
'use strict' import React from 'react' import { createMarkup } from '../../utilities' // Get a string of x many stars. export const numberToStars = number => Array.from('🌟'.repeat(number)).join('') /** * For more on the <details> and <summary> elements, * see: http://www.w3schools.com/tags/tag_summary.asp * * Fo...
src/svg-icons/device/sd-storage.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
dev/web/www/js/components/common/component/render-fields.js
zajacmarekcom/letswrite
import React from 'react' import {FormGroup, ControlLabel, FormControl, Checkbox, HelpBlock} from 'react-bootstrap' const FormInput = ({input, label, type, meta: {touched, error}}) => ( <FormGroup validationState={error ? "error" : null}> <ControlLabel>{label}</ControlLabel> <FormControl type={type...
src/components/styledHeader.js
davosolo/davosolo.github.io
import React from 'react' import Link from 'gatsby-link' import styled from 'styled-components' import hamburger from './../themes/noun_hamburger.svg' const HeaderContainer = styled.nav` /** Flexbox container */ display: flex; flex-direction: row; justify-content: space-between; /** Mobile first *...
react/features/participants-pane/components/web/ParticipantActionEllipsis.js
jitsi/jitsi-meet
// @flow import { makeStyles } from '@material-ui/styles'; import React from 'react'; import { QuickActionButton } from '../../../base/components'; import { Icon, IconHorizontalPoints } from '../../../base/icons'; type Props = { /** * Label used for accessibility. */ accessibilityLabel: string, ...
examples/listen/App.js
sskyy/redux-task
'use strict' import React from 'react' import {Message,Input, Indicator} from './components' const App = React.createClass({ render(){ return <div> <Input /> <Message /> <Indicator /> </div> } }) export default App
src/svg-icons/image/timer-off.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....
client/modules/App/__tests__/Components/Header.spec.js
caleb272/PollIt
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
data/event.js
uclaacm/website
/* eslint-disable jsx-a11y/accessible-emoji */ /* eslint-disable max-len */ import React from 'react'; const events = [{ id: 1, title: 'CS Welcome Day', allDay: false, start: new Date(2021, 8, 21, 16), end: new Date(2021, 8, 21, 17, 30), location: 'Engineering IV Patio', description: 'Come...
packages/cf-component-radio/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { Radio, RadioUnstyled, RadioTheme, RadioGroup } from '../../src/index'; import { applyTheme } from 'cf-style-container'; const RadioGroupItem = applyTheme(RadioUnstyled, RadioTheme, () => ({ cursor: 'initial' })); class RadioComponent extends React.Component { constructor(props)...
lib/ui/src/modules/ui/components/layout/index.js
rhalff/storybook
import { localStorage, window } from 'global'; import PropTypes from 'prop-types'; import React from 'react'; import SplitPane from 'react-split-pane'; import throttle from 'lodash.throttle'; import USplit from './usplit'; import Dimensions from './dimensions'; const rootStyle = { height: '100vh', backgroundColor...
packages/shared/forks/Scheduler.umd.js
TheBlasfem/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'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
blueocean-material-icons/src/js/components/svg-icons/av/subtitles.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvSubtitles = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/> </SvgIcon> ); AvSubtitles.displayName = 'A...
clients/libs/webpage/src/lib/ux/tell-a-friend-base/whatsapp-share-button.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' import classnames from 'classnames' import { isMobile } from 'react-device-detect' const WhatsAppShareButton = ({ whatsappText }) => { const baseUrl = isMobile ? 'whatsapp://' : 'https://api.whatsapp.com/' r...
node_modules/antd/es/table/util.js
prodigalyijun/demo-by-antd
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import React from 'react'; import assign from 'object-assign'; import ColumnGroup from './ColumnGroup'; export function flatArray() { var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var childrenName = ar...
src/WebRoot/Scripts/components/App.js
Techbot/RockPaperScissorsReactRedux
// React component import React from 'react'; import Player from './Player.js'; import Machine from './Machine.js'; // React component var Counter = React.createClass( { render(){ const { value, value2, totalScore, machine_rocks, machine_papers, ...
node_modules/react-bootstrap/es/CarouselItem.js
skinsshark/skinsshark.github.io
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/contact/Contact.js
quyetvv/react-starter-kit
/** * 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-...
node_modules/react-bootstrap/es/Jumbotron.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/components/dropdown/Dropdown.js
ipfs-shipyard/peerpad
import React from 'react' import PropTypes from 'prop-types' import Overlay from './Overlay' import Menu from './Menu' /* * Dropdown & DropdownMenu * * Usage: * <Dropdown> * <button onClick={() => this.setState({open: true})}>Fire!</button> * <DropdownMenu width={200} open={this.state.open}> * <d...
src/svg-icons/device/gps-off.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
pootle/static/js/shared/components/FormValueInput.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import AutosizeTextarea from '...
docs/src/sections/NavbarSection.js
HPate-Riptide/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function NavbarSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <An...
examples/js/advance/demo.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import EditTypeTable from './edit-type-table'; import DataInsertTypeTable from './insert-type-table'; import AutoRowKeyTable from './auto-rowkey-table'; import ValidatorTable from './validator-table'; import HideOnInsertTable from './hide-on-insert-table'; import Disab...
client2/src/components/Video/components/video_detail.js
ibulmer/Board
import React, { Component } from 'react'; import Youtube from 'react-youtube'; export default class VideoDetail extends Component { constructor(props){ super(props) this.state={ player: null } this.setPlayer = this.setPlayer.bind(this); this.sendPlayData = this.sendPlayData.bind(this); this.playVideo =...
components/form/Input.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import FormElement from './FormElement'; class Input extends FormElement { /** * UI EVENTS * - triggerChange */ triggerChange(e) { this.setState({ value: e.currentTarget.value }, () => { // Trigger validation this.triggerValida...
.archive-react/client/index.js
KyleKing/PiAlarm
import './styles/index.css' import App from './App' import React from 'react' import ReactDOM from 'react-dom' ReactDOM.render( <App />, document.getElementById( 'root' ) ) // import Alarms from './Alarms' // import Auth from './Auth' // Auth( 'SecretPass' ).then( () => { // ReactDOM.render( <Alarms />, document.get...
local-cli/templates/HelloNavigation/components/ListItem.js
adamjmcgrath/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
pkg/interface/groups/src/js/components/lib/welcome.js
jfranklin9000/urbit
import React, { Component } from 'react'; export class Welcome extends Component { constructor() { super(); this.state = { show: true } this.disableWelcome = this.disableWelcome.bind(this); } disableWelcome() { this.setState({ show: false }); localStorage.setItem("urbit-groups:was...
src/components/Booking/controls/DateRange.js
friasdesign/hotel-app--front-end
import React from 'react' import InputText from './InputText' import {required, dateFormatIsValid} from '../validators' // TODO: Try with react-datepicker const DateRange = (props) => { return( <div className="w-100 ma0 flex justify-between"> <InputText {...props.check_in} inputId={props....
docs/src/pages/components/slider/DiscreteSlider.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; const useStyles = makeStyles({ root: { width: 300, }, }); function valuetext(value) { return `${value}°C`; } export default...
src/NavLink.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]), disabled: PropTypes.bool, active...
time-app/src/DiceRoller.js
jongsoojong/timelement
import React, { Component } from 'react'; class DiceRoller extends Component{ constructor (props){ super(props); this.state = {rollResult : 0} } d20 () { var d20Result = Math.floor(Math.random() * 20+1); this.setState({rollResult : d20Result}); }; d12 () { var d12Result = Math.floor(Math.random() * 12+1...
src/main.js
modernserf/hashtags-for-humans
import 'babel/polyfill'; import 'whatwg-fetch'; import 'css/reset.css'; import 'css/style.css'; import {data as rawData, tags} from 'make-data'; import React from 'react'; import Main from 'views/Main'; class GameBoard { constructor (params) { this.people = params.people; this.width = params.widt...
src/components/common/requireAuth.js
AleksandrRogachev94/chat-vote-go-frontend
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { browserHistory } from 'react-router' import { addFlashMessage } from '../../actions/flashMessages' import { getIsAuthenticated } from '../../reducers/index' export default function(ComposedComponent) { class A...
src/component/homePage/component.js
Platane/january
import React from 'react' import style from './style.css' import { HorizontalPostList } from '../horizontalPostList' import { VerticalPostList } from '../verticalPostList' import type { Post as Post_type } from '../../../type' import { primaryTags } from '../../reducer/selectedTag' import { memoize } from '../../uti...
data-browser-ui/public/app/components/tableComponents/td/listComponents/dateTimeList.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import DatePicker from 'material-ui/DatePicker'; import TimePicker from 'material-ui/TimePicker'; class DateTimeListComponent extends React.Component { constructor(){ super() this.state = { } } deleteValue(){ this.props.removeFromElementData(t...
src/Button/FloatingButton.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; /** * Functional component for any floating action button * * @param props * @returns {ReactDOM} * @constructor */ const FloatingButton = props => { return ( <Button type={'floating'} {...props}> {props.chil...
src/svg-icons/image/dehaze.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageDehaze = (props) => ( <SvgIcon {...props}> <path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/> </SvgIcon> ); ImageDehaze = pure(ImageDehaze); ImageDehaze.displayName = 'ImageDehaze'; ImageDehaze...
src/svg-icons/device/dvr.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ...
src/applications/caregivers/definitions/UIDefinitions/veteranUI.js
department-of-veterans-affairs/vets-website
import React from 'react'; import { FacilityInfo, PleaseSelectVAFacility, } from 'applications/caregivers/components/AdditionalInfo'; import { createUSAStateLabels } from 'platform/forms-system/src/js/helpers'; import { states } from 'platform/forms/address'; import get from 'platform/utilities/data/get'; import {...
src/scenes/home/signup/signup.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import _ from 'lodash'; import PropTypes from 'prop-types'; import * as CookieHelpers from 'shared/utils/cookieHelper'; import Form from 'shared/components/form/form'; import FormEmail from 'shared/components/form/formEmail/formEmail'; import FormZipC...
src/forms/output/GraphHolder.js
knod/cliff-effects-1
import React, { Component } from 'react'; import { Message } from 'semantic-ui-react'; // CUSTOM COMPONENTS import { GraphTimeButtons } from './GraphTimeButtons'; /** Keeps track of time interval currently requested * (weekly/monthly/yearly) and, if needed, shows * 'no graph' message. */ class GraphHolde...
test/e2e/prerender/pages/blog/[post]/[comment].js
zeit/next.js
import React from 'react' import Link from 'next/link' export async function getStaticPaths() { return { paths: [ '/blog/post-1/comment-1', { params: { post: 'post-2', comment: 'comment-2' } }, ], fallback: true, } } export async function getStaticProps({ params }) { return { props: ...
src/containers/weather_list.js
neosepulveda/react-redux-weather-forecast
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const city = cityData.city; const list = cityData.list; const { lon...
node_modules/react-slick/src/mixins/helpers.js
maty21/statistisc
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { const slickList = ReactDOM.findDOMNode(this.list); var slideCount = Reac...
src/components/add_details.js
emertola/eform-findings-tool
import React, { Component } from 'react'; import _ from 'lodash'; import PropTypes from 'prop-types'; // import components import DisplayDetails from './display_details'; import AddFindings from './add_findings'; export default class AddDetails extends Component { constructor(props) { super(props); this.state ...
src/containers/Rush/index.js
bobrown101/phi-tau
import React from 'react'; // import {Link} from 'react-router'; // import Header from '../../components/Header.js'; import Section from '../../components/Section.js'; // import AngledDivider from './AngledDivider.js'; import CursiveHeader from '../../components/CursiveHeader.js'; // import CenteredContainer from '../....
apps/marketplace/components/Header/Mobile/CommonMobileLinks.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' const CommonMobileLinks = () => ( <React.Fragment> <div className="au-marketplace-header_mobile-link"> <a href="/2/opportunities">Opportunities</a> </div> <div className="au-marketplace-header_mobile-link"> <a href="/search/sellers">Seller Catalogue</a> </div> ...
src/components/ReplOutputString.js
antonyr/Mancy
import React from 'react'; import ReplConstants from '../constants/ReplConstants'; export default class ReplOutputString extends React.Component { constructor(props) { super(props); this.state = { collapse: true }; const str = this.props.str; let len = str.length; let limit = this.prop...
src/routes/Map/components/MapControls.js
hassaanz/MaterialDeFuel
import React from 'react' import PropTypes from 'prop-types' import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton' import Paper from 'material-ui/Paper' import { List, ListItem } from 'material-ui/List' import Subheader from 'material-ui/Subheader' import ContentSave from 'material-ui/svg-icons/conten...
src/components/Icons/index.js
marlass/marlass.github.io
import React from 'react' const Icons = props => ( <React.Fragment> {props.dribbble && ( <a className="footer-icon" href={`https://dribbble.com/${props.dribbble}`} > <i className="svg-icon dribbble"></i> </a> )} {props.email && ( <a className="footer-icon" ...
src/components/App.js
CurtisMBSmith/web-frontend-proto
import React from 'react'; import TaskBox from '../containers/TaskBox'; import TaskForm from '../containers/TaskForm'; import UserBox from '../containers/UserBox'; import SideBar from '../containers/SideBar'; import { createTask } from '../actions'; const App = (logged_in) => { return ( <div> <SideBar /> <...
src/components/common/Modals.js
cherishstand/dva-quickstart
import React from 'react'; import { Modal, Button } from 'antd-mobile'; const Alert = Modal.alert; const Modals = ({ children }) => { return ( <div onClick={ () => Alert('保存', '确认保存当前操作???', [ { text: '取消' }, { text: '确认', style: { fontWeight: 'bold' } }, ]) }>{children}</di...
src/svg-icons/hardware/toys.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2...
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet4Bar = (props) => ( <SvgIcon {...props}> <path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoInternet4Bar = pur...
web/static/js/components/preview_button.js
bittersweet/notifilter
import React from 'react'; var PreviewButton = React.createClass({ togglePreview: function(event) { event.preventDefault(); const { isPreviewing, actions } = this.props; if (isPreviewing) { actions.updatePreviewing(false); } else { actions.getPreview(); } }, decrementOffset: fun...
components/ripple/Ripple.js
KerenChandran/react-toolbox
import React from 'react'; import ReactDOM from 'react-dom'; import ClassNames from 'classnames'; import style from './style'; import events from '../utils/events'; import prefixer from '../utils/prefixer'; const defaults = { centered: false, className: '', spread: 2 }; const Ripple = (options = {}) => { cons...
src/components/laravel/plain-wordmark/LaravelPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './LaravelPlainWordmark.svg' /** LaravelPlainWordmark */ function LaravelPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Laravel...
examples/huge-apps/routes/Grades/components/Grades.js
mozillo/react-router
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
website/src/pages/versions.js
kassens/relay
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ /* eslint-disable lint/no-value-import */ import Link from '@docusaurus/Link'; import useDocusaurusContext from '@...
src/svg-icons/editor/format-bold.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatBold = (props) => ( <SvgIcon {...props}> <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1...
src/components/photoshop/Photoshop.js
JunisphereSystemsAG/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' import { ColorWrap, Saturation, Hue } from '../common' import PhotoshopFields from './PhotoshopFields' import PhotoshopPointerCircle from './PhotoshopPointerCircle' import Photo...
docs/app/Examples/views/Feed/Variations/SizeLarge.js
jamiehill/stardust
import React from 'react' import { Feed } from 'stardust' const { Content, Event, Extra, Label, Like, Meta, Summary, User } = Feed const SizeLarge = () => { return ( <Feed size='large'> <Event> <Label image='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> <Content> <Sum...
src/views/user-create.js
dreitagebart/crispyScrum
import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import { userCreate, notify } from '../actions' import { Icon, Upload, Modal, InputNumber, Form, Input, Button, Row, Col, Switch } from 'antd' import * as constants from '../constants' const FormItem = Form.Item @connect((store, pr...
src/routes/index.js
mikeyshing88/MUN
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import App from '../components/...
web/react360/src/components/locs/Hero/HeroLogo.js
JamesMillercus/Portfolio-Website
/*eslint max-len: ["error", { "code": 800 }]*/ import React from 'react'; import { connect } from 'react-redux'; import { StyleSheet, View, Image, asset, NativeModules, VrButton } from 'react-360'; import LoadingBar from './../LoadingBar/LoadingBar'; import { fetchHeroHover, fetchLoadingContent } from './....
modules/experimental/AsyncProps.js
besarthoxhaj/react-router
import React from 'react'; import invariant from 'invariant'; var { func, array, shape, object } = React.PropTypes; var contextTypes = { asyncProps: shape({ reloadComponent: func, propsArray: array, componentsArray: array }) }; var _serverPropsArray = null; function setServerPropsArray(array) { inv...
frontWeb/main/react/react-router/basic/dev/authExample.js
skycolor/study
import React from 'react' import { BrowserRouter as Router, Route, Link, Redirect, withRouter } from 'react-router-dom' //////////////////////////////////////////////////////////// // 1. Click the public page // 2. Click the protected page // 3. Log in // 4. Click the back button, note the URL each time con...
index.ios.js
Andrey11/golfmanager
'use strict'; import * as FirebaseKeys from './config/firebaseKeys'; import * as Firebase from 'firebase'; import * as NavBar from './src/navigation/navigationBar'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator, Image } from 'react-native'; import AuthControl from './src...
docs/src/app/DeviceList.js
mit-cml/iot-website-source
// -*- mode: javascript; js-indent-level: 2; -*- import React from 'react'; require('./table.css'); const deviceList = [ { title: 'Bluetooth low energy', img: 'assets/tutorials/bluetooth_logo.png', link: '#/bluetoothle/bluetoothleintro', description: 'Bluetooth Low Energy, also referred to as Blueto...
react/Icon/Icon.demo.js
seekinternational/seek-asia-style-guide
import React from 'react'; import Icon from './Icon'; import IconPack from './Icon.path'; import PropTypes from 'prop-types'; import * as sketch from './Icon.sketch'; import { PageBlock } from 'seek-asia-style-guide/react'; const IconContainer = ({ component: DemoComponent, componentProps }) => { return ( <PageB...
docs/src/NavMain.js
deerawan/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
src/components/HowItWorks/HowItWorks.js
moje-skoly/app-reloaded
import React, { Component } from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import './HowItWorks.less'; export default class HowItWorks extends Component { render() { return ( <div className="howItWorks"> <div className="white"> <div className="homepageSection"> ...
src/components/Empty/Empty.js
Landish/react-spectre-css
import React from 'react'; import { string } from 'prop-types'; import classNames from 'classnames'; import Icon from '../Icon/Icon'; const Empty = ({ icon, title, description, children, ...rest }) => { return ( <div className={classNames('empty')} {...rest}> {icon && <div className={classNames('em...
src/index.js
YehongYou/react-blog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; // BrowserBrouter object interact history lib. route is real core in react-router import promise from...
app/jsx/gradezilla/default_gradebook/components/SubmissionCommentListItem.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...
src/index.js
AmiableAnteater/wohnzimmerlicht
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/stories/index.js
ernestofreyreg/react-calendar-month
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Month from '../index'; import '../styles.css'; import './stories.css'; const STORY_WITH_STYLES = `// Styles .MyMonth { background-color: #ddd; color: black; } .MyMonth .Week .Day &gt; .Day__number { font-size: 20px; color: #aaa; bottom: 4...
src/components/auth/require_auth.js
donpinkus/boilerplate-single-server
import React, { Component } from 'react'; import { connect } from 'react-redux'; /* If the user is not authd, then it will redirect them to "/". If at anytime auth changes, they get redirected. */ export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { ...
src/scenes/home/resetPassword/resetPassword.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import Section from 'shared/components/section/section'; import SignUpLink from 'shared/components/signUpLink/signUpLink'; import RequestToken from './requestToken/requestToken'; import SetPassword from './setPassword/setPassword'; import styles from './resetPassword.css'; con...
public/js/components/comments/CommentList.react.js
MadushikaPerera/Coupley
import React from 'react'; import CommentAction from '../../actions/ActivityFeed/CommentAction'; import Comment from './Comment.react'; import CommentStore from '../../stores/CommentStore'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; var CommentList = React.cr...
lib/components/intro.js
tombenke/react-ui-archetype
import React from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import Header from './header'; var config = require('../../config.json'); class Intro extends React.Component { render() { return ( <div> <Head...
src/Resume/Experience.js
bogdanpetru/resume
import React from 'react'; import parseText from '../utils/parseText'; /** * TODO calculate duration */ const Experience = ({ company, startDate, endDate, summary }) => <div className="experience"> <header className="experience__header"> <h3> {company} </h3> <div className="expe...
src/lib/components/to-js.js
sgillespie/beer-math
import React from 'react'; import curry from 'ramda/src/curry'; import map from 'ramda/src/map'; import { Iterable } from 'immutable'; const toJs = curry((WrappedComponent, props) => { const propsJs = map( prop => (Iterable.isIterable(prop) ? prop.toJS() : prop), props); return ( <WrappedComponent {.....
client/components/menu/banks.js
jankeromnes/kresus
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { get } from '../../store'; import BankListItemComponent from './bank'; const BankListComponent = props => { let { currentAccessId, currentAccountId } = props; let banks = props.accesses.map(access => ...
src/components/Error.js
Nfinley/Showcase-Playlist-Generator
import React, { Component } from 'react'; /** * Our error page * Displays the error */ export default class Error extends Component { render() { // injected via react-router const { errorMsg } = this.props.params; return ( <div className="error"> <h2>Sorry An Error Occured Please go back...
React Native/Demos/MenuList/index.android.js
AngryLi/ResourceSummary
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class MenuList extends Component { render() { return ( <View style={styles.container}> <Text...
src/app/search/searchResults/searchResultsUtils.js
cityofasheville/simplicity2
import React from 'react'; import gql from 'graphql-tag'; import { IM_SHIELD3, IM_OFFICE, IM_ROAD, IM_USER, IM_USERS, IM_LOCATION, IM_HOME2, IM_QUESTION, IM_GOOGLE, IM_SEARCH } from '../../../shared/iconConstants'; import Icon from '../../../shared/Icon'; export const searchQuery = gql` query searchQuery($searchStr...
src/icons/Pricetag.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Pricetag extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M471,261.4L471,261.4C471,261.4,471,261.4,471,261.4L260.9,49.8c0,0,0,0,0,0l-1.5-1.5c0,0-0.4,0-0.4,0 c-8.3-7.9-17.9...
js/src/Requests/requests.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
cra-ua-aware-code-splitting/src/App.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
.storybook/config.js
Neitsch/ASE4156
import {configure} from '@storybook/react'; import {addDecorator} from '@storybook/react'; import {withKnobs, number, text,} from '@storybook/addon-knobs'; import React from 'react'; import i18nEn from '../web/i18n/en'; import {I18nextProvider} from 'react-i18next'; const i18nDecorator = children => <I18nextProvider i...
fields/types/password/PasswordFilter.js
sendyhalim/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
client/src/components/search/searchBar/NoHitsSuggestion.js
jonathanihm/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; const NoHitsSuggestion = ({ title }) => { return ( <div className={'no-hits-footer fcc_suggestion_item'} role='region'> <span className='hit-name'>{title}</span> </div> ); }; NoHitsSuggestion.propTypes = { handleMouseEnter: PropTypes.f...
Js/Skeleton/Components/Navigation/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; class Navigation extends Webiny.Ui.Component { constructor(props) { super(props); this.state = { user: null, highlight: null, display: window.outerWidth > 768 ? 'desktop' : 'mobile' ...
src/encoded/static/components/doc.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import url from 'url'; import { Panel, PanelHeading } from '../libs/ui/panel'; import { collapseIcon } from '../libs/svg-icons'; import { FetchedData, Param } from './fetched'; import * as globals from './globals'; import { Attac...