path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/maps/flight.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
src/stories/eventrow.js | codefordenver/encorelink | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, date, text } from '@storybook/addon-knobs/react';
import { withInfo } from '@storybook/addon-info';
import EventRow from '../components/EventRow';
storiesOf('EventRow', module)
.addDecorator(withKnobs)
.add(
'... |
docs/src/examples/modules/Embed/Types/EmbedExampleVimeo.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Embed } from 'semantic-ui-react'
const EmbedExampleVimeo = () => (
<Embed
id='125292332'
placeholder='/images/vimeo-example.jpg'
source='vimeo'
/>
)
export default EmbedExampleVimeo
|
internals/templates/containers/HomePage/index.js | FlorianVoct/monPropreMix | /*
* 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... |
src/devtools/createDevToolsWindow.js | ramirezd42/schmix | /* eslint-disable */
import React from 'react';
import { render } from 'react-dom';
import DevTools from './DevTools';
/*
* Puts Redux DevTools into a separate window.
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218.
*/
export default function createDevToolsWindow(store) {
... |
step4-router/app/js/components/Page1.js | jintoppy/react-training | import React from 'react';
class Page1 extends React.Component{
render(){
return ( < div >
This is page1
<button onClick={this.goHome.bind(this)}>Go to Home Page</button>
< /div>);
}
goHome(){
this.props.history.pushState(null,'/');
}
}
export default Page1;
|
src/svg-icons/social/pages.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
src/BootstrapMixin.js | erictherobot/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/container/channelInfo.js | thipokKub/Clique-WebFront-Personnal | import React, { Component } from 'react';
import './css/eventDetail2.css'
import * as facultyMap from '../actions/facultyMap';
import axios from 'axios';
import { hostname } from '../actions/index';
import ReactLoading from 'react-loading';
import './css/channelInfostyle.css';
//https://codepen.io/bh/pen/JBlCc
let use... |
addons/storyshots/stories/required_with_context/Welcome.stories.js | jribeiro/storybook | import React from 'react';
import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { linkTo } from '@storybook/addon-links'; // eslint-disable-line
import { Welcome } from '@storybook/react/demo';
storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />);
|
src/shared/element-react/dist/npm/es6/libs/component/index.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
var C... |
graphwalker-studio/src/main/js/Application.js | KristianKarl/graphwalker-project | import React, { Component } from 'react';
import { connect } from "react-redux";
import Container from "./components/container";
import StatusBar from "./components/statusbar";
import SideMenu from "./components/sidemenu";
import Editor from "./components/editor";
import ConfigPanel from "./components/configpanel";
imp... |
src/components/Error.js | humancatfood/bat-fe-test | import React from 'react';
import PropTypes from 'prop-types';
import Snackbar from '@material-ui/core/Snackbar';
import Alert from '@material-ui/lab/Alert';
const Error = ({ onClose, severity='error', children }) => (
<Snackbar open autoHideDuration={6000} onClose={onClose}>
<Alert onClose={onClose} severity=... |
internals/templates/app.js | s0enke/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
imports/ui/components/manage/manage-parent-categories.js | irvinlim/free4all | import React from 'react';
import Formsy from 'formsy-react';
import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table';
import Subheader from 'material-ui/Subheader';
import IconButton from '... |
src/renderer/bootstrap.js | eqot/bipresent | 'use strict';
import polyfill from 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import {Main} from './components/main';
ReactDOM.render(React.createElement(Main), document.getElementById('app'));
var ipc = require('ipc');
ipc.on('toggle-transparent', function () {
document.querySe... |
public/src/demo/ExposeComponentFunctions.js | codelegant/react-action | /**
* Author: 赖传峰
* Email: laichuanfeng@hotmail.com
* Homepage: http://laichuanfeng.com/
* Date: 2016/7/17
*/
import React from 'react';
class Todo extends React.Component {
animate() {
console.log('Pretend %s is animating', this.props.title);
}
render() {
return <div onClick={this.props.onClick} >... |
src/svg-icons/notification/event-available.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
build/devpanel.js | johnnycoyle/react-rpm | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './../containers/App';
import 'react-hot-loader/patch';
render(
<AppContainer>
<App />
</AppContainer>, document.getElementById('root')
);
if (module.hot && module.hot.accept('./../c... |
src/svg-icons/maps/local-atm.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
src/SplitButton.js | laran/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-router/4.1.1/es/Router.js | JamieMason/npm-cache-benchmark | 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; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | johncorderox/Socialize | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
docs/app/Examples/collections/Grid/Variations/GridExampleColumnCount.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleColumnCount = () => (
<Grid>
<Grid.Row columns={3}>
<Grid.Column>
<Image src='/assets/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='/assets/images/wireframe/image... |
src/components/icons/RainShowerIcon.js | maximgatilin/weathernow | import React from 'react';
export default function RainShowerIcon() {
return (
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.97 128.29"><title>rain-shower</title><path d="M1019.64,208.61h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.1... |
app/javascript/mastodon/features/status/components/detailed_status.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
examples/03 Nesting/Drag Sources/index.js | numso/react-dnd | import React from 'react';
import Container from './Container';
export default class NestingDragSources {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drag%20Sources'>Browse the Source</a></b>
</p>
<p>
... |
app/javascript/mastodon/features/status/index.js | alarky/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '../../components/missing_indicator';
import DetailedStatus from './compone... |
jenkins-design-language/src/js/components/material-ui/svg-icons/alert/add-alert.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5... |
examples/FixedActionButton.js | chris-gooley/react-materialize | import React from 'react';
import Button from '../src/Button';
export default
<Button floating fab='vertical' faicon='fa fa-plus' className='red' large style={{bottom: '45px', right: '24px'}}>
<Button floating icon='insert_chart' className='red'/>
<Button floating icon='format_quote' className='yellow darken-1'/... |
src/containers/NotFound/NotFound.js | NetEffective/net-effective | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/public/components/Hello/hello.js | wzxm/react-starter | import React from 'react';
import MyOption from './myOption.js';
require('./hello.css');
class Hello extends React.Component {
constructor(props) {
super(props);
this.state = {
selected: false
}
this.select = this.select.bind(this);
}
/**
* 这个调用时机是在组件创建,并初始... |
packages/react-interactions/events/src/dom/Drag.js | flarnie/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.
*
* @flow
*/
import type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
} from 'shared/ReactDOMTypes';
import type {
Eve... |
src/svg-icons/editor/border-top.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
src/index.js | n1ckp/spotmybands | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import reducers from './reducers';
import promise from 'redux-promise';
const... |
src/components/Files/ListItem.js | isaacrowntree/hyde | import React, { Component } from 'react';
import './ListItem.css';
class ListItem extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.props.onItemClick(this.props.value);
}
format(val) {
let splitter = '\\';
if (... |
12-delayed-result/src/TodoList.js | dtanzer/react-basic-examples | import React, { Component } from 'react';
import { connect } from 'react-redux';
import TabsActions from './TabsActions';
import { AllTodosContainer } from './AllTodos';
import { NewTodoContainer } from './NewTodo';
export class TodoList extends Component {
render() {
const todosTab = (
<div>
<h1>... |
src/components/Header/Header.js | workswell/smartforms | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
src/components/Hint.js | serzhshakur/quest-application-reactjs | import React from 'react'
export default (props) => props.hintText ? <div>{props.hintText}</div> : null |
src/modules/Rooms/components/Chat/Messages.js | hdngr/mantenuto | /* eslint-disable */
import React from 'react';
import { connect } from 'react-redux';
const styles = require('./Chat.scss');
const Messages = (props) => {
const { messages, user, peer } = props;
if (messages.length === 0) {
return <p><em>No messages in your chat history.</em></p>
}
const list = messages... |
src/components/video_detail.js | annsummmer/react | import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div>Loading...</div>
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
console.log(video);
return (
<div className="vide-detail col-md-8">
<div className="embed-respons... |
app/Child.js | KoltunovOleg/Task-React-App | import React, { Component } from 'react';
import Registration from './Registration';
import Home from './Home';
import Login from './Login';
import Users from './Users';
class Child extends Component {
render() {
var Render;
if(this.props.route && this.props.access){
switch (this.props.route... |
cms/react-static/src/containers/Home.js | fishjar/gabe-study-notes | import React from 'react'
import { withSiteData } from 'react-static'
//
import logoImg from '../logo.png'
export default withSiteData(() => (
<div>
<h1 style={{ textAlign: 'center' }}>Welcome to</h1>
<img src={logoImg} alt="" />
</div>
))
|
js/barber/Main.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
ScrollView,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import Toolbar from '../common/Toolbar';
import IconTabBar from '../co... |
node_modules/react-bootstrap/es/FormControlStatic.js | ivanhristov92/bookingCalendar | 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 ... |
stories/form/index.js | shulie/dh-component | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import withReadme from 'storybook-readme/with-readme';
import InputDemo from './input';
import FormDemo from './form';
import inputReadme from './input.md';
const addWithInfoOptions = { inline: true, propTables: false, source: ... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | verniy6462/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
export default class MediaItem extends ImmutablePureComponent {
static propTypes = {
media: Immutable... |
app/components/ProductReviews/ReviewItem/index.js | ajfuller/react-casestudy | import React from 'react';
function formatDate(date) {
return new Date(date).toLocaleDateString('en-US', {
day: 'numeric',
month: 'short',
year: 'numeric',
});
}
const ReviewItem = (props) => (
<div>
<div style={{ color: 'red' }}>{props.overallRating}</div>
<div style={{ fontWeight: 'bold', ... |
src/views/createRoutes.js | vbdoug/hot-react | import React from 'react';
import {Route} from 'react-router';
import App from 'views/App';
import Home from 'views/Home';
import Widgets from 'views/Widgets';
import About from 'views/About';
import Login from 'views/Login';
import RequireLogin from 'views/RequireLogin';
import LoginSuccess from 'views/LoginSuccess';
... |
data-browser-ui/public/app/components/headerComponents/filterRowsComponent.js | CloudBoost/cloudboost | import React from 'react'
import { observer } from "mobx-react"
import { Popover, PopoverAnimationVertical } from 'material-ui/Popover'
import FilterRow from './filterRowComponent.js'
@observer
class FilterRows extends React.Component {
constructor() {
super()
this.state = {
open: false,
filters: [],
and... |
stories/DateRangePicker_calendar.js | intwarehq/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@kadira/storybook';
import { VERTICAL_ORIENTATION, ANCHOR_RIGHT } from '../constants';
import DateRangePickerWrapper from '../examples/DateRangePickerWrapper';
const TestPrevIcon = () => (
<span
style={{
border: '1px solid... |
src/components/PrecisionBar.js | alexravs/midgar | import React from 'react';
const PrecisionBar = ({precision, onPrecisionChange}) => (
<input type="range" min="0" max="100" value={precision} onChange={onPrecisionChange} />
);
export default PrecisionBar;
|
components/headers.js | alligatorio/some-gators-next | import React from 'react';
import Head from 'next/head';
export default ({title}) => {
return <Head>
<title>{title}</title>
<link rel="stylesheet" href="static/styles.css" />
</Head>
}
|
src/pages/NotificationDetailPage.js | LinDing/two-life | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Navigator,
Dimensions,
TouchableOpacity,
WebView
} from 'react-native';
import CommonNav from '../common/CommonNav';
const WIDTH = Dimensions.get("window").width
const HEIGHT = Dimensions.get("window").height
export def... |
src/components/Account/Reservations/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import typy from 'typy'
import InlineLoading from 'components/Messages/InlineLoading'
import Table from 'components/Table'
import Link from 'components/Interactive/Link'
import AccountPageWrapper from '../AccountPageWrapper'
impo... |
src/components/page/page.js | Numel2020/NUMEL-Transitions | /**
* Created by melvynphillips on 15/04/2017.
*/
import React from 'react';
import TransitionGroup from 'react-transition-group/TransitionGroup';
import {TweenMax} from "gsap";
import Box2 from "./box2";
export class Page extends React.Component {
constructor () {
super();
this.state ... |
Full Stack Web Developer Nanodegree v2/P2 - Trivia API/frontend/src/components/Header.js | manishbisht/Udacity | import React, { Component } from 'react';
import logo from '../logo.svg';
import '../stylesheets/Header.css';
class Header extends Component {
navTo(uri){
window.location.href = window.location.origin + uri;
}
render() {
return (
<div className="App-header">
<h1 onClick={() => {this.navTo... |
src/components/PlannerApp/index.js | instructure/canvas-planner | /*
* 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... |
src/docs/components/ArticleDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Article from 'grommet/components/Article';
import Section from 'grommet/components/Section';
import Header from 'grommet/components/Header';
import Footer from 'grommet/components/Footer';
import Ancho... |
src/svg-icons/image/flash-off.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
src/components/isdbooking/components/bookinginfo.js | lq782655835/ReactDemo | import React from 'react';
import { Link } from 'react-router';
import { Icon, Tag, Button, Tooltip } from 'antd';
//import MockUtil from '../common/MockUtil';
class BookingInfo extends React.Component {
constructor(props) {
super(props);
this.state ={
listData: []
};
}
... |
app/App.js | freele/glossary | // import React from 'react';
// import styles from './App.css';
// export default class App extends React.Component {
// constructor(props) {
// super(props);
// this.state = {test: 'foo'};
// }
// render() {
// return (
// <div className={styles.app}>
// bar test
// </div>
// ... |
src/blog/flux/views/layouts/AppLayout.js | exseed/exseed-boilerplate | import React from 'react';
import BaseLayout from '@core/views/layouts/BaseLayout';
import Header from '../components/Header';
import Footer from '../components/Footer';
export default class AppLayout extends React.Component {
render() {
// here is the cdn for prism: http://www.jsdelivr.com/projects/prism
//... |
test/test_helper.js | davide-ravasi/redux-firebase | 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/views/AboutView.js | Hortomatic/app-web | import React from 'react'
import { Link } from 'react-router'
export class AboutView extends React.Component {
render () {
return (
<div className='container text-center'>
<h1>This is the about view!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
)
}
}
export ... |
node_modules/react-router/es/Link.js | SpatialMap/SpatialMapDev | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/popup/components/SubtitlesNavTabs.js | mazenbesher/sub_player_chrome_extension | import React from 'react';
import ReactDOM from 'react-dom';
import { subscribeToSubtitleEvents } from 'lib/components/hoc';
class SubtitleTab extends React.Component {
constructor(props) {
super(props);
}
render() {
const { subId, isSubActivated } = this.props;
return (
... |
src/svg-icons/av/replay-10.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay10 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.... |
index.js | MichalKononenko/OmicronClient | /**
* Created by Michal on 2015-12-07.
*/
import App from './src/app';
import React from 'react';
import React_DOM from 'react-dom';
import {Provider} from 'react-redux';
import store from './src/store';
import './index.html';
import './static/favicon.ico'
React_DOM.render(
<Provider store={store}>
<App... |
src/svg-icons/av/call-to-action.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvCallToAction = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/>
</SvgIcon>
);
AvCallToAction = pure(AvCallToAction);... |
client/components/campaigns/ManageCampaigns.js | karuppiah7890/Mail-for-Good | import React from 'react';
import ManageCampaignsBox from '../../containers/campaigns/ManageCampaignsBox';
const ManageCampaigns = () => {
return (
<div>
<div className="content-header">
<h1>Manage campaigns
<small>Edit or delete your campaigns here</small>
</h1>
</div>
... |
src/class/ErrorBoundary.js | tegon/traktflix | import PropTypes from 'prop-types';
import React from 'react';
class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = {hasError: false};
}
componentDidCatch(error, info) {
console.log(error, info);
this.setState({hasError: true});
}
render() {
let ... |
docs/app/Examples/collections/Grid/Types/GridExampleDividedNumber.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleDividedNumber = () => (
<Grid columns={3} divided>
<Grid.Row>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image ... |
src/domain/group/component/GroupInfo.js | hellowin/kanca | import React from 'react';
import MediaQuery from 'react-responsive';
import groupRepo from 'infra/repo/group';
import loc from 'infra/service/location';
const selectGroup = groupId => e => {
e.preventDefault();
groupRepo.selectGroup(groupId)
.then(() => loc.push('/group/feed'));
}
const Card = props => {
c... |
src/svg-icons/content/block.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentBlock = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8... |
jenkins-design-language/src/js/components/material-ui/svg-icons/file/attachment.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const FileAttachment = (props) => (
<SvgIcon {...props}>
<path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5... |
docs-ui/components/pieChart.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import PieChart from 'app/components/charts/pieChart';
export default {
title: 'DataVisualization/Charts/PieChart',
};
export const _PieChart = withInfo('PieChart')(() => (
<PieChart
startDate={new Date()}
series={[
{
... |
src/interface/report/Results/Timeline/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { formatDuration } from 'common/format';
import DragScroll from 'interface/common/DragScroll';
import CASTS_THAT_ARENT_CASTS from 'parser/core/CASTS_THAT_ARENT_CASTS';
import Abilities from 'parser/core/modules/Abilities';
import BuffsModule from 'p... |
webapp/src/components/geneOntologyRibbon/index.js | nathandunn/agr | import React, { Component } from 'react';
import Ribbon, { RibbonDataProvider } from 'gene-ontology-ribbon';
import '../../../node_modules/gene-ontology-ribbon/lib/index.css';
import fixRibbonPlacement from './fixRibbonPlacement';
const PlacedRibbon = fixRibbonPlacement(Ribbon);
class GeneOntologyRibbon extends Compo... |
test/test_helper.js | aquinoWill/ReduxSimpleStarter | 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/public/components/progress/radial.js | Harrns/segta | import React from 'react'
import Color from '../../color'
function clamp (n, min, max) {
return Math.max(min, Math.min(max, n))
}
export default class MyRadialProgress extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
}
initState (props) {
Ob... |
resources/apps/frontend/src/pages/subscriptions/create.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import {Card, CardBody} from 'reactstrap';
import Form from './form';
import Breadcrumbs from 'components/Breadcrumbs';
import {createSubscription} from 'requests/subscriptions';
class Component extends React.Component {
state = {};
get previous() {
return [
{
to: '/s... |
app/components/Tree/Toggle.js | adamsome/electron-nav | // @flow
import React from 'react'
import styles from './Toggle.css'
type Props = {
hide?: boolean
}
const Toggle = ({ hide }: Props) => {
const height = 8
const width = 8
const midHeight = height * 0.5
const points = `0,0 0,${height} ${width},${midHeight}`
const visibility = hide ? { visibility: 'hidden'... |
src/svg-icons/notification/time-to-leave.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTimeToLeave = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.... |
stories/SimpleUserFormDemo.js | de44/kb-ui | import React from 'react';
import PropTypes from 'prop-types';
import kb from '../src/kb-ui';
import { withState, compose } from 'recompose';
import FormDemo from './FormDemo';
const form = kb.form().fields([
kb.field('id').readOnly(true).defaultValue('asdf-1234-qwerty-567890'),
kb.field('name'),
kb.field('emai... |
src/routes/Main/components/MainPage/MainPage.js | sachinisilva/ganu-denu | import React from 'react'
import PropTypes from 'prop-types'
import ItemListContainer from '../../../Home/containers/ItemListContainer'
import {FlatButton} from 'material-ui'
import banner from '../../../../../public/banner.jpg'
export const MainPage = ({setSigninnModalVisibility, setSignupModalVisibility}) => {
con... |
examples/huge-apps/routes/Course/components/Dashboard.js | jbbr/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
force_dir/node_modules/react-bootstrap/es/PaginationButton.js | wolfiex/VisACC | 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 ... |
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js | frnk94/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const style = {
margin: 12,
};
const RaisedButtonExampleSimple = () => (
<div>
<RaisedButton label="Default" style={style} />
<RaisedButton label="Primary" primary={true} style={style} />
<RaisedButton label="Secondary" se... |
app/components/AgentDetails/index.js | medevelopment/UMA | import React, { Component } from 'react';
import axios from 'axios';
import * as toastify from '../../functions/Toastify';
import styled from 'styled-components';
UploadAgentImage;
import UploadAgentImage from '../../components/UploadAgentImage';
import Avatar from '../icons/userprofile.jpg';
// Import ModeEdit from... |
src/esm/components/graphics/icons/menu-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var MenuIcon = function MenuIcon(_ref) {
var color = _ref.co... |
src/main.js | nivas8292/myapp | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
index.android.js | rldona/ReactNativeCourseBeeva | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { App } from './src';
AppRegistry.registerComponent('ReactNativeCourseBeeva', () => App);
|
tp-3/euge/src/components/layout/Header.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { NavLink } from 'react-router-dom';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import AppBar from 'material-ui/AppBar';
// impor... |
src/containers/Admin/Alerts/Alerts.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Table from '../../../components/uielements/table';
import Pagination from '../../../components/uielements/pagination';
import Button from '../../../components/uielements/button';
import alertActions from '../../../redux/alert/actions';
import { Row, Col } from 'antd';
im... |
src/svg-icons/device/location-searching.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationSearching = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-... |
content/gocms/src/base/components/gForm/GTextArea.js | gocms-io/gocms | import React from 'react';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'
import {HOC} from 'formsy-react';
class GTextArea extends React.Component {
constructor(props) {
super(props);
this.state = {
blurred: false,
dirty: false,
name:... |
src/App.js | wecandothis/react-antd-more | /*
1.根据路由器实现代码拆分,按需加载,import()
*/
import React, { Component } from 'react';
import {HashRouter as Router,Route} from "react-router-dom"
import Header from "./layout/Header"
import Footer from "./layout/Footer"
import Home from "./contains/home"
import Delit from "./components/about/delit"
import Bundle from "./b... |
BarCollapsible.js | caroaguilar/react-native-bar-collapsible | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Animated,
View,
Text,
TouchableHighlight
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import styles from './style'
class BarCollapsible extends Component {
... |
renderer/hocs/withInputValidation.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import * as yup from 'yup'
import getDisplayName from '@zap/utils/getDisplayName'
/**
* withInputValidation - A HOC that will add validation of a `required` property to a field.
*
* @param {React.Component} Component Component to wrap
* @returns {React.C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.