path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
demo/src/stories/Menu/index.js | tannerlinsley/react-story | import React from 'react'
import { Demo, Code, PropsTable } from '../../../../src'
import { Menu, MenuItem, MenuHeader } from './MenuExample'
import MenuRaw from '!raw-loader!./MenuExample/Menu'
import MenuMarkdown from './Menu.md'
import MenuItemStory from './MenuItem'
const MenuDemo = () => (
<Demo
name="Menu"... |
node_modules/react-bootstrap/es/ToggleButton.js | CallumRocks/ReduxSimpleStarter | 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 ... |
03-mybooks/src/Header.js | iproduct/course-node-express-react | import React from 'react';
export default function Header() {
return (
<React.Fragment>
<h2 className="header center orange-text">My Library</h2>
<div className="row center">
<h5 className="header col s12 light">Bookmark your favourite books</h5>
</div>
<div className="row center"... |
Inspector/js/screen.js | mtxs007/WebDriverAgent | /**
* 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... |
frontend/src/App/AppUpdatedModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import AppUpdatedModalContentConnector from './AppUpdatedModalContentConnector';
function AppUpdatedModal(props) {
const {
isOpen,
onModalClose
} = props;
return (
<Modal
isOpen={isOpen}
... |
src/components/Clue/index.js | itsravenous/escape-the-board-room | import React from 'react';
import Ticker from '../Ticker';
import './style.scss';
const Clue = ({clue}) => (
<div className='clue'>
<Ticker>{clue}</Ticker>
</div>
);
Clue.propTypes = {
clue: React.PropTypes.string,
};
export default Clue;
|
examples/src/components/Multiselect.js | submittable/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', va... |
src/renderer/components/DragResize/Dragger.js | MrBlenny/museeks | import React, { Component } from 'react';
import clickDrag from 'react-clickdrag';
import './styles.css';
const styles = {
right: {
width: '10px',
top: '0',
bottom: '0',
right: '0',
marginRight: '-6px',
cursor: 'col-resize'
},
left: {
width: '10px',
... |
springboot-dva/src/main/frontend/src/components/MainLayout/Header.js | wefine/reactjs-guide | import { Icon, Menu } from 'antd';
import { Link } from 'dva/router';
import React from 'react';
function Header({ location }) {
return (
<Menu
selectedKeys={[location.pathname]}
mode="horizontal"
theme="dark"
>
<Menu.Item key="/users">
<Link to="/users"><Icon type="bars" />Us... |
src/routes/Admin/routes/Dashboard/components/charts/User.js | EricThsi/thsi-react-admin | import React from 'react'
import PropTypes from 'prop-types'
import ChartWrapper from '../ChartWrapper'
import ReactEchartsCore from 'echarts-for-react/lib/core'
import echarts from 'echarts/lib/echarts'
import 'echarts/lib/component/title'
import 'echarts/lib/chart/line'
import 'echarts/lib/chart/pie'
import 'echarts/... |
src/test.js | VictorQD/react-pdf-viewer | import React, { Component } from 'react';
import { fetchData } from './actions';
// const { stateProp1, stateProp2 } = {};
// @pass({ prop1, prop2, fetchData })
class App extends Component {
render() {
const { articles, search } = this.props;
return (
<div>
<label>
Wiki search: <inp... |
app/main.js | AdlerPlanetarium/aad-drake-eq | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, Link } from 'react-router'
import App from 'app'
import TermCard from 'components/term-card'
// <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
require('expose?$!expose?jQuery!jquery')
require('bo... |
src/utils/prop-types.js | rolandpoulter/material-ui | import React from 'react';
const horizontal = React.PropTypes.oneOf(['left', 'middle', 'right']);
const vertical = React.PropTypes.oneOf(['top', 'center', 'bottom']);
export default {
corners: React.PropTypes.oneOf([
'bottom-left',
'bottom-right',
'top-left',
'top-right',
]),
horizontal: horiz... |
src/server/app.js | ben-z/swift-note | // Inspirations: https://github.com/RisingStack/graphql-server
import fs from 'fs'
import express from 'express'
import cookieParser from 'cookie-parser'
import bodyParser from 'body-parser'
import multer from 'multer'
import mongoose from 'mongoose'
import Note from './data/note'
import graphqlHTTP from 'express-grap... |
html.js | rorz/a27-site | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle, GoogleFont } from 'react-typography'
import typography from './utils/typography'
import favicon32 from './pages/favicon-32x32.png'
import favicon16 from './pages/favicon-16x16.png'
import ... |
node_modules/react-bootstrap/src/Input.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
import Button from './Button';
import FormGroup from './FormGroup';
const Input = React.createClass({
propTypes: {
type: React.PropTypes.string,
label: React.PropTypes.node,
help: React.PropTypes.node,
addonBefore: React.PropTypes.node,
... |
scripts/src/pages/views/actions.js | Twogether/just-meet-frontend | import React from 'react';
import Helmet from 'react-helmet'
import { Link } from 'react-router';
export default (self) => {
return (
<div>
<Helmet
title="Just Meet | My Actions"
/>
<div className="left quarter">
<nav className="side-nav"... |
src/svg-icons/action/feedback.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (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-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
dva/wd/src/components/Adr/Section.js | imuntil/React | import React from 'react';
import { WhiteSpace, WingBlank, Modal } from 'antd-mobile'
import { Link } from 'dva/router'
import { formatPhone } from '../../services/ct'
import styles from './Section.css';
const alert = Modal.alert
function Section({ adr = {}, onDefaultClick, onDeleteClick, onChosen, chosen }) {
retur... |
src/views/Hello.js | fightingm/blog |
import React from 'react';
import '../css/Hello';
import $ from 'jquery';
export default class Hello extends React.Component{
constructor() {
super();
}
componentDidMount() {
}
render() {
return (
<div className="Hello">
<div className="hello">
<a href="#/about">点击进入我的小站!</a>
</div>
... |
app/src/components/Intro/ReactLogo.js | RyanCCollins/ryancollins.io | import React from 'react';
import ReactLogoSrc from './logo.png';
const ReactLogo = () => (
<img
style={{ height: 80, width: 80 }}
src={ReactLogoSrc}
alt="React Logo"
className="wicked-cool-react-logo spin-image logo-image"
/>
);
export default ReactLogo;
|
app/components/shared/AutosizingTextarea.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import autosize from 'autosize';
export default class AutosizingTextarea extends React.PureComponent {
static propTypes = {
style: PropTypes.object
};
componentDidMount() {
autosize(this._textarea);
}
componentWillUnmount() {
autosi... |
client/src/head/preloads.js | jonathanihm/freeCodeCamp | import React from 'react';
import styleSheets from './styleSheets';
const preloads = styleSheets.map(styleSheet => (
<React.Fragment key={`preload-${styleSheet.props.href}`}>
<link as='style' href={styleSheet.props.href} rel='preload' />
{styleSheet}
</React.Fragment>
));
export default preloads;
|
src/svg-icons/editor/bubble-chart.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBubbleChart = (props) => (
<SvgIcon {...props}>
<circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/>
</SvgIcon>
);
EditorBubbleChart = pure(EditorBub... |
src/svg-icons/notification/wifi.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9... |
src/App/components/LevelNormal.react.js | Rezmodeus/Multiplikation | import React from 'react';
import immutable from 'immutable';
import {Glyphicon} from 'react-bootstrap';
import Grid100 from './Grid100.react';
import History from './History.react';
export default React.createClass({
render() {
const problems = this.props.level.get('problems');
const currentStep = Math.min(this... |
src/main.js | Lily418/Realtime-News-Client | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/scenes/home/families/facts/facts.js | NestorSegura/operationcode_frontend | import React from 'react';
import styles from './facts.css';
import family3 from '../../../../images/Family-3.jpg';
const Facts = () => (
<div className={styles.facts}>
<div className={styles.factsList}>
<div className={styles.factsHeading}>
<h5>The Facts</h5>
</div>
<ul>
<li cl... |
docs/src/app/components/pages/components/Tabs/ExampleIconText.js | verdan/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin';
const TabsExampleIconText = () => (
<Tabs>
<Tab
icon={<FontIcon className="material-icons">phone</FontIcon>}
label="RE... |
src/svg-icons/places/all-inclusive.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAllInclusive = (props) => (
<SvgIcon {...props}>
<path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7... |
src/svg-icons/action/donut-large.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.... |
src/admin/components/electron/index.js | ccetc/platform | import React from 'react'
import { connect } from 'react-redux'
import * as actions from './actions'
class Electron extends React.Component {
static contextTypes = {
notifications: React.PropTypes.object
}
static propTypes = {
notifications: React.PropTypes.array
}
render() {
const { children ... |
src/js/components/icons/base/Tasks.js | odedre/grommet-final | /**
* @description Tasks 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.
* @prop... |
app/imports/ui/client/layouts/Specifications/index.js | valcol/ScrumNinja | import React, { Component } from 'react';
import SpecificationsBox from '../../components/Specifications';
class Specifications extends Component {
render() {
return (
<SpecificationsBox {...this.props}/>
);
}
}
export default Specifications;
|
storybook/config.js | bureaucracy/mastodon | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
src/svg-icons/editor/money-off.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMoneyOff = (props) => (
<SvgIcon {...props}>
<path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ... |
lib/components/map/rectangle.js | conveyal/analysis-ui | import React from 'react'
import {Rectangle} from 'react-leaflet'
import {toLatLngBounds} from 'lib/utils/bounds'
export default function R(p) {
return <Rectangle {...p} bounds={toLatLngBounds(p.bounds)} />
}
|
app/components/Pages/Login.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-21 19:18:59
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-21 19:58:32
*/
import React from 'react';
import request from 'superagent';
import { Link, hashHistory } from 'react-router';
var Login = React.createClass({
handleLogin: function(){
reque... |
packages/bonde-admin-canary/src/components/Loadable/LoadingFullScreen.js | ourcities/rebu-client | import React from 'react'
import { Backdrop } from 'bonde-styleguide'
import Loading from './Loading'
const LoadingFullScreen = ({ message }) => (
<Backdrop color='#FFFFFF'>
<Loading
message={message}
/>
</Backdrop>
)
export default LoadingFullScreen
|
app/javascript/mastodon/features/compose/components/autosuggest_account.js | ambition-vietnam/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
src/server/components/Server500.js | tomatau/breko-hub | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
const Server500 = ({ className, ...props }) => (
<div className={cx('Server500', className)} {...props}>
There was an 500 error.
</div>
)
Server500.propTypes = {
className: PropTypes.string,
}
export default Server500
|
tests/react_modules/es6class-types-callsite.js | popham/flow | /* @flow */
import React from 'react';
import Hello from './es6class-types-module';
import type {Node} from 'react';
type Props = {name: string};
class HelloLocal extends React.Component<Props> {
render(): Node {
return <div>{this.props.name}</div>;
}
}
class Callsite extends React.Component<Props> {
rende... |
docs/app/Examples/modules/Dropdown/States/DropdownExampleLoading.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
const options = [
{ key: 1, text: 'Choice 1', value: 1 },
{ key: 2, text: 'Choice 2', value: 2 },
]
const DropdownExampleLoading = () => (
<Dropdown text='Dropdown' options={options} loading />
)
export default DropdownExampleLoading
|
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | clloyd/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class Sidebar extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment =>... |
docs/src/pages/demos/bottom-navigation/SimpleBottomNavigation.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import BottomNavigation, { BottomNavigationAction } from 'material-ui/BottomNavigation';
import RestoreIcon from '@material-ui/icons/Restore';
import FavoriteIcon from '@material-ui/icons/Favorite';
import Lo... |
src/components/chat/Chat.js | ffossum/gamesite3-client | /* @flow */
import React from 'react';
import UserTextMessage from './UserTextMessage';
import type { MessageProp } from './UserTextMessage';
import ChatInput from './ChatInput';
import type { SessionUser } from '../../redux/modules/session/sessionReducer';
export type Props = {
messages: MessageProp[],
user?: ?Se... |
src/components/book_item.js | valmassoi/bookwerm | import React from 'react'
const BookItem = ({ book, mode, selectBook, deleteBook, requestBook, approveBook, rejectBook }) => {
let { title } = book
if(title.length>32)
title = title.substring(0, 35)+"..."
let deleteBtn = null
if(mode=="user_collection"){
deleteBtn = <button class="pull-right" style={{... |
src/svg-icons/action/today.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
src/index.js | arianithetemi/ReactBlog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import reducers from './reducers';
import promise from 'redux-promise';
import PostsIndex from './c... |
js/setup.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './configureStore';
function setup():React.Component {
class Root extends Component {
constructor() {
super();
this.state = {
isLoading: false,
store... |
app/src/components/Screenshots.js | mlang12/gameswipe | import React, { Component } from 'react';
class Screenshots extends Component {
render() {
if (this.props.imgs !== undefined) {
return (
<div className="row">
<h3> Screenshots: </h3>
{this.props.imgs.map(function(ss) {
return (
<span className="" key={s... |
node_modules/react-bootstrap/es/ModalFooter.js | mohammed52/something.pk | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/react-scripts/template/src/App.js | GreenGremlin/create-react-app | import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
... |
app/screens/Settings/SettingsScreenView.js | JSSolutions/Perfi | import React from 'react';
import T from 'prop-types';
import { Text, View } from 'react-native';
import { Subtitle, Select, ScreenWrapper, Icon, Button } from '../../components';
import currencies from '../../constants/currencies';
import s from './styles';
import { dimensions, colors } from '../../styles';
const ... |
src/components/headerOldCrap.js | LiJuons/react-dribbble | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import DropDown from './nav/dropDown'
class Header extends Component {
onEnter () {
styles.style_link = {
color: '#F5F5F5',
fontSize: 15,
}
}
onLeave () {
styles.style_l... |
docs/app/Examples/elements/Image/Variations/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const ImageVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compone... |
TranslationList.js | harokevin/unoun | import React, { Component } from 'react';
import { AppRegistry, FlatList, StyleSheet, Text, View } from 'react-native';
import Translate from './Translate';
export default class TranslationList extends Component {
render() {
return (
<View style={styles.container}>
<FlatList
data={this.pr... |
src/components/photography/more.js | nickhsine/twreporter-react | import { sourceHanSansTC as fontWeight } from '@twreporter/core/lib/constants/font-weight'
import mq from '../../utils/media-query'
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
const Container = styled.div`
cursor: pointer;
width: 100%;
height: 105px;
back... |
src/routes.js | vihanchaudhry/cake-showdown | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './components/App'
import Index from './components/Index'
export default (
<Route path='/' component={App}>
<IndexRoute component={Index} />
</Route>
)
|
src/containers/Payment/PaymentMethods.js | ChluNetwork/chlu-demo | import React from 'react'
// components
import { Button, withStyles, CardActions, Dialog, DialogActions, DialogContentText, DialogContent, DialogTitle } from '@material-ui/core';
// redux
import { compose } from 'recompose'
import { connect } from 'react-redux'
import { toggleComingSoonModal } from 'store/modules/ui/mo... |
src/svg-icons/navigation/unfold-more.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldMore = (props) => (
<SvgIcon {...props}>
<path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/>
</SvgIcon>
);
Navig... |
src/components/Toolbar.js | rsamec/react-designer | import React from 'react';
import _ from 'lodash';
export default class Toolbar extends React.Component {
up() {
var items = this.props.current.parentNode.containers;
var itemIndex = items.indexOf(this.props.current.node);
if (itemIndex === 0) return;
var element = items[itemIndex];
var toIndex ... |
docs/src/sections/BreadcrumbSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function BreadcrumbSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
react-admin-dashboard/src/pages/UserProfile/UserInfo.js | chaitanya1375/Myprojects | import React from 'react';
import profileImage from '../../assets/images/faces/face-3.jpg';
const UserInfo = () => (
<div className="card card-user">
<div className="image">
<img src="https://ununsplash.imgix.net/photo-1431578500526-4d9613015464?fit=crop&fm=jpg&h=300&q=75&w=400" alt="..." />... |
app/javascript/mastodon/features/explore/results.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { expandSearch } from 'mastodon/actions/search';
import Account from 'mastodon/containers/account_contai... |
app/react-icons/fa/chevron-left.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaChevronLeft extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m31.1 6.7l-11.8 11.9 11.8 11.8q0.5 0.4 0.5 1t-0.5 1l-3.7 3.7q-0.4 0.5-1 ... |
react/src/components/footer/components/SprkFooterAwards/SprkFooterAwards.js | sparkdesignsystem/spark-design-system | import React, { Component } from 'react';
import uniqueId from 'lodash/uniqueId';
import PropTypes from 'prop-types';
import SprkToggle from '../../../toggle/SprkToggle';
class SprkFooterAwards extends Component {
constructor(props) {
super(props);
this.state = {
awardsImagesHasIds: props.awards.images... |
src/Avatar/Avatar.js | AndriusBil/material-ui | // @flow
import React from 'react';
import type { ComponentType, Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { emphasize } from '../styles/colorManipulator';
export const styles = (theme: Object) => ({
root: {
position: 'relative',
displ... |
src/svg-icons/navigation/first-page.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage = pure(NavigationFirstPage);
NavigationFirstPag... |
dialog-component-explorer/src/components/SettingsDialogContent.js | jacklam718/react-native-dialog-component | // @flow
import React, { Component } from 'react';
import { View, Text, Switch } from 'react-native';
import _ from 'lodash';
import Section from './Section';
type Props = {
onSettingsUpdated: Function;
dialogContentContainer: boolean;
}
export default class SettingsDialogContent extends Component {
props: Pro... |
bench/rendering/pages/stateless.js | JeromeFitz/next.js | import React from 'react'
export default () => <h1>My component!</h1>
|
examples/huge-apps/routes/Course/components/Dashboard.js | etiennetremel/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
libraries/react/global-state/src/AppIntro.js | vivaxy/course | /**
* @since 2017-05-09 10:20:57
* @author vivaxy
*/
import React, { Component } from 'react';
export default class AppIntro extends Component {
render() {
const { globalState, action } = this.props;
return (
<div className="App-intro">
To get started, edit <code>src/App.js</code> and save ... |
app/javascript/mastodon/features/ui/components/column_header.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
react-flux-mui/js/material-ui/src/svg-icons/device/battery-50.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
src/components/EditForm/Parents.js | Apozhidaev/terminal.mobi | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { searchParents } from 'store/app/book/editForm/actions';
class Parents extends Component {
constructor(props) {
super(props);
const { slot } = this.props;
const parents = slot.parents.slice();
this.state = { par... |
docs/static/js/33.b64f43dc.chunk.js | yurizhang/ishow | webpackJsonp([33],{201:function(n,e,t){var o=t(215);"string"===typeof o&&(o=[[n.i,o,""]]);var a={hmr:!1};a.transform=void 0;t(193)(o,a);o.locals&&(n.exports=o.locals)},207:function(n,e,t){var o=t(235);"string"===typeof o&&(o=[[n.i,o,""]]);var a={hmr:!1};a.transform=void 0;t(193)(o,a);o.locals&&(n.exports=o.locals)},208... |
src/index.js | LEEwith/google-map-react | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// import Map from './components/Map';
// import Map from './components/Map2';
import Map from './components/Map3';
class App extends Component {
render() {
return (
<div>
<Map />
</div>
)
}... |
app/javascript/mastodon/components/admin/Trends.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Hashtag from 'mastodon/components/hashtag';
export default class Trends extends React.PureComponent {
static propTypes = {
lim... |
console-ui/src/pages/ConfigurationManagement/HistoryRollback/HistoryRollback.js | alibaba/nacos | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
blueprints/form/files/__root__/forms/__name__Form.js | bruceli1986/contract-react | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
demo/components/buttongroup/ButtonGroupOptions.js | ctco/rosemary-ui | import React from 'react';
import {ButtonGroup} from '../../../src';
import OptionsTable from '../../helper/OptionsTable';
export default () => {
return (
<OptionsTable component={ButtonGroup} propDescription={{}} />
);
};
|
packages/wix-style-react/src/DropdownLayout/DropdownLayout.js | wix/wix-style-react | import PropTypes from 'prop-types';
import React from 'react';
import Loader from '../Loader/Loader';
import InfiniteScroll from '../utils/InfiniteScroll';
import scrollIntoView from '../utils/scrollIntoView';
import {
DATA_HOOKS,
DATA_OPTION,
DATA_SHOWN,
DATA_DIRECTION,
DROPDOWN_LAYOUT_DIRECTIONS,
OPTION_D... |
app/javascript/mastodon/features/ui/components/column.js | gol-cha/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
assets/javascripts/kitten/components/structure/cards/simple-card/components/subtitle.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import { Text } from '../../../../typography/text'
import { parseHtml } from '../../../../../helpers/utils/parser'
export const Subtitle = ({ subtitle }) => {
return (
<Text
size="micro"
weight="regular"
tag="div"
className="k-S... |
saga/seata-saga-statemachine-designer/src/components/EditorDetailPanel/FlowDetailPanel.js | seata/seata | import React from 'react';
import { Card } from 'antd';
import { NodePanel, EdgePanel, GroupPanel, MultiPanel, CanvasPanel, DetailPanel } from 'gg-editor';
import DetailForm from './DetailForm';
import styles from './index.less';
const FlowDetailPanel = () => {
return (
<DetailPanel className={styles.detailPanel... |
src/hoc/selectable-enhance.js | tomrosier/material-ui | import React from 'react';
import getMuiTheme from '../styles/getMuiTheme';
import ColorManipulator from '../utils/color-manipulator';
export const SelectableContainerEnhance = (Component) => {
const composed = React.createClass({
displayName: `Selectable${Component.displayName}`,
propTypes: {
childr... |
src/components/Jobs/JobList.js | taiwoabegunde/developersmap | /**
* Created by Raphson on 10/12/16.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import TimeAgo from 'react-timeago';
import marked from 'marked';
export default class JobList extends Component {
constructor() {
super();
}
... |
frame-react16/src/Home/index.js | shenqingling/myTemplates | import React from 'react';
import Loadable from "react-loadable";
import Loading from "../Loading";
const LoadableComponent = Loadable({
loader: () => import("./Home"),
loading: Loading
});
export default class LoadableDashboard extends React.Component {
render() {
return <LoadableComponent />;
}
} |
src/client/components/Canvas/DrawableCanvas.js | eliasmeire/hz-pictionary | import React from 'react';
import { connect } from 'react-redux';
import { startWatchingCanvas, stopWatchingCanvas } from '../../redux/actions';
import { CanvasDrawer } from '../../lib/canvas';
import './DrawableCanvas.scss';
class DrawableCanvas extends React.Component {
componentDidMount() {
const { enabled, s... |
src/containers/DevToolsWindow.js | availabs/kauffman-atlas | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
src/app/main.js | debiasej/react-credit-card-blocker | import {appStep} from '../config/index'
import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import { deepOrange500 } from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import BankC... |
oversee/static/src/js/screen/components/Asset.js | bpsagar/oversee | import React from 'react'
import axios from 'axios'
import AssetCache from '../AssetCache'
class Asset extends React.Component {
state = {
videoEnded: false
}
getLoopPoint = () => {
return this.props.properties.loop_point || 0
}
handleVideoEnd = () => {
if (this.props.properties.loop) {
... |
src/contentscript/playbypost/PlayByPostApp.js | emfmesquita/beyondhelp | import React, { Component } from 'react';
import PlayByPostData from "../../data/PlayByPostData";
import PlayByPostStorageService from "../../services/storage/PlayByPostStorageService";
import { throttle } from 'lodash';
class PlayByPostApp extends Component {
constructor(props) {
super(props);
th... |
examples/passing-props-to-children/app.js | limarc/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
demo/src/ColorWheel.js | kiloe/ui | import React from 'react';
import View from '../../package/View';
import UI from '../../package/index';
UI.registerCSS({
'.color-wheel': {
},
'.color-wheel .selector': {
opacity: 0,
fill: '#BDBDBD',
},
'.color-wheel .label':{
opacity: 0,
textAnchor: 'middle',
fill: '#fff',
fontSize: '... |
src/Player/index.js | aspyrx/audiovisual | /**
* Playback UI module.
*
* TODO: This file abuses `setState` because `PlayHistory` and `AudioFile` are
* treated as mutable. A refactor to rely solely on immutable data structures
* would be ideal.
*
* @module src/Player
*/
import React, { Component } from 'react';
import KeyHandler, { KEYDOWN } from 'react... |
src/svg-icons/editor/format-color-text.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorText = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/>
</SvgIcon>
);... |
src/components/Events/EasyEvent.js | albertoblaz/lord-commander | import React from 'react'
import _ from 'lodash'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'
const actions = [
<FlatButton
label="Cancel"
primary={true}
onTouchTap={this.handleClose}
/>,... |
src/components/Feedback/Feedback.js | jmattfong/jmattfong.com | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.