path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Layer.js | GGGGino/react-event-layer | import React from 'react';
import PropTypes from 'prop-types';
class Layer extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="layer" style={this.props.style} >
{this.props.children}
</div>
);
}
}
Layer.defaultProps = {
activeSt... |
src/js/components/PokeMap.js | ilken/ChosenPokemons | import React from 'react';
import Markers from './map/Markers';
import InfoWindow from './map/InfoWindow';
import { Gmaps } from 'react-gmaps';
import { mapCreated } from '../actions/mapActions';
export default class PokeMap extends React.Component {
onMapCreated (map) {
map.setOptions({
disableDefaultUI: this.p... |
src/Tooltip.js | xsistens/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
* @... |
webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js | Katello/katello | import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo';
import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories';
export const displayMap = new Map([
['na... |
src/views/chatRoom/ChatStories.js | VirtualClub/vclub | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import initialState from 'vclub/redux/initialClubState';
import ChatRoom from 'vclub/views/chatRoom/ChatRoom';
import uuid from 'uuid';
import moment from 'momen... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | apoco/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
static loadProps (params, cb) {
console.log('AnnouncementsSidebar', 'loadProps');
cb(null, {
announcements: COURSES[params.courseId].announcements
});
}
render (... |
client/modules/questions/components/classItem.js | johngonzalez/abcdapp | import React from 'react';
import QuestionsList from '../containers/questionsList';
import ClassItemTitle from '../containers/classItemTitle';
// import NewSession from '../containers/newSession';
import SessionControlBar from '../containers/sessionControlBar';
import {Label} from 'react-bootstrap';
const ClassItem = ... |
lib/ui/components/RequestLogs/HeaderCell.js | 500tech/mimic | import React from 'react';
import styled from 'styled-components';
import ResizeHandle from 'ui/components/common/ResizeHandle';
import { Div } from 'ui/components/common/base';
const Container = styled(Div)`
display: flex;
position: relative;
overflow: initial;
padding: 0 6px;
user-select: none;
height: 2... |
app/components/elements/Checkbox.js | tidepool-org/blip | import React from 'react';
import PropTypes from 'prop-types';
import { Box, Text } from 'rebass/styled-components';
import { Checkbox as Base, Label, LabelProps, CheckboxProps } from '@rebass/forms';
import styled from 'styled-components';
import cx from 'classnames';
import { Caption } from './FontStyles';
import {
... |
app/javascript/mastodon/features/direct_timeline/index.js | tootsuite/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
src/sagas/v3_requester.js | ello/webapp | /* eslint-disable no-constant-condition,no-underscore-dangle */
import React from 'react'
import get from 'lodash/get'
import { actionChannel, all, call, fork, put, select, take } from 'redux-saga/effects'
import { extractJSON, fetchCredentials, getHeaders, sagaFetch } from './api'
import { clearAuthToken, refreshAuthe... |
nlyyAPP/component/药物管理/仓库/物流模块/MLYsdywqd.js | a497500306/nlyy_APP | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert
} from 'react-native';
//时间操作
var moment = require('moment');
mom... |
src/js/components/ui/Link.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* 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... |
node-react/client/src/error/Error.js | FabioZTessitore/probability | import React, { Component } from 'react';
class Error extends Component {
render() {
if (this.props.message) {
return (
<div className="form-group">
<div className="alert alert-danger">{this.props.message}</div>
</div>
);
}
return <div></div>;
}
}
export default... |
react/client.js | goominc/goommerce-seller | import 'babel-core/polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
import configureStore from 'goommerce-redux';
import configureRoutes... |
node_modules/semantic-ui-react/src/collections/Form/FormGroup.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useWidthProp,
} from '../../lib'
/**
* A set of fields can appear grouped together.
* @see Form
*/
function FormGroup(props) {
... |
app/javascript/mastodon/components/radio_button.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class RadioButton extends React.PureComponent {
static propTypes = {
value: PropTypes.string.isRequired,
checked: PropTypes.bool,
name: PropTypes.string.isRequired,
onChange: PropTypes.... |
js/graph.js | ragingsquirrel3/sigma_graph_component | /*eslint-disable no-undef */
import React, { Component } from 'react';
import d3 from 'd3';
const MAX_HEIGHT = 450;
const TARGET_ID = 'j-sigma-target';
const TRANSITION_DURATION = 1000;
const DEFAULT_X = 0;
const DEFAULT_Y = 0;
const N_TICKS = 100;
const EDGE_COLOR = '#e2e2e2';
import style from './style.css';
class... |
information/blendle-frontend-react-source/app/modules/payment/components/SubscriptionDialogBody/PremiumYearly.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
function PremiumYearlySubscriptionDialogBody({ price }) {
return (
<div>
<p>
Met een jaarabonnement op Blendle Premium bespaar je 17%. Geen maandelijks betaalgedoe, je
rekent in één keer
{` ${price} `} af.
</p>
... |
assets/postjob/component/BackComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
class BackComponent extends Component{
render() {
return (
<div className="mdl-cell mdl-cell--12-col">
<a href = "/nyumbani/index.php/home/timeline/"
className = 'mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent' ref = "back">... |
examples/website/map-tile/app.js | uber-common/deck.gl | import React from 'react';
import {render} from 'react-dom';
import DeckGL from '@deck.gl/react';
import {MapView} from '@deck.gl/core';
import {TileLayer} from '@deck.gl/geo-layers';
import {BitmapLayer, PathLayer} from '@deck.gl/layers';
const INITIAL_VIEW_STATE = {
latitude: 47.65,
longitude: 7,
zoom: 4.5,
... |
src/icons/TrafficIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TrafficIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 20h-6v-2.28c3.45-.89 6-3.99 6-7.72h-6V8c0-1.1-.89-2-2-2H16c-1.1 0-2 .9-2 2v2H8c0 3.72 2.56 6.83 6 7.72... |
src/containers/App/App.js | anvk/eurocup2016-bestpicks | import '../../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../../../node_modules/bootstrap/dist/js/bootstrap.min.js';
import './app.less';
import React, { Component } from 'react';
import { HeaderContainer } from '../';
import { Footer, GitHubRibbon } from '../../components';
class App extends Comp... |
src/components/App.js | betoesquivel/hackmtyaug16_LSystemsUI | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Text } from 'essence-core';
import AppBar from 'essence-appbar';
import Icon from 'essence-icon';
import { Block } from 'essence-core';
import {orange, grey, blue, lightblue... |
examples/counter-with-redux/App.js | jhen0409/react-native-debugger | import React from 'react';
import { Provider } from 'react-redux';
import Counter from './src/containers/Counter';
import configureStore from './src/configureStore';
const store = configureStore();
export default () => (
<Provider store={store}>
<Counter />
</Provider>
);
|
client/userinterface/Settings/Settings.js | benstuijts/darkage-framework | import React from 'react';
import DialogBox from '../DialogBox';
import InputText from '../DialogBox/InputText';
export default class Settings extends React.Component {
render() {
return(
<DialogBox title={'Settings'} icon={'fa fa-cogs'}>
<h1>Hello Settings window</h1>
... |
src/scripts/components/user/User.component.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* 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 3 of the License, or
* (at ... |
demo/react-0.14.3/React-Learning/react-webpack/js/hello.js | waterbolik/prestudy | import React from 'react';
let Hello = React.createClass({
render() {
return(<div>Hello World!</div>);
}
});
export default Hello;
|
src/parser/priest/discipline/CONFIG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Oratio, Reglitch } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-... |
examples/animations/app.js | nhunzaker/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import StaticContainer from 'react-static-container'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const h... |
app/jsx/deep_linking/DeepLinkingResponse.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
geonode/contrib/monitoring/frontend/src/components/molecules/average-memory/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class AverageMemory extends React.Component {
static propTypes = {
mem: PropTypes.number,
}
static con... |
proto1/src/index.js | joshmarinacci/idealos | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App/>, document.getElementById('root'));
|
examples/auth-with-shared-root/components/PageTwo.js | stshort/react-router | import React from 'react'
const PageTwo = React.createClass({
render() {
return <h2>Page Two! Wooo!</h2>
}
})
module.exports = PageTwo
|
frontend/js/components/environments/SurveyAnalyzer.js | Code4HR/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Card from './../atoms/Card';
class SurveyAnalyzer extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section className="container"... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | scyankai/create-react-app | /**
* 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.
*/
import Rea... |
app/javascript/mastodon/components/suggested_account.js | ambition-vietnam/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../mastodon/components/avatar';
import DisplayName from '../../mastodon/components/display_name';
import Permalink from '../../mastodon/components/permalink';
import IconButt... |
assets/router.js | apolishch/react-article | 'use strict'
import React from 'react'
import { Router, browserHistory } from 'react-router'
import { render } from 'react-dom'
import routes from './routes'
render(<Router history={browserHistory}>{routes}</Router>, document.getElementById('mainApp'))
|
src/mobile/public/components/CoverPhoto/index.js | Perslu/rerebrace | import React from 'react';
import "./styles.css";
export const THEME_LIGHT = "THEME_LIGHT";
function getStyles(props) {
return {
backgroundImage: `url(${props.img})`,
}
}
function getTextTheme(theme) {
if(theme === THEME_LIGHT) {
return "light"
}
else {
return "";
}
}
function CoverPhoto(pr... |
app/router/movies-route.js | KleeGroup/focus-demo-app | import React from 'react';
import MovieDetailView from '../views/movie/detail';
const route = [
{
path: 'movies/:id',
component: (props) => (<MovieDetailView id={parseInt(props.params.id)} {...props}/>)
}
];
export default route;
|
app/containers/App/index.js | wanbinkimoon/parmigiana | /**
*
* App.react.js
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { pad, knob, init, loadMidi, mercurio } from './actions';
import { makeSelectMidiLink, makeSelectPad, makeSelectKnob, makeSelectSoma, makeSelectPsiche } from './... |
components/animals/surikata.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/surikata/01.jpg'),... |
integration-tests/react-percy/src/BlueText.js | percy/react-percy | import PropTypes from 'prop-types';
import React from 'react';
import './BlueText.css';
const BlueText = ({ children }) =>
<div className="blue-text">
{children}
</div>;
BlueText.propTypes = {
children: PropTypes.string.isRequired,
};
export default BlueText;
|
examples/todos-flow/src/components/App.js | heyesther/redux | // @flow
import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
packages/icons/src/md/image/Timelapse.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdTimelapse(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M32.49 15.51A11.995 11.995 0 0 0 24 12v12l-8.49 8.49c4.69 4.69 12.28 4.69 16.97 0 4.69-4.69 4.69-12.29.01-16.98zM24 4c11.05 0 20 8.95 20 20 0 11.04... |
src/parser/warlock/destruction/modules/azerite/Flashpoint.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import StatTracker from 'parser/shared/modules/StatTracker';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import AzeritePowerStatistic from 'interfa... |
examples/simple/index.js | joshblack/library-boilerplate | import React from 'react';
import App from './components/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/Col.js | omerts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const Col = React.createClass({
propTypes: {
/**
* The number of columns you wish to span
*
* for Extra small devices Phones (<768px)
*
... |
examples/relay-treasurehunt/js/app.js | mroch/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook 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 MERCHANTABILITY,
* FITNES... |
src/components/ErrorContent/index.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import * as branding from '_/branding'
import styles from './style.css'
const ErrorContent = ({ title, description, leftButton, rightButton }) => (
<div>
<div className={`container text-center ${styles['errorContentContainer']}`}>
<img src={brand... |
app/javascript/mastodon/features/pinned_statuses/index.js | NS-Kazuki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
src/App/App.js | cjies/cjies-v2 | // @flow
import React from 'react';
import GlobalStyle from './GlobalStyle';
import AppHeader from './AppHeader';
import AppFooter from './AppFooter';
// Sections
import HomeSection from 'sections/HomeSection';
import AboutSection from 'sections/AboutSection';
import ResumeSection from 'sections/ResumeSection';
impor... |
src/components/Navigation/SearchFilter.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select';
import { resolveReturnValues, resolveSelectValues } from '../../utils/helpers';
const SearchFilter = ({
placeholder,
value,
options,
handleChange,
multi,
className,
isVisible
}) => {
if (!isVisible) {
... |
frontend/app_v2/src/common/icons/TimesCircle.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary TimesCircle
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function TimesCircle({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className={styling}>
<path d="M25... |
frontend/src/components/dialog/sysadmin-dialog/sysadmin-create-group-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
import { gettext } from '../../../utils/constants';
import UserSelect from '../../user-select';
const propTypes = {
createGroup: PropT... |
src/DropdownMenu.js | erictherobot/react-bootstrap | import React from 'react';
import keycode from 'keycode';
import classNames from 'classnames';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';
class DropdownMenu e... |
src/containers/Main.js | ViniciusAtaide/edgartccfront | import React from 'react';
import { Main } from '../components';
import { connect } from 'react-redux';
class MainContainer extends React.Component {
static propTypes = {
reports: React.propTypes.array.isRequired,
};
render() {
return (
<Main reports={this.props.reports}/>
);
}
}
export def... |
test/integration/basic/pages/async-props.js | kevmannn/next.js | import React from 'react'
export default class AsyncProps extends React.Component {
static async getInitialProps () {
return await fetchData()
}
render () {
return <p>{this.props.name}</p>
}
}
function fetchData () {
const p = new Promise(resolve => {
setTimeout(() => resolve({ name: 'Diego Mil... |
src/features/VFS/AddToFlowEditor.js | nuagenetworks/visualization-framework | import React from 'react';
import PropTypes from 'prop-types';
import ModalEditor from '../../components/Editor/ModalEditor';
import {Form, Label, Select, Header, Checkbox} from '../../ui-components';
import {buildOptions, getDomainID, getEnterpriseID, getMetaDataAttribute} from './utils';
import { TwoColumnRow } from... |
lib/components/ErrorPage.js | codebhendi/filepizza | import ErrorStore from '../stores/ErrorStore'
import React from 'react'
import Spinner from './Spinner'
export default class ErrorPage extends React.Component {
constructor() {
super()
this.state = ErrorStore.getState()
this._onChange = () => {
this.setState(ErrorStore.getState())
}
}
co... |
react/front/src/App.js | kopringo/GenealogyViewer | import React, { Component } from 'react';
//import logo from './logo.svg';
import './App.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
//import createMuiTheme from 'material-ui/styles';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
//import darkBaseTheme from 'material-ui/styles... |
modules/Redirect.js | Jastrzebowski/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './URLUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
export var Redirect = React.createClass({
statics: {
createRouteF... |
src/components/LeaderboardRow.js | FRCTools/Attendance-Client | import React, { Component } from 'react';
import { TableRow, TableRowColumn } from 'material-ui/Table';
import '../styles/TitleBar.css';
class LeaderboardRow extends Component {
render() {
if (this.props.total) {
return (
<TableRow
className="TableRow"
... |
src-ui/map-editor/dialogs/new-node/create-new-node.js | cdaniel/atlas2 | /* Copyright 2017 Krzysztof Daniel.
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... |
imports/ui/components/pages/NotFoundPage/NotFoundPage.stories.js | latotty/meteor-sweeper | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { NotFoundPage } from '.';
storiesOf('NotFoundPage', module)
.add('default', () => (
<NotFoundPage />
));
|
src/components/IndicAlgue.js | olivmarcel/aquack | import React, { Component } from 'react';
import { Grid, Col, Jumbotron, Button, ToggleButtonGroup, ToggleButton } from 'react-bootstrap';
import Carte from "./Carte";
export default class Indic extends Component {
altIndic() {
console.log("...");
}
render() {
const indicAlgue = [1,2,3,4,5,6,7,8,9,10];
ret... |
src/js/components/icons/base/PlatformChrome.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/src/sections/ImageSection.js | Terminux/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 ImageSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
app/javascript/mastodon/components/avatar_composite.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
src/pages/build/results.js | RexSkz/drone-ui | import BuildPanel from '../../components/build_panel';
import {Button} from 'react-mdl';
import PageContent from '../../components/layout/content';
import React from 'react';
import Status from '../../components/status';
import Term from '../../components/term';
import {
events,
APPROVE_BUILD,
DECLINE_BUILD,
DE... |
src/svg-icons/image/broken-image.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrokenImage = (props) => (
<SvgIcon {...props}>
<path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ... |
Admin/Pager/Index.js | wangmengling/MaoMobxBlog | import React, { Component } from 'react';
import Pager from './Pager';
export default () => (
<Pager />
) |
docs/src/components/Demo/Demo.js | seekinternational/seek-asia-style-guide | import styles from './Demo.less';
import { Helmet } from 'react-helmet';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { PageBlock, Section, Text } from 'seek-asia-style-guide/react';
import Baseline from './Baseline/Baseline';
import Code fro... |
src/svg-icons/social/sentiment-very-satisfied.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVerySatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1... |
src/client/chat/messagesection.react.js | Zycon42/este-chat | import immutable from 'immutable';
import MessageComposer from './messagecomposer.react';
import MessageListItem from './messagelistitem.react';
import PureComponent from '../components/purecomponent.react';
import React from 'react';
export default class MessageSection extends PureComponent {
componentDidUpdate() ... |
src/components/AudioData/index.js | lumio/waveblock | import React from 'react';
import PropTypes from 'prop-types';
import File from './inputSources/File';
import Microphone from './inputSources/Microphone';
const inputSources = {
File,
Microphone,
};
class AudioData extends React.Component {
constructor( props ) {
super( props );
this.state = {
s... |
ReactJS/class-2018-01-07/react-firebase/src/index.js | tahashahid/cloud-computing-2017 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as firebase from 'firebase'
import registerServiceWorker from './registerServiceWorker';
var config = {
apiKey: "AIzaSyClvjgk6E5APUxIhDS3tgz6rLbvtsSSweQ",
authDomain: "todo-db-21af0.firebaseapp.... |
examples/huge-apps/components/GlobalNav.js | bs1180/react-router | import React from 'react'
import { Link } from 'react-router'
const dark = 'hsl(200, 20%, 20%)'
const light = '#fff'
const styles = {}
styles.wrapper = {
padding: '10px 20px',
overflow: 'hidden',
background: dark,
color: light
}
styles.link = {
padding: 11,
color: light,
fontWeight: 200
}
styles.activ... |
src/components/MainNav/CurrentApp/AppContextMenu.js | folio-org/stripes-core | /* This component is exported from stripes-core for
* use in modules to expose a context menu of module-specific functions
* to be rendered in FOLIO's main navigation.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { withAppCtxMenu } from './AppCtxMenuContext... |
docs-ui/components/clippedBox.stories.js | gencer/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
// import {action} from '@storybook/addon-actions';
import ClippedBox from 'sentry-ui/clippedBox';
storiesOf('ClippedBox', module).add(
'default',
withInfo('Component that clips content and allow... |
admin/src/components/ItemsTableValue.js | davibe/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var ItemsTableValue = React.createClass({
displayName: 'ItemsTableValue',
propTypes: {
className: React.PropTypes.string,
exterior: React.PropTypes.bool,
field: React.PropTypes.string,
href: React.PropTypes.str... |
actor-apps/app-web/src/app/components/modals/MyProfile.react.js | yaoliyc/actor-platform | //import _ from 'lodash';
import React from 'react';
import { KeyCodes } from 'constants/ActorAppConstants';
import MyProfileActions from 'actions/MyProfileActions';
import MyProfileStore from 'stores/MyProfileStore';
import AvatarItem from 'components/common/AvatarItem.react';
import Modal from 'react-modal';
imp... |
node_modules/react-bootstrap/es/Fade.js | vitorgomateus/NotifyMe | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import classNames from 'classnames';
import React fr... |
src/components/heros/HeroRenderables.js | ello/webapp | /* eslint-disable react/no-danger */
import React from 'react'
import PropTypes from 'prop-types'
import BackgroundImage from '../assets/BackgroundImage'
import CategoryInfoTriggerContainer from '../../containers/CategoryInfoTriggerContainer'
import CategorySubscribeButtonContainer from '../../containers/CategorySubscr... |
react-router-nb/react-router/modules/IndexRoute.js | zhangfaliang/learnReact | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './InternalPropTypes'
const { func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route... |
src/ContextMenu.js | vkbansal/react-contextmenu | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import assign from 'object-assign';
import listener from './globalEventListener';
import AbstractMenu from './AbstractMenu';
import SubMenu from './SubMenu';
import { hideMenu } from './actions';
import { cssClasses, callIfExis... |
src/svg-icons/action/settings-bluetooth.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/index.js | FuYaoDe/30-days-of-react-native | import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import Router from './containers/Router';
import configureStore from './configureStore';
const store = configureStore();
const RNBoilerplate = () => (
<Provider store={store}>
<Router />
</Provider>
... |
src/withPartials.js | leourbina/react-component-with-partials | import React, { Component } from 'react';
import { Map } from 'immutable';
import partial from './partial';
export default function withPartials(Target) {
class Wrapper extends Component {
constructor(props) {
super(props);
this.__partials__ = Map();
this.partial = partial.bind(this);
}
... |
app/javascript/mastodon/features/pinned_statuses/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
tests/react/ConcurrentMode.js | AgentME/flow | // @flow
import React from 'react';
{
const {ConcurrentMode} = React;
<ConcurrentMode>
<div />
</ConcurrentMode>
}
{
const {Component, ConcurrentMode} = React;
class ClassExample extends Component<{||}> {
render() {
return null;
}
}
<ConcurrentMode>
<ClassExample />
</Concurr... |
src/svg-icons/maps/local-pharmacy.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
fields/types/markdown/MarkdownColumn.js | wmertens/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.ob... |
src/components/Platform/Design.js | pyxis0810/onepy | import React, { Component } from 'react';
class Design extends Component {
render() {
return(
<div className="platform-design align-items-center">
<div className="container-fluid full-width">
<div className="row justify-content-center align-items-center">
<div className="col-1... |
docs/src/PropTable.js | aparticka/react-bootstrap | import merge from 'lodash/object/merge';
import React from 'react';
import Label from '../../src/Label';
import Table from '../../src/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
function getPropsData(componentData, metadata){
let props = componentData.props || {};
i... |
src/ContentBlocks/BlockSpacer/BlockSpacerForm.js | grommet/grommet-cms-content-blocks | /* @flow */
import React from 'react';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Footer from 'grommet/components/Footer';
type BlockSpacerFormProps = {
onSubmit?: () => void,
};
export default class BlockSpacerForm extends React.Component {
constructor(props:... |
examples/02 Drag Around/Custom Drag Layer/index.js | wagonhq/react-dnd | import React, { Component } from 'react';
import Container from './Container';
import CustomDragLayer from './CustomDragLayer';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
@DragDropContext(HTML5Backend)
export default class DragAroundCustomDragLayer extends... |
src/client/app/app.react.js | jirastom/react-learnig | import './app.styl';
import Component from '../components/component.react';
import Footer from './footer.react';
import Header from './header.react';
import React from 'react';
import fetch from 'isomorphic-fetch';
import flux from '../lib/flux';
import store from './store';
import {RouteHandler} from 'react-router';
i... |
src/components/Feedback/Feedback.js | oozywaters/JOOR-react | /**
* 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 withStyles from 'isomorp... |
src/App.js | Z-Editor/Z-Editor | import React, { Component } from 'react';
import ZEditor from './editor/editor';
import './App.css';
import swal from 'sweetalert2';
class App extends Component {
state = {
downloadState: null
};
child = React.createRef();
readFileContent = file => {
const reader = new FileReader();
return new Pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.