path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleCustomNoResultsMessage.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleCustomNoResultsMessage = () => (
<Dropdown
options={[]}
search
selection
placeholder='A custom message...'
noResultsMessage='Try another search.'
/>
)
export default DropdownExampleCustomNoResultsMessag... |
src/components/animated_box.js | rdenadai/mockingbird | import { css } from '../css';
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import Velocity from 'velocity-animate';
// const uuid = require('uuid');
class AnimatedBox extends Component {
constructor(props) {
super(props);
this.state = { mounted: false };
... |
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'flavours/glitch/components/status_content';
import AttachmentList from 'flavours/glitch/components/at... |
frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import ExcludeMovieModalContentConnector from './ExcludeMovieModalContentConnector';
function ExcludeMovieModal(props) {
const {
isOpen,
onModalClose,
...other... |
django/webcode/webcode/frontend/node_modules/react-router-dom/es/Link.js | OpenKGB/webcode | 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 = {... |
example/src/components/0-Logo/Logo.js | KenPowers/css-modules-electron | import styles from './Logo.css';
import React, { Component } from 'react';
export default class Logo extends Component {
render() {
return <div className={styles.logo} />;
}
};
|
src/containers/_base/stories/index.js | timludikar/component-library | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import BaseContainer from '../index';
storiesOf('container.BaseContainer', module)
.add('default view', () => {
return (
<BaseContainer title="Base Container">TEST</BaseContainer>
);
});
|
src/parser/hunter/beastmastery/modules/talents/ChimaeraShot.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import StatisticListBoxItem from 'interface/others/StatisticListBoxItem';
import TalentStatisticBox from 'in... |
src/scripts/base/Strong.js | ButuzGOL/constructor | import React from 'react';
export default class Strong extends React.Component {
getStyles() {
return {
fontWeight: 'bold'
};
}
render() {
return (
<strong style={this.getStyles()}>
{this.props.children}
</strong>
);
}
}
|
js/components/inputgroup/regular.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base';
import { Actions } from 'react-native-router-flux';
imp... |
server/priv/js/components/BenchNav.react.js | bks7/mzbench | import React from 'react';
class BenchNav extends React.Component {
render() {
const tabs = {
overview: "Overview",
scenario: "Scenario",
reports: "Reports",
logs: "Logs"
};
return (
<ul className="nav nav-tabs bench-nav">
... |
dev/component/multiSelectionGroup.js | TedForV/EFS | import React from 'react';
import RSelect from 'react-select';
import Immutable from 'immutable';
import gStyle from '../globalStyle';
require('../../node_modules/react-select/dist/react-select.min.css');
class MultiSelect extends React.Component {
constructor(props) {
super(props);
this.filterNa... |
src/icons/SearchIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SearchIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M31 28h-1.59l-.55-.55C30.82 25.18 32 22.23 32 19c0-7.18-5.82-13-13-13S6 11.82 6 19s5.82 13 13 13c3.23 0 6.1... |
src/scenes/home/landing/galaBanner/galaBanner.js | miaket/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import styles from './galaBanner.css';
const GalaBanner = () => (
<div className={styles.galaBannerWrapper}>
<Link to="/gala">
<img className={styles.galaImage} alt="gala banner" />
</Link>
</div>
);
export default GalaBanner;
|
docs/app/Examples/elements/Segment/Groups/SegmentExampleRaisedSegments.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleRaisedSegments = () => (
<Segment.Group raised>
<Segment>Left</Segment>
<Segment>Middle</Segment>
<Segment>Right</Segment>
</Segment.Group>
)
export default SegmentExampleRaisedSegments
|
shared/components/error-boundary/ErrorBoundary.js | ueno-llc/starter-kit-universally | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class ErrorBoundary extends Component {
static propTypes = {
children: PropTypes.node,
}
state = {
error: null,
errorInfo: null,
};
componentDidCatch(error, errorInfo) {
this.setState({
error... |
src/parser/hunter/beastmastery/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Putro, Streammz } from 'CONTRIBUTORS';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
export default [
{
date: new Date('2018-11-14'),
changes: <> Created a module for <SpellLink id={SPELLS.BORN_TO_BE_WILD_TALENT.id} /> and <SpellLink id={SP... |
src/modules/Synth/components/OscillatorBank/index.js | ruebel/synth-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import Container from '../../../components/Container';
import Oscillator from './Oscillator';
import RoundButton from '../../../components/Button/RoundButton';
import * as action... |
src/containers/ui/Menu/MenuView.js | arayi/SLions | /**
* Menu Contents
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Alert,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { Actions } from 'react-native-router-flu... |
src/client/components/todos/todoitem.js | fabriciocolombo/este | import PureComponent from '../../../lib/purecomponent';
import React from 'react';
import classnames from 'classnames';
import immutable from 'immutable';
import {deleteTodo} from '../../todos/actions';
export default class TodoItem extends PureComponent {
render() {
const todo = this.props.todo;
return (
... |
app/javascript/mastodon/components/column_header.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
react-native-kit/profile.js | fromatlantis/nojs | import React from 'react';
import {
View,
Text,
Image,
Navigator,
StyleSheet,
StatusBar,
TouchableOpacity,
Platform,
Dimensions
} from 'react-native';
import {
createNavigator,
createNavigationContainer,
TabRouter,
addNavigationHelpers,
StackNavigator
} from 'react-navigati... |
src/static/containers/Home/index.js | Seedstars/django-react-redux-base | import React from 'react';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import './style.scss';
import reactLogo from './images/react-logo.png';
import reduxLogo from './images/redux-logo.png';
class HomeView extends React.Component {
static ... |
templates/rubix/relay/relay-seed/src/common/sidebar.js | jeffthemaximum/jeffline | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
@withRouter
class ApplicationSidebar exten... |
internals/templates/containers/App/index.js | j921216063/chenya | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
frontend/react-stack/react/aluraflix/src/components/Carousel/index.js | wesleyegberto/courses-projects | import React from 'react';
import { VideoCardGroupContainer, Title, ExtraLink } from './styles';
import VideoCard from './components/VideoCard';
import Slider, { SliderItem } from './components/Slider';
function VideoCardGroup({ ignoreFirstVideo, category }) {
const categoryTitle = category.titulo;
const category... |
js/app.js | agevelt/ssb-explorer | "use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import JSONstat from "jsonstat";
import SortTable from "./sortTable.js";
import getJSONStatFromUrl from "./remotedata.js";
import dataset1128 from "./staticdata.js"
const rootId = "dataTable";
function getParameterByName(name, url) {
if (... |
docs/src/examples/collections/Table/Variations/TableExamplePadded.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExamplePadded = () => (
<Table padded>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
</T... |
example/src/screens/Types.js | MattDavies/react-native-navigation | import React from 'react';
import { StyleSheet, View, Text, ScrollView, TouchableHighlight } from 'react-native';
import Row from '../components/Row';
class Types extends React.Component {
toggleDrawer = () => {
this.props.navigator.toggleDrawer({
side: 'left',
animated: true
... |
src/components/Disclaimer.js | orbitdb/orbit-web | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import '../styles/Disclaimer.scss'
function Disclaimer ({ text }) {
return (
<div className='Disclaimer'>
<div className='content'>{text}</div>
</div>
)
}
Disclaimer.propTypes = {
text: PropTypes.string.isRequired
}
expor... |
src/images/IconResume.js | benjaminmodayil/modayilme | import React from 'react';
function Resume() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
width="48"
height="48"
className="font-sans"
>
<defs>
<path id="a" d="M0 0H48V48H0z" opacity="1"></path>
<mask id="c" m... |
examples/files/react/classComponent.js | dabbott/react-native-express | import React from 'react'
import { Button, View } from 'react-native'
export default class MyComponent extends React.Component {
render() {
return (
<View>
<Button title="Press me!" color="#1ACDA5" />
</View>
)
}
}
|
src/svg-icons/editor/short-text.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShortText = (props) => (
<SvgIcon {...props}>
<path d="M4 9h16v2H4zm0 4h10v2H4z"/>
</SvgIcon>
);
EditorShortText = pure(EditorShortText);
EditorShortText.displayName = 'EditorShortText';
EditorShortText... |
src/components/Dropzone.js | dpastoor/assignment-manager | /**
* Created by devin on 1/4/16.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import {Card, List, ListItem} from 'material-ui';
import {Assignment} from './Assignment';
import Dropzone from 'react-dropzone';
import axios from 'axios';
import FileCloudDone fro... |
app/javascript/mastodon/features/ui/components/media_modal.js | salvadorpla/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ExtendedVideoPlayer from 'mastodon/components/extended_video_player';
import classNames ... |
server/priv/js/components/TimelineFilter.react.js | bks7/mzbench | import React from 'react';
import MZBenchRouter from '../utils/MZBenchRouter';
import MZBenchActions from '../actions/MZBenchActions';
import BenchStore from '../stores/BenchStore';
class TimelineFilter extends React.Component {
constructor(props) {
super(props);
this.autoSearchHandler = null;
... |
docs/app/Examples/views/Statistic/Variations/Horizontal.js | ben174/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const Horizontal = () => <Statistic horizontal value='2,204' label='Views' />
export default Horizontal
|
src/components/ShareModal/index.js | iris-dni/iris-frontend | import React from 'react';
import settings from 'settings';
import ModalIntro from 'components/ModalIntro';
import openShareWindow from 'helpers/sharing/openShareWindow';
import ShareModalButtons from 'components/ShareModalButtons';
const ShareModal = ({ title, intro, buttons }) => (
<div>
<ModalIntro
titl... |
front_end/front_end_app/src/client/auth/login.react.js | carlodicelico/horizon | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter.react';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: Re... |
src/mobile/components/MainView/index.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import AppBar from '@mui/material/AppBar';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import IconButton from '@mui/material/IconButton';
import His... |
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | reinink/framework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
fields/types/url/UrlColumn.js | brianjd/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
ReactApp/src/Cards/Tickets/OnSiteCard.js | hoh/FolkMarsinne | 'use strict';
import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
import Paper from 'material-ui/Paper';
const i18n_strings = {
fr: {
... |
src/parser/druid/restoration/modules/talents/Flourish.js | FaideWW/WoWAnalyzer | import React from 'react';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StatisticBox from 'interface/others/StatisticBox';
import { formatPercentage, formatNumber } from 'common/format';
import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing';
import SpellIcon from 'comm... |
src/modules/annotations/components/AnnotationsList/AnnotationsList.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import './AnnotationsList.css';
class AnnotationsList extends React.Component {
constructor(props) {
super(p... |
src/checkAPI.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import checkGlobal from 'utils/checkGlobal';
export default (
name,
func,
getData = callback => callback({}),
defaultData = {}
) => Component => {
const state = {};
state[`${name}CanUse`] = false;
return class CheckAPI extends React.Component {
constructor(... |
examples/with-global-stylesheet/pages/index.js | callumlocke/next.js | import React from 'react'
import stylesheet from 'styles/index.scss'
// or, if you work with plain css
// import stylesheet from 'styles/index.css'
export default () =>
<div>
<style dangerouslySetInnerHTML={{ __html: stylesheet }} />
<p>ciao</p>
</div>
|
app/javascript/mastodon/features/ui/components/upload_area.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
js/components/settings/locations.js | stage88/react-weather | /**
* @flow
*/
'use strict';
import { connect } from 'react-redux';
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
StatusBar,
ScrollView,
LayoutAnimation
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import Swipeout from '../../dependencies/s... |
src/views/components/multimedia/MediaInputSelect.js | Domiii/project-empire | import map from 'lodash/map';
import filter from 'lodash/filter';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { dataBind } from 'dbdi/react';
import { getOptionalArgument, NOT_LOADED } from 'dbdi/util';
import FAIcon from 'src/views/components/util/FAIcon';
import LoadIndicato... |
survivejs/app/components/Notes.js | leowmjw/playground-ui | import React from 'react';
import Note from './Note.jsx';
export default class Notes extends React.Component {
render() {
const notes = this.props.items;
return <ul className="notes">{notes.map(this.renderNote)}</ul>;
}
renderNote = (note) => {
return (
<li className="... |
src/svg-icons/image/filter-vintage.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
client/src/components/roms/list/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { get } from '../../../api';
import { promisifyData, cancelPromises } from '../../../utils';
import RomsList from './List';
class RomsListContainer extends Component {
static propTypes = {
... |
app/containers/photos/UnsplashPage.js | foysalit/wallly-electron | // @flow
import React, { Component } from 'react';
import { Grid } from 'semantic-ui-react';
import List from '../../components/photos/List';
import Photos from '../../utils/photos';
const api = new Photos();
export default class UnsplashPage extends Component {
state = {photos: [], isLoading: true};
loadPhotos... |
assets/javascripts/data_table.js | simonhildebrandt/redact | import $ from 'jquery'
import React from 'react'
import FloatingActionButton from 'material-ui/FloatingActionButton'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, TableFooter} from 'material-ui/Table'
import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigatio... |
web/src/js/components/Widget/Widgets/WidgetPieceWrapper.js | gladly-team/tab | import React from 'react'
// import PropTypes from 'prop-types'
class WidgetPieceWrapper extends React.Component {
render() {
return <span>{this.props.children}</span>
}
}
WidgetPieceWrapper.propTypes = {}
WidgetPieceWrapper.defaultProps = {}
export default WidgetPieceWrapper
|
node_modules/semantic-ui-react/dist/es/elements/Step/StepTitle.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A step can contain a title.
*/
function St... |
app/javascript/mastodon/features/ui/components/navigation_panel.js | musashino205/mastodon | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
import FollowRequestsNa... |
node_modules/react-bootstrap/es/ModalDialog.js | vietvd88/developer-crawler | 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 ... |
app/components/ProjectCard.js | georgeF105/georgeF105.github.io | import React from 'react'
export default (props) => {
const project = props.project
return (
<div className='project-card card'>
<h3>Project {project.name}</h3>
<div className='card-links'>
{project.url ? <a href={project.url} className='fa fa-desktop' /> : null}
{project.github_url... |
1l_instastack/src/index.js | yevheniyc/Projects | import 'babel-polyfill'; // for redux-saga
import React from 'react';
import ReactDOM from 'react-dom';
import {
Router,
Route,
hashHistory
} from 'react-router';
import {
createStore,
applyMiddleware,
compose
} from 'redux';
import reducer from './reducer';
import { Provider } from 'react-redux';
import ... |
Week02-React-Jest-Unit-Tests/client/src/index.js | bmeansjd/ISIT320_means2017 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/index.js | amsardesai/react-fontawesome | import React from 'react'
/**
* A React component for the font-awesome icon library.
*
*
* @param {Boolean} [border=false] Whether or not to show a border radius
* @param {String} [className] An extra set of CSS classes to add to the component
* @param {Boolean} [fixedWidth=false] Make buttons fixed width
* @pa... |
src/index.js | LeoAJ/react-facebook-friends | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
// import CSS
import '../vendor/css/gh-fork-ribbon.css';
import '../vendor/css/font-awesome.css';
import '../vendor/css/base.css';
import '../vendor/css/buttons.css';
render(
<App />,
docume... |
dist/elements/Checkbox/index.js | codespec/react-toolset | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0... |
lib/index.js | rebem/rebem | import React from 'react';
import { stringify, validate } from 'rebem-classname';
let buildClassName = stringify;
// validation
// istanbul ignore next
if (process.env.NODE_ENV !== 'production') {
buildClassName = props => stringify(validate(props));
}
function BEM(props, ...children) {
const { tag, block, e... |
src/components/common/svg-icons/content/undo.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</Svg... |
src/icons/KeyboardArrowLeftIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class KeyboardArrowLeftIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M30.83 32.67l-9.17-9.17 9.17-9.17L28 11.5l-12 12 12 12z"/></svg>;}
}; |
node_modules/react-bootstrap/es/InputGroupButton.js | lucketta/got-quote-generator | 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 ... |
step9-redux/node_modules/react-router/modules/IndexLink.js | jintoppy/react-training | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/components/Label/Label.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Field from 'components/Field/Field.react';
import Label from 'components/Label/Label.rea... |
frontend-web-v2/src/components/LightToggle.js | ClubCedille/jardiniot | import React from 'react';
import Slider from 'rc-slider';
import API from '../Api';
export default class LightToggle extends React.Component {
constructor(props) {
super(props);
// set state..
this.state = {
...props,
}
}
render() {
return (
<div className="color">
<div className="name">
... |
packages/slate-html-serializer/test/serialize/block-nested.js | 6174/slate |
/** @jsx h */
import React from 'react'
import h from '../helpers/h'
export const rules = [
{
serialize(obj, children) {
if (obj.kind != 'block') return
switch (obj.type) {
case 'paragraph': return React.createElement('p', {}, children)
case 'quote': return React.createElement('bloc... |
step-capstone/src/components/TravelObjectForms/FormPopover.js | googleinterns/step98-2020 | import React from 'react';
import {Popover} from '@material-ui/core';
import ItemForm from './ItemForm'
export default function FormPopver(props) {
return (
<div>
<Popover
open={props.open}
anchorReference={props.anchorReference}
anchorPosition={p... |
src/components/AppSettingsMenu/ThemeControls/ThemeSettings.js | Charlie9830/pounder | import React, { Component } from 'react';
import { withTheme } from '@material-ui/core';
import { GetMuiColorArray, GetColor } from '../../../utilities/MuiColors';
import { connect } from 'react-redux';
import {
createNewMuiThemeAsync, updateMuiThemeAsync, selectMuiTheme, renameMuiThemeAsync,
removeMuiThemeAsyn... |
geonode/monitoring/frontend/src/components/cels/response-time/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import styles from './styles';
class ResponseTime extends React.Component {
static propTypes = {
average: PropTypes.number.isRequired,
data: PropTypes.arra... |
src/components/Button.android.js | madox2/fortune-app | import React from 'react'
import {View, TouchableNativeFeedback, Text, StyleSheet} from 'react-native'
export const Button = ({children, onPress, style}) => (
<TouchableNativeFeedback
onPress={onPress}
background={TouchableNativeFeedback.SelectableBackground()}>
<View style={[styles.button, style]}>
... |
src/index.js | gor181/react-redux-mini-gallery | require('!style!css!./styles/index.css');
require('!style!css!muicss/lib/css/mui.css');
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
... |
packages/flow-runtime-docs/src/components/docs/PrimitiveTypesPage.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import Example from '../Example';
const nullCode = `
import t from 'flow-runtime';
console.log(t.null().assert(null)); // ok
t.null().assert(undefined); // throws
t.null().assert(false); // throws
`.trim();
const voidCode =... |
src/components/about.js | antholord/poe-livesearch | /**
* Created by Anthony Lord on 2017-05-02.
*/
import React, { Component } from 'react';
import Header from "./header";
class About extends Component{
render(){
return (
<div>
<Header league={""} onLeagueChange={null}/>
<div className="container main">
<h3><p>T... |
node_modules/semantic-ui-react/src/views/Comment/CommentContent.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A comment can contain content.
*/
function CommentContent(props) {
const { className, children } = props
const classes = cx... |
src/app/containers/Statistics/components/LargeModal.js | MarcusKolman/www | import React, { Component } from 'react';
import { Modal, Button } from 'react-bootstrap';
//import LinkDetail from './link_detail';
class LargeModal extends Component {
render() {
return (
<Modal {...this.props} bsSize="large" aria-labelledby="contained-modal-title-lg">
<Modal.... |
client/containers/App.js | LinearAtWorst/cogile | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getUsername, smashUser } from '../actions/index';
import { bindActionCreators } from 'redux';
import NavLink from '../components/NavLink';
import { Link } from 'react-router';
import Radium from 'radium';
import color from 'color'... |
src/routes/dashboard/components/sales.js | terryli1643/thinkmore | import React from 'react'
import PropTypes from 'prop-types'
import styles from './sales.less'
import classnames from 'classnames'
import { color } from '../../../utils'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
function Sales ({ data }) {
return (
... |
src/client.js | GetExpert/redux-blog-example | import './css/index.css';
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import configureStore from './store';
import { BrowserRouter } from 'react-router-dom';
import createRoutes from './routes';
const rootEl = ... |
src/components/UI/Dropdown/Dropdown.js | Aloomaio/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import c from 'classnames';
import { Wrapper, Button, Menu, MenuItem } from 'react-aria-menubutton';
import { Icon } from 'UI';
const Dropdown = ({
label,
button,
className,
classNameButton = '',
dropdownWidth = 'auto',
dropdownPosition = 'left... |
gadget-system-teamwork/src/components/sub-components/ListCommentPage.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import { Link } from 'react-router-dom'
import Auth from '../users/Auth'
const ListCommentPage = (props) => (
<div className='comments'>
<div className='comment-box'>
<span className='comment-count'>#{props.index}</span>
<span>{props.author} says:</span>
<p>{pro... |
src/App/Views/Home.js | ccubed/Vertinext | import React from 'react';
class Home extends React.Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col s12">
<div className="card hoverable">
<div className="card-content red-text">
<span className="card-title red-... |
src/components/run.js | bluebill1049/cart | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/app/contentItem.js | approximata/theUltimateWeddingPage | import React from 'react'
import PropTypes from 'prop-types'
import TableItem from './tableItems'
const ContentItem = ({ item }) => {
let rows = item.rows
let table = []
table = rows.map((itemElem, index) =>
(<TableItem item={itemElem} key={index}/>))
return (
<section className={item.title}>
<ta... |
examples/js/advance/insert-type-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
src/components/atoms/Dialog/DialogActions.js | ygoto3/artwork-manager | // @flow
import React, { Component } from 'react';
import { Button } from '../../atoms/Button';
export type DialogAction = {
label: string;
onClick: Function;
};
export type DialogActionsProps = {
actions: DialogAction[];
onClose: Function;
}
export class DialogActions extends Component<*, DialogActionsPr... |
src/index.js | plus-n-boots/plus-n-boots.github.io | import React from 'react'
import AppWrapper from './containers/AppWrapper'
import 'material-design-lite/material.css'
React.render(
<AppWrapper />,
document.querySelector('wrapper')
)
|
src/components/Table.js | cardotrejos/calculator | import React from 'react';
export default ({headings, rows, totals, className, style})=> (
<table className={className} style={style}>
<thead>
<tr>
{headings.map((d,i)=><th key={i}>{d}</th>)}
</tr>
</thead>
<tbody>
{rows.map((row,index)=>(
<tr key={index}>
{row.map((d,i)=><td key={i}>{d.... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4