path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
website/src/pages/index.js
cs3216/cs3216.github.io
import clsx from 'clsx'; import React from 'react'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useBaseUrl from '@docusaurus/useBaseUrl'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from './index.module.css'; export default function Home() { ...
src/app.js
kaigekong/react-research
import React from 'react'; import ReactDOM from 'react-dom'; function Page(){ const topics = ['React', 'Flux', 'Redux1']; return ( <div> <h1>React Book Title</h1> <ul> {topics.map(topic => (<li>{topic}</li>))} </ul> </div> ); } ReactDOM.render(<Page />, document.getElementById('app'));
src/React/Widgets/DropDownWidget/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/DropDownWidget.mcss'; export default class DropDownWidget extends React.Component { constructor(props) { super(props); this.state = { open: false, field: props.field || props.fields[0], };...
client/components/Terms/Terms.js
bjoberg/social-pulse
import React from 'react'; // import { placeHolderText1, placeHolderText2 } from '../placeHolderText'; // Styles import styles from '../../main.css'; export function Terms() { const divStyle = { margin: 20, }; return ( <div className={styles.container}> <h1>Terms</h1> <p>Last Updated: April...
test/test_helper.js
thelonglqd/myblogs
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...
docs/src/app/components/pages/components/TextField/ExampleSimple.js
hai-cea/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleSimple = () => ( <div> <TextField hintText="Hint Text" /><br /> <br /> <TextField hintText="The hint text can be as long as you want, it will wrap." /><br /> <TextField id="text-f...
pathfinder/vtables/projectdataqualitycompleteness/src/Report.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import CommonQueries from './common/CommonGraphQLQueries'; import DataIndex from './common/DataIndex'; import Utilities from './common/Utilities'; import RuleSet from './RuleSet'; import Table from './Table'; const RULE_OPTIONS = Utilities.createOptionsObj( RuleSet.singleRule...
src/routes.js
LandyCandy/beHeard
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import store from './store'; //components import App from './common/components/App'; import HomePage from './pages/home/page'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> );
src/rich-media/video.js
joxoo/react-material
import React from 'react'; import PropTypes from 'prop-types'; import { getClasses, MaterialPropTypes } from '../addons'; @getClasses class Video extends React.Component { static propTypes = { sources : PropTypes.arrayOf( PropTypes.shape({ src: MaterialPropTypes.url.isRequire...
src/components/Panel.js
kalpetros/hawkpass
import PropTypes from 'prop-types'; import React from 'react'; export const Panel = props => { const { children, bgColor, style, onClick } = props; const className = `${bgColor} text-gray-200 text-center p-8 rounded-xl`; return ( <div className={className} style={style} onClick={onClick}> {children} ...
demo/pages/containment.js
jasonslyvia/react-anything-sortable
import React from 'react'; import Sortable from '../../src/'; import DemoItem from '../components/DemoItem.js'; export default class Containment extends React.Component { constructor() { super(); this.state = {}; } handleSort(data) { this.setState({ result: data.join(' ') }); } render...
app/javascript/mastodon/features/ui/components/zoomable_image.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' }, expand: { id: 'lightb...
fluent-react/test/localized_valid_test.js
zbraniecki/fluent.js
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import { LocalizationProvider, Localized } from '../src/index'; import ReactLocalization from '../src/localization'; suite('Localized - validation', function() { suiteSetup(function() { this.error = console.error; conso...
src/icons/AndroidDocument.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidDocument extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M288,48H136c-22.092,0-40,17.908-40,40v336c0,22.092,17.908,40,40,40h240c22.092,0,40-17.908,40-40V176L288,48z ...
packages/cf-component-select/src/ScrollContainer.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; class ScrollContainer extends React.Component { constructor(props) { super(props); this.handleMouseOver = this.handleMouseOver.bind(this); this.handleMouseOut = this.handleMouseOut.bind(th...
src/shared/components/BrandNote/index.js
AlekseyWW/shop-react-ssr
import React from 'react'; import styles from './styles.styl'; export const BrandNote = () => { return ( <div className={styles.BrandNote}> <span className={styles.BrandNote__title}>Студия Олега Чулакова</span> <span className={styles.BrandNote__text}> Создаем <nobr>digital&ndash;сервисы</nobr> для&nbsp;к...
assets/javascripts/kitten/components/typography/vertical-stroke/stories.js
KissKissBankBank/kitten
import React from 'react' import { VerticalStroke } from './' import { DocsPage } from 'storybook/docs-page' export default { title: 'Typography/VerticalStroke', component: VerticalStroke, parameters: { docs: { page: () => ( <DocsPage filepath={__filename} importString="VerticalStroke" /> ...
docs/lib/app.js
Availity/react-block-ui
import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import { createHistory } from 'history'; import { Router, RouterContext, match, useRouterHistory, createMemoryHistory } from 'react-router'; import routes from './routes'; import Helmet from 'react-helmet'; // C...
src/svg-icons/device/signal-cellular-no-sim.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
src/components/FieldHelp/index.js
mareklibra/userportal
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import $ from 'jquery' import { Popover, OverlayTrigger } from 'react-bootstrap' import { msg } from '_/intl' import style from './style.css' /** * Renders underlined `text` with `tooltip`. * A popover is shown consisting...
js/src/dapps/dappreg.js
pdaian/parity
// Copyright 2015, 2016 Ethcore (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 later version....
frontend/capitolwords-spa/.storybook/config.js
sunlightlabs/Capitol-Words
import React from 'react'; import g from 'glamorous'; import { configure, addDecorator } from '@storybook/react'; import '../src/index.css'; // All stories should be in the same directory in which the target of the // stories (the React Component) is defined. The story filenames are expected to // be in the for...
src/components/user/user.component.js
ShankarSumanth/lean-react
import React from 'react'; import { connect } from 'react-redux'; import { getUser } from '../user/user.action'; @connect((state)=> { return { user: state.user.user }; }) export default class User extends React.Component { componentWillMount() { this.props.dispatch(getUser()); } render() { return (<...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch06/06_05/finish/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...
client/src/components/billing/checkout-fields.js
hah-nan/papabear2
import React, { Component } from 'react'; class CheckoutFields extends Component { render() { return ( <form onSubmit={this.props.onSubmit.bind(this.value)}> <div className="row"> <div className="col-md-9"> <label>Card Number</label> <input id="cardNu...
website/src/pages/scatterplot/canvas.js
plouc/nivo
import React from 'react' import { ResponsiveScatterPlotCanvas, canvasDefaultProps } from '@nivo/scatterplot' import { ComponentTemplate } from '../../components/components/ComponentTemplate' import meta from '../../data/components/scatterplot/meta.yml' import mapper from '../../data/components/scatterplot/mapper' impo...
examples/js/selection/select-bgcolor-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
test/helpers/shallowRenderHelper.js
CathyFel/gallery-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/addons/documents/sidebar/components/DesignDoc.js
apache/couchdb-fauxton
// 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 in writing, software // distributed un...
app/javascript/mastodon/features/follow_requests/index.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
docs/pages/api-docs/tab-panel.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/tab-panel'; const requireRaw = require.context('!raw-loader!./', false, /\/tab-panel\.md$/); export default function Page({ ...
src/containers/Home/Home.js
maddles/what-time
import React, { Component } from 'react'; import { Picker } from 'containers'; import config from '../../config'; export default class Home extends Component { render() { const styles = require('./Home.scss'); const now = new Date(); return ( <div className={styles.home}> <h1>{config.a...
src/Tooltip.js
azmenak/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
app/javascript/mastodon/features/compose/components/upload_progress.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
client/app/scripts/components/zoomable-canvas.js
alban/scope
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { clamp, debounce, pick } from 'lodash'; import { fromJS } from 'immutable'; import { drag } from 'd3-drag'; import { event as d3Event, select } from 'd3-selection'; import { zoomFactor } from 'weaveworks-ui-c...
client/Main/Content/Stream/Stream.js
PicDrop/PicDrop
import React from 'react'; class Stream extends React.Component { render() { return ( <div> <h1>Coming Soon</h1> </div> ); } } export default Stream;
client/views/admin/permissions/PermissionsRouter.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { usePermission } from '../../../contexts/AuthorizationContext'; import { useRouteParameter } from '../../../contexts/RouterContext'; import PermissionsTable from './PermissionsTable'; import UsersInRole from './Us...
packages/react-app/src/index.js
threepointone/glam
import React from 'react'; import ReactDOM from 'react-dom'; // import './index.css'; import App from './App'; // import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // registerServiceWorker();
06-404-no-match/components/NotMatch.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; class NotMatch extends React.Component { render() { return ( <h2>No component matched for path <code>{this.props.location.pathname}</code>.</h2> ); } } export default NotMatch;
src/containers/Forms/editor/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Async from '../../../helpers/asyncComponent'; import PageHeader from '../../../components/utility/pageHeader'; import Box from '../../../components/utility/box'; import LayoutWrapper from '../../../components/utility/layoutWrapper'; import ContentHolder from '../../../co...
client/components/Flass/Lecture/Analysis/AnalysisFetchHOC.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const { func } = PropTypes; export const AnalysisFetchHOC = WrappedComponent => { class WithFetchedAnalysis extends Component { componentDidMount() { this._updateLectureAnalysis(); } componentWillUnmount() { this....
main.js
GigaTables/reactables
import React from 'react' import ReactDOM from 'react-dom' import Reactables from './src/Reactables.jsx' import Header from './src/components/table/Header.js' import './main.css' // let localData = require('./local_data'); let editor = { ajax: 'http://gigatables.loc/editor.php', // it is possible to set discr...
app/client.js
Spetastian/mage-kit-client
import React from 'react' import { render } from 'react-dom' import { createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, browserHistory} from 'react-router' import { syncHistoryWithStore, routerReducer } from 'react-router-redux' import App from '...
react-router-es6-example/src/CalendarDay1.js
akhilaantony/React-Stylisted
import React, { Component } from 'react'; import { Modal } from 'react-overlays'; import DayPicker, { DateUtils } from "react-day-picker"; // import { connect } from 'react-redux'; // import './Login.css'; const modalStyle = { position: 'fixed', zIndex: 1080, top: 0, bottom: 0, left: 0, right: 0 }; const backd...
app/_root/containers/App/index.js
Dmitry-N-Medvedev/motor-collection
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Header from '../../components/Header'; import withProgressBar from '../../../components/ProgressBar'; import { Conte...
app/components/DeviceTimeModal.js
tidepool-org/chrome-uploader
/* * == BSD2 LICENSE == * Copyright (c) 2014-2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program is ...
src/frontend/screens/Invoice/index.js
Koleso/invoicer
import React from 'react'; // Components import { Grid, GridColumn } from 'components/Grid'; import Screen from 'components/Screen'; import Box from 'components/Box'; import Button from 'components/Button'; // Forms import InvoiceContainer from 'containers/InvoiceContainer'; const actions = [ <Button key="print" ...
server/sonar-web/src/main/js/apps/account/components/UserCard.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/components/projects/content/Morgans.js
tehfailsafe/portfolioReact
import React from 'react'; import Section from '../show/Section' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' export default React.createCla...
src/containers/recipes/Browse/BrowseView.js
banovotz/WatchBug2
/** * Receipe Tabs Screen * - Shows tabs, which contain receipe listings * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, InteractionManager, } from 'react-native'; ...
httpdocs/theme/react/hooks-app/app-product-relationship/components/ModalFlagModification.js
KDE/ocs-webserver
import React from 'react' const ModalFlagModification = (props) => { return ( <div className="modal fade " id="productFlagModificationPanel" tabindex="-1" data-keyboard="false" role="dialog" aria-labelledby="productRelationshipPanelModalLabel" aria-hidden="true"> <div className="modal-dialog " role...
packages/wix-style-react/stories/Introduction/Cheatsheet/componentsFamilies/FoundationFamily.js
wix/wix-style-react
import React from 'react'; import { Category } from '../../../storiesHierarchy'; import { FamilyStructure, SingleComponentSideBySide, } from '../sharedComponents'; import { foundationSymbolsToComponents } from '../../../symbolsComponentsMapping/families/foundationFamily'; import { createLinkedComponentsNames, ...
docs/app/Examples/modules/Dropdown/Usage/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Open On Focus' descript...
client/App.js
buermo/bembox
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default function A...
app/containers/App/index.js
sulthan16/awesome-jr-frontend-sulthan
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
packages/react-server-website/pages/source.js
emecell/react-server
import React from 'react'; import {ReactServerAgent, RootContainer} from 'react-server'; import SourceBody from '../components/source-body'; import PageTitle from '../components/page-title'; import SourceContents from '../components/source-contents'; import DataBundleCacheManager from '../middleware/DataBundleCache'; ...
examples/real-world/index.js
darrrk/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
examples/server.js
kof/radium
/** * The examples provided by Formidable Labs are for non-commercial testing and * evaluation purposes only. Formidable Labs reserves all rights not expressly * granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA...
src/svg-icons/action/motorcycle.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2...
src/components/cards/project-card.js
bretafinley/site
import React from 'react'; import Link from 'gatsby-link'; import moment from 'moment'; import Tag from '../tag'; import IconFactory from '../icon-factory'; function ProjectCard(props) { const {title, subtitle, post_date, subject_url, category, folder, path, tags } = props.frontmatter; const renderedTags = handl...
src/Components/PageDetails.js
ashwinath/personal-website-2.0
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class PageDetails extends Component { render() { const pageName = this.props.pageName; return ( <div className="page-details center-vertical-parent"> <div className={`img-background img-background center-vertical page...
Libraries/Components/WebView/WebView.ios.js
ankitsinghania94/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/entry.js
zhangmingkai4315/PPT-repo
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './css/zenburn.css' import './css/theme/beige.css' ReactDOM.render(<App/>, document.getElementById('content'));
src/esm/components/graphics/icons/long-arrow-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["direction", "disabled", "color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; import COLORS from '../../../../constants/co...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
amido/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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
packages/material-ui-icons/legacy/BatteryCharging30.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M11 20v-5.5H7v6.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.3...
jekyll-strapi-tutorial/api/admin/admin/src/components/Toggle/index.js
strapi/strapi-examples
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import ToggleOption from 'components/ToggleOption'; import styles from './styles.scss'; function Toggle(props) { // eslint-disable-line react/prefer-stateless-function let content = (<option>--</option>); // If we have ite...
js/components/developer/language-picker-screen/languageSelectionListItem.js
justarrived/p2p-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SelectionListItem from '../../common/selection-list-item/selectionListItem'; import { addLanguage, removeLanguage } from '../../../actions/languages'; class LanguageSelectionListItem extends Component { static propTypes = { ...
docs/src/examples/collections/Form/Shorthand/index.js
Semantic-Org/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import { Message } from 'semantic-ui-react' const subcomponentComparison = { shorthand: "<Form.In...
src/index.hot.js
jaredlunde/webpack2-react-es7-boilerplate
import React from 'react' import ReactDOM from 'react-dom' import {AppContainer} from 'react-hot-loader' import App from './App' const root = document.getElementById('{{PKG_NAME}}') ReactDOM.render(( <AppContainer> <App/> </AppContainer> ), root) if (module.hot) { module.hot.accept('./App', () => { ...
src/components/Main.js
hwjWen/gallery-photo
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; // 获取图片路径 let imageDatas = require('json!../data/imageDatas.json'); // 利用自执型函数,将图片信息转为图片路径 imageDatas = (function getImageUrl(imageDataArr) { for (var i = 0; i < imageDataArr.length; i+...
components/toolbar.js
solsort/bogapp
import React from 'react'; import Toolbar from 'react-md/lib/Toolbars'; import TextField from 'react-md/lib/TextFields/TextField'; import Button from 'react-md/lib/Buttons'; import FontIcon from 'react-md/lib/FontIcons'; import Drawer from 'react-md/lib/Drawers'; import Link from 'next/link'; import SearchAutoComplete ...
src/ui/views/HomeView.js
gouxlord/dev-insight
import React from 'react'; import styles from './HomeView.scss'; import BannerModule from 'src/ui/modules/BannerModule'; import ServicesModule from 'src/ui/modules/ServicesModule'; import TechnosModule from 'src/ui/modules/TechnosModule'; import ReferencesModule from 'src/ui/modules/ReferencesModule'; import ContactMod...
test/components/control-panel.js
energy-data/market-opportunities
import React from 'react' import test from 'ava' import { shallow } from 'enzyme' import classes from '../helpers/classes' import { ControlPanel } from '../../app/assets/scripts/components/control-panel' import { initial } from '../../app/assets/scripts/reducers/layers' test('control panel test', t => { const compo...
src/app.js
imwizz/bolpax-dashboard
/** * Created by glenn on 12/02/16. */ import './styles'; import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, IndexRedirect, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import { DATA_TYPE } from './constan...
admin/src/components/Lightbox.js
stosorio/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; const Transition = React.addons.CSSTransitionGroup; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTypes.bool...
src/components/NotFound/NotFound.react.js
RMCoder198/chat.susi.ai
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; import './NotFound.css'; import LogoImg from '../../images/susi-logo.svg'; import UserPreferencesStore from '../../stores/UserPreferencesStore'; import Login from '../Auth/Login/Login....
client/App/Members/Table/index.js
JohannesAnd/SKWebsite
import React from 'react'; import { state, sequences } from 'cerebral'; import { connect } from '@cerebral/react'; import { faChevronUp } from '@fortawesome/free-solid-svg-icons'; import UserLanguage from 'common/UserLanguage'; import { Table, TableRow, TableRowHeading, TableHeading, Chevron, } from './elem...
examples/react-router/src/shared/containers/ExampleContainer.js
jasonblanchard/react-announce-doc-title
import React from 'react'; import { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { actions } from '../actions/actions'; import { AnnounceDocTitle } from 'react-announce-doc-title'; import ExampleChild from '../components/ExampleChild'; class Exampl...
app/components/FlowSourceCode/index.js
bruceli1986/react-qdp
/** * * FlowSourceCode:流程图示 * */ import React from 'react'; import { Modal, Spin } from 'antd'; import styles from './styles.css'; class FlowSourceCode extends React.Component { constructor(props, context) { super(props, context); this.state = { width: 'auto', loading: true, }; } compo...
frontend/index.js
fdemian/SeguidorCarrera
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import storeCreator from './store/configureStore'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; // Route components. import App from './App/App'; // Main application. import Home from './Ap...
src/components/Docment/Resume.js
oct16/Blog-FE
import React from 'react'; import Link from 'components/Link'; import s from './ResumeWrap.css'; import PropTypes from 'prop-types'; class Resume extends React.Component { static propTypes = { title: PropTypes.string.isRequired, html: PropTypes.string.isRequired } render() { const { html, title } ...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
js/signin/src/components/SecretKey.js
fogfish/oauth2
import React from 'react' import { Label, Classes } from '@blueprintjs/core' const SecretKey = () => ( <Label> Password&nbsp; <span className="bp3-text-muted">required</span> <input className={Classes.INPUT} id="secret" name="secret" type="password" required /> </Label...
client/index.js
XuHaoJun/tiamat
/** * Client entry point */ import Debug from 'debug'; import React from 'react'; import { hydrate } from 'react-dom'; import { fromJS } from 'immutable'; import { calculateResponsiveState } from 'redux-responsive'; import Loadable from 'react-loadable'; import moment from 'moment'; import { matchRoutes } from 'reac...
docs/src/app/components/pages/components/Popover/ExampleAnimation.js
hwo411/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover, {PopoverAnimationVertical} from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleAnimation extends React.Component { constructor(...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxdatetimeinput.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxDateTimeInput = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes...
examples/src/components/CustomRender.js
hannahsquier/react-select
import React from 'react'; import Select from 'react-select'; import Highlighter from 'react-highlight-words'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setS...
Web/src/modules/Blog/components/BlogArticle.js
lepsalex/Mansplaining
// @flow import React from 'react' import { string, shape, bool } from 'prop-types' import { connect } from 'react-redux' import Helmet from 'react-helmet' import status from '../../../helpers/status' import { fetchArticle, getArticle, getLoading } from '../redux' export const BlogArticle = (props: Object) => { con...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
aspanu/threeSeaShells
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
app/Resources/static-src/app/common/component/multi-input/options.js
richtermark/SMEAGOnline
import React, { Component } from 'react'; export default class Options extends Component { constructor(props){ super(props); this.state = { resultful: this.props.resultful, } } render() { let options = []; this.props.searchResult.map((item,i) => { let temp = (<li key={ i }><a data...
app/javascript/mastodon/features/list_editor/index.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
frontend/src/components/dialog/share-admin-link.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; import copy from '../copy-to-clipboard'; import { gettext } from '../../utils/constants'; import toaster from '../../components/toast'; const propTypes = { link: PropTypes.s...
src/icons/RefreshIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class RefreshIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.3 12.7C32.41 9.8 28.42 8 24 8 15.16 8 8.02 15.16 8.02 24S15.16 40 24 40c7.45 0 13.69-5.1 15.46-12H35.3...
client/src/views/Membership/components/membership-form/Paypal/paypal.js
DillGromble/TNABT-org
import React from 'react' import './paypal.css' const PayPalPage = ({ message, email }) => ( <div> <h1 className="paypal-header">{message}</h1> <h3 className="paypal-subheader copy">Choose a payment option below:</h3> <div className="payment-option"> <p className="payment-description">One time p...
app/components/home.js
xiamu14/newdenfaces
import React from 'react'; import {Link} from 'react-router'; import HomeStore from '../stores/HomeStore'; import HomeActions from '../actions/HomeActions'; import {first, without, findWhere} from 'underscore'; class Home extends React.Component { constructor(props){ super(props); this.sta...
src/parser/warrior/arms/modules/talents/Ravager.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/Sta...
antd-dva/ant-design-pro-demo/test/src/components/DescriptionList/Description.js
JianmingXia/StudyTest
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Col } from 'antd'; import styles from './index.less'; import responsive from './responsive'; const Description = ({ term, column, className, children, ...restProps }) => { const clsString = classNames(styles....
app/jsx/external_apps/components/AppTile.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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...
Realization/frontend/czechidm-core/src/content/Messages.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; // import * as Basic from '../components/basic'; import { HelpContent } from '../domain'; /** * Flash messages history. Messages from FE only. * * @author Radek Tomiška */ class ...