path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/WrappyText.js
dkozar/react-wrappy-text
import React, { Component } from 'react'; export default class WrappyText extends Component { constructor(props) { super(props); this.state = { currentText: '_' }; } componentDidMount() { this.shuffle(this.props); } componentWillUnmount() { cl...
app/react-icons/fa/phone-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPhoneSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.6 26.6q0-0.2-0.1-0.3 0-0.2-0.8-0.7t-2-1.1l-1.2-0.6q-0.1-0.1-0.4-0.3t...
src/js/components/Nav/stories/CustomThemed/CustomAnchor.js
grommet/grommet
import React from 'react'; import { Anchor, Box, Grommet, Main, Nav } from 'grommet'; import { grommet } from 'grommet/themes'; import { deepMerge } from 'grommet/utils'; const navItems = [ { label: 'HTML', href: '#' }, { label: 'JS', href: '#' }, { label: 'CSS', href: '#' }, { label: 'REACT', href: '#' }, ];...
app/components/layout/Settings/AvatarPhoto.js
communicode-source/communicode
import React from 'react'; import classNames from 'classnames'; import styles from './../../../assets/css/pages/settings.scss'; import PropTypes from 'prop-types'; import AvatarImageModal from './../../../containers/settings/AvatarImageModal'; class AvatarPhoto extends React.Component { constructor(props) { ...
js/src/components/MainComponent.js
scottdonaldson/voxcel
import React from 'react'; import ReactDOM from 'react-dom'; import ViewComponent from './ViewComponent'; import SceneComponent from './SceneComponent'; class Main extends React.Component { constructor() { super(); } render() { let styles = { width: '100%', height: '100%', overflowY: 'scroll' }; ...
commons/components/user/UserPoliciesKo.js
goominc/goommerce-react
// Copyright (C) 2016 Goom Inc. All rights reserved. import React from 'react'; export default React.createClass({ render() { return ( <div> <div> <p>주식회사 에이프릴(이하 "회사")은 회사가 제공하는 인터넷사이트(www.linkshops.com)(이하 "몰")를 이용하는 회원의 개인정보를 보호하기 위하여 정보통신망 이용촉진 및 정보보호 등에 관한 법률, 개인정보 보호법, 통신비밀보호법, 전기통...
benchmarks/dom-comparison/src/implementations/react-jss/Dot.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import injectSheet from 'react-jss'; import React from 'react'; const Dot = ({ classes, children }) => <div className={classes.root}>{children}</div>; const styles = { root: { position: 'absolute', cursor: 'pointer', width: 0, height: 0, borderColor: 'transp...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/components/Main.js
WPBLRUN/react-gallery
require('normalize.css/normalize.css'); require('styles/main.css'); import React from 'react'; import ReactDOM from 'react-dom'; const BROWSER_FIX = ['MozTransform', 'msTransform', 'WebkitTransform', 'transform']; //get image data var imageData = require('../data/imageData.json'); //generate image data imageData = (f...
src/Input.js
chrishoage/react-bootstrap
import React from 'react'; import InputBase from './InputBase'; import * as FormControls from './FormControls'; import deprecationWarning from './utils/deprecationWarning'; class Input extends InputBase { render() { if (this.props.type === 'static') { deprecationWarning('Input type=static', 'StaticText'); ...
blueprints/route/files/src/routes/__name__/components/__name__.js
patrickgordon/tanda-punctuality-work-sample
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
docs/src/app/components/pages/components/Popover/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import popoverReadmeText from './README'; import PopoverExampleSimple from './Ex...
src/svg-icons/image/tune.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTune = (props) => ( <SvgIcon {...props}> <path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"/> </SvgIcon> ); ImageTune = pure...
react-flux-mui/js/material-ui/src/svg-icons/social/pages.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPages = (props) => ( <SvgIcon {...props}> <path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/...
src/templates/blog-post.js
HugoReeves/tfr-blog
import React from 'react'; import Helmet from 'react-helmet'; import BackIcon from 'react-icons/lib/fa/chevron-left'; import ForwardIcon from 'react-icons/lib/fa/chevron-right'; import Link from '../components/Link'; import Tags from '../components/Tags'; import '../css/blog-post.css'; export default function Templa...
node_modules/react-bootstrap/es/DropdownButton.js
saltypaul/SnipTodo
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
packages/react-cache/src/ReactCache.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 warningWithoutStack from 'shared/warningWithoutStack'; import {createLRU} from './L...
test/client/components/Dome.spec.js
apologeticcookie/apologeticcookie
import React from 'react'; import ReactDOM from 'react-dom'; import { shallow } from 'enzyme'; import Dome from '../../../client/src/components/Dome'; import Image from '../../../client/src/components/Image'; import { expect } from 'chai'; // Guide for writing tests: https://github.com/airbnb/enzyme/blob/master/README...
src/components/youtube_search/video_list.js
dcporter44/tunefest-frontend
import React from 'react'; import VideoListItem from './video_list_item' const VideoList = ({videos, onVideoSelect}) => { const videoItems = videos.map((video) => { return <VideoListItem key={video.etag} video={video} onVideoSelect={onVideoSelect} /> }) return ( <ul className='list-group'> {videoI...
pootle/static/js/shared/components/FormValueInput.js
evernote/zing
/* * 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/app/Examples/collections/Menu/States/index.js
clemensw/stardust
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const States = () => { return ( <ExampleSection title='States'> <ComponentExample title='Hover' descriptio...
src/components/VmDetails/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { Alert, Card, CardBody } from 'patternfly-react' import { msg } from '_/intl' import styles from './style.css' import NavigationPrompt from 'react-router-navigation-prompt' import NavigationConfirmationModal from '../NavigationConfirmationModal' im...
modules/RouteContext.js
pjuke/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
docs/src/sections/ReferTableSection.js
tigerandgirl/ssc-refer
import React from 'react'; import PropTable from '../PropTable'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ReferTableSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/components/metadata/MetaField.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import MetaArray from './MetaArray'; import MetaObject from './MetaObject'; import MetaSimple from './MetaSimple'; import MetaButtons from './MetaButtons'; export class MetaField extends Component { ...
js/src/ui/TxList/TxRow/txRow.spec.js
jesuscript/parity
// Copyright 2015, 2016 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 la...
node_modules/@material-ui/core/es/Portal/Portal.js
pcclarke/civ-techs
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { useForkRef } from '../utils/reactHelpers'; import { exactProp } from '@material-ui/utils'; function getContainer(container) { container = typeof container === 'function' ? container() : container; // #StrictMode...
static/src/components/Transactions.js
mortbauer/webapp
import React from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/transactions'; import TextField from 'material-ui/TextField'; import Transaction from './Transaction'; import Infinite from 'react-infinite'; function mapStateToProps(...
src/public/components/toolbox/file.js
Harrns/segta
import React from 'react' import List from '@react-mdc/list' import Toolbox from './default' import * as FileItem from './item/file' export default class FileToolbox extends React.Component { constructor (props) { super(props) } render () { return ( <Toolbox id="file"> <FileItem.Download ...
fields/types/password/PasswordField.js
mekanics/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
src/components/LifeCycleHelper.js
nchathu2014/reactApp
import React from 'react'; export default class LifeCycleHelper extends React.Component{ constructor(){ console.log("constructor"); super(); this.state={ name:"Nuwan" } } componentWillMount(){ console.log("componentWillMount"); } componentDidMount(){ console.log("componentDidMount"); } compon...
src/js/components/TBD.js
primozs/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.TBD; export default class TBD extends Component { render () { return ( <div className={CLASS_ROOT}> {...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
cpunion/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
packages/cp-frontend/test/unit/components/layout/container.js
yldio/copilot
/** * @jest-environment jsdom */ import React from 'react'; import renderer from 'react-test-renderer'; import 'jest-styled-components'; import Container from '@components/layout/container'; it('renders <Container /> without throwing', () => { const tree = renderer.create(<Container />).toJSON(); expect(tree)....
tests/components/Index-test.js
jmcolella/unique-twitter-followers
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import Index from '../../app/components/Index'; import Button from '../../app/components/Button'; describe ( 'Index component', () => { let index; beforeEach( () => { index = shallow( <Index /> ); }); it ( 'rende...
src/admin/client/modules/apps/appDetails/index.js
cezerin/cezerin
import React from 'react'; import AppDescription from './description'; import style from './style.css'; import Paper from 'material-ui/Paper'; import apps from 'src/apps'; const AppDetails = ({ match }) => { const { appKey } = match.params; const app = apps.find(a => a.Description.key === appKey); const AppModule =...
nodes/stampzilla-server/web/src/routes.js
stampzilla/stampzilla-go
import { Route, Switch } from 'react-router-dom'; import { hot } from 'react-hot-loader'; import React from 'react'; import Automation from './routes/automation'; import Dashboard from './routes/dashboard'; import Debug from './routes/debug'; import Persons from './routes/persons'; import Person from './routes/persons...
node_modules/react-bootstrap/es/TabContent.js
acalabano/get-committed
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 ...
examples/src/app.js
bruderstein/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Contributors from './components/Contributors'; import CustomComponents from './components/CustomComponents'; import CustomRender from './components/CustomRender'; import Multiselect ...
src/utils/index.js
RomanovRoman/react-redux-starter-kit
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createReducer (initialState, reducerMap) { ...
test/checkbox-spec.js
JAStanton/material-ui-io
import React from 'react'; import Checkbox from 'checkbox'; import injectTheme from './fixtures/inject-theme'; const TestUtils = require('react-addons-test-utils'); describe('Checkbox', () => { const CHECKMARK_PATH = 'M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-...
src/components/ContentSwitcher/ContentSwitcher-story.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnob...
app/javascript/mastodon/features/ui/components/list_panel.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/Components/Slide.js
crossroadchurch/silas
/** slide component */ import React from 'react' import Styles from '../styles' import { LyricLine } from './StageUtils' export default class Slide extends React.Component { render() { return ( <div style={Styles.Slide}> <LyricLine>What to say</LyricLine> </div> ) } }
src/svg-icons/action/perm-phone-msg.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
src/frontend/components/BernieLogo.js
Bernie-2016/ground-control
import React from 'react'; import {SvgIcon} from 'material-ui' export default class BernieLogo extends React.Component { static propTypes = { bottomSwooshColor : React.PropTypes.string, color: React.PropTypes.string } render() { return ( <SvgIcon {...this.props}> <g> <path stroke={this....
docs/build.js
kwnccc/react-bootstrap
/* eslint no-console: 0 */ import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './gener...
src/components/Logo/Logo.js
Thieurom/doanthieu.com
import React from 'react'; import Link from 'gatsby-link'; import { logo } from './Logo.module.sass'; const Logo = () => ( <Link to='/' className={logo} /> ); export default Logo;
app/App.js
danielwrobert/vagrant-react-webpack
import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component { render() { return ( <div className='container'> Hello React! </div> ) } } ReactDOM.render( <App />, document.getElementById( 'app' ) );
examples/src/components/GithubUsers.js
Dem0n3D/react-select
import React from 'react'; import Select from 'react-select'; import fetch from 'isomorphic-fetch'; const GithubUsers = React.createClass({ displayName: 'GithubUsers', propTypes: { label: React.PropTypes.string, }, getInitialState () { return { backspaceRemoves: true, multi: true }; }, onChange (val...
org.jcryptool.core.help/javascript/tocbot-4.11.2/src/components/Template/TryIt/index.js
jcryptool/core
import React from 'react' import marked from 'marked' const tocbot = (typeof window !== 'undefined') ? window.tocbot : null let backupHtml export default class TryIt extends React.Component { constructor () { super() this.state = { open: false } } onChange (e) { const contentEl = docu...
app/components/team/Members/role.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Chooser from 'app/components/shared/Chooser'; import Dropdown from 'app/components/shared/Dropdown'; import PermissionSelectOptionDescriptions from 'app/components/shared/PermissionSelectOptionDescriptions'; import PermissionDescription from 'app/co...
src/client/User/AnswersList.js
KleeGroup/interactive-box
import React from 'react'; import Result from './Result'; import AnswerButton from "./AnswerButton" import CountdownTimer from "../Utils/CountdownTimer" import CircularProgress from 'material-ui/lib/circular-progress'; import "./AnswersList.css" //Modes des réponses const CLICKABLE = "clickable"; const SELECTED = ...
src/svg-icons/hardware/tablet-android.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletAndroid = (props) => ( <SvgIcon {...props}> <path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/> </SvgIcon...
packages/demos/universal/client/components/App/index.js
yusufsafak/cerebral
import React from 'react' import { connect } from 'cerebral/react' import { state } from 'cerebral/tags' export default connect( { name: state`app.name`, }, function App({ name }) { return ( <div> <h1>Hello, {name}</h1> <h4>Change the name using query: <b>?name=christian</b></h4> ...
src/components/Text.js
henrytao-me/react-native-mdcore
import React from 'react' import { Text as RNText } from 'react-native' import PropTypes from './PropTypes' import PureComponent from './PureComponent' import StyleSheet from './StyleSheet' import * as Utils from '../libs/utils' export default class Text extends PureComponent { static contextTypes = { theme: ...
main.js
jdonisvitch/simple-react-website-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; ReactDOM.render(<App/> , document.getElementById('app'));
client/src/components/DatePicker.js
d0n0/Motion-Timeline
import React from 'react'; import { Container } from 'reactstrap'; import moment from 'moment'; import DatePicker from 'react-datepicker'; class Header extends React.Component { constructor() { super(); this.handleChange = this.handleChange.bind(this); this.state = { selected: moment() }; } handleCh...
client/containers/permissions/ReceivedPermissions.spec.js
zhakkarn/Mail-for-Good
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { ReceivedPermissionsComponent } from './ReceivedPermissions'; const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars isGettingReceivedPermissionOffers: true, receivedPermissionOffers: [], isGe...
src/components/Box.js
nitrog7/nl-fluid
import React from 'react'; import Component from './Component'; export default class Box extends Component { static propTypes() { return { direction: React.PropTypes.string, children: React.PropTypes.string, grow: React.PropTypes.number, halign: React.PropTypes.string, order: React....
docs/app/Examples/modules/Progress/Types/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ProgressTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Standard' description='...
docs/src/ReactPlayground.js
jhernandezme/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; class ReactPlayground extends React.Component { constructor(props) { super(props); this.trancate = this.truncate.bind(this); } render() { var {name, code, ...props} = this.props; return ( <div clas...
app/javascript/mastodon/components/column_collapsable.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; class ColumnCollapsable extends React.PureComponent { static propTypes = { icon: PropTypes.string.isRequired, title: PropTypes.string, fullHeight: PropTypes.number.isRequired, children: PropTypes.node, onCollapse: PropTypes.func, }...
src/components/Jkef/Acceptors/Record/FieldItem.js
nagucc/jkef-web-react
/* 用于显示一条奖助记录中的一个字段。 需提供两个Props字段: - title 字段显示名称。必须。 - value 字段 */ import React from 'react'; export default class FiledItem extends React.Component { static propTypes = { title: React.PropTypes.string.isRequired }; constructor(props) { super(props); } render() { return this.props.value ? ( ...
react/features/settings/components/web/ProfileTab.js
bgrozev/jitsi-meet
// @flow import Button from '@atlaskit/button'; import { FieldTextStateless } from '@atlaskit/field-text'; import React from 'react'; import { AbstractDialogTab } from '../../../base/dialog'; import type { Props as AbstractDialogTabProps } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; i...
react-native/AwesomeProject/components/__tests__/StyledText-test.js
glandre/prototypes
import 'react-native'; import React from 'react'; import { MonoText } from '../StyledText'; import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(<MonoText>Snapshot test!</MonoText>).toJSON(); expect(tree).toMatchSnapshot(); });
src/app/components/chat/components/ChatForm.js
backpackcoder/world-in-flames
import React from 'react' export default class ChatForm extends React.Component { state = { message: '', enterToSend: false }; onKeyDown = (event) => { if (event.which == 13 && !event.shiftKey && this.state.enterToSend) { this.props.onMessageSend(this.state.message) } else { // this...
blueprints/smart/files/__root__/containers/__name__.js
mklinga/potatoro
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
test/integration/image-component/default/pages/sizes.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Assign sizes prop</p> <Image id="sizes1" src="/wide.png" width="1200" height="700" sizes="(max-width: 2048px) 1200px, 3840px" /> <p>Assign sizes prop</p>...
src/components/auth/signin.js
SRosenshein/react-auth-client
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions'; class Signin extends Component { handleFormSubmit({ email, password }) { this.props.signinUser({ email, password }); } renderAlert() { if (this.props.errorMessage) { return ( <div ...
packages/showcase/showcase-sections/treemap-showcase.js
uber/react-vis
import React from 'react'; import {showCase} from '../index'; import {REACTVIS_BASE_URL} from '../showcase-links'; import {mapSection} from '../showcase-components/showcase-utils'; const {SimpleTreemap, TreemapExample} = showCase; const TREEMAPS = [ { name: 'Simple Treemap', component: SimpleTreemap, c...
docs/client.js
asiniy/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
app/js/components/ui/containers/layout.js
blockstack/blockstack-browser
import React from 'react' import PropTypes from 'prop-types' import { Rule, Type } from '@blockstack/ui' const HelperMessage = ({ message }) => ( <> <Rule /> <Type.small>{message}</Type.small> </> ) HelperMessage.propTypes = { message: PropTypes.node.isRequired } export { HelperMessage }
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import AsyncSelect from 'react-select/async'; import { NonceProvider } from 'react-sele...
src/components/theme/components/ExtraPatientsSummaryPanels.js
PulseTile/PulseTile-React
import React from 'react'; /** * This component returns list of panels, which creates separately (like Feeds-panels) * * @param props * @return {XML} */ const ExtraPatientsSummarySelectors = props => { return null; }; export default ExtraPatientsSummarySelectors;
src/components/trims/VelocityTrimTips.js
dkadrios/zendrum-stompblock-client
import React from 'react' import PropTypes from 'prop-types' import styles from '../../styles/velocityTrim' const VelocityTrimTips = ({ active, mappingName }) => ( <div className={styles.tips}> <div> <b>Mapping:</b> {mappingName} </div> <ul style={{ visibility: active ? 'visible' : 'hidden' }}> ...
client/components/Login.js
lendr2/lendr2
import React from 'react'; import { Link } from 'react-router'; const Login = ({verifyUser}) => { return ( <div className="login-form"> <form onSubmit={verifyUser}> <div className="form-group"> <label for="username">Username:</label> <input type="text" className="form-control" n...
src/components/typography/H4/__tests__/index-test.js
apedyashev/react-universal-jobs-aggregator
import React from 'react'; import {shallow} from 'enzyme'; import H4 from '../index.js'; describe('H4', () => { it('renders h4 correctly', () => { const component = shallow( <H4 className="some-class">some text</H4>, ); expect(component.text()).toEqual('some text'); expect(component.hasClass('...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
RahulDesai92/PHR
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/svg-icons/navigation/apps.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownNavigationItem/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import DropdownNavigationItem from 'ringcentral-widgets/components/DropdownNavigationItem'; // eslint-disable-next-line import dynamicsFont from 'ringcentral-widgets/assets/DynamicsFont/DynamicsFont.scss'; const props = {}; props.icon = <span className={dynamicsFo...
app/containers/FoodInfoContainer.js
EleTeam/Shop-React-Native
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ import React from 'react'; import { connect } from 'react-redux'; import FoodInfo from '../pages/FoodInfo'; class FoodInfoContainer extends React.C...
src/js/modules/pictureInPicture/UI/index.js
zacyu/bilibili-helper
/** * Author: DrowsyFlesh * Create: 2018/11/16 * Description: */ import React from 'react'; import ReactDOM from 'react-dom'; import {UI} from 'Libs/UI'; import UIBuilder from './PIP'; export class PictureInPictureUI extends UI { constructor() { super({ name: 'pictureInPicture', ...
src/client/components/pages/entities/edition-table.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2017 Ben Ockmore * * 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 your option) any later version. * * This program is distr...
__tests__/components/App.js
epicsharp/react-boilerplate
jest.unmock('components/App/App') import React from 'react' import { shallow } from 'enzyme' import { Navbar } from 'react-bootstrap' import App from 'components/App/App' describe('<App />', () => { let wrapper beforeEach(() => { wrapper = shallow( <App> <p id="__test">test</p> </App> ...
src/components/DirectoryComponent.js
chimo/se-dir-frontend-react
'use strict'; import React from 'react'; import SearchResults from './SearchResultsComponent'; import Back from './BackComponent'; class DirectoryComponent extends React.Component { render() { return ( <div className="directory-component page"> <Back /> <SearchResults searchText="" /> ...
demo/demoPages/HeaderPage.js
Pearson-Higher-Ed/compounds
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Icon, Button } from '../../index'; class HeaderPage extends Component { constructor () { super(); this.toggleList = _toggleList.bind(this); } render() { return ( <div className="cont...
src/navigation/index.js
b1alpha/Smoothie-Du-Jour
/** * App Navigation * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Actions, Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Components import Drawer from '@containers/u...
components/Markdown/Markdown.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CommonMark from 'commonmark'; import ReactRenderer from 'commonmark-react-renderer'; import cx from 'classnames'; import css from './Markdown.css'; const parser = new CommonMark.Parser(); const renderer = new ReactRenderer(); export...
admin/src/components/metadata/tests/metaarrayitem.spec.js
mparlak/mparlak.github.io
import React from 'react'; import { Link } from 'react-router'; import expect from 'expect'; import { mount } from 'enzyme'; import _ from 'underscore'; import MetaButtons from '../MetaButtons'; import MetaArray from '../MetaArray'; import MetaArrayItem from '../MetaArrayItem'; import MetaObject from '../MetaObject'; ...
src/main/resources/static/components/faq.js
dempey/pioneer
import React from 'react'; export default class Faq extends React.Component { render() { return ( <div> <p>These are the Frequently Asked Questions.</p> </div> ) } }
src/svg-icons/action/euro-symbol.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEuroSymbol = (props) => ( <SvgIcon {...props}> <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
nonoz/mastodon
import React from 'react'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class AutosuggestAccount extends Immuta...
app/javascript/mastodon/features/ui/components/column_subheading.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
demos/todomvc/src/components/App/index.js
FWeinb/cerebral
import React from 'react' import { connect } from 'cerebral/react' import {state} from 'cerebral/tags' import NewTodoForm from '../NewTodo' import TodosList from '../List' import TodosFooter from '../Footer' import Recorder from '../Recorder' import visibleTodosRefs from '../../computed/visibleTodosRefs' export defaul...
docs/src/pages/components/buttons/OutlinedButtons.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; const useStyles = makeStyles((theme) => ({ root: { '& > *': { margin: theme.spacing(1), }, }, })); export default function OutlinedButtons() { const classes = useStyles(...
js/AceEditor.react.js
Sable/McLab-Web
import EditorMarkerStore from './stores/EditorMarkerStore'; import React from 'react'; import Immutable from 'immutable'; import request from 'superagent'; import OnLoadActions from './actions/OnLoadActions'; import OpenFileStore from './stores/OpenFileStore'; import InterfaceActions from './actions/InterfaceActions'; ...
src/board/components/AWMapCard.js
corbig/AfterWorkManager
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import Paper from 'material-ui/Paper'; import {grey400, darkBlack, lightBlack} from 'material-ui/styles/colors'; import IconButton from 'material-ui/IconButton'; import {Toolbar, ToolbarGroup, Tool...
src/svg-icons/maps/subway.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSubway = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8....
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js
johnpmitsch/katello
import React from 'react'; import PropTypes from 'prop-types'; import { MessageDialog } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; const DeleteDialog = ({ show, selectedRows, onDeleteSubscriptions, onSubscriptionDeleteModalClose, }) => ( <MessageDialog show={s...