path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/nausicaa/src/components/MarkdownComponents/index.js | accosine/poltergeist | import React from 'react';
import { styled } from 'styletron-react';
import withTheme from '../../util/withTheme';
const P = withTheme(
styled('p', ({ styleProps: { theme, collection } }) => ({
margin: '4vw 6vw 4vw 6vw',
color: '#333',
':first-of-type:first-letter': {
float: 'left',
fontSize:... |
.history/src/components/Menu_20170804011502.js | radubrehar/evanghelic.ro | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import { css } from 'glamor';
import Row from './Row';
const mainCls = css({
background: 'gray',
display: 'flex',
flexFlow: 'row',
paddingTop: 20,
paddingBottom: 20,
justifyContent: 'flex-end'
});
const Menu = ... |
app/components/TriggerHttpForm/index.js | fission/fission-ui | /**
*
* TriggerHttpForm
*
*/
import React from 'react';
// import styled from 'styled-components';
import TriggerHttpCreateForm from 'components/TriggerHttpCreateForm';
import { FormattedMessage } from 'react-intl';
import commonMessages from 'messages';
import messages from './messages';
import Item from './item';
c... |
app/components/Settings/components/sounds-panel.js | builtwithluv/ZenFocus | import React from 'react';
import PropTypes from 'prop-types';
import { Checkbox } from '@blueprintjs/core';
const SoundsPanel = ({
audioPhaseDisabled,
audioTickDisabled,
onSettingsChange,
toggleAudioPhase,
toggleAudioTick,
className
}) => (
<div className={className}>
<Checkbox
label="Play tic... |
src/app/components/pages/DashboardTwo.js | ucokfm/admin-lte-react | import React from 'react';
import PageWrapper from '../../../lib/page/PageWrapper';
import PageHeader from '../../../lib/page/PageHeader';
import Breadcrumb from '../../../lib/page/Breadcrumb';
import PageContent from '../../../lib/page/PageContent';
import InfoBox from '../../../lib/widgets/InfoBox';
export default f... |
src/components/app-content.js | baltazarparra/react-github-app | import React from 'react'
import Search from './search';
import UserInfo from './user-info';
import Actions from './actions';
import Repos from './repos';
import PropTypes from 'prop-types';
const AppContent = ({ userinfo, repos, starred, isFetching, handleSearch, getRepos, getStarred }) => (
<main className='cont... |
docs/app/Examples/elements/Header/Variations/HeaderExampleBlock.js | ben174/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleBlock = () => (
<Header as='h3' block>
Block Header
</Header>
)
export default HeaderExampleBlock
|
src/packages/@ncigdc/routes/ManageSetsRoute/index.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import { Route } from 'react-router-dom';
import LoadableWithLoading from '@ncigdc/components/LoadableWithLoading';
const ManageSetsRoute = (
<Route
path="/manage-sets"
component={LoadableWithLoading({
loader: () => import('./ManageSetsPage'),
})}
/>
);
exp... |
src/components/send/SpendBalance.js | whphhg/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
@translate(['common'])
@inject('gui', 'send')
@observer
class SpendBalance extends React.Component {
constructor(props) {
super(props)
this.t = props.t
this.gui = props.gui
this.send = pr... |
src/geo-objects/Polygon.js | gribnoysup/react-yandex-maps | import React from 'react';
import PropTypes from 'prop-types';
import { withParentContext } from '../Context';
import withYMaps from '../withYMaps';
import { BaseGeoObject } from './BaseGeoObject';
export function Polygon(props) {
return <BaseGeoObject {...props} name="Polygon" />;
}
if (process.env.NODE_ENV !== ... |
www/src/withLayout.js | glenjamin/react-bootstrap | import React from 'react';
import ApiLayout from './layouts/ApiLayout';
import DefaultLayout from './layouts';
export default function withLayout(Component) {
return props => {
const { pathname } = props.location;
let Layout = DefaultLayout;
if (
pathname.startsWith('/getting-started') ||
pa... |
src/routes/adminToolResponses/AdminToolResponses.js | goldylucks/adamgoldman.me | // @flow
import React from 'react'
import axios from 'axios'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import faTrash from '@fortawesome/free-solid-svg-icons/faTrash'
import ReactTable from 'react-table'
import Link from '../../components/Link'
type Props = {
path: string,
}
class AdminTool... |
packages/spec/integration/react/index.js | xing/hops | import {
Header,
importComponent,
Miss,
render,
withServerData,
useServerData,
Status,
withConfig,
useConfig,
} from 'hops';
import React from 'react';
import { Link, Redirect, Route, Switch } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';
import FlowText from './flow-text';
c... |
src/renderer/components/Shared/TrackRow.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import lib from '../../lib';
import classnames from 'classnames';
class TrackRow extends Component {
static propTypes = {
children: React.PropTypes.array,
selected: React.PropTypes.bool,
trackId: React.PropT... |
resources/assets/js/components/responses/UrlComponent.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
fetchAssignedBooks,
saveResponse
} from '../../actions/crudActions';
const mapStateToProps = (state) => {
return {
assignedBooks: state.bookReducers.assignedBooks
};
};
const mapDispatchToProps = (dispatch) => {
r... |
src/components/app/Contact/index.js | RelativeMedia/rm-frontend | import React from 'react'
import PropTypes from 'prop-types'
import Scroll from 'react-scroll'
const Element = Scroll.Element
import ContactForm from './ContactForm'
const ContactComponent = ({ contact, isSubmitting, onSubmit }) => (<div className='ContactComponent'>
<div className='container'>
<div className='... |
src/PageItem.js | roderickwang/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/components/Login.js | kesean/Dashboard-Frontend | import React from 'react'
import Paper from 'material-ui/Paper'
import TextField from 'material-ui/TextField'
import {Tabs, Tab} from 'material-ui/Tabs';
import FlatButton from 'material-ui/FlatButton'
export default class Login extends React.Component {
state = {
firstName: "",
lastName: "",
password: "... |
client/components/index.js | mythmon/riddler | import React from 'react';
import {RouteHandler, Link} from 'react-router';
export const Html = React.createClass({
render() {
return (
<html>
<head>
<meta charSet="UTF-8"/>
<title>Riddler Puzzle Server</title>
<link rel="stylesheet" href="/static/style/base.css"/>
... |
app/containers/LearningToCode/index.js | HRR20-Lotus/affirmation | /*
*
* LearningToCode
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import selectLearningToCode from './selectors';
export class LearningToCode extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (... |
web/src/js/components/disciplina/alterar.js | helderfarias/ges | 'use strict';
import React from 'react';
import { Link, History } from 'react-router';
import DisciplinaAction from '../../actions/disciplina_action';
import DisciplinaStore from '../../stores/disciplina_store';
import Growl from '../comuns/alert';
export default React.createClass({
mixins: [ History ],
hand... |
docs/src/examples/addons/Pagination/Usage/PaginationExampleShorthand.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon, Pagination } from 'semantic-ui-react'
const PaginationExampleShorthand = () => (
<Pagination
defaultActivePage={5}
ellipsisItem={{ content: <Icon name='ellipsis horizontal' />, icon: true }}
firstItem={{ content: <Icon name='angle double left' />, icon: true }}
... |
node_modules/node_modules/recharts/demo/component/BrushDemo.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { Surface, Brush } from 'recharts';
export default React.createClass({
render () {
let data = [
'2015-10-01',
'2015-10-02',
'2015-10-03',
'2015-10-04',
'2015-10-05',
'2015-10-06',
'2015-10-07',
'2015-10-08',
... |
src/IconButton/index.js | reactivers/react-material-design | /**
* Created by muratguney on 27/03/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import Button from '../Button'
export default class IconButton extends React.Component {
static propTypes = {
iconName: PropTypes.string,
iconSize: PropTypes.number,
iconColor: Pro... |
docs/tutorial/DO_NOT_TOUCH/10/src/components/Toast/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
export default connect({
toast: state`toast`
},
function Toast (props) {
if (!props.toast) {
return null
}
return (
<div className='c-alerts c-alerts--bottomright'>
<div className={... |
nlyyAPP/component/小帮手/用户手册/MLYhsc.js | a497500306/nlyy_APP | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ScrollView,
Alert,
Image
} from 'react-native';
var Users = require('../../.... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleTriggerImage.js | mohammed88/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import { Dropdown, Image } from 'semantic-ui-react'
const trigger = (
<span>
<Image avatar src={faker.internet.avatar()} />
{faker.name.findName()}
</span>
)
const DropdownImageTriggerExample = () => (
<Dropdown trigger={trigger} pointing='top left' ic... |
react-component-template/test.js | cstumph/ribcage-gen | import test from 'tape'
import {{PascalName}} from './index.jsx'
import React from 'react'
import {addons} from 'react/addons'
import testTree from 'react-test-tree'
import defaultProps from './example/data.js'
const {TestUtils} = addons
const {isElement} = TestUtils
test('{{PascalName}}: constructor', (t) => {
cons... |
packages/benchmarks/src/implementations/inline-styles/View.js | styled-components/styled-components | /* eslint-disable react/prop-types */
import React from 'react';
const compose = (s1, s2) => {
if (s1 && s2) {
return { ...s1, ...s2 };
} else {
return s1 || s2;
}
};
class View extends React.Component {
render() {
const { style, ...other } = this.props;
return <div {...other} style={compose(v... |
app/src/components/Title/index.js | Neil-Ni/v2 | import React from 'react';
function Title() {
return (
<div>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
<h1>Yo</h1>
... |
src/svg-icons/hardware/desktop-mac.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
src/routes/app/routes/pages/routes/careers/components/Careers.js | ahthamrin/kbri-admin2 | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import APPCONFIG from 'constants/Config';
import QueueAnim from 'rc-queue-anim';
class Hero extends React.Component {
constructor() {
super();
this.state = {
brand: APPCONFIG.brand
};
}
render() {
return (
... |
geonode/monitoring/frontend/src/pages/alerts-settings/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Header from '../../components/organisms/header';
import AlertSetting from '../../components/organisms/alert-setting';
import HoverPaper from '../../components/atoms/hover-paper';
import actions from './actions';... |
node_modules/react-scripts/template/src/App.js | aggiedefenders/aggiedefenders.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
react-app/src/Home.js | parkjoon/computer-showcase-forms | import React, { Component } from 'react';
export default class Home extends Component {
componentDidMount() {
this.props.lock.show();
}
render() {
return null;
}
};
|
docs/site/src/pages/style/typography/TextTypes.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Text from 'material-ui/Text';
export default function TextTypes() {
return (
<div>
<Text type="display4" component="h1" gutterBottom>
Display 4
</Text>
<Text type="display3" component="h2" gutterBottom>
Display 3
</Text>
... |
app/javascript/mastodon/components/error_boundary.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import illustration from '../../images/elephant_ui_disappointed.svg';
export default class ErrorBoundary extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
};
state = {
hasError: false,
stackTrace: undefined,
... |
src/js/components/InfiniteScroll/stories/ClassChildren.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, InfiniteScroll, Text } from 'grommet';
import { grommet } from 'grommet/themes';
const allItems = Array(2000)
.fill()
.map((_, i) => `item ${i + 1}`);
/* eslint-disable react/prefer-stateless-function */
const MyItem = ({ item }) => (
<Box pad="medium" border={... |
resources/jsx/components/CompletedJob.js | kbariotis/async-jobs-ui | 'use strict';
import React from 'react';
import moment from 'moment';
class Job extends React.Component {
constructor() {
super();
}
render() {
let createdAt = moment(this.props.createdAt).format('MMMM Do YYYY, h:mm:ss a');
let updatedAt = moment(this.props.updatedAt).format('MMMM Do YYYY, h:mm:ss... |
src/containers/GuideShowView/GuideShowView.js | devgeeks/4ZZZ-app | import React from 'react';
import { connect } from 'react-redux';
import Tappable from 'react-tappable';
import MdArrowBack from 'react-icons/lib/md/arrow-back';
import moment from 'moment-timezone';
import animateView from 'react-animated-views';
import GuidePane from 'components/GuidePane';
import Navbar from 'comp... |
src/components/AlbumList.js | cfirmo33/Udemy-React-native-project | import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import axios from 'axios';
import AlbumDetail from './AlbumDetail';
class AlbumList extends Component {
state = { albums: [] };
componentWillMount() {
axios.get('https://rallycoding.herokuapp.com/api/music_albums')
.the... |
examples/shared-root/app.js | jwaltonmedia/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/shared-root'
})
class App extends React.Component {
render() {
return (
<div>
<p>
This illustrates ... |
examples/samples/phone.js | muvlabs/react-native-swiper | import React from 'react'
import { StyleSheet, Text, View, Image } from 'react-native'
import Swiper from '../swiper.dist'
const styles = StyleSheet.create({
wrapper: {
// backgroundColor: '#f00'
},
slide: {
flex: 1,
backgroundColor: 'transparent'
},
image: {
flex: 1
}
})
export default ... |
packages/@sanity/dashboard/src/widgets/projectUsers/ProjectUsers.js | sanity-io/sanity | import React from 'react'
import {map, switchMap} from 'rxjs/operators'
import {Stack, Spinner, Card, Box, Text, Button} from '@sanity/ui'
import {RobotIcon} from '@sanity/icons'
import styled from 'styled-components'
import {DefaultPreview} from '@sanity/base/components'
import {versionedClient} from '../../versionedC... |
client/components/Page/Page.stories.js | VoiSmart/Rocket.Chat | import { Button, ButtonGroup, Tile } from '@rocket.chat/fuselage';
import React from 'react';
import Page from '.';
import { fullHeightDecorator } from '../../../.storybook/decorators';
export default {
title: 'components/Page',
component: Page,
};
const DummyContent = () => (
<>
{Array.from({ length: 60 }, (_,... |
src/example/index.js | pierr/app-skeleton | import React from 'react';
import ReactDOM from 'react-dom';
import MyComponent from '../';
import 'material-design-icons-iconfont/dist/material-design-icons.css';
import 'material-design-lite/material.css';
import 'material-design-lite/material.min';
// Create the react component when the DOM is loaded.
document.add... |
src/esm/components/graphics/icons-next/facebook-icon-next/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 FacebookIconNext = function FacebookIconNext(_ref) {
var... |
app/components/checkbox-group.js | CarlaCrandall/DoItNow | import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { Checkbox } from './index';
import { CheckboxGroupStyles } from '../styles/components';
export default class CheckboxGroup extends Component {
constructor(props) {
super(props);
this.state = {
... |
js/components/sign-up/index.js | kwoumn3/khemet | 'use strict';
import React, { Component } from 'react';
import { Image, Platform, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Content, Text, Button, Icon, InputGroup, Input, View } from 'native-bas... |
src/client/assets/javascripts/features/admin/components/AdminView.js | ChrisBauer/codenames-frontend | /**
* Created by chris on 1/4/17.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selector } from '../';
import { userActions } from 'actions/userActions';
import { gameActions } from 'actions/gameActions';
import { adminAction... |
src/svg-icons/action/assignment-return.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/svg-icons/device/bluetooth-disabled.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
src/containers/NotFound/NotFound.js | yomolify/cc_material | 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>
);
}
|
docs/src/app/components/pages/components/Slider/ExampleDisabled.js | mtsandeep/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleDisabled = () => (
<div>
<Slider disabled={true} />
<Slider disabled={true} value={0.5} />
<Slider disabled={true} value={1} />
</div>
);
export default SliderExampleDisabled;
|
src/SideMenu/core/navigation/Link.js | skyiea/wix-style-react | import React from 'react';
import {bool, node, string} from 'prop-types';
import LinkLayout from './LinkLayout';
import styles from './styles.scss';
import DataPickerArrow from '../../../Icons/dist/components/DataPickerArrow';
const Link = ({children, isDiminishedHover, isActive, withArrow, badge, dataHook, ...rest}) ... |
src/index.js | kun391/react-firebase-chat | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './containers/Root';
import configureStore from './store/configureStore';
import { createBrowserHistory } from 'history';
import { routes } from './routes';
import { syncHistoryWithStore } from 'react-router-redux';
const store = configureS... |
lens-ui/app/components/SidebarComponent.js | sushrutikhar/grill | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
index.android.js | mannysys/imoocApp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class imoocApp extends Component {
render() {
return (
<View style={styles.container}>
<Text... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | tootcafe/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
src/icons/LanguageIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LanguageIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M23.99 4C12.94 4 4 12.95 4 24s8.94 20 19.99 20C35.04 44 44 35.05 44 24S35.04 4 23.99 4zm13.85 12h-5.9c-.6... |
packages/containers/src/SidePanel/SidePanel.stories.js | Talend/ui | import React from 'react';
import SidePanel from '.';
const actions = [
{
componentId: 'first',
href: '/storybook',
},
{
componentId: 'second',
href: '/foo',
},
{
componentId: 'configuration',
href: '/configuration',
},
];
export default {
title: 'SidePanel',
};
export const Default = () => <Side... |
src/features/IntroModal/OrDivider.js | erhathaway/cellular_automata | import React from 'react';
import styled from 'react-emotion';
const Container = styled('div')`
position: relative;
width: 100%;
opacity: 0;
background: inherit;
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
@media (min-width: 420px) {
width: 300px;
}
`;
const... |
packages/cmf-cqrs/src/components/ACKDispatcher/ACKDispatcher.container.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import cmf, { cmfConnect } from '@talend/react-cmf';
import { deleteACK } from '../../actions/ack';
export const DEFAULT_STATE = new Map({});
/**
* {
type: 'ACK_ADD_CONTEXT',
requestId: '123',
data: { foo: 'bar' },... |
app/react-icons/fa/check-square-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCheckSquareO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m32.9 20.8v7.1q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18... |
app/src/index.js | CovertIII/hledger-node-server | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/image/leak-remove.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
client/components/Backdrop.js | VoiSmart/Rocket.Chat | import { ModalBackdrop } from '@rocket.chat/fuselage';
import React from 'react';
export const Backdrop = (props) => <ModalBackdrop bg='transparent' {...props} />;
|
mxcube3/ui/components/SampleQueue/QueueControl.js | amilan/mxcube3 | import React from 'react';
import 'bootstrap';
import './app.less';
import { ProgressBar, Button } from 'react-bootstrap';
export default class QueueControl extends React.Component {
constructor(props) {
super(props);
this.state = {
options: {
QueueStarted: [
{ text: 'Stop', class: 'b... |
src/js/components/Video.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import... |
stories/BasicNested.js | tomkp/react-split-pane | import React from 'react';
import SplitPane from '../src';
export default () => (
<SplitPane
split="vertical"
minSize={50}
maxSize={300}
defaultSize={100}
className="primary"
>
<div>min: 50px, max: 300px</div>
<SplitPane split="horizontal">
<div>default min: 50px</div>
<div ... |
front-end/client/index.js | davae1an/Thermoelectric-Cooler-Panel | import React from 'react';
import PropTypes from 'prop-types';
import {render} from 'react-dom';
import store from './stores/Livedata';
import socketz from './stores/Socketz';
import Headerz from './comp/Headerz'
import Tabz from './comp/subcomp/tabz';
import 'grommet/grommet.min.css';
import io from 'socket.io-client'... |
app/js/app.js | arcsecw/query_order | import React, { Component } from 'react';
import {
render,
} from 'react-dom';
import {
Router,
Route,
IndexRoute,
hashHistory,
} from 'react-router';
//解决fetch的兼容性
import 'whatwg-fetch'
import {
Topbar,
Nav,
Link,
Icon,
NavItem,
CollapsibleNav,
} from 'amazeui-react';
import RouteLink from './co... |
packages/reactor-kitchensink/src/examples/D3/HeatMap/SalesPerEmployee/SalesPerEmployee.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel, Toolbar, Button } from '@extjs/ext-react';
import { D3_HeatMap } from '@extjs/ext-react-d3';
import { refreshData, refreshSize } from './createData';
export default class SalesPerEmployee extends Component {
constructor() {
super();
this.re... |
src/containers/DevTools/DevTools.js | hakonrossebo/ciq-layout-composer | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
src/components/menu/demos/UpperLeft.js | isogon/material-components | import React from 'react'
import { Menu, MenuItem, MenuDivider, Button, Icon } from '../../../'
import { Container, Bar, Bg } from './_shared'
export default () => (
<Container align="left">
<Bg />
<Bar>
<Menu
topLeft
control={
<Button icon>
<Icon name="more_vert"... |
app/src/components/MainTabs/TabContentContribution/Contribution.js | oh-my-github/yo-omg-basic | import React from 'react'
export default class Contribution {
constructor(updatedAt, owner, repository, branch, recentCommit) {
this.updatedAt = updatedAt /** string */
this.owner = owner, /** string */
this.repository = repository /** string */
this.branch = branch ... |
src/widgets/JSONForm/widgets/Checkboxes.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
import React from 'react';
import { StyleSheet, Text } from 'react-native';
import PropTypes from 'prop-types';
import CheckBox from '@react-native-community/checkbox';
import { APP_FONT_FAMILY } from '../../../globalStyles/fonts';
import { SUSSOL_ORANGE } from '../../../gl... |
Angular JS/newApp/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | akshayvenugopal/angular2-Node.JS-CRUD | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/TodoRow.js | sunilgautam/ReduxTodo | 'use strict';
import React, { Component } from 'react';
import {
View,
Image,
Text,
StyleSheet,
TouchableHighlight,
} from 'react-native';
class TodoRow extends Component {
constructor(props) {
super(props);
}
render() {
var icon = this.props.completed ? require('../img/complete-icon.png') : r... |
web/src/containers/RegisterContainer.js | undemaduc/undemaduc | import React, { Component } from 'react';
import autoBind from 'react-autobind';
import PropTypes from 'prop-types';
import { browserHistory } from 'react-router';
import LoginButtonComponent from '../components/LoginButtonComponent';
class RegisterContainer extends Component {
constructor(props) {
super... |
src/svg-icons/maps/beenhere.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsBeenhere = (props) => (
<SvgIcon {...props}>
<path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59... |
components/TempList/__stories/index.js | rajendrav5/webpack2.0 | import React from 'react';
import TempList from '../TempList';
const stories = [
{
name: 'TempList',
story: () => (
<div>
<TempList />
</div>
)
}
];
export default stories; |
src/select/index.js | euler-ui/euler-ui | import React from 'react';
// import request from '../../request/Request'
import _ from 'lodash';
import RSelect from 'react-select';
import './select.css';
/**
<Select ref="priority"
label="Priority"
labelClassName="col-xs-2"
labelKey="text"
valueKey="id"
wrapperClassName="col-xs-9"
url={ requestTypes.GET_PRIOR... |
src/components/Value.js | michael-lowe-nz/trigMeOnce | import React from 'react'
import InlineEdit from 'react-edit-inline'
module.exports = ({ state, dispatch, sideType }) => {
function handleChange(data) {
dispatch({
type: 'ADD_LENGTH',
payload: {side: sideType, length: data.value}
})
}
const myValue = `${state.triangle[sideType]}`
return (
... |
apps/search/bible/ui/src/components/Spinner.js | lucifurtun/myquotes | import React from 'react'
const Spinner = ({show}) => {
if (!show) {
return null
}
return (
<div className="spinner">
<svg width="30px" height="30px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">
<circle fill="none" strokeWidth="5" strokeLinecap="round... |
Libraries/Components/MapView/MapView.js | callstack-io/react-native | /**
* 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.
*
* @provides... |
ajax/libs/react-instantsearch/3.2.0/Dom.js | wout/cdnjs | /*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
example/mainComplex.js | tnrich/cerebral-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Decorator as Cerebral } from 'cerebral-react';
import {Container} from 'cerebral-react';
import Controller from 'cerebral';
import Model from 'cerebral-baobab';
import ObjectInspector from 'react-object-inspector';
import validator from 'validator';... |
src/components/Choice.js | nikgraf/belle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* Choice component
*/
export default class Choice extends Component {
static displayName = 'Choice';
static propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
... |
src/divider/Divider.js | fengshanjian/react-native-komect-uikit | import React from 'react';
import { View, StyleSheet } from 'react-native';
import colors from '../config/colors';
let styles = {};
const Divider = ({ style }) => (
<View style={[styles.container, style && style]} />
);
Divider.propTypes = {
style: View.propTypes.style,
};
styles = StyleSheet.create({
contain... |
src/client/app/components/ui/text-field.js | LINKIWI/apache-auth | import extend from 'deep-extend';
import React from 'react';
/**
* A styled text input entry field.
*/
export default class TextField extends React.Component {
static propTypes = {
className: React.PropTypes.string,
icon: React.PropTypes.element,
iconSpacing: React.PropTypes.string
};
static defaul... |
examples/reused_components/src/components/Modal.js | MrEfrem/redux-fly | //@flow
import React from 'react'
import { createReducer, getState } from 'redux-fly'
const style = {
container: (opened) => ({
display: opened ? 'block' : 'none',
position: 'absolute',
left: 'calc(50% - 130px)',
top: '150px',
width: '200px',
height: '200px',
backgroundColor: 'white',
... |
es/Table/TableBody.js | uplevel-technology/material-ui-next | 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/parser/warrior/protection/modules/talents/Bolster.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import { formatDuration } from 'common/format';
const debug = false;
class... |
app/javascript/mastodon/features/ui/components/confirmation_modal.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
export default @injectIntl
class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... |
src/components/video_list_item.js | nbodev/ReactVideoViewer | import React from 'react';
const VideoListItem = ({ video, onVideoSelect}) => {
//ES6
//const video = props.video; similar to ({video})
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div classN... |
App/components/CaretakerRolesList/CaretakerRolesList.container.js | araneforseti/caretaker-app | import React from 'react';
import CaretakerRolesGateway from '../../data/CaretakerRoles/CaretakerRoles.gateway';
import UserGateway from '../../data/UserGateway';
export default container = (List) => class extends React.Component {
constructor() {
super();
this.state = {
caretakerRoles: [],
userR... |
fields/types/select/SelectColumn.js | riyadhalnur/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTy... |
src/components/TextArea/TextArea.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
class TextArea extends React.Component {
componentDidMount () {
const { $, autosize } = window
if ($('.auto-size')[0]) {
autosize($('.auto-size'))
}
}
shouldComponentUpdate (ne... |
src/parser/shared/modules/AlwaysBeCasting.js | sMteX/WoWAnalyzer | import React from 'react';
import Icon from 'common/Icon';
import { formatMilliseconds, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Tooltip from 'common/Tooltip';
import Abilities from '../.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.