path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | gaolichuang/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import { assign } from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ActorClient from 'utils/ActorClient';
import confirm from '... |
modules/dreamview/frontend/src/components/PNCMonitor/LatencyMonitor.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import setting from 'store/config/LatencyGraph.yml';
import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph';
@inject('store') @observer
export default class LatencyMonitor extends React.Component {
render() {
... |
react-boilerplate/internals/templates/containers/App/index.js | Sakuyakun/Yorha-Experiment | /**
*
* App.js
*
* 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)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
... |
public/src/admin/components/ConfigurationsList.js | SLedunois/Shiva | import React, { Component } from 'react';
class ConfigurationsList extends Component {
render() {
return (
<div className="menu col-9 centered-item">
<h1>Configurations List</h1>
</div>
);
}
}
export default ConfigurationsList;
|
src/icons/GlyphPencil.js | ipfs/webui | import React from 'react'
const GlyphPencil = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M23.2 60.5l-4.38 16.33a3.61 3.61 0 0 0 .93 3.42 3.53 3.53 0 0 0 2.53 1 3.94 3.94 0 0 0 .89-.11l16.31-4.36z' />
<path d='M22.28 81.41a3.67 3.67 0 0 1-2.62-1.07 3.75 3.75 0 0 1-1-3.54l4.37-16.34.11-.12.11.0... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/InputGroupAddon.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
examples/planout-example/isomorphic/variations/layer_2_bucket_C/components/footer.js | yahoo/mendel | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
Contributed by Shalom Volchok <shalom@digitaloptgroup.com>
See the accompanying LICENSE file for terms. */
import React from 'react';
const style = {
margin: "20px 0",
padding: "20px",
backgroundColor: "#884EA0"
}
export de... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | kst404/e8e-react-scripts | import React from 'react'
import aFileWithExtUnknown from './assets/aFileWithExt.unknown'
const text = aFileWithExtUnknown.includes('base64')
? atob(aFileWithExtUnknown.split('base64,')[1]).trim()
: aFileWithExtUnknown
export default () => (
<p id="feature-unknown-ext-inclusion">{text}.</p>
)
|
frontend/src/System/Logs/Logs.js | geogolem/Radarr | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import Switch from 'Components/Router/Switch';
import LogFilesConnector from './Files/LogFilesConnector';
import UpdateLogFilesConnector from './Updates/UpdateLogFilesConnector';
class Logs extends Component {
//
// Render
rend... |
src/renderer/views/molecules/Corner/index.js | airtoxin/youtubar | import React from 'react';
import styles from './index.css';
export default () => (
<img
className={`${styles.flow} ${styles.curl}`}
src="page-curl.svg"
role="presentation"
/>
);
|
app/component/WebViewPlayer/index.js | andy-shi88/MusicProgramador | import React, { Component } from 'react';
import {
StyleSheet,
Text,
TextInput,
Button,
View,
WebView,
AsyncStorage,
ToastAndroid
} from 'react-native';
import GetTime from '../../service/GetTime';
export default class WebViewPlayer extends Component {
constructor(props) {
super(props);
this.... |
packages/react-error-overlay/src/components/Footer.js | ro-savage/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.
*/
/* @flow */
import React from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
imports/ui/pages/holidays/NewHoliday.js | KyneSilverhide/team-manager | import React from 'react';
import HolidayEditor from '../../components/holidays/HolidayEditor.js';
const NewHoliday = ({ developer }) => (
<div className="NewTeam">
<h4 className="page-header">{`${developer.firstname} ${developer.lastname}`} : Ajout d'un congé</h4>
<HolidayEditor developer={developer}/>
</... |
src/containers/LMap/index.js | Guseff/services-on-map-demo | import React, { Component } from 'react';
import { Map, TileLayer } from 'react-leaflet';
import LMarker from '../LMarker';
import './style.css';
class LMap extends Component {
constructor() {
super();
this.onMapClick = this.onMapClick.bind(this);
}
onMapClick(e) {
if (this.props.loggedUser) {
... |
packages/react-art/src/ReactART.js | rricard/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactVersion from 'shared/ReactVersion';
import {LegacyRoot} from 'shared/ReactRootTags';
import... |
src/components/drawer.js | rdenadai/mockingbird | import { css } from '../css';
import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
const icons = {
home: `${css.fontAwes... |
web-ui/src/login/page.js | pixelated/pixelated-user-agent | /*
* Copyright (c) 2017 ThoughtWorks, Inc.
*
* Pixelated 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, either version 3 of the License, or
* (at your option) any later version.
*
* Pixelated i... |
client/src/app/views/forgot.js | jhuntoo/starhackit | import React from 'react';
import _ from 'lodash';
import LinkedStateMixin from 'react-addons-linked-state-mixin';
import cx from 'classnames';
import RaisedButton from 'material-ui/lib/raised-button';
import DocTitle from 'components/docTitle';
import authActions from 'actions/auth';
import ValidateEmail from 'servic... |
src/QAApp.js | arunchaganty/briefly | import React, { Component } from 'react';
import {Label, Glyphicon, Panel, Well} from 'react-bootstrap';
import update from 'immutability-helper';
import Experiment from './Experiment.js'
import QAPrompt from './QAPrompt.js'
import SegmentList from './SegmentList';
import './QAApp.css';
const BONUS_VALUE = '0.75';
c... |
src/client/SongCard.js | davekennewell/soundcloud | import React from 'react';
import styles from './songCard.css';
import mockSongs from './constants'
class SongCard extends React.Component {
constructor(props) {
super(props);
}
render() {
// console.log('SongCard props:', this.props);
const { artwork_url, title, user } = this.... |
client/dev/components/button.js | tetondan/ReactReduxToDo | import React from 'react';
const Button = (props) => {
const selectedButtonStyle = {
background: "#b3e5d1",
textDecoration: "none",
cursor: "default"
};
if(props.type) {
return <button onClick={props.clickHandler.bind(this, props.type)} style={props.selected === props.type ? select... |
src/server.js | magnusbae/fluffy-beat | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
src/components/views/items/CarouselUserView.js | planlodge/soundmix | import React from 'react';
import Moment from 'react-moment';
import OwlCarousel from 'react-owl-carousel';
// Using "Stateless Functional Components"
export default function (props) {
//console.log("Ps", props);
return (
<OwlCarousel
items={6}
autoplaySpeed={300}
la... |
src/Crosswords/UI/MatrixFormRow.js | minkiele/crosswords | import React from 'react';
import MatrixFormCell from './MatrixFormCell';
export default class MatrixFormRow extends React.Component {
render () {
let cells = [];
for(let col = 0; col < this.props.cols; col += 1) {
cells.push(
<MatrixFormCell key={col.toString()} row={this.props.row} col={co... |
src/components/FullUser.js | AliaksandrZahorski/contacts | import React from 'react'
import { connect } from 'react-redux'
import { deleteUser, editUser } from '../actions'
let FullUser = ({id, text, additionalText, dispatch }) => (
<div>
<p className="currentUser name">Name: {text}</p>
<p className="currentUser data">Data: {additionalText}</p>
<button classNa... |
client/views/setupWizard/SideBar.js | Sing-Li/Rocket.Chat | import { Box, Margins, Scrollable } from '@rocket.chat/fuselage';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import { useTranslation } from '../../contexts/TranslationContext';
import Logo from '../../components/basic/Logo';
import './SideBar.css';
function SideBar({
logo... |
node_modules/react-slick/src/inner-slider.js | hong1012/FreePay | 'use strict';
import React from 'react';
import EventHandlersMixin from './mixins/event-handlers';
import HelpersMixin from './mixins/helpers';
import initialState from './initial-state';
import defaultProps from './default-props';
import classnames from 'classnames';
import assign from 'object-assign';
import {Track... |
docs/server.js | justinanastos/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
frontend/src/components/NotFound.js | OpenCollective/opencollective-website | import React, { Component } from 'react';
export default class NotFound extends Component {
render() {
return (
<div id="content-404">
<a href='https://opencollective.com/'> <img src='/public/images/LogoLargeTransparent.png' /></a>
<p><b>Error 404: We can't find that page.</b></p>
... |
app/config/feature/Feature.js | stefanKuijers/aw-fullstack-app | // @flow
import React, { Component } from 'react';
import { remote } from 'electron';
import {Card, CardHeader, CardText} from 'material-ui/Card';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Toggle from 'material-ui/Toggle';
import Avatar from 'material-ui/Ava... |
src/components/LayoutFullScreen/LayoutFullScreen.js | cineindustria/site | /**
* 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-... |
client/src/components/Message/index.js | ultranaut/react-chat | import React from 'react';
import './Message.scss';
const Message = (props) => {
return (
<div className="comment">
<div className="user">{props.user}</div>
<div className="copy">{props.message}</div>
</div>
);
};
export default Message;
|
src/svg-icons/action/add-shopping-cart.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAddShoppingCart = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-... |
src/components/CvHeader/CvHeader.js | lkostrowski/cv | import React from 'react';
import PropTypes from 'prop-types';
import styled from "styled-components"
import colors from '../../utils/colors';
const Header = styled.header`
background: ${colors.dark};
color: ${colors.light};
padding: 1rem;
box-shadow: inset 0 0 0 4px ${colors.dark}, inset 0 0 0 6px ${c... |
demo17/main.js | tangjingjing/try-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
// wrong!
// <App count="1"/>,
// right!
// <App count={1}/>,
<App/>,
document.getElementById('app')
)
|
webapp-src/src/Admin/UserMod.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
import apiManager from '../lib/APIManager';
class UserMod extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
mods: props.mo... |
search-filter-map/test/test_helper.js | murielg/react-redux | 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... |
src/svg-icons/image/wb-incandescent.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbIncandescent = (props) => (
<SvgIcon {...props}>
<path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.... |
examples/antd-mobile-demo/src/routes/IndexPage.js | zjxpcyc/xrc-form | import React from 'react';
import { connect } from 'dva';
import { List, InputItem, Button, Modal } from 'antd-mobile';
import { createForm } from 'rc-form';
import FormBody from '../../../../xrc-form/lib';
import styles from './IndexPage.css';
const UserLogIn = createForm()((props) => {
const handleSubmit = (e) => ... |
app/components/game.js | BAMason/HI | import { browserHistory } from 'react-router';
import React from 'react';
import Counter from './counter';
import Display from './display';
import Keyboard from './keyboard';
import Lost from './lose';
import Win from './win';
export default class Game extends React.Component {
constructor(props) {
super(props);... |
assets/javascripts/kitten/karl/pages/kissbankers-modal/stories.js | KissKissBankBank/kitten | import React from 'react'
import KissbankersModal from './index'
export default {
title: 'pages/KissbankersPage',
component: KissbankersModal,
}
export const Default = () => <KissbankersModal />
|
Realization/frontend/czechidm-core/src/content/exportimport/ExportImportDetail.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
//
import { Basic, Advanced, Utils, Managers, Domain } from 'czechidm-core';
import { ExportImportManager, ImportLogManager } from '../../redux';
import ExportImportTypeEnum from '../../enums/ExportImportTypeEnum';
import ConceptRoleRequestOperationEnum ... |
bandicoot/dashboard_src/public/js/timescale_brush.js | yvesalexandre/bandicoot | import React from 'react'
import d3 from 'd3'
import ReactDOM from 'react-dom'
export default class TimeScaleBrush extends React.Component {
constructor(props) {
super(props)
this.chart = null
this.chart_id = "chart_" + props.id
this.svg = null
this.brush = null
this.intervals = {}
thi... |
docs/app/Examples/views/Feed/Content/FeedExampleIconLabel.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Feed, Icon } from 'semantic-ui-react'
const FeedExampleIconLabel = () => (
<Feed>
<Feed.Event>
<Feed.Label>
<Icon name='pencil' />
</Feed.Label>
<Feed.Content>
<Feed.Date>Today</Feed.Date>
<Feed.Summary>
You posted on your fri... |
docs/app/Examples/elements/Reveal/Content/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RevealContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Visible Content'
des... |
src/components/views/delegatesList/components/delegate-list/DelegateCard.js | LiskHunt/LiskHunt | import React, { Component } from 'react';
import { goDelegateProfile } from '../../../../router/routes';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { bindActionCreators } from 'redux';
import ProfilePicture from "./ProfilePicture";
import Information from "./Information";
... |
spec/javascripts/jsx/gradezilla/default_gradebook/components/GradebookFilterSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
website/src/components/examples/EventDelegation.js | atomiks/tippyjs | import React from 'react';
import Tippy from '../Tippy';
import {Button} from '../Framework';
function EventDelegation() {
return (
<Tippy target=".child" ignoreAttributes={false}>
<div id="parent">
<Button className="child" data-tippy-content="Tooltip 1">
One
</Button>
<B... |
app/src/components/LandingTiles.js | mlang12/gameswipe | import React, { Component } from 'react';
import Gametile from './Gametile.js';
class LandingTiles extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="row">
{this.props.results.map(function(result) {
return <Gametile cn={"gameTileImg"} ke... |
src/routes.js | Lebedancer/reactFull | import React from 'react';
import { Route, IndexRoute} from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import AboutPage from './components/about/AboutPage';
import CoursesPage from './components/course/CoursesPage';
import ManageCoursePage from './components/c... |
client/modules/Intl/IntlWrapper.js | XuHaoJun/tiamat | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';
import { connect } from 'react-redux';
export function IntlWrapper(props) {
return <IntlProvider {...props.intl}>{props.children}</IntlProvider>;
}
IntlWrapper.propTypes = {
children: PropTypes.element.isRequ... |
src/parser/hunter/beastmastery/modules/features/SpellsAndTalents.js | fyruna/WoWAnalyzer | import React from 'react';
import StatisticsListBox from 'interface/others/StatisticsListBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Analyzer from 'parser/core/Analyzer';
import ChimaeraShot from 'parser/hunter/beastmastery/modules/talents/ChimaeraShot';
import Stampede from 'parser/h... |
src/routes/index.js | jonkemp/universal-react-todo-app | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import IndexPage from '../components/indexPage';
const routes = (
<Route path="/">
<IndexRoute component={IndexPage}/>
</Route>
);
export default routes;
|
thingmenn-frontend/src/widgets/partybadge/index.js | baering/thingmenn | import React from 'react'
import PropTypes from 'prop-types'
import './styles.css'
const PartyBadge = ({ party, className }) => {
return (
<div
className={`PartyBadge ${className}`}
data-party={party}
style={{
backgroundImage: `url(/images/parties/${party}.svg)`,
}}
></div>
... |
src/components/PersonModal/PersonModal.js | rlesniak/tind3r.com | // @flow
import 'rodal/lib/rodal.css';
import React, { Component } from 'react';
import Rodal from 'rodal';
import PersonView from 'components/PersonView';
import './PersonModal.scss';
type PropsType = {
location: Object,
history: Object,
person: Object,
}
class PersonModal extends Component {
props: Prop... |
src/svg-icons/hardware/keyboard-tab.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardTab = (props) => (
<SvgIcon {...props}>
<path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"/>
</SvgIcon>
);
HardwareKeyboardTab = pure(HardwareKeyboard... |
zanata-editor/src/app/components/Button/story.js | Halcom/zanata-server | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import Button from '.'
/*
* See .storybook/README.md for info on the component storybook.
*/
storiesOf('Button', module)
.add('plain', () => (
<Button title="Click should trigger onClick action"
onClick={action('onClick... |
client/App.js | eantler/simmeme-client | /**
* 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 functi... |
src/routes/error/index.js | tarixgit/test | /**
* 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 ErrorPage from './ErrorP... |
ui/js/pages/newsletter/Newsletter.js | ericsoderberg/pbc-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import moment from 'moment-timezone';
import { loadItem, unloadItem, postNewsletterSend } from '../../actions';
import ItemHeader from '../../components/ItemHeader';
import Button from '../../components/... |
src/components/HorizontalRail.js | mjangir/react-scrollify | import React from 'react';
import ReactDOM from 'react-dom';
import _ from '../helpers';
import HorizontalBar from './HorizontalBar';
class HorizontalRail extends React.Component {
constructor(props) {
super(props);
this.handleOnClick = this.handleOnClick.bind(this);
this.update... |
app/components/Store/Icons/PlusIcon.js | VineRelay/VineRelayStore | import React from 'react';
import Icon from 'react-icon-base';
const PlusIcon = (props) => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 16.4v4.3q0 0.9-0.6 1.5t-1.5 0.7h-9.3v9.2q0 0.9-0.6 1.6t-1.5 0.6h-4.3q-0.9 0-1.5-0.6t-0.7-1.6v-9.2h-9.3q-0.9 0-1.5-0.7t-0.6-1.5v-4.3q0-0.9 0.6-1.5t1.5-0.6h9.3v-9.3q0... |
src/js/main.js | mnm1001/draggable-homepage | import '../styles/bootstrap.min.css'
import '../styles/styles.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, browserHistory } from 'react-router'
import routes from './routes'
const rootElement = document.getElementById('app')
const ComponentEl = <Router history={browserHistory} r... |
src/svg-icons/communication/no-sim.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationNoSim = (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 1.27-1.... |
examples/js/footer/footer-table.js | prajapati-parth/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,
... |
packages/wix-style-react/src/MessageBox/docs/AnnouncementExamples/Standard.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import { MessageBoxMarketerialLayout } from 'wix-style-react';
export default () => (
<MessageBoxMarketerialLayout
title="Looking good! Your site is on Google"
content="All of your pages are indexed and now come up as separate search results on... |
rallyboard-v2/client/src/RaBreadcrumb.js | tylerjw/rallyscores | import React, { Component } from 'react';
import {
Breadcrumb
} from 'semantic-ui-react';
import { Link } from 'react-router-dom';
class RaBreadcrumb extends Component {
render() {
const { year, code } = this.props;
return (
<Breadcrumb size='big'>
<Breadcrumb.Section link as={Link} to="/"... |
Harddisk Browser/Flat-UI-master/ReactJS Browser/src/client/app/js/components/TVShow.js | tomjose92/Fun-Projects | import React from 'react';
import Radium,{StyleRoot} from 'radium';
import {connect} from 'react-redux';
import Header from './common/Header';
import Link from './common/Link';
import {TVSHOW_ONLINE_URL, TVSHOW_LOCAL_URL} from '../constants/apis';
import Gap from './common/Gap';
import {Images, ImagePosition} from '../... |
src/pages/post_edit.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
app/containers/ForgotPassword/ForgotPasswordForm.js | danielmoraes/invoices-web-client | import React from 'react'
import { Form } from 'components'
import { User } from 'api/entity-schema'
const formLayout = [
[ 'email' ]
]
const formOptions = {
focus: 'email',
hideLabels: true,
fieldOptions: {
email: {}
}
}
// inject schema to field options
Object.keys(formOptions.fieldOptions).forEach(... |
assets/javascripts/kitten/components/graphics/illustrations/lightbulb-illustration.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import { checkDeprecatedSizes } from '../../../helpers/utils/deprecated'
export const LightbulbIllustration = ({ size, ...props }) => {
checkDeprecatedSizes(size)
if (size === 'small') {
return (
<svg width={24} height={33} viewBox="0 0 24 33"... |
src/pages/blog/index.js | saschajullmann/gatsby-starter-gatsbythemes | /* eslint-disable */
import React from 'react';
import { graphql } from 'gatsby';
import Link from 'gatsby-link';
import { Box } from '../../components/Layout';
import colors from '../../utils/colors';
import PageWrapper from '../../components/PageWrapper';
import { css } from 'react-emotion';
const listStyle = css`
... |
router_tutorial/04-nested-routes/modules/App.js | Muzietto/react-playground | import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render() {
return (
<div>
<h1>React Router 04</h1>
<ul role="nav">
<li><Link to="/about" activeStyle={{color:'red'}}>About</Link></li>
<li><Link to="/repos" activeClassName="... |
src/templates/not-found-template.js | Chogyuwon/chogyuwon.github.io | import React from 'react';
import { graphql } from 'gatsby';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
const NotFoundTemplate = ({ data }) => {
const {
title,
subtitle
} = data.site.siteMetadata;
return (
<Layout ti... |
src/components/TooltipIcon/TooltipIcon-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import Filter16 from '@carbon/icons-react/lib/filter/16';
import { w... |
components/BtnContainer/BtnContainer.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import css from './BtnContainer.css';
export default class BtnContainer extends Component {
static propTypes = {
className: PropTypes.string,
children: PropTypes.node.isRequired,
type: PropTypes.on... |
src/docs/examples/Label/ExampleRequired.js | dryzhkov/ps-react-dr | import React from 'react';
import Label from 'ps-react/Label';
/** Required label */
export default function ExampleRequired() {
return <Label htmlFor="test" label="test" required />
} |
src/components/Bottom/Bottom.js | golotiuk/Good_luck | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from '../App/App.scss';
import Feedback from './Feedback/Feedback';
import Footer from './Footer/Footer';
class Bottom extends Component {
render() {
return (
<div className={s.fee}>
... |
PheidippidesDesktop/pheidippidesdesktop_web/src/App.js | Arcite/Pheidippides | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Header from './components/Header';
import ChartWrapper from './components/Chart';
export default class App extends Component {
render() {
return (
<MuiThemeProvider>
<div>
... |
packages/docs/components/Examples/video/CustomAddVideoVideoEditor/index.js | nikgraf/draft-js-plugin-editor | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from '@draft-js-plugins/editor';
import createVideoPlugin from '@draft-js-plugins/video';
import VideoAdd from './VideoAdd';
import editorStyles from './editorStyles.module.css';
const videoPlugin = createVideoPlugin();
co... |
uis/mp-next/src/components/AudiosGridList.js | andrew-hai/bdgt | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import GridList, { GridListTile, GridListTileBar } from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import PlayCircleOutline from 'material... |
server/middleware/reactMiddleware.js | Art404/twitter-boiler404 | import {RouterContext, match} from 'react-router'
import {Provider} from 'react-redux'
import React from 'react'
import configureStore from '../../client/store/configureStore'
import {createLocation} from 'history'
import {setClient} from '../../client/actions/AppActions'
import {renderToString} from 'react-dom/server'... |
project/react-ant-multi-pages/src/pages/index/containers/PureSaga/Item/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
src/shared/containers/404/NotFoundPage.js | Mike1Q84/react-ssr-simple | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from "react-helmet";
import t from './_lang.json';
export class NotFoundPage extends Component {
render() {
let { lang } = this.props;
return (
<div className="not-fou... |
src/components/charts/PieChartCust.js | sateez/salestracker | import React from 'react';
import {Pie} from 'react-chartjs-2';
class PieChartCust extends React.Component{
constructor(props, context) {
super(props, context);
}
render() {
let chartColors = {
red: 'rgb(255, 99, 132)',
orange: 'rgb(255, 159, 64)',
yellow:... |
src/svg-icons/communication/message.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMessage = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Commun... |
src/views/icons/MenuIndicatorIcon.js | physiii/home-gateway | import React from 'react';
import IconBase from './IconBase.js';
export const MenuIndicatorIcon = (props) => (
<IconBase {...props} viewBox="7 10 10 5">
<path d="M7 10l5 5 5-5z" />
</IconBase>
);
export default MenuIndicatorIcon;
|
stories/index.js | ringmath/gene-lab | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import GeneLab from '../src'
storiesOf('GeneLab', module)
.addWithInfo('Basic', 'added Description', () => (
<GeneLab />
), { inline: true })
.add('Basic', () => (
<GeneLab />
))
|
smsgw/static/js/applications/add.react.js | VojtechBartos/smsgw | 'use strict';
import React from 'react';
import {List} from 'immutable';
import {create} from './actions';
import Component from '../components/component.react';
import Subheader from '../components/subheader.react';
import FlashMessages from '../components/flashmessages.react';
import Form from './form.react';
class... |
src/svg-icons/action/alarm-off.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6... |
docs/public/static/examples/v36.0.0/map-view.js | exponent/exponent | import React from 'react';
import MapView from 'react-native-maps';
import { StyleSheet, View, Dimensions } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<MapView style={styles.mapStyle} />
</View>
);
}
const styles = StyleSheet.create({
container: {... |
src/containers/BooksList/Page.js | LifeSourceUA/lifesource.ua | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import Meta from './Meta';
// import * as Book from 'components/Book';
import * as Common from 'components/Common';
import breadcrumbs from './Mock/Breadcrumbs.json';
import headerMenuItems from './Mock/HeaderMenu.json';
class BooksListPage... |
src/routes.js | safe-steps/Frontend | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import Layout from './components/layout/Layout.jsx';
import Home from './components/home/Home.jsx';
import ScenarioList from './components/scenarios/ScenarioList.jsx';
import ScenarioPage from './components/scenarios/ScenarioPage.jsx';
import S... |
src/Parser/Druid/Restoration/Modules/Features/Checklist.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Wrapper from 'common/Wrapper';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';... |
packages/react-server-examples/redux-basic/pages/counter-app/index.js | emecell/react-server | import React from 'react'
import { RootElement } from 'react-server'
import { RootProvider } from 'react-server-redux'
import Counter from '../../components/Counter'
import store from '../store'
export default class CounterPage {
getElements() {
return [
<RootProvider store={store}>
<RootElement key={0}>
... |
src/Parser/Core/Modules/Items/Legion/AmalgamsSeventhSpine.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemManaGained from 'Main/ItemManaGained';
/**
* Amalgam's Seventh Spine -
* Equip: Your direct healing spells... |
src/components/CreateButton/index.js | cantonjs/re-admin | import React, { Component } from 'react';
import PropTypes from 'utils/PropTypes';
import { isFunction } from 'utils/fp';
import localize from 'hocs/localize';
import ContextButton from 'components/ContextButton';
@localize('CreateButton')
export default class CreateButton extends Component {
static propTypes = {
l... |
react-flux-mui/js/material-ui/src/svg-icons/device/storage.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
docs/src/components/Components/Buttons.js | abouthiroppy/scuba | import React from 'react';
import { Button } from '../../../../src';
import generateCodeTemplate from './generateCodeTemplate';
import generateTableTemplate from './generateTableTemplate';
import styles from './style';
const sampleCode = `import {Button} from 'scuba';
<div>
<Button>BUTTON</Button>
<Button bac... |
Skins/VetoccitanT3/ReactSrc/node_modules/react-router/esm/react-router.js | ENG-SYSTEMS/Kob-Eye | import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
import React from 'react';
import PropTypes from 'prop-types';
import { createMemoryHistory, createLocation, locationsAreEqual, createPath } from 'history';
import warning from 'tiny-warning';
import createContext from 'mini-create-react-context';
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.