path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
internals/templates/containers/App/index.js | 7ruth/PadStats2 | /**
*
* App.react.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... |
src/svg-icons/image/exposure-neg-2.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
src/svg-icons/places/room-service.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRoomService = (props) => (
<SvgIcon {...props}>
<path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"... |
app/javascript/mastodon/features/ui/components/mute_modal.js | Nyoho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import... |
src/components/Link/Link.js | ACGNTaiwan/acgnFront | /**
* 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/core/components/Input.js | remy/jsconsole | import React, { Component } from 'react';
// TODO import Autocomplete from './Autocomplete';
import keycodes from '../lib/keycodes';
class Input extends Component {
constructor(props) {
super(props);
// history is set in the componentDidMount
this.state = {
value: props.value || '',
multili... |
examples/todos/src/components/Footer.js | jayflaherty75/relax | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
node_modules/react-bootstrap/es/MediaHeading.js | ASIX-ALS/asix-final-project-frontend | 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/components/buttons/InfoButton.js | kryptnostic/gallery | import React from 'react';
import styled from 'styled-components';
const InfoButton = styled.button`
border-radius: 3px;
background-color: #6124e2;
color: #ffffff;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
padding: 10px;
width: ${props => (props.fullSize ? '100%' : 'fit-content')};
&:hove... |
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js | xiaohu-developer/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... |
client/admin/settings/inputs/AssetSettingInput.js | subesokun/Rocket.Chat | import { Button, Field, Icon } from '@rocket.chat/fuselage';
import { Random } from 'meteor/random';
import React from 'react';
import { useMethod } from '../../../contexts/ServerContext';
import { useToastMessageDispatch } from '../../../contexts/ToastMessagesContext';
import { useTranslation } from '../../../context... |
examples/js/basic/demo.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import BasicTable from './basic-table';
import SingleColumnTable from './single-column-table';
import HoverStripedTable from './hover-striped-table';
import BorderlessTable from './borderless-table';
import ScrollTable from './scroll-table';
import LargeColumnTable fro... |
GameOfLife.Client/src/routes/Admin/components/Admin.js | Stelmashenko-A/GameOfLife | import React from 'react'
import {
Row,
Col,
Table
} from 'react-bootstrap'
import HostsInfo from './HostsInfo'
import './Admin.scss'
export const Admin = (props) => {
var hosts = props.hosts.map(function (host, index) {
return (
<tr key={index}>
<td>{host.RouteId}</td>
<td>{host.Hos... |
tests/Rules-isFloat-spec.js | lei-clearsky/temp | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
content/gocms/src/admin/containers/loginPage/loginPage.routes.js | gocms-io/gocms | import React from 'react'
import {Route} from 'react-router'
import LoginPage from './loginPage.container';
let injectedRoutes = [];
let routes =
<Route>
{injectedRoutes}
</Route>;
export function registeredLoginRoutes() {
if (injectedRoutes.length != 0) {
return routes;
}
else {... |
examples/with-babel-macros/pages/_document.js | BlancheXu/test | import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
render () {
return (
<html>
<Head>
<style dangerouslySetInnerHTML={{ __html: this.props.css }} />
</Head>
<body>
<Main />... |
app/javascript/mastodon/containers/account_container.js | mimumemo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
docs/app/Examples/views/Card/Types/CardExampleGroups.js | ben174/Semantic-UI-React | import React from 'react'
import { Button, Card, Image } from 'semantic-ui-react'
const CardExampleGroups = () => (
<Card.Group>
<Card>
<Card.Content>
<Image floated='right' size='mini' src='http://semantic-ui.com/images/avatar/large/steve.jpg' />
<Card.Header>
Steve Sanders
... |
src/svg-icons/communication/phonelink-setup.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
admin/client/components/Forms/CreateForm.js | pswoodworth/keystone | import React from 'react';
import Fields from '../../fields';
import InvalidFieldType from './InvalidFieldType';
import { Alert, Button, Form, Modal } from 'elemental';
var CreateForm = React.createClass({
displayName: 'CreateForm',
propTypes: {
err: React.PropTypes.object,
isOpen: React.PropTypes.bool,
list: ... |
app/components/List/index.js | itimofeev/hustledb-ui | import React from 'react';
import styles from './styles.css';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={`item-${index}`} item... |
src/inputs/components/input-types/text-input.js | juttle/juttle-client-library | import React, { Component } from 'react';
const ENTER_KEY = 13;
class TextInput extends Component {
constructor(props) {
super(props);
this.state = {
value: props.input.value
};
}
getType() { return 'text'; }
_onChange(event) {
this.setState({ value: even... |
app/assets/javascripts/components/story/StoryHistoryLocation.js | Codeminer42/cm42-central | import React from 'react';
import StoryActionButton from './StoryActionButton'
const StoryHistoryLocation = ({ id, url }) =>
<div className="col-xs-12 form-group input-group input-group-sm">
<input
className="form-control input-sm"
id={`story-link-${id}`}
readOnly="readonly"
value={url}
... |
ui/js/pages/emailList/EmailLists.js | ericsoderberg/pbc-web | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import List from '../../components/List';
const Item = (props) => {
const { className, item: emailList } = props;
const classNames = ['item__container', className];
return (
<Link className={classNames.joi... |
react/features/room-lock/components/PasswordRequiredPrompt.web.js | KalinduDN/kalindudn.github.io | /* global APP */
import AKFieldText from '@atlaskit/field-text';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import UIEvents from '../../../../service/UI/UIEvents';
import { setPassword } from '../../base/conference';
import { Dialog } from '../../base/dialog';
import { translate... |
src/components/Tab/Tab.js | Zoomdata/nhtsa-dashboard | import flowRight from 'lodash.flowright';
import { observer, inject } from 'mobx-react';
import React from 'react';
import ComponentScatterplot from '../ComponentScatterplot/ComponentScatterplot';
import Map from '../Map/Map';
const Tab = function({ chart, store }) {
const { activeTab } = store.controls;
const tab... |
internals/templates/homePage.js | StrikeForceZero/react-typescript-boilerplate | /*
* 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 neccessity for you then you can refactor it and remove
* the ... |
src/Parser/Hunter/Marksmanship/Modules/Talents/PiercingShot.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from "common/SpellIcon";
import { formatPercentage } from "common/format";
import Spe... |
src/index.js | mazairaj/thejulianmaz | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/app';
ReactDOM.render(
<BrowserRouter >
<App />
</BrowserRouter>,
document.getElementById('root'),
);
|
src/client/me/page.react.js | sljuka/portfolio-este | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import Logout from '../auth/logout.react';
import React from 'react';
import requireAuth from '../auth/requireauth.react';
import {format} from '../intl/store';
@requireAuth
export default class Page extends Compon... |
HomeRange/app/pages/mine/Two.js | Onlyjson/yanShu_Project | /*
*npm install --save react-native-popup-dialog
*
*/
import React from 'react';
import {
StyleSheet,
Text,
View,
PixelRatio,
TouchableOpacity,
Image,
StatusBar,
ScrollView,
} from 'react-native';
import ImagePicker from 'react-native-image-picker';
import {List,Button,Modal,Toast,DatePi... |
app/javascript/mastodon/components/column_back_button_slim.js | danhunsaker/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
... |
src/stories/index.js | bjackson/bjGrid | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Grid from '../Grid';
import _ from 'lodash';
import 'font-awesome-loader';
storiesOf('Grid', module)
.add('default view', () => {
const AppContainer = React.createClass({
getInitialState() {
return {
options:... |
src/page/pageList/pageList.js | zonghuan/xzs-amp | import React from 'react'
import {render} from 'react-dom'
import _ from 'underscore'
var content = document.getElementById('content')
import Nav from 'widget/nav/nav-react.js'
import List from './list.js'
render((
<div>
<Nav select="make"/>
<List />
</div>
),content)
|
src/decorators.js | daversm/nuka-carousel | 'use strict';
import React from 'react';
const DefaultDecorators = [
{
component: React.createClass({
render() {
return (
<button
style={this.getButtonStyles(this.props.currentSlide === 0)}
onClick={this.props.previousSlide}>PREV</button>
)
},
... |
src/server.js | fallrisk/Nightlife | /**
* 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 'babel-polyfill';
import session from 'express-sess... |
src/app/component/icon-link/icon-link.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
import Icon from '../icon'
const IconLink = ({classNames, icon, disabled = false, href = '#', onClick = () => {}}) => (
<a
className={cn('IconLink', {}, classNames)}
... |
src/index.js | kidylee/Front-end-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { App } from './App';
import configureStore from './store/configureStore'
const store = configureStore({})
const Root = () =>
(<Provider store={store} >
<App />
</Provider>)
render(
<Root/>
, docu... |
app/containers/ArticleApp/components/CreateArticleModal.react.js | cabloo/react-graphql-test | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
import PropTypes from 'prop-types';
export default class CreateArticleModal extends React.Component {
constructor(props) {
super(props);
this.state = {
author: '',
title: '... |
examples/basic/src/components/CounterButton/CounterButton.js | bluetidepro/react-styleguidist | import React, { Component } from 'react';
/**
* Button that counts how many times it was pressed and exposes a `@public` method to reset itself.
*/
export default class CounterButton extends Component {
constructor() {
super();
this.state = {
value: 0,
};
}
/**
* Sets the counter to a particular value... |
assets/javascripts/kitten/components/structure/cards/contribution-card/components/input.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { TextInputWithUnit } from '../../../../form/input/text-input-with-unit'
import { Context } from '../context'
export const Input = ({ valid, onChange, className, ...props }) => {
return (
<Context.Consumer>
... |
src/screens/App/shared/components/Breadcrumbs.js | savitri/savitri-web | import ChevronRight from 'material-ui/lib/svg-icons/navigation/chevron-right';
import FlatButton from 'material-ui/lib/flat-button';
import React from 'react';
import { amber50 } from 'material-ui/lib/styles/colors';
const styles = {
breadcrumb: {
textAlign: 'left',
backgroundColor: amber50,
... |
examples/todomvc/src/components/Credits.js | lore/lore | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactClass({
render: function () {
return (
<footer className="info">
<p>Double-click to edit a todo</p>
<p>
{"Modified version of the "}
... |
examples/huge-apps/components/App.js | AnSavvides/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
src/components/common/icons/Sort.js | goodjoblife/GoodJobShare | import React from 'react';
/* eslint-disable */
export default props => (
<svg {...props} version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" enableBackground="new 0 0 24 24">
<g>
<path d="M9,0C8.7,0,8.5,0.1,8.3,0.3l-8,8C0.1,8.5,0,8.7,0,9c0,0.3,0.1,0.5,0.3,0.7l1.4,1.4c0.2,0.2,0.5,0.3,0.7,0... |
src/components/Summary/Summary.js | LeraSavchenko/Maysternia | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Summary.css';
import Link from '../Link';
const Links = [
{
to: '/catalog',
name: 'Каталог продукції',
},
{
to: '/',
name: 'Про нас',
},
{
to: '/catalog',
name: 'Наші роботи',
... |
examples/src/components/UsersField.js | jgautsch/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
app/__mocks__/react-navigation.js | manosim/react-native-base | import React from 'react'; // eslint-disable-line no-unused-vars
import { View } from 'react-native';
class AppNavigator extends React.Component {
render() {
return <View>AppNavigator</View>;
}
}
AppNavigator.router = {
getStateForAction: jest.fn(() => ({})),
getActionForPathAndParams: jest.fn(() => ({}))... |
tmp/test/test_helper.js | youdeshi/single-page-app-best-practice-client | import React from 'react';
import jsdom from 'jsdom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import { shallow, mount } from 'enzyme';
import reducers from '../src/reducers';
if (typeof document === 'undefined') {
global.document = jsdom.jsdom('<!doctype html><html><body></body><... |
admin/client/components/ListFiltersAddForm.js | codevlabs/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import CurrentListStore from '../stores/CurrentListStore';
import filters from '../filters';
import Popout from './Popout';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.n... |
src/client/app.js | black-black-cat/simple-react-app | import React from 'react';
import ReactDOM from 'react-dom';
// import { createStore } from 'redux';
// import { combineReducers } from 'redux'; // -immutable
// import { Provider } from 'react-redux';
ReactDOM.render(
<div>
<a href="/views/dog.html"></a>
<a href="/views/presentation.html"></a>
... |
src/modules/history-sync/index.js | tegon/traktflix | import '../../assets';
import React from 'react';
import ReactDOM from 'react-dom';
import BrowserStorage from '../../class/BrowserStorage';
import Rollbar from '../../class/Rollbar';
import ViewingActivityApp from '../../class/history-sync/ViewingActivityApp';
import shared from '../../class/Shared';
shared.setBackgr... |
components/card/Card.js | rubenmoya/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers';
const Card = ({ children, className, raised, theme, ...other }) => {
const classes = classnames(theme.card, {
[theme.raised]: raised,... |
src/components/Partials/Main3.js | luanlv/comhoavang | import React from 'react'
import Link from '../Link'
import FacebookProvider, { Comments } from 'react-facebook';
class Main extends React.Component {
render() {
const {page, totalPage, data} = this.props.news
const news = data
return (
<div id="colContent">
<div className="head lineh">
... |
newclient/scripts/components/user/control/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
src/app/containers/App/App.js | harsh376/Hector | import React from 'react';
import 'bootstrap/less/bootstrap.less';
import 'font-awesome/scss/font-awesome.scss';
import LayoutBootstrap from '../LayoutBootstrap/LayoutBootstrap';
function App(props) {
return <LayoutBootstrap content={props.children} routes={props.routes} />;
}
App.propTypes = {
children: React.P... |
src/components/TeamList.js | nathejk/status-app | import React from 'react'
import {List} from 'material-ui/List'
import TeamListItem from './TeamListItem'
const TeamList = (props) => {
let listItems = props.teams === undefined ? null : props.teams.map((team) => {
let memberItems = team.members.map(member => {
return (
<TeamListItem
key=... |
app/components/NotFound.js | shaunstanislaus/redux-blog-example | import styles from './../global.styl';
import React from 'react';
import CSSModules from 'react-css-modules';
@CSSModules(styles)
export default class NotFound extends React.Component {
render() {
return (
<div styleName="wrapper">
<h1>Not Found</h1>
</div>
);
}
}
|
source/scripts/components/app.js | ecoker/sockets | import React from 'react';
var io = require('socket.io-client');
/* STYLES */
import '../../styles/base.scss';
/* COMPONENTS */
import Name from './name.js';
import Chatty from './chatty.js';
export default class App extends React.Component {
constructor() {
super();
this.state = {
name: null,
... |
src/components/common/svg-icons/places/casino.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
src/js/components/TaskForm.js | tanaka0325/manday_web | import React from 'react'
const TaskForm = (props) => {
let input
return (
<div className="task-form">
<form
onSubmit={(e) => {
e.preventDefault()
if (!input.value.trim()) { return }
props.actions.add({
user_id: 1,
date: props.date,
... |
public/javascripts/utils.js | JetChat/JetChat | import React from 'react';
import ReactDOM from 'react-dom';
import PrettyDate from 'pretty-date'
var $ = require('jquery');
// Other utils
var __urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
window.setInterval(function () {
$(".imagify").each(function (i, a) {
... |
src/components/Blog/List/List.js | taken1994/big-demo | import React from 'react';
import map from 'lodash/fp/map';
import BlogCard from './BlogCard'
import axios from 'axios'
import CircularProgress from 'material-ui/CircularProgress';
class List extends React.Component {
constructor(){
super();
this.state={
posts: '',
wait:true
}
}
componen... |
app/javascripts/components/Label.js | f96q/kptboard | import React from 'react'
export class Label extends React.Component {
render() {
return (
<div className={`Label is-${this.props.label.kind}`}
onClick={event => {
this.props.openEditLabelModal({ id: this.props.label.id, clientX: event.clientX, clientY: event.clientY })
event.st... |
src/SafeAnchor.js | herojobs/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
docs-ui/components/hovercard.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {text, select} from '@storybook/addon-knobs';
import Hovercard from 'app/components/hovercard';
const positionOptions = {
top: 'top',
bottom: 'bottom',
left: 'left',
right: 'right',
};... |
src/icons/NextWeekIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class NextWeekIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#010101" d="M40 14h-8v-4c0-1.1-.44-2.1-1.18-2.82C30.1 6.44 29.1 6 28 6h-8c-2.2 0-4 1.8-4 4v4H8c-2.2 0-... |
frontend/node_modules/react-error-overlay/lib/containers/RuntimeError.js | rootweiller/morichal | /**
* 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 from 'react';
import Header from '../components/Header';
import StackTrace from './StackTrace';
var wrapperStyle = {
dis... |
src/components/Intro.js | kpedneka/protean-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Jumbotron, Button } from 'react-bootstrap';
import { login } from '../actions/Auth';
class Intro extends Component {
constructor(props) {
super(props);
this.login = this.login.bind(this);
}
login(e) {
e.preventDefault... |
app/routes.js | jeflores7/character-voting-app | import React from 'react';
import { Route } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import AddCharacter from './components/AddCharacter';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import Stats from './co... |
integration/azure/authentication/ms-identity-v2/implicit-grant/ClientApp/src/components/Layout.js | advantys/workflowgen-templates | import React, { Component } from 'react';
import { Container } from 'reactstrap';
import NavMenu from './NavMenu';
export default class extends Component {
render () {
return (
<div>
<NavMenu />
<Container>
{this.props.children}
</Container>
</div>
);
}
}
|
app/components/RecordProcedure.js | oroszms/nhshd17 | // @flow
import React, { Component } from 'react';
import { Link, hashHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import Slider from 'material-ui/Slider';
import Toggle from 'material-ui/Toggle'... |
frontend/app/js/index.js | pivotal/pulse | import 'phantomjs-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Route, IndexRoute } from 'react-router';
import { createStore, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import {
ReduxRouter,
r... |
services/editor/src/pages/settings/components/ExternalAppsPage/CreateExternalAppSecret.js | Soluto/tweek | import React from 'react';
import { buttons } from '../../../../contexts/Alerts';
import './CreateExternalAppSecret.css';
const Component = ({ appId, appSecret }) => (
<div>
<div className="note">
Write out the application id and the secret before closing this window.
</div>
<div className="field-w... |
packages/core/src/icons/components/RemoveElement.js | iCHEF/gypcrete | import React from 'react';
export default function SvgRemoveElement(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="-2148 -4777 32 32"
width="1em"
height="1em"
{...props}
>
<path
data-name="\u9577\u65B9\u5F62 7838"
fill="transparent"
... |
src/routes/app/routes/ui/routes/lists/components/Contacts.js | ahthamrin/kbri-admin2 | import React from 'react';
// import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import Divider from 'material-ui/Divider';
import Avatar from 'material-ui/Avatar';
import {pinkA200, transparent} from 'ma... |
src/FABButton.js | tleunen/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Button from './Button';
const FABButton = (props) => {
const { mini, className, children, ...otherProps } = props;
const classes = classNames('mdl-button--fab', {
'mdl-button--mini-fab': mini
... |
test/integration/getserversideprops/pages/blog/index.js | flybayer/next.js | import React from 'react'
import Link from 'next/link'
export async function getServerSideProps() {
return {
props: {
slugs: ['post-1', 'post-2'],
time: (await import('perf_hooks')).performance.now(),
},
}
}
export default ({ slugs, time }) => {
return (
<>
<p>Posts: {JSON.stringif... |
src/components/LeftDrawer.js | laminhtruong/sprite-mapping | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import { Link } from 'react-router-dom'
import Drawer from 'material-ui/Drawer';
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
import Divider from 'material-ui/Divider';
cons... |
packages/benchmarks/src/implementations/aphrodite/Box.js | necolas/react-native-web | import React from 'react';
import View from './View';
import { StyleSheet } from 'aphrodite';
const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => (
<View
{...other}
style={[
styles[`color${color}`],
fixed && styles.fixed,
layout === 'row' && styles.row,
... |
frontend/src/screens/trend-analysis/trend-viewer/trend-viewer.js | linea-it/qlf | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
const apiUrl =
process.env.NODE_ENV !== 'development'
? window.origin + '/'
: process.env.REACT_APP_API;
const styles = {
iframe: {
height: 'calc(100vh - 135px)',
width: 'calc(100v... |
information/blendle-frontend-react-source/app/modules/signup/views/verify/VerifyEmail.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import i18n from 'instances/i18n';
import classNames from 'classnames';
class VerifyEmail extends React.Component {
static propTypes = {
isResend: PropTypes.bool,
emailExists: PropTypes.bool,
user: PropTypes.object.isRequired,
onResend: P... |
src/views/pages/home/index.js | r-park/react-redux-seed | import React from 'react';
function HomePage() {
return <h1>Home</h1>;
}
export default HomePage;
|
loc8-react-redux-front-end/src/components/ProfileFavorites.js | uberslackin/django-redux-loc8-ARweb | 'use strict';
import { Profile, mapStateToProps } from './Profile';
import React from 'react';
import { Link } from 'react-router';
import agent from '../agent';
import { connect } from 'react-redux';
const mapDispatchToProps = dispatch => ({
onLoad: (payload) =>
dispatch({ type: 'PROFILE_FAVORITES_PAGE_LOADED'... |
example/src/index.js | inuscript/redux-candy | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
assets/node_modules/react-router/es6/withRouter.js | janta-devs/janta | 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 invariant from 'invariant';
import React from 'react';... |
src/views/form.js | bulletcms/bullet-tracer | import React from 'react';
class Input extends React.Component{
constructor(props){
super(props);
this.state = {value: props.value || ''};
}
componentWillReceiveProps(nextProps) {
this.setState({value: nextProps.value || ''});
}
/**
* props:
* label : string
* type : s... |
app/components/StreamMessages.js | lhall-adexos/LogSwarm | // @flow
import React, { Component } from 'react';
import hash from 'object-hash';
import styles from './Messages.css';
export default class StreamMessages extends Component {
constructor(props) {
super(props);
this.state = {
messages: props.messages
};
console.log(this... |
src/js/components/icons/base/DocumentSound.js | odedre/grommet-final | /**
* @description DocumentSound SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
... |
src/views/hr-view/components/li.js | vynogradskyi/resume | import React from 'react';
import styles from 'css-modules/hr-view/li.scss';
import classnames from 'classnames';
export default ({text, className, customLi}) => {
return <li className={classnames(styles.li, className)}>{customLi || text}</li>
} |
src/components/user-list-item.component.js | housseindjirdeh/git-point | import React from 'react';
import {
StyleSheet,
View,
TouchableHighlight,
TouchableOpacity,
Text,
Image,
} from 'react-native';
import { Icon } from 'react-native-elements';
import { colors, fonts, normalize } from 'config';
type Props = {
user: Object,
title: any,
subtitle: string,
onlyImageNavig... |
docs/app/Examples/modules/Modal/Variations/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ModalExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Size'
description='A moda... |
app/components/PublicationView/index.js | mhoffman/CatAppBrowser | /**
*
* PublicationView
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactGA from 'react-ga';
import { isMobileOnly } from 'react-device-detect';
import Helmet from 'react-helmet';
import _ from 'lodash';
import Grid from 'material-ui/Grid';
import Hidden from 'material-ui/Hidden';
im... |
app/imports/ui/admin/ContractUI.js | raiden-network/raiden-token | import React, { Component } from 'react';
import CommandComponent from './CommandComponent'
export default class ContractUI extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
let { contract, web3, commands, values, onClick } = this.props;
console.log(this.props)... |
src/components/BalanceReport/index.js | bostrom/harvest-balance | import React from 'react';
import { Transition } from 'react-transition-group';
import { bool, shape, number, string } from 'prop-types';
import styled from 'styled-components';
import BalanceReportDetails from '../BalanceReportDetails';
const Header = styled.div`
font-size: 1.5rem;
text-align: center;
transform... |
frontend/src/courses/components/header-column.js | OptimusCrime/youkok2 | import React from 'react';
import {ORDER_ASC, ORDER_DESC} from "../constants";
export const HeaderColumn = ({id, text, column, order, changeOrder }) => (
<div
className={`course-row__${id} course-row__header--${id}`}
onClick={() => {
if (column === id) {
changeOrder(
id,
ord... |
src/index.js | Sharlaan/selfchat | import { deepOrange, lightBlue } from '@material-ui/core/colors';
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import React from 'react';
import { render } from 'react-dom';
import App from './App';
import './index.css';
// Default theme values: https://material-ui.com/customization/def... |
src/docs/examples/TextInput/ExampleOptional.js | ebirito/ps-react-ebirito | import React from 'react';
import TextInput from 'ps-react-ebirito/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => ... |
app/containers/LoginContainer.js | thereactleague/galaxy | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import ping from 'node-http-ping';
import { isURL, toInt } from 'validator';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import LinearProgress from 'material-ui/LinearProgress';
... |
examples/js/remote/remote-store-filtering.js | AllenFang/react-bootstrap-table | /* eslint guard-for-in: 0 */
/* eslint no-console: 0 */
import React from 'react';
import RemoteFiltering from './remote-filtering';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.