path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/SliderItem.js | lzcmaro/react-ratchet | import React from 'react';
import classNames from 'classnames';
let SliderItem = React.createClass ({
propTypes:{
className : React.PropTypes.string
},
render() {
let Component = this.props.eleType || 'div';
return (
<Component
{...this.props}
... |
src/App.js | nienkebos/ExhibitionPlanner | import React from 'react';
//COMPONENTS//
import Header from './TemplateContainer/Header';
import Footer from './TemplateContainer/Footer';
//STYLES//
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {GridList, GridTile} from 'material-ui/GridList';
class App extends React.Component {
... |
src/parser/shaman/restoration/modules/spells/HealingSurge.js | fyruna/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
class HealingSurge extends Analyzer {
static d... |
src/ui/Constraints.js | bnan/dhroraryus | import React from 'react'
import { TimePicker } from './TimePicker';
import { FormDaysOfTheWeek } from './FormDaysOfTheWeek';
import moment from 'moment'
export class Constraints extends React.Component {
constructor(props) {
super(props)
this.state = {
day: '2', // default to monday
... |
src/components/Spacer.js | ramaya314/UndocuFunds | import React from 'react';
class Spacer extends React.Component
{
render() {
return(
<div style={{marginTop: this.props.space}} />
);
}
}
export default Spacer; |
test/TabsSpec.js | JimiHFord/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Col from '../src/Col';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Tab from '../src/Tab';
import Tabs from '../src/Tabs';
import ValidComponentChildren from '../src/utils/ValidComponentChildren';
i... |
src/components/Item/SendRequest.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import { withApollo } from 'react-apollo';
import REQUEST_ITEM from "../../utils/queries/REQUEST_ITEM";
class SendRequest extends React.Component {
constructor(props){
super(props);
this.state = {
message: '',
... |
test/specs/elements/Step/Step-test.js | shengnian/shengnian-ui-react | import faker from 'faker'
import React from 'react'
import Step from 'src/elements/Step/Step'
import StepContent from 'src/elements/Step/StepContent'
import StepDescription from 'src/elements/Step/StepDescription'
import StepTitle from 'src/elements/Step/StepTitle'
import * as common from 'test/specs/commonTests'
impo... |
src/modules/universal-discovery/components/search/search.results.item.component.js | sunpietro/react-udw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './css/search.results.item.component.css';
export default class SearchResultsItemComponent extends Component {
handlePreviewClick() {
this.props.onPreview(this.props.data);
}
render() {
const item = this.... |
src/components/Chat/ScrollDownNotice.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Fab from '@mui/material/Fab';
import ScrollDownIcon from '@mui/icons-material/ArrowDownward';
function ScrollDownNotice({ show, onClick }) {
const { t } = useTranslato... |
node_modules/react-bootstrap/es/DropdownButton.js | WatkinsSoftwareDevelopment/HowardsBarberShop | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/common/Socket/SocketWrapper.js | Syncano/syncano-dashboard | import React from 'react';
import { IconButton } from 'material-ui';
export default ({ style, iconStyle, ...other }) => {
const styles = {
style: {
padding: 6
},
iconStyle: {
fontSize: 36
}
};
return (
<IconButton
{...other}
style={{ ...styles.style, ...style }}
... |
docs/app/Examples/collections/Menu/Variations/MenuExampleFixed.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MenuExampleFixed = () => {
return (
<Message info>
You can view examples of the <b>fixed</b> variation in the
<a href='https://semantic-ui.com/collections/menu.html#fixed' target='_blank'> official documentation</a>.
</Me... |
src/containers/Chat/Chat.js | jiangzhichao/dog | /**
* Created by jiang on 2017/9/17.
*/
import React from 'react';
import FriendsList from './FriendsList/FriendsList';
import MsgList from './MsgList/MsgList';
import './Chat.scss';
export default () => (
<div className="friends">
<FriendsList />
<MsgList />
</div>
);
|
client/js/components/Login.js | micahp0506/jeeps | 'use strict';
import React from 'react';
import LoginStore from '../stores/LoginStore';
import LoginActions from '../actions/LoginActions';
import {Route, Router, browserHistory, Link} from 'react-router';
// Creating Login to handle actions and store
class Login extends React.Component {
constructor(props) {
... |
server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
tests/Button.js | OmerHerera/unity | import React from 'react';
import { createRenderer } from 'react-addons-test-utils';
import createComponent from 'react-unit';
import tape from 'tape';
import addAssertions from 'extend-tape';
import jsxEquals from 'tape-jsx-equals';
const test = addAssertions(tape, {jsxEquals});
// Component to test
import Button fro... |
client/components/app-layout.js | pradel/octon | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import Router from 'next/router';
import styled from 'styled-components';
import withUser from '../lib/with-user';
import Theme from '../lib/theme';
import Alert from '../lib/alert';
import Header from... |
src/svg-icons/content/forward.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward = pure(ContentForward);
ContentForward.displayName = 'ContentForward';
ContentForward.muiNam... |
src/client/assets/js/nodes/datastores/temperature/node.js | me-box/platform-sdk | import React from 'react';
//import composeNode from 'utils/composeNode';
import Textfield from 'components/form/Textfield';
import Textarea from 'components/form/Textarea';
import Select from 'components/form/Select';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
//import '../../../../style... |
geonode/contrib/monitoring/frontend/src/components/cels/alert/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class Alert extends React.Component {
static propTypes = {
alert: PropTypes.object.isRequired,
}
constructor(props) {
super(props);
this.state = {
d... |
src/components/PhoneInput/PhoneInput.js | eliaslopezgt/ps-react-eli | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '../TextInput';
/** PhoneInput with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function PhoneInput({htmlId, onChange, ...props}) {
return (
<TextInput
h... |
app/imports/ui/auction/Auction.js | raiden-network/raiden-token | import React, { Component } from 'react';
import PriceChart from './PriceChart';
import ValueChart from './ValueChart';
// TODO: separate into components
export default class Auction extends Component {
constructor(props) {
super(props);
this.state = this.getInitialState();
this.priceUpdateInterval = 1... |
reactNativeDebugging/Preferences.js | micahrye/LearnByDoing | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
} from 'react-native';
import {
StackNavigator,
} from 'react-navigation';
export default class Preferences extends Compo... |
examples/src/views/DateTimePickerView.js | LayGit/layui | import React from 'react'
export default class DateTimePickerView extends React.Component {
render () {
return (
<div></div>
)
}
}
module.exports = exports['default']
|
src/svg-icons/notification/adb.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAdb = (props) => (
<SvgIcon {...props}>
<path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14... |
hocs/withEither.js | YongYuH/Ludo | import React from 'react';
const withEither = (conditionalRenderingFn, EitherComponent) => BaseComponent => props => (
conditionalRenderingFn(props)
? <EitherComponent {...props} />
: <BaseComponent {...props} />
);
export default withEither;
|
src/svg-icons/communication/speaker-phone.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
6.ReactRouter/src/fullRoster.js | vishaljadav94/ReactBasic | import React from 'react'
import PlayerAPI from '../api'
import { Link } from 'react-router-dom'
// The FullRoster iterates over all of the players and creates
// a link to their profile page.
const FullRoster = () => (
<div>
<ul>
{
PlayerAPI.all().map(p => (
... |
src/index.js | akiran/react-highlight | import hljs from 'highlight.js';
import React from 'react';
class Highlight extends React.Component {
constructor(props) {
super(props)
this.setEl = this.setEl.bind(this)
}
componentDidMount() {
this.highlightCode();
}
componentDidUpdate() {
this.highlightCode();
}
... |
app/javascript/mastodon/features/ui/components/bundle_column_error.js | kagucho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import Column from './column';
import ColumnHeader from './column_header';
import ColumnBackButtonSlim from '../../../components/column_back_button_slim';
import IconButton from '../../../components/... |
components/dialogs/AuthorDialog.js | FredTingaud/quick-bench-front-end | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
class AboutDialog extends React.Component {
render() {
return (
<Modal show={this.props.show} onHide={this.props.onHide}>
<Modal.Header closeButton>
<Modal.Title>About me</Modal.Title... |
src/app/core/atoms/icon/icons/vessel-side-loaded.js | blowsys/reservo | import React from 'react'; const VesselSideLoaded = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="20 10 20 7 20 5 13 5 13 7 12 7 12 10"/><path d="M16,11 L8,11 L2,11 L4.513,17.702 C4.806,18.483 5.552,19 6.386,19 L17.614,19 C18.4976309,19 20.0059727,19 20.0059727,19 C21.1154685,19 22.0132419,18.11... |
node_modules/react-bootstrap/es/PagerItem.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
__tests__/components/Value-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Value from '../../src/js/components/Value';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Value', () => {
i... |
src/shared/containers/Scores/Scores.js | tejans24/bball-stats-app | import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import './Scores.scss'
import * as ScoresActions from '../../actions/scores.js'
let Scores = (props) => {
return (
<div className="section--Scores">
<h1>Scoressss</h1>
</div>
)
}
const mapSta... |
src/app/components/team/TeamLists/index.js | meedan/check-web | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import TeamListsComponent from './TeamListsComponent';
const TeamLists = () => {
const teamSlug = window.location.pathname.match(/^\/([^/]+)/)[1];
return (
<QueryRenderer
envi... |
taskflow-front-end/src/LoginForm.js | maikowtesch/task-flow | import React, { Component } from 'react';
import { Button, Form, Grid, Header, Image, Message, Segment, Label } from 'semantic-ui-react';
import 'semantic-ui/dist/semantic.min.css';
class LoginForm extends Component {
constructor(props) {
super(props);
this.state = { user:'' , password:'', loginButtonDisabled... |
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js | pradel/material-ui | import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
const style = {
marginRight: 20,
};
const FloatingActionButtonExampleSimple = () => (
<div>
<FloatingActionButton style={style}>
<ContentAdd />
... |
src/pages/conference/topic/index.js | sunway-official/acm-admin | import React, { Component } from 'react';
import { Subheader, IconButton } from 'material-ui';
import { Link } from 'react-router-dom';
import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons';
import { graphql } from 'react-apollo';
import { queries } from './helpers';
import TopicList from './to... |
src/components/RouterLink.js | rodrigocipriani/br-react-utils | import React from 'react';
// import {Link} from 'react-router';
// import { Link } from 'react-router-dom'
// {/*<Link activeClassName='light-blue-text text-darken-4 grey lighten-4' className="waves-effect" {...props}>*/}
// {/*{children}*/}
// {/*</Link>*/}
const RouterLink = ({...props, children, ... |
test/targets/mobile/test/components/OnBoarding.spec.js | goldoraf/cozy-drive | 'use strict'
import React from 'react'
import renderer from 'react-test-renderer'
import { OnBoarding } from '../../../../../src/targets/mobile/components/OnBoarding'
describe('Onboarding component', () => {
it('should render step with option', () => {
const component = renderer.create(
<OnBoarding t={key... |
src/client/components/user/header.js | uuchat/uuchat | import React, { Component } from 'react';
import { Row, Col, notification } from 'antd';
class Header extends Component{
statusToggle = () => {
let state = this.props.customerSuccess.state;
let status = state.status;
let statusType = 1;
if (status === 3) {
this.props.c... |
test/specs/modules/Tab/TabPane-test.js | shengnian/shengnian-ui-react | import React from 'react'
import TabPane from 'src/modules/Tab/TabPane'
import * as common from 'test/specs/commonTests'
describe('TabPane', () => {
common.isConformant(TabPane)
common.implementsCreateMethod(TabPane)
common.propKeyOnlyToClassName(TabPane, 'active')
common.propKeyOnlyToClassName(TabPane, 'lo... |
src/components/MainHeader/__tests__/user-body-test.js | falmar/react-adm-lte | jest.unmock('../UserBody')
import React from 'react'
import {shallow} from 'enzyme'
import UserBody from '../UserBody'
describe('MainHeader.Navbar.NavbarMenu.User.UserBody', () => {
it('should have className "user-body"', () => {
const wrapper = shallow(<UserBody />)
expect(
wrapper.hasClass('user-b... |
src/components/Body.js | GuramDuka/reorders | //------------------------------------------------------------------------------
import React, { Component } from 'react';
import connect from 'react-redux-connect';
import * as Sui from 'semantic-ui-react';
import disp from '../store';
import DictListView from './DictList/List';
import SearcherResults from './Searcher... |
src/components/details.js | Omar-Ceesay/WeatherApp | import React from 'react';
import _ from 'lodash';
import dateFormat from 'dateFormat';
const Details = (props) => {
const cityData = props.cityData;
const kelvin = cityData.list[0].main.temp;
const date = cityData.list;
const temp = function(number){
let temp = cityData.list[number].main.temp;
return... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/cake.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialCake = (props) => (
<SvgIcon {...props}>
<path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5... |
stories/components/form/formZipCode/index.js | tal87/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormZipCode from 'shared/components/form/formZipCode/formZipCode';
storiesOf('shared/components/form/formZipCode', module)
.add('Default', () => (
<FormZipCode
label="Zip co... |
modules/Route.js | cgrossde/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
docs/src/app/pages/components/Textarea/ExampleTextareaReadOnly.js | GetAmbassador/react-ions | import React from 'react'
import Textarea from 'react-ions/lib/components/Textarea'
const ExampleTextareaReadOnly = () => (
<Textarea value='' readOnly />
)
export default ExampleTextareaReadOnly
|
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
app/components/Menu/index.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import User from './User';
import Admin from './Admin';
import { isLoggedIn } from '../../utils/authUtils';
const MENU_ITEMS = {
ACASA: {
title: 'Adaugă o sesizare',
path: 'acasa',
},
SESIZARI: {
title: 'Sesizări',
path: 'sesizari',
},
STATISTICI: {
title: 'Stat... |
src/svg-icons/editor/insert-comment.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertCom... |
src/route/home/container.js | vicvinc/yimanga | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import MainNavgation from '../../component/navgation/main';
import marvelApi from '../../api';
import Carousel from './carousel';
import ComicCard from '../../component/vomic/comic.card';
import ComicCardCol2 from '../../compone... |
app/javascript/mastodon/features/compose/index.js | yi0713/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
client/src/components/ingredient/Show.js | noinc/SimpleStorefront | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import { retrieve, reset } from '../../actions/ingredient/show';
import { del } from '../../actions/ingredient/delete';
class Show extends Component {
... |
packages/instance-steps/src/footer/index.js | yldio/joyent-portal | import React from 'react';
import { Row, Col } from 'joyent-react-styled-flexboxgrid';
import { Margin, Padding } from 'styled-components-spacing';
import Flex from 'styled-flex-component';
import styled from 'styled-components';
import remcalc from 'remcalc';
import {
Anchor,
CloseIcon as Close,
H3,
Textarea,... |
admin/client/App/shared/Kbd.js | w01fgang/keystone | import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import theme from '../../theme';
import { darken, lighten } from '../../utils/color';
function Kbd ({ className, ...props }) {
props.className = css(classes.kbd);
return <kbd {...props} />;
};
const classes = StyleSheet.create({
... |
components/Accordion.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
};
const Accordion = ({ children, className, ...other }) => {
const classNames = classnames('bx--accordion', className);
return (
<... |
resources/assets/admin/Administration.js | DoSomething/northstar | import React from 'react';
import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom';
import { ApolloProvider } from '@apollo/react-hooks';
import { env } from './helpers';
import graphql from './graphql';
import ShowClub from './pages/ShowClub';
import ShowPost from './pages/ShowPost';
import ShowUser... |
react/route.js | shenqingling/myTemplates | import 'bootstrap-webpack';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link, hashHistory} from 'react-router';
import CommentEditor from './component/content';
import App from './app';
var HelloMessage = React.createClass({
render: function() {
return (
... |
js/src/main.js | syslo/file_publisher | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
const rootElement = document.getElementById('file_publisher_app')
const body = (
<App config={rootElement.dataset} />
)
ReactDOM.render(body, rootElement)
|
site/demos/gitxplore-dark/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js | lawrence-yu/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Vertical steppers are designed for narrow screen sizes. They are ideal for mobile.
*
* To use t... |
hw7-frontend/src/index.js | brendazhao/comp531 | require('./styles.css')
require('expose?$!expose?jQuery!jquery')
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import Reducer f... |
src/Checkbox/Checkbox.spec.js | tan-jerene/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {mount} from 'enzyme';
import {assert} from 'chai';
import Checkbox from './Checkbox';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Checkbox />', () => {
/* eslint-disable max-len */
const muiTheme = getMuiTheme... |
test/ButtonToolbarSpec.js | AlexKVal/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', function () {
it('Should output a button toolbar', function () {
let inst... |
app/creation/index.js | hukaibaihu/dogsay | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
Image,
TouchableHighlight,
ActivityIndicator,
RefreshControl,
Alert,
Dimensions
} from 'react-native';
import Icon from 'react... |
src/Well.js | Cellule/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
examples/huge-apps/components/App.js | pjuke/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
src/components/Navbar/Navbar.js | tarkanlar/eskimo | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react'; // eslint-disable-line no-unused-vars
class Navbar {
rende... |
data-browser-ui/public/app/components/tableComponents/td/relationComponents/date.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
import DatePicker from 'material-ui/DatePicker';
import TimePicker from 'material-ui/TimePicker';
class DateC extends React.Component {
constructor(){
super()
this.state = {
}
}
componentDidMount(){
}
openInput(which){
this.refs[which].openD... |
frontend/src/components/common/SelectResourceDialog/SelectResourceDialogPres.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import * as Mui from '@material-ui/core';
import * as Enhanced from 'lib/mui-components';
const styles = () => ({
root: {},
dialogActions: {
flex: '0 0 auto',
justifyContent: 'flex-start',
},
});
SelectResourceDialogPres.defaultProps = {};... |
app/scripts/Widget/plugins/Match/components/Page.js | igr-santos/hub-client | import React from 'react'
import * as Paths from '../../../../Paths'
import { Menu } from './'
import { SettingsPageLayout } from '../../../../../components/Layout'
const MatchPage = ({ widget, mobilization, location, children }) => (
<SettingsPageLayout>
<Menu
widget={widget}
mobilization={mobiliza... |
renderer/components/logtable.js | trainto/Catalogger | 'use strict';
import React from 'react';
import {Table, Column, Cell} from 'fixed-data-table-2';
import Measure from 'react-measure';
import {dispatcher} from '../dispatcher';
import {dataWrapper} from '../datawrapper';
import './styles/fixed-data-table.css';
import './styles/logtable.css';
class LogTable extends Rea... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/listmenu/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxListMenu from '../../../jqwidgets-react/react_jqxlistmenu.js';
class App extends React.Component {
render () {
let listMenuHTML = `
<ul id="list" data-role="listmenu">
<li>
<img src="../../../images/andre... |
examples/src/components/CustomComponents.js | paulmillr/react-select | import React from 'react';
import Select from 'react-select';
import Gravatar from 'react-gravatar';
const USERS = require('../data/users');
const GRAVATAR_SIZE = 15;
const GravatarOption = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string,
isDisabled: React.Pro... |
src/parser/warrior/fury/modules/buffdebuff/Enrage.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import StatTracker from 'parser/shared/modules/StatTracker';
import Events from 'parser/core/Events';
import { SELECTED_PLAYER } from 'parser/core/EventFilter';
import SPELLS from... |
src/components/StreetCard.js | nickooms/racing-webgl2 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Card, CardTitle, CardText } from 'material-ui/Card';
import muiThemeable from 'material-ui/styles/muiThemeable';
import { List, ListItem } from 'material-ui/List';
import Divider from 'material-ui/Divider';
import { Link } from 'reac... |
src/components/Textarea.js | robwalkerco/caerurfapugs | import React from 'react'
import styled from 'styled-components'
export default styled.textarea`
width: 80%;
`
|
src/routes/notFound/index.js | Artemuch727/UserList-React-Isomorhic- | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
src/containers/Accounts/Verify/Pending/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Card, {
CardContent
} from 'material-ui/Card'
import Typography from 'material-ui/Typography'
import { LinearProgress } from 'material-ui/Progress'
import { CardLogoHeader } from 'components'
export default () =>
<Card
raised
>
<CardLogoHeader />
<CardContent>
... |
src/svg-icons/navigation/subdirectory-arrow-left.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowLeft = pure(Navigation... |
src/collections/Message/MessageContent.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A message can contain a content.
*/
function MessageContent(props) {
const { children, className, content } ... |
examples/react/src/index.js | thangngoc89/react-howler | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './styles/index.css'
ReactDOM.render(
<App />,
document.getElementById('app')
)
|
public/app/components/base/theme.js | vincent-tr/mylife-wine | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import * as muiStyles from 'material-ui/styles/index';
const theme = muiStyles.getMuiTheme(muiStyles.lightBaseTheme);
const Theme = (props) => (
<muiStyles.MuiThemeProvider muiTheme={theme}>
{ props.children }
</muiStyles.MuiThemePr... |
examples/js/others/table-in-tabs.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { Tabs, Tab } from 'react-bootstrap';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = star... |
public/controllers/management/components/management/ruleset/ruleset-table.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for registering agents.
* 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 ... |
src/svg-icons/device/brightness-high.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessHigh = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
src/helpers/interaction.js | casesandberg/react-color | /* eslint-disable no-invalid-this */
import React from 'react'
export const handleFocus = (Component, Span = 'span') =>
class Focus extends React.Component {
state = { focus: false }
handleFocus = () => this.setState({ focus: true })
handleBlur = () => this.setState({ focus: false })
render() {
... |
docs/src/examples/elements/Button/GroupVariations/ButtonExampleGroupIcon.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleGroupIcon = () => (
<Button.Group icon>
<Button>
<Icon name='play' />
</Button>
<Button>
<Icon name='pause' />
</Button>
<Button>
<Icon name='shuffle' />
</Button>
</Button.Group>... |
src/routes.js | nopphawitKar/petMarket | 'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './components/App';
import Home from './components/Home';
import Products from './components/Products';
import Gallery from './components/Gallery';
import pocketDogs from './data/pocketDogs';
import largeDogs from... |
test/ListGroupSpec.js | erictherobot/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ListGroup from '../src/ListGroup';
import ListGroupItem from '../src/ListGroupItem';
describe('ListGroup', function () {
it('Should output a "div" with the class "list-group"', function () {
let instance = ReactTestUtils.re... |
client/core/routes.js | ygotthilf/react-fullstack-boilerplate | import React from 'react';
import Router, {Route, DefaultRoute, HashLocation} from 'react-router';
import App from '../components/app/App';
import TodoApp from '../components/todo/Todo';
import About from '../components/about/About';
const routes = (
<Route handler={App}>
<Route name="about" handler={About}/>
... |
common/main-layout/Footer.js | gobble43/gobble-dist-web | import React from 'react';
const Footer = () => (
<div className="footer">
<div className="footer-links">
<a className="footer-link" href="/about">About</a>
<a className="footer-link" href="https://github.com/gobble43" target="_blank">Github</a>
<a className="footer-link" href="https://github.c... |
js/src/ui/Features/features.spec.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 3 of the License, or
// (at your option) any lat... |
L10_CameraRollPicker/__tests__/index.android.js | kobkrit/learn-react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/topic/platforms/IncompletePlatformWarning.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import Permissioned from '../../common/Permissioned';
import { PERMISSION_TOPIC_WRITE } from '../../..... |
frontend/src/components/applications/unsolicited/directSelectionCell.js | unicef/un-partner-portal | import Typography from 'material-ui/Typography';
import React from 'react';
import { TableCell } from 'material-ui/Table';
import PropTypes from 'prop-types';
import Check from 'material-ui-icons/Check';
const DirectSelectionCell = (props) => {
const { directSelection } = props;
return (
<TableCell padding="n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.