path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/sections/GridStyleSection.js | yyssc/ssc-grid | import React from 'react';
import Anchor from '../Anchor';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function GridStyleSection() {
return (
<div className="bs-docs-section">
<h3><Anchor id="grid-style">表格样式</Anchor></h3>
<p>沿用bootstrap的样式,具体参照... |
assets/jqwidgets/jqwidgets-react/react_jqxdraw.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxDraw extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.createCom... |
app/javascript/mastodon/features/public_timeline/components/column_settings.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
modules/Lifecycle.js | axross/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
src/index.js | travi/admin.travi.org-components | import React from 'react';
import Helmet from 'react-helmet';
export default function Index() {
return (
<div className="jumbotron">
<Helmet title="Home" />
<h2>Reference API Client</h2>
<p>Administration for Travi.org</p>
</div>
);
}
Index.displayName = 'Index';
|
src/svg-icons/action/compare-arrows.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows = pure(ActionCompareArrows);
Acti... |
src/amo/routes.js | muffinresearch/addons-frontend | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import HandleLogin from 'core/containers/HandleLogin';
import App from './containers/App';
import Home from './containers/Home';
import DetailPage from './containers/DetailPage';
import SearchPage from './containers/SearchPage';
export defa... |
src/main/react/src/routes/Home/HomeContainer.js | mbrossard/cryptonit-cloud | import React from 'react';
import PropTypes from 'prop-types';
class HomeContainer extends React.Component {
static contextTypes = {
router: PropTypes.object.isRequired
};
componentDidMount() {
this.context.router.push('/');
};
render() {
return (<span></span>);
};
}
... |
app/javascript/mastodon/components/avatar_overlay.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
friend:... |
src/primitives/other/collapsible-table/index.js | mpigsley/sectors-without-number | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { PlusCircle, Circle } from 'react-feather';
import Table from 'primitives/other/table';
import { without, includes } from 'constants/lodash';
import './style.scss';
export default class Collaps... |
src/Parser/Mage/Frost/CHANGELOG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Sharrq, sref } from 'MAINTAINERS';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-01-01'),
changes: <Wrapper>Added a 'Fish for procs' entry to the Checklist, a... |
components/Carousel/Carousel.story.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import { storiesOf, action } from '@storybook/react';
import PictureCard from '../Cards/PictureCard/PictureCard';
import Carousel from './Carousel';
import ControlledCarousel from './ControlledCarousel';
const StorySlide = ({ number }) => (
<div key={ `... |
src/Parser/Hunter/Survival/Modules/Features/AlwaysBeCasting.js | hasseboulen/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink f... |
fusion/CardGrid.js | pagesource/fusion | import React from 'react';
import { css } from 'emotion';
import PropTypes from 'prop-types';
import { withTheme } from 'theming';
import Card from './Card';
const cardGrid = css`
display: flex;
flex-direction: row;
width: 100%;
`;
const cardData = [
{
index: '1',
title: 'Tasty Food',
description:... |
docs/src/app/components/pages/components/Slider/ExampleDisabled.js | ngbrown/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;
|
spec/javascripts/jsx/gradebook/default_gradebook/components/GradeInput/PointsSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
pages/col.js | jonheslop/colwiki | import React from 'react'
import App from '../components/app'
import Header from '../components/header'
import PostSingle from '../components/post-single'
import withData from '../lib/with-data'
export default withData(props => (
<App>
<Header pathname={props.url.pathname} query={props.url.query}/>
<main rol... |
app/javascript/mastodon/features/ui/components/confirmation_modal.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
@injectIntl
export default class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... |
app/javascript/mastodon/features/follow_requests/index.js | tootsuite/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/components/saundra.js | dempah14/gitDemostration | import React, { Component } from 'react';
export default class Saundra extends Component {
render() {
return (
<div>Saundra</div>
);
}
} |
src/index.js | laniywh/game-of-life | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
require("./style/style.scss");
const store = createStore(reducers, window.__REDUX_DEVTOO... |
imports/client/ui/pages/Admin/AdminTable/Users.js | mordka/fl-events | import React from 'react';
import CancelDeleteBtns from './../CancelDeleteBtns/CancelDeleteBtns'
import { parseData} from './helper'
const Users = ({ user, deleteUser }) => {
const userName = parseData('user', user );
let button = <CancelDeleteBtns idToDelete={user._id} deleteDocument={deleteUser} deleteText={'del'... |
node_modules/react-bootstrap/es/InputGroupAddon.js | mohammed52/door-quote-automator | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/Interpolate.js | dongtong/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
sites/all/themes/osbee/grunt/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | benjaminbwright/osbee-staging | 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/src/examples/modules/Tab/Types/TabExampleBasicAll.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Tab } from 'semantic-ui-react'
const panes = [
{ menuItem: 'Tab 1', pane: 'Tab 1 Content' },
{ menuItem: 'Tab 2', pane: 'Tab 2 Content' },
{ menuItem: 'Tab 3', pane: 'Tab 3 Content' },
]
const TabExampleBasicAll = () => <Tab panes={panes} renderActiveOnly={false} />
export de... |
src/pages/resume/languages/index.en.js | angeloocana/angeloocana | import React from 'react';
import LanguagesPage from '../../../components/Resume/LanguagesPage';
import graphql from 'graphql';
export default (props) =>
<LanguagesPage
{...props}
/>;
export const pageQuery = graphql`
query ResumeLanguagesEn {
site {
siteMetadata {
resume {
... |
src/containers/board/PostReply.js | jvallexm/message-board | import React from 'react';
export default class PostReply extends React.Component{
constructor(props)
{
super(props);
this.state = {
reply: {
text: "",
posted_on: 0,
delete_password: "",
replies: [],
flagged: false
},
message: ""
};
... |
fixtures/dom/src/components/fixtures/input-change-events/RadioClickFixture.js | jquense/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioClickFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
src/components/buttons/demos/FabDisabled.js | isogon/styled-mdl | import React from 'react'
import { Button, Icon } from '../../../'
export default () => (
<Button fab disabled>
<Icon name="add" />
</Button>
)
|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/assignment-return.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1... |
app/containers/RefundCalculator/index.js | Jasonlucas724/Digimortal | /*
*
* RefundCalculator
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Responsive from 'react-responsive';
import {Link} from 'react-router';
import Menu from 'material-ui/svg-icons/navigation/Menu';
import TextField from 'material-ui/TextField';
import Person from 'material-ui/svg-icons... |
src/views/SignUpView/SignUpView.js | softage0/solid-online-services | import React from 'react'
import SignUpForm from '../../forms/SignUpForm'
export class SignUp extends React.Component {
render () {
return (
<SignUpForm />
)
}
}
export default SignUp
|
src/containers/articles/credits.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { articleMounting } from '../../actions/index.js';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ResponsiveEmbed, Image, Grid, Row, Col } from 'react-bootstrap';
import Parser from 'html-react-parser';
import Reveal from 'rea... |
webapp/src/containers/search/multiTable.js | alliance-genome/agr | /*eslint-disable react/sort-prop-types */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createMemoryHistory, Link } from 'react-router';
import _ from 'underscore';
import style from './style.css';
import ResultsTable from './resultsTable';
import CategoryLabel from './categ... |
packages/wix-style-react/src/MarketingPageLayoutContent/MarketingPageLayoutContent.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './MarketingPageLayoutContent.st.css';
import { dataHooks, size } from './constants';
import Divider from '../Divider';
import Text, { SIZES as TEXT_SIZES } from '../Text';
import Heading, { APPEARANCES } from '../Heading';
imp... |
public/js/app/watchTools/components/Submit.js | fendy3002/QzQueryTools | import React from 'react'
import lo from 'lodash'
import sa from 'superagent';
var Elem = function({config, filter, request,
execQuery}){
var onClick = () => {
execQuery({
connection: filter.selectedConnection,
query: filter.selectedQuery,
params: JSON.stringify(requ... |
CompositeUi/src/views/component/DashboardWidget.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_dashboar... |
traveller/App/Components/CustomNavBar.js | Alabaster-Aardvarks/traveller | import React from 'react'
import { View, Image, Animated, TouchableOpacity } from 'react-native'
import { Images, Colors } from '../Themes'
import Styles from './Styles/CustomNavBarStyle'
import Icon from 'react-native-vector-icons/Ionicons'
import { Actions as NavigationActions } from 'react-native-router-flux'
expor... |
app/jsx/grading/dataRow.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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... |
addons/knobs/src/components/types/Number.js | jribeiro/storybook | import PropTypes from 'prop-types';
import React from 'react';
const styles = {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'middle',
height: '25px',
width: '100%',
outline: 'none',
border: '1px solid #f7f4f4',
borderRadius: 2,
fontSize: 11,
padding: '5px',
color: '#444',
};
c... |
docs/src/examples/elements/List/ContentVariations/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const ListContentVariations = () => (
<ExampleSection title='Content Variations'>
<ComponentExample
title='Vertically Alig... |
fixtures/react_native_windows_current/src/EmptyHost.js | callstack-io/haul | import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
export default function EmptyRootComponent() {
return (
<View style={styles.container}>
<Text style={styles.text}>Host is empty</Text>
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
just... |
src/components/DropList/DropList.css.js | helpscout/blue | import React from 'react'
import styled from 'styled-components'
import { getColor } from '../../styles/utilities/color'
import Icon from '../Icon'
export const DropListWrapperUI = styled('div')`
box-sizing: border-box;
width: ${({ menuWidth }) => menuWidth};
padding: 0;
background-color: white;
border: 1px ... |
src/client/course/VenturerCourses.js | jmicmoore/merit-badge-university | import _ from 'lodash';
import React from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom'
import CheckBox from '../common/components/CheckBox';
import { Modal, Button } from 'react-bootstrap';
import VenturerCourse from './VenturerCourse';
import {getCourses, deleteCourse} from './co... |
src/components/Cell.js | LukeGeneva/react-sweeper | import React from 'react';
import PropTypes from 'prop-types';
import './Cell.css';
const Cell = ({value, swept, onClick}) => {
const style = {
color: colorForValue(value),
backgroundColor: value === 'X' && swept ? 'red' : 'white'
};
return (
<div
className="Cell"
onClick={onClick}
... |
src/components/Spinner.js | pcardune/pyret-ide | import React from 'react';
import Radium from 'radium';
export class Spinner extends React.Component {
render() {
return (
<img
role="presentation"
style={this.props.style}
src="https://code.pyret.org/img/pyret-spin.gif"
/>
);
}
}
Spinner.propTypes = {
style: React.Pr... |
components/ui/CustomSelect.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import SliderSelect from './SliderSelect';
import SearchSelect from './SearchSelect';
function CustomSelect(props) {
const { search, ...newProps } = props;
return search ? <SearchSelect {...newProps} /> : <SliderSelect {...newProps} />;
}
CustomSelect... |
src/scripts/components/PLForm.js | chgu82837/react-flux-prac | import React from 'react';
var _ = require('underscore');
var AppActions = require('../actions/AppActions.js');
var AppStore = require('../stores/AppStore.js');
const PLForm = React.createClass({
getInitialState() {
return {'email': null, 'name': null, 'text': null, 'index': null};
},
//////////////////////... |
js/components/loaders/Spinner.android.js | phamngoclinh/PetOnline_vs2 | /* @flow */
import React from 'react';
import ProgressBarAndroid from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
c... |
templates/src/components/App/App.js | ekatzenstein/create-react-app-fullstack | import React, { Component } from 'react';
import classnames from 'classnames';
import { Link } from 'react-router-dom';
import logo from './logo.svg';
import './style.css';
class App extends Component {
render() {
const { className, ...props } = this.props;
return (
<div className={classnames('App', c... |
src/user/screens/profile.screen.js | dyesseyumba/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
ActivityIndicator,
Dimensions,
View,
RefreshControl,
} from 'react-native';
import { ListItem } from 'react... |
src/js/components/NewPost.js | Lurk/blog | import React from 'react';
import {input, editorRoot, submitButton} from '../styles/adminPostForm';
import {Editor, EditorState} from 'draft-js';
import {addPost} from '../libs/Posts';
export default class NewPost extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/app/shared/components/Spacer.js | docgecko/react-alt-firebase-starter | /*! React Alt Firebase Starter */
import React from 'react';
export default class Spacer extends React.Component {
render() {
return (
<div className='spacer'></div>
);
}
};
|
src/svg-icons/notification/airline-seat-recline-extra.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineExtra = (props) => (
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0... |
plugins/Wallet/js/components/recoverydialog.js | NebulousLabs/Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
const RecoveryDialog = ({ recovering, actions }) => {
const handleRecoverClick = e => {
e.preventDefault()
actions.recoverSeed(e.target.seed.value)
}
const handleCancelClick = e => {
e.preventDefault()
actions.hideSeedRecoveryDialog()
... |
src/components/Tabs/Tabs.js | phklochkov/tabbable-editor | import React from 'react'
import {Wrapper} from './Wrapper'
import {Tab} from './Tab'
import {AddTab} from './AddTab'
const Tabs = ({ tabs, handleAdd, handleSelect, handleRemove, handleDrop }) => {
return (
<Wrapper>
{tabs.items && tabs.items.map(
(i) =>
<Tab
key={i.id}
... |
js/components/loaders/ProgressBar.android.js | marcpechaitis/ForestWatch | import React, { Component } from 'react';
import { ProgressBarAndroid } from 'react-native';
export default class SpinnerNB extends Component {
render() {
return (
<ProgressBarAndroid
{...this.props}
styleAttr="Horizontal"
indeterminate={false}
progress={this.props.progre... |
public/components/agents/fim/inventory/lib/empty-field-handler.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - Integrity monitoring components
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opt... |
react-okta-idp/src/App.js | hw-hello-world/okta-signin-widget | import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div className="content">
{this.props.children}
</div>
);
}
}
export default App;
|
src/funponents/Graph.js | rspica/Sugr | //connect all this to SUBMIT button/page
import React from 'react';
import { render } from 'react-dom';
import { Chart } from 'react-google-charts';
import './App.css';
import './Main.js';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
// Sets all the stuff ... |
ressources/index.js | thierryc/Sketch-Find-And-Replace | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
let dark = true
window.settings = {}
window.updateData = function(json) {
if (typeof window.SetSettings == 'function') {
window.SetSettings(json)
} else {
setTimeout(() => window.updateData(json), 100)
}
}
Re... |
packages/stockflux-launcher/src/toolbar/ToolBar.js | owennw/OpenFinD3FC | import cx from 'classnames';
import React from 'react';
import Components from 'stockflux-components';
import './ToolBar.css';
export default ({ tools, style }) => {
return (
<div className={style}>
{tools
.filter(tool => tool.visible)
.map((tool, index) => (
<Components.Buttons.R... |
docs/src/components/example-step.js | adamrneary/nuclear-js | import React from 'react'
export default React.createClass({
render() {
var className = 'example-step';
let push = this.props.push
if (push === 'right') {
className += ' example-step__push-right'
}
return <div className={className}>
{this.props.children}
</div>
}
})
|
src/conversations/ConversationList.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { FlatList, StyleSheet } from 'react-native';
import { Label } from '../common';
import ConversationUser from './ConversationUser';
import ConversationGroup from './ConversationGroup';
const styles = StyleSheet.create({
list: {
flex: 1,
flexDirection: 'column',
... |
demo/static/js/src/components/home.js | OmegaDroid/django-jsx | import React from 'react';
import Nav from './nav'
export default class Home extends React.Component {
constructor (props) {
super(props);
this.state = props;
}
render () {
return (
<div>
<h1>Home</h1>
<p>This is the home view</p>
... |
src/auth.js | LucasYuNju/leanote-desktop-ng | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Login from './containers/Login';
import configureStore from './store/configureStore';
const { store, persistor } = configureStore();
ReactDOM.render(
<Provider store={store}>
<Login persistor={persistor}... |
demo/components/buttongroup/ButtonGroupDemo.js | f0zze/rosemary-ui | import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet';
import {ButtonGroup} from '../../../src';
import Button from '../../../src/components/button/Button';
import React from 'react';
export default class ButtonGroupDemo extends React.Component {
render() {
return (
<DemoWithSnipp... |
src/svg-icons/editor/border-style.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
app/scripts/routes.js | AbrahamAlcaina/sandbox | import React from 'react';
import { Route, DefaultRoute, NotFoundRoute } from 'react-router';
import App from './pages/app.jsx';
import Home from './pages/home.jsx';
import Product from './pages/product.jsx';
import NotFound from './pages/notFound.jsx';
const routes = (
<Route name="app" path="/" handler={ App }>
... |
src/index.js | Terit/mlb-scoreboard | import React from 'react';
import ReactDOM from 'react-dom';
// import routes from './routes';
import './styles/styles.scss';
import App from './components/App.js';
ReactDOM.render(<App />, document.getElementById('app'));
|
examples/components/DoughnutExample.js | ionutmilica/react-chartjs-components | import React from 'react';
import { DoughnutChart } from '../../src'
class BarExample extends React.Component {
render() {
const data = {
labels: [
"Red",
"Blue",
"Yellow"
],
datasets: [
{
data: [300, 50, 100],
backgroundColor: [
... |
client/node_modules/uu5g03/dist-node/bricks/pagination.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ColorSchemaMixin} from '../common/common.js';
import Glyphicon from './glyphicon.js';
import Link from './link.js';
import './pagination.less';
export const Pagination = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMix... |
src/client/ui/dialogView.js | tnRaro/FrozenWar | import React from 'react';
import classNames from 'classnames';
export default class DialogView extends React.Component {
constructor(props) {
super(props);
}
render() {
let classes = classNames('view', 'dialog', {
'error': this.props.type === 'error',
'progress': this.props.type === 'progres... |
cheesecakes/plugins/content-manager/admin/src/components/SelectMany/SortableItem.js | strapi/strapi-examples | /**
*
* SortableItem
*
*/
/* eslint-disable react/no-find-dom-node */
import React from 'react';
import { findDOMNode } from 'react-dom';
import { DragSource, DropTarget } from 'react-dnd';
import { getEmptyImage } from 'react-dnd-html5-backend';
import PropTypes from 'prop-types';
import { flow, get } from 'lodas... |
src/containers/Charts/reactVis/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Row, Col } from 'antd';
import {
LineSeries,
LineMark,
AreaChartElevated,
StackedHorizontalBarChart,
ClusteredStackedBarChart,
CustomScales,
CircularGridLines,
DynamicProgrammaticRightedgehints,
DynamicCrosshairScatterplot,
SimpleRadialChart,
Simp... |
examples/universal/client/index.js | pedrottimark/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
packages/mineral-ui-icons/src/IconUndo.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconUndo(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...iconProps}>
... |
src/components/MapToShow.js | alexravs/midgar | import React from 'react';
import { Map, TileLayer } from 'react-leaflet';
import { GeoJson } from 'react-leaflet';
import LoadingSpinner from './LoadingSpinner';
import L from 'leaflet';
const leafletToken = 'pk.eyJ1IjoidmFuYWtlbm0iLCJhIjoiOWNvTG1DWSJ9.O4w4YdN9mbF76M5O6ImYqg';
const leafletProjectId = 'blsq.17ab55a1'... |
front/src/components/TaskDetails.js | cheminfo/database-aggregator | import React from 'react';
import TaskHistory from './TaskHistory';
import DatePicker from './DatePicker';
import { Polling } from './Polling';
import Error from './Error';
import DateTime from './DateTime';
export default function TaskDetails({
type,
onDatesChange,
startDate,
endDate,
loadingHistory,
ref... |
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js | matthewoates/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
const FlatButtonExampleSimple = () => (
<div>
<FlatButton label="Default" />
<FlatButton label="Primary" primary={true} />
<FlatButton label="Secondary" secondary={true} />
<FlatButton label="Disabled" disabled={true} />
</... |
src/svg-icons/content/add-box.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddBox = pu... |
src/components/CopyButton/CopyButton.js | dialogs/dialog-web-components | /*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { Text } from '@dlghq/react-l10n';
import Clipboard from 'clipboard';
import Button from '../Button/Button';
type Props = {
text: string,
size?: 'small' | 'normal' |... |
examples/IconSimple.js | react-materialize/react-materialize | import React from 'react';
import Icon from '../src/Icon';
export default
<Icon>insert_chart</Icon>;
|
client/components/surveys/results/summary/ResultsSummary.js | AnatolyBelobrovik/itechartlabs | import React from 'react';
import PropTypes from 'prop-types';
import Question from './Question';
import TextQuestion from './TextQuestion';
const ResultsSummary = ({ answers, questions, totalAnswers, showIndividualResponse, hasMandatoryLabel }) => {
const filterAnswers = (array, filter) => {
return array.filt... |
src/svg-icons/hardware/scanner.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareScanner = (props) => (
<SvgIcon {...props}>
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/>
</... |
src/spinner/index.js | shinxi/euler-ui | import React from 'react'
import ReactDOM from 'react-dom'
import './spinner.css'
import CircleSpinner from 'spin.js'
const RingLoader = React.createClass({
render() {
return (<div className="spinner__ring">
<div className="spinner__ring1"></div>
<div className="spinner__ring2"></div>
... |
src/components/BioGraphy.js | jainvabhi/PWD | import React from 'react';
const BioGraphy = () => {
return (
<div className="mypost-list">
<div className="post-box">
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that i... |
src/components/note_item.js | asommer70/thehoick-notes-server | import React from 'react';
import { Link } from 'react-router'
const NoteItem = ({note}) => {
console.log('note:', note.createdAt.getDate() - 1);
const created_at = `${note.createdAt.getMonth() + 1}-${note.createdAt.getDate() - 1}-${note.createdAt.getFullYear()}`;
return (
<li>
<div className="columns"... |
src/svg-icons/content/add.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAdd = (props) => (
<SvgIcon {...props}>
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</SvgIcon>
);
ContentAdd = pure(ContentAdd);
ContentAdd.displayName = 'ContentAdd';
ContentAdd.muiName = 'SvgIcon... |
client/js/containers/Root.js | vladimirutenkov/universal-app | import React from 'react';
import { Router, RouterContext } from 'react-router';
import { Provider } from 'react-redux';
import routes from '../routes';
export const ServerRoot = props => (
<Provider store={props.store}>
<RouterContext {...props.renderProps}/>
</Provider>
);
export default function Ro... |
src/js/components/icons/base/TableAdd.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/containers/NotFoundPage/index.js | kumarankit1234/trello-board | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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... |
src/components/posts_index.js | endreujhelyi/React-Router-Redux-Form | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { fetchPosts } from '../actions/index';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
renderPosts() {
return this.props.posts.map(post =... |
examples/counter-example/src/Counter.js | jerrymao15/react-monocle | import React from 'react';
const Counter = ({
header,
count,
onDecrement,
onIncrement,
}) => (
<div>
<h2>Counter {header}</h2>
<p>Count: {count}</p>
<button onClick={onDecrement}>-</button>
<button onClick={onIncrement}>+</button>
</div>
);
Counter.propTypes = {
header: React.PropTypes.n... |
src/parser/druid/guardian/modules/features/IronFurGoEProcs.js | sMteX/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import GuardianOfElune from './GuardianO... |
src/svg-icons/notification/vibration.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0... |
src/svg-icons/editor/format-quote.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
client/src/components/dashboard/messaging/conversation.js | ronniehedrick/scapeshift | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import * as actions from '../../../actions/messaging';
import MessageList from './message-list';
import ReplyMessage from './reply-message';
const socket = actions.socket;
class Conversation extends ... |
src/svg-icons/action/toc.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.