path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/LoginForm/LoginForm.js | unboundfire/example-react-dashboard | import React from 'react'; // eslint-disable-line no-unused-vars
import styles from './LoginForm.less'; // eslint-disable-line no-unused-vars
import withStyles from '../../decorators/withStyles'; // eslint-disable-line no-unused-vars
import TextBox from '../TextBox';
import Form from '../Form';
import FormGroup from '.... |
src/components/BookSearchResult.js | pawelzysk1989/game-store | import React from 'react';
import PropTypes from 'prop-types';
import BookSearchSlider from './BookSearchSlider';
import BookSerachResultItem from './BookSerachResultItem';
import toastr from 'toastr';
class BookSearchResult extends React.Component {
constructor(props, context) {
super(props, context);
this.... |
app/javascript/mastodon/features/status/components/action_bar.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
app/components/FormOperacion/index.js | pauleonardo/demo-trans | /**
*
* FormOperacion
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
Box,
Container,
Title,
} from 'bloomer';
import { FormattedMessage } from 'react-intl';
import Button from 'components/Button';
import DropList from 'components/DropField';
import Input from 'components/FieldInput... |
src/components/AboutView.js | TarlyFM/tarlyfm_front | import React from 'react';
const AboutView = (props) => (
<div id="about-view" style={{ height: '100%', width: '100%'}}>
<img src='/peq.jpg' style={{ height: '100%', width: '100%'}} />
</div>
);
export default AboutView;
|
src/App/app.js | ziel5122/pdie | import Paper from 'material-ui/Paper';
import PropTypes from 'prop-types';
import React from 'react';
import Body from '../Body';
import Gallery from '../Gallery/gallery';
import Header from '../Header/header';
import styles from './styles';
let clientColor;
let serverColor;
let zDepth;
const App = ({ renderLocation... |
components/auth/Login.js | digithun/jamplay-nap | import React from 'react'
import { gql, graphql } from 'react-apollo'
import persist from '../../lib/persist'
import device from '../../lib/device'
import userProfile from '../userProfile.gql'
import PropTypes from 'prop-types'
class Login extends React.Component {
constructor (props) {
super(props)
this.sta... |
wrappers/md.js | Tkoefod/javasciprt-today | import React from 'react'
import 'css/markdown-styles.css'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<... |
pootle/static/js/editor/app.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import $ from 'jquery';
import _ from 'underscore';
import... |
geonode/contrib/monitoring/frontend/src/pages/alerts-settings/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Header from '../../components/organisms/header';
import AlertSetting from '../../components/organisms/alert-setting';
import HoverPaper from '../../components/atoms/hover-paper';
import actions from './actions';... |
src/SanityVision.js | rexxars/sanity-vision | import React from 'react'
import client from 'part:@sanity/base/client'
import Button from 'part:@sanity/components/buttons/default'
import Select from './sanity/Select'
import Vision from './Vision'
import visionGui from './css/visionGui.css'
import jsonInspector from './css/jsonInspector.css'
import jsonDump from '.... |
app/universal/shared/components/icon.js | ShandyClub/shandy-club | import React from 'react'
import styled from 'styled-components'
import Atomic from '../style/atomic'
import { colours } from '../style'
const MaterialIcon = ({ children, className, ...props }) => <i className={`material-icons ${className}`} { ...props }>{ children }</i>
export const Icon = styled(MaterialIcon)`
c... |
packages/react-router-website/examples/RouteConfig.js | rafrex/react-router | import React from 'react'
import Route from 'react-router/Route'
import Router from 'react-router-dom/BrowserRouter'
import Link from 'react-router-dom/Link'
// Some folks find value in a centralized route config.
// A route config is just data. React is great at mapping
// data into components, and <Route> is a compo... |
es/components/viewer3d/viewer3d.js | cvdlab/react-planner | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
examples/real-world/index.js | jdelight/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... |
src/js/components/Tip.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Box from './Box';
import CSSClassnames from '../utils/CSSClassnames';
import Drop from '../utils/Drop';
const CLASS_ROOT = CSSC... |
front/app/js/main.js | unfoldcollective/Apprentice-of-Okolicne | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
if (PRODUCTION) {
const body = document.querySelector('body');
body.addEventListener(
'MSHoldVisual',
function(e) {
e.preventDefault();
},
false
);
body.addEventListener(
'contextmenu',
functio... |
app/components/Login.js | GongDexing/work-board | /*jshint esversion:6*/
import '../less/Login.less';
import React, { Component } from 'react';
import { Modal, Button, Form, Input, Checkbox } from 'antd';
import AlertMsg from './AlertMsg';
import { login } from '../actions/auth';
const createForm = Form.create;
const FormItem = Form.Item;
class Login extends Componen... |
js/actions/TerminalActions.js | Sable/McLab-Web | import AT from '../constants/AT';
import Dispatcher from '../Dispatcher';
import React from 'react';
function println(content) {
Dispatcher.dispatch({
action: AT.TERMINAL.ADD_NEW_LINE,
data: {newLine: content}
})
}
function printerrln(content) {
Dispatcher.dispatch({
action: AT.TERMINAL.ADD_NEW_LINE... |
app/components/Header/index.js | JonathanMerklin/react-boilerplate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/components/SearchBar.js | MichelML/masaq.com | import React from 'react';
import $ from 'jquery';
import Hash from '../utils/hash.js';
const SearchBar = (props) => (
<form className="offset-search-bar" onSubmit={(e) => {e.preventDefault();return false;}}>
<div className="mdl-textfield mdl-js-textfield mdl-textfield--expandable">
... |
app/components/AddTask/TeamSelect/index.js | prudhvisays/season | import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.css';
export default class TeamSelect extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.state = {
value: [],
};
this.onChange = this.onChange.bind(this);
... |
app/javascript/mastodon/features/ui/components/image_loader.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { LoadingBar } from 'react-redux-loading-bar';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
s... |
node_modules/react-bootstrap/es/Clearfix.js | mohammed52/something.pk | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/elements/BootMedia/BootMedia.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
body: PropTypes.bool,
bottom: PropTypes.bool,
children: PropTypes.node,
className: PropTypes.string,
cssModule: PropTypes.object,
heading: PropTypes.bool... |
app/containers/HomePage/index.js | HRR20-Lotus/affirmation | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Endpoint/ApiCreateEndpoint.js | thusithak/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/assets/icons/bag.js | HackArdennes2017/Project06 | import React from 'react'
export default props =>
<svg viewBox="0 0 100 125" {...props}>
<path d="M80.749 54.063h-5.493V41.919a10.43 10.43 0 0 0 2.379-6.639V23.668a1.5 1.5 0 0 0-1.5-1.5H61.802c-.239-2.542-2.287-4.543-4.8-4.543H43c-2.513 0-4.561 2.001-4.799 4.543H23.866a1.5 1.5 0 0 0-1.5 1.5v11.61c0 2.518.894 4.8... |
app/javascript/flavours/glitch/features/public_timeline/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container';
import Column from 'flavours/glitch/components/... |
app/javascript/mastodon/features/ui/components/columns_area.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
client/mobile/App.js | mgwidmann/slack_coder | import React, { Component } from 'react';
import { AsyncStorage } from 'react-native';
import { ApolloProvider } from 'react-apollo';
import Main from './app/containers/Main';
import store from './app/store';
import client from './app/client';
import { login } from './shared/actions/login';
// Show requests in chrome... |
src/svg-icons/image/camera-roll.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
ui/js/pages/message/MessageFormContents.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loadCategory, unloadCategory, postFile, deleteFile } from '../../actions';
import FormField from '../../components/FormField';
import FormFieldAdd from '../../components/FormFieldAdd';
import I... |
src/svg-icons/places/free-breakfast.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
app/components/Main/index-backup2.js | typesettin/manuscript | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Platform
} from 'react-native';
import TestPage from '../TestPage';
import {
Button, SocialIcon, List, ListItem, ListView, PricingCard
} from 'rea... |
src/routes/Home/components/HomeView.js | sebastiyan/todolist | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
node_modules/react-router/es6/IndexLink.js | gurusewak/react101 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
src/server.js | martinrp/reduxgitresume | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleCheckbox.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleCheckbox = () => (
<Checkbox label='Make my profile visible' />
)
export default CheckboxExampleCheckbox
|
examples/react/src/components/Nav.js | router5/router5 | import React from 'react'
import { BaseLink, useRoute } from 'react-router5'
function Nav() {
const { router } = useRoute()
return (
<nav>
<BaseLink
router={router}
routeName="inbox"
routeOptions={{ reload: true }}
>
... |
imports/ui/containers/notifications/notifications.js | jiyuu-llc/jiyuu | import React from 'react';
import { composeWithTracker } from 'mantra-core';
import { Notifications } from '/lib/collections';
import NotificationsList from '../../components/notifications/notifications.jsx';
const composer = ( props, onData ) => {
if (Meteor.subscribe('notifications').ready()){
const noti... |
docs/src/examples/collections/Table/States/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const States = () => (
<ExampleSection title='State... |
src/components/RSequipmentThing/EquipmentDetails.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import EquipmentSlotBox from './EquipmentSlotBox';
class IconAndCheckbox extends Component {
renderSlotBoxes() {
let { filteredItemsByEquipSlot } = this.props;
let slotTitles = Object.keys(filteredItemsByEquipSlot);
// This functi... |
src/component/article/ArticleNotebook.js | ciyer/outlier | import React, { Component } from 'react';
import { LoadingSpinner } from '../../utils';
import { Col, Row } from 'reactstrap';
import ReactMarkdown from 'react-markdown';
import vegaEmbed from 'vega-embed';
import './Article.css';
class CodeOutputCell extends Component {
render() {
const output = this.props.outp... |
node_modules/_antd@2.13.4@antd/es/input-number/index.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
staticfiles/js/components/AnimatedHomePageHeader/AnimatedHomePageHeader.js | alemneh/negativity-purger | import React from 'react';
import styles from './AnimatedHomePageHeader.css';
const loaded_style = styles.loaded;
const AnimatedHomePageHeader = ({ loaded }) => {
let style_for_load = loaded ? ' ' + loaded_style : '';
return (
<div className={styles.textContainer}>
<span className={styles.regText + sty... |
app/components/Pager/index.js | dreamweaver1231/react-project | /**
*
* Pagination
*
*/
import React from 'react';
import PropTypes from 'prop-types';
function Pager({ onLoadDataPrevious, onLoadDataNext, previous, next }) {
/* eslint-disable no-unneeded-ternary */
const isPreviousDisabled = previous === null ? true : false;
const isNextDisabled = next === null ? true : fals... |
acceptance/src/fixtures/PaginationComponent.js | Autodesk/hig | import React from 'react';
import PaginationInput from './PaginationInput';
import PaginationDynamic from './PaginationDynamic';
const PaginationComponent = (pageDetails, paginateDynamic) => {
if (paginateDynamic) {
return <PaginationDynamic pageDetails={pageDetails} />
} else {
return <Pagina... |
app/components/PopupMenu.js | xiangxn/btsgo | /**
* Created by necklace on 2016/12/20.
*/
import React from 'react';
import {injectIntl, intlShape, FormattedMessage} from 'react-intl';
export const menuItems = [
{name: 'menu_index', url: '/'},
{name: 'menu_transaction', url: '/markets'},//transaction
{name: 'menu_transfer', url: '/transfer'},
{n... |
app/containers/DetailPanel.js | waagsociety/tnl-relationizer | import React from 'react';
import { connect } from 'react-redux';
import api from '../utils/api';
import admin from '../utils/admin';
import ConceptDropTarget from '../components/ConceptDropTarget';
import Detail from '../components/Detail';
function loadData(props) {
const { id } = props;
if (id) {
props.d... |
packages/material-ui-icons/src/Battery30Outlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z" /><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V15H7z" /></React... |
src/ModalDialog.js | albertojacini/react-bootstrap | /* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is ... |
src/components/utilities/Common.js | openvcash/vcash-electron | import React from 'react'
/**
* Placeholder used in Transactions screen while the wallet has 0 transactions.
* @function Placeholder
* @prop {object} t - i18next intance.
* @prop {string} icon - Material icon name.
* @prop {string} string - i18next namespace string.
* @prop {object} style - Custom component styl... |
modules/ScrollManagementMixin.js | keathley/react-router | import React from 'react';
import { canUseDOM, setWindowScrollPosition } from './DOMUtils';
import NavigationTypes from './NavigationTypes';
var { func } = React.PropTypes;
function getCommonAncestors(branch, otherBranch) {
return branch.filter(route => otherBranch.indexOf(route) !== -1);
}
function shouldUpdateSc... |
client/src/core-components/autocomplete.js | opensupports/opensupports | import React from 'react';
import _ from 'lodash';
import keyCode from 'keycode';
import DropDown from 'core-components/drop-down';
import Tag from 'core-components/tag';
const ItemsSchema = React.PropTypes.arrayOf(React.PropTypes.shape({
id: React.PropTypes.number,
name: React.PropTypes.string,
content: ... |
app/javascript/mastodon/components/button.js | ebihara99999/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.bool,
size:... |
conference-management-system-front-end/src/containers/contactForm.js | Kokosowys/conference-management-system | import React, { Component } from 'react';
class ContactForm extends Component {
render() {
return (
<div>
<h2>Contact Page</h2>
<p>This application was created for uni project</p>
<p>Front-end app was created by Marcin Kokoszka in react</p>
... |
src/components/slider/demos/disabled.js | isogon/styled-mdl | import React from 'react'
import { Slider } from '../../../'
export default () => <Slider min={0} max={100} defaultValue={60} disabled />
|
app/components/payment/index.js | ritishgumber/dashboard-ui | import React from 'react';
import planList from './plans';
import {paymentCountries} from './config';
var valid = require('card-validator');
import {xhrDashBoardClient} from './xhrClient';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import {Modal, Button} from 'react-bootstrap';
import PlanDetails from... |
client/modules/Workout/components/WorkoutList.js | Danielbook/liftinglog | import React from 'react';
import PropTypes from 'prop-types';
import WorkoutListItem from './WorkoutListItem';
import { List } from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
function WorkoutList(props) {
return (
<List>
<Subheader>Your workouts</Subheader>
{props.workouts.ma... |
blueocean-material-icons/src/js/components/svg-icons/device/screen-rotation.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceScreenRotation = (props) => (
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59.59-.59 1.54 0 2.12l12.02 12.... |
app/components/Tasks.js | desktop-assistant/desktop-assistant | // @flow
import React, { Component } from 'react';
import moment from 'moment';
import { remote } from 'electron';
import Task from '../containers/TaskContainer';
import styles from './Tasks.css';
type TaskType = {
id?: string,
doc?: Object,
key?: string
};
export default class Tasks extends Component {
stat... |
src/layouts/Horizontal/Horizontal.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import themeGet from 'extensions/themeGet';
const normalize = size => {
if (!size) {
return 'large';
}
switch (size) {
case 'xs':
case 'extraSmall':
return themeGet('spacing.extraSmall');
... |
pootle/static/js/auth/components/AuthWindow.js | fabada/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { Modal ... |
src/routes/register/Register.js | DaveyEdwards/myiworlds | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/components/booking_detail.js | leapon/office-finder | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { getBookingDetail } from '../actions';
import { bindActionCreators } from 'redux';
class BookingDetail extends Component {
constructor(props) {
super... |
src/components/common/svg-icons/action/open-with.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenWith = (props) => (
<SvgIcon {...props}>
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/>
</SvgIcon>
);
ActionOpenWith = pure(Act... |
examples/src/components/CustomRenderField.js | miraks/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
fluxArchitecture/src/js/components/app.js | 3mundi/React-Bible | import React from 'react';
import Catalog from './catalog/app-catalog'
import Cart from './cart/app-cart'
import CatalogDetail from './product/app-catalogdetail';
import Template from './app-template';
import { Router, Route, IndexRoute } from 'react-router';
export default () => {
return (
<Router>
<Route... |
app/javascript/mastodon/components/status_action_bar.js | 8796n/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenu from './dropdown_menu';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
delete: { id: 'stat... |
teletobit/src/components/SinglePost/PostLink.js | edenpark/teletobit | import React from 'react';
import decode from 'ent/decode';
import { TextArea } from 'semantic-ui-react';
const PostLink = ({ post, updatePost, editable }) => {
return(
<div className="post-link-wrapper">
<div className="post-title">
{
editable ?
... |
src/widgets/material/input-text.js | surikaterna/formr | import React from 'react';
import BaseInput from './base-input';
export default function InputText(props) {
return <BaseInput {...props} type="text" />;
}
|
.storybook/decorators.js | Sing-Li/Rocket.Chat | import React from 'react';
import { MeteorProviderMock } from './mocks/providers';
export const rocketChatDecorator = (fn) => {
const linkElement = document.getElementById('theme-styles') || document.createElement('link');
if (linkElement.id !== 'theme-styles') {
require('../app/theme/client/main.css');
require... |
packages/react/src/components/ProgressIndicator/ProgressIndicator.Skeleton.js | carbon-design-system/carbon-components | /**
* 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 PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import { usePrefix } from '../../internal/usePref... |
scripts/chooseAuth.js | diakov2100/YaStreamDesktop | import React from 'react';
import ReactDOM from 'react-dom';
import ChooseAuthMain from '../views/chooseAuth/chooseAuthMain.jsx';
window.onload = function(){
ReactDOM.render(<ChooseAuthMain />, document.getElementsByClassName('container')[0]);
} |
react-ui/src/components/contact/ContactInput.js | MaGuangChen/resume-maguangchen | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import { compose } from 'react-apollo';
import * as actions from '../../actions/actions';
import fetchUsers from '../../queries/fetchUsers';
import signUpMutation from '../../mutations/singup';
imp... |
src/components/String/String.js | ShaneDrury/clicker | 'use strict';
import React from 'react';
import Kinetic from 'kinetic';
import './String.less';
window.requestAnimationFrame = window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnimationFrame;
var String = React.createClass({
propTypes: {
... |
stories/NestedHorizontal.js | tomkp/react-split-pane | import React from 'react';
import SplitPane from '../src';
import styled from '@emotion/styled';
const Wrapper = styled('div')`
flex: 1;
display: flex;
height: 100%;
width: : 100%;
height: 70%;
width: 70%;
border: 1px solid red;
`;
export default () => (
<React.Fragment>
outer container
<Wrapp... |
app/javascript/mastodon/features/notifications/components/column_settings.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
src/components/FAQ/FAQ.react.js | HackCWRU/HackCWRU-Website | import PropTypes from 'prop-types';
import React from 'react';
import styles from 'components/FAQ/FAQ.scss';
export default class FAQ extends React.Component {
render() {
return (
<div className={styles.faq}>
<div className={styles.question}>
{this.props.question}
</div>
... |
src/svg-icons/av/fiber-dvr.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
src/containers/Search.js | YouYII/EasyReader | //@flow
import React from 'react';
import {View,ListView} from 'react-native';
import { Container, Navbar } from 'navbar-native';
import {Actions} from 'react-native-router-flux';
import Spinner from 'react-native-spinkit';
import dismissKeyboard from 'dismissKeyboard';
import { SearchBar } from 'react-native-elements'... |
fixtures/attribute-behavior/src/App.js | acdlite/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
src/containers/NotFound/NotFound.js | jiangzhichao/dog | import React from 'react';
export default () => (
<div className="container">
<h1> 404 </h1>
</div>
);
|
src/components/common/TextInputBox.js | xmano/filterlistview |
import React from 'react';
import { Text, TextInput, View } from 'react-native';
const TextInputBox = (props) => {
const { containerStyle, labelStyle, inputStyle } = stylesVal;
return (
<View style={containerStyle}>
<Text style={labelStyle}>
{props.label}
</Text... |
packages/cp-frontend/src/containers/instances/tooltip.js | yldio/copilot | import React from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { Tooltip, TooltipLabel } from 'joyent-ui-toolkit';
const StyledContainer = styled.div`
position: absolute;
top: 0;
left: 0;
`;
const healthMessages = {
healthy: 'Your instance is operating as expe... |
storefront/src/ProductRow.js | jsebasct/MiriTienda | import React from 'react';
class Row extends React.Component{
render() {
}
} |
docs/app/Examples/collections/Table/Types/TableExampleApprove.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button, Checkbox, Icon, Table } from 'semantic-ui-react'
const TableExampleApprove = () => {
return (
<Table compact celled definition>
<Table.Header>
<Table.Row>
<Table.HeaderCell />
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.H... |
client/src/components/BookSearch.js | jondcoleman/book-trader | import React from 'react'
import axios from 'axios'
import Spinner from './Spinner'
import BookList from './BookList'
const BookSearch = React.createClass({
getInitialState: function() {
return {
searchText: '',
books: [],
loading: false
}
},
getBookList: function(text) {
... |
packages/bundle/src/adaptiveCards/Attachment/HeroCardAttachment.js | billba/botchat | import PropTypes from 'prop-types';
import React from 'react';
import HeroCardContent from './HeroCardContent';
const HeroCardAttachment = ({ attachment: { content } = {}, disabled }) =>
!!content && <HeroCardContent content={content} disabled={disabled} />;
HeroCardAttachment.defaultProps = {
disabled: undefine... |
src/svg-icons/action/hourglass-empty.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
analysis/druidferal/src/modules/core/HitCountAoE.js | anom0ly/WoWAnalyzer | import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import Statistic from 'parser/ui/Statistic';
import React from 'react';
// time after a cast in which direct damage from the spellId will be asso... |
src/docs/Navigation.js | dryzhkov/ps-react-dr | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
docs/src/pages/guides/composition/ButtonRouter.js | lgollut/material-ui | import React from 'react';
import { MemoryRouter as Router } from 'react-router';
import { Link as RouterLink } from 'react-router-dom';
import Button from '@material-ui/core/Button';
const LinkBehavior = React.forwardRef((props, ref) => (
<RouterLink ref={ref} to="/getting-started/installation/" {...props} />
));
... |
js/app.js | relayjs/relay-starter-kit | import 'babel-polyfill';
import App from './components/App';
import AppHomeRoute from './routes/AppHomeRoute';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
ReactDOM.render(
<Relay.Renderer
environment={Relay.Store}
Container={App}
queryConfig={new AppHome... |
TestDemos/examples/BookExamples/XA-17-5/GradientView.js | AzenXu/ReactNativeTest | /**
* Created by Azen on 16/9/7.
*/
/*
import React from 'react'; // processColor?
import {
requireNativeComponent, // 这个东东是用来引本地模块的
processColor // 这个东东是用来处理颜色的,使颜色能够跨平台
} from 'react-native';
let RNGradientView = requireNativeComponent('RNGradientViewSwift', GradientView); // 把名叫参... |
src/routes/notFound/index.js | pustovitDmytro/maysternya | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | romaindso/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';
import load from 'absoluteLoad';
export default class ext... |
packages/icons/src/md/action/InfoOutline.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdInfoOutline(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M22 34h4V22h-4v12zm2-30c11.05 0 20 8.95 20 20s-8.95 20-20 20S4 35.05 4 24 12.95 4 24 4zm0 36c8.82 0 16-7.18 16-16S32.82 8 24 8 8 15.18 8 24s7.18 ... |
src/svg-icons/maps/person-pin-circle.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPinCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.