path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/flight.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>
);
MapsFlight.displayName = 'Map... |
src/svg-icons/device/gps-fixed.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsFixed = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1... |
example/pages/dialog/index.js | woshisbb43/coinMessageWechat | import React from 'react';
import { Button, Dialog } from '../../../build/packages';
import Page from '../../component/page';
export default class DialogDemo extends React.Component {
state = {
showIOS1: false,
showIOS2: false,
showAndroid1: false,
showAndroid2: false,
style... |
app/components/CommentForm/index.js | thecodingwhale/conduit-clone | /**
*
* CommentForm
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Form, Field, reduxForm } from 'redux-form/immutable';
import { Button } from 'reactstrap';
import validator from 'utils/validator';
import Input from 'components/Input';
let CommentForm = (props) => { // eslint-disable-... |
src/components/Select.js | g33ktony/ReactBooks | import React from 'react'
import PropTypes from 'prop-types'
export default function Select( props ) {
Select.propTypes = {
options: PropTypes.array.isRequired,
onChange: PropTypes.func.isRequired,
selected: PropTypes.string.isRequired,
}
return (
<select
value={ props.selected }
o... |
src/Alerts.js | chrislondon/react-bootstrap | import React, { Component } from 'react';
export class Alert extends Component {
static defaultProps = {
type: 'danger'
};
getInterjection() {
switch (this.props.type) {
case 'success':
return 'Well Done!';
case 'info':
return 'Heads ... |
src/client.js | pathwar/portal.pathwar.net | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from './store/configureStore'
import routes from './routes'
import DevTools from './... |
src/ui/routes/Home/components/explainerSection/Section.component.js | andest01/trout-bubbles | import React from 'react'
import classes from './Explainer.style.scss'
const SectionComponent = React.createClass({
propTypes: {
children: React.PropTypes.element.isRequired
},
componentWillMount () {
},
render () {
return (
<div className={classes.section}>
{this.props.children}
... |
src/main.ios.js | stepennwolf/logical-quiz-iso-client | import React from 'react';
import { AppRegistry } from 'react-native';
import App from './components/App.ios';
import createConfiguredStore from './store/configureStore';
const store = createConfiguredStore();
const AppWithStore = () => <App store={store} />;
// workaround for NavigationExperimental issue https://... |
client/extensions/woocommerce/components/query-shipping-zones/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
/**
* Internal dependencies
*/
import { fetchShippingMethods } from 'woocommerce/state/sites/shipping-meth... |
src/containers/ATeam.js | kennethaa/vanvikil-live | import React, { Component } from 'react';
class ATeam extends Component {
render() {
return (
<div>
{'A-lag'}
</div>
);
}
}
export default ATeam;
|
client/src/home/sidebar/MenuToggle.js | ziel5122/autograde | import KeyboardArrowLeft from 'material-ui/svg-icons/hardware/keyboard-arrow-left';
import KeyboardArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right';
import React from 'react';
const arrowStyle = {
color: 'white',
};
const style = {
background: 'orangered',
paddingTop: '2px',
};
const MenuT... |
frontend/app/components/WordsCreateEdit/list-view.js | First-Peoples-Cultural-Council/fv-web-ui | /*
Copyright 2016 First People's Cultural Council
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
src/svg-icons/content/text-format.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
src/js/components/NavBar.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
app/clients/next/components/table/index.js | garbin/koapp | import React from 'react'
import { Provider, Header, Body } from 'reactabular-table'
import { merge } from 'lodash'
import { components as defaultComponents } from './presets/bootstrap'
export function column (property, label, definition) {
const base = {property, header: { label }}
return merge(base, definition)
... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | blinkmobile/things-events-dashboard | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
react-router-demo/lessons/13-server-rendering/index.js | zhangjunhd/react-examples | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
import Home from './modules/Home'
render((
<R... |
lesson-4/src-solution/components/NewNoteModal.js | msd-code-academy/lessons | import React from 'react'
import Modal from 'react-modal'
import * as shortId from 'shortid'
import '../styles/NewNoteModal.css'
class NewNoteModal extends React.Component {
constructor() {
super()
this.state = {
modalIsOpen: false,
note: {},
}
}
toggleModal = () => {
this.setState({... |
src/svg-icons/hardware/keyboard.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboard = (props) => (
<SvgIcon {...props}>
<path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v... |
src/components/MarkdownCard.js | busypeoples/reactcards.js | import React from 'react'
import showdown from 'showdown'
import Card from './Card'
import style from './style.less'
const markdownToHtml = str => {
const conv = new showdown.Converter()
return conv.makeHtml(str)
}
export const Markdown = props =>
<div className={[style.markdown,props.className].join(' ')}
... |
src/components/navigation/ImprimirPartidasButton.js | sysbet/sysbet-mobile | import React, { Component } from 'react';
import {
View,
ToastAndroid,
Linking,
} from 'react-native';
import { connect } from 'react-redux';
import Button from 'react-native-button';
import Icon from 'react-native-vector-icons/FontAwesome';
import Actions from '../../actions';
let {
CarregarJogos,
}... |
src/svg-icons/action/home.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
contento/js/src/hooks/textareaJsonschema/index.js | inmagik/contento | import React from 'react'
import { render } from 'react-dom'
import Form from 'react-jsonschema-form'
export default (element) => {
const value = JSON.parse(element.value || '{}');
const schema = JSON.parse(element.getAttribute('data-textarea-jsonschema') || '{}')
const container = document.createElement('div')... |
src/components/slider/SliderPointer.js | socialtables/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class SliderPointer extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
... |
src/components/icons/IconOther.js | changepane/changepane | import React from 'react';
import Icon from 'react-icon-base';
const IconOther = (props) =>
<Icon viewBox="0 0 15 15" {...props}>
<g id="icon-other" stroke="currentColor" strokeWidth="1" fill="none" fillRule="evenodd" strokeLinecap="round" strokeLinejoin="round">
<rect id="dot-1" x="1.5" y="6.5" width="2" ... |
src/components/comic/ComicElement.js | phelipemaia/marvelous-app | import React from 'react';
import { Text, View, StyleSheet, Image } from 'react-native';
import Card from '../common/Card'
import CardSection from "../common/CardSection";
export default class ComicElement extends React.Component {
render () {
const { headerContentStyle, thumbnailStyle, titleText, titleContainer... |
app.js | saintnikopol/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
app/react/components/permission/PermissionList.js | NikaBuligini/whistleblower-server | // @flow
import React from 'react';
import PermissionItem from '../../components/permission/PermissionItem';
type PermissionListProps = {
permissions: Array<any>,
onDelete: (any) => void,
}
function PermissionList({ permissions, onDelete }: PermissionListProps) {
if (permissions.length === 0) {
return <spa... |
client/components/Main.js | PawlakArtur/project-reactjs-receipt-keeper | import React from 'react';
import { Link } from 'react-router';
const Main = React.createClass({
render() {
return (
<main>
<h1>
<Link to="/">Receipt Keeper</Link>
</h1>
{React.cloneElement(this.props.children, this.props)}
... |
src/svg-icons/av/stop.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvStop = (props) => (
<SvgIcon {...props}>
<path d="M6 6h12v12H6z"/>
</SvgIcon>
);
AvStop = pure(AvStop);
AvStop.displayName = 'AvStop';
AvStop.muiName = 'SvgIcon';
export default AvStop;
|
src/components/Histogram.js | Baizley/dokkit | import React from 'react';
import * as d3 from 'd3';
import ReactFauxDom from 'react-faux-dom';
class Histogram extends React.Component {
constructor() {
super();
}
drawChart() {
let chart = new ReactFauxDom.Element('div');
let data = [{"x":"Monday","y":10},{"x":"Tuesday","y":3},{"x":"Wednesda... |
packages/ringcentral-widgets/components/ConferenceCommands/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import BackHeader from '../BackHeader';
import styles from './styles.scss';
import i18n from './i18n';
const Button = ({ text }) => <span key={text} className={styles.button}>{text}</span>;
Button.propTypes = {
text: PropTypes.string.isRequired,
};
cons... |
src/svg-icons/action/donut-small.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
src/components/Grid/GridFlexItem.js | lebra/lebra-components | import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
const propTypes = {
disabled: PropTypes.bool,
children: PropTypes.node,
style:PropTypes.object,
prefixCls: PropTypes.string,
className: PropTypes.string,
}
const defaultProps = {
prefixCls: 'lebra-flexbox',... |
src/svg-icons/image/panorama-wide-angle.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaWideAngle = (props) => (
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12... |
src/components/App/App.js | oboecat/yattt | import React, { Component } from 'react';
import Game from '../Game';
class App extends Component {
render() {
return (
<Game />
);
}
}
export default App;
|
examples/serialize-action/src/components/Checkbox/Container.js | jas-chen/redux | import React from 'react'
import { connect } from 'react-redux'
import { Change } from './actions'
import Checkbox from './Component'
const mapDispatchToProps = {
onChange: checked => new Change(checked)
}
const CheckboxContainer = ({ stateKey }) => {
const mapStateToProps = state => {
return {
checked:... |
webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableAction.js | theforeman/foreman_ansible | import React from 'react';
import PropTypes from 'prop-types';
import { useMutation } from '@apollo/client';
import classNames from 'classnames';
import { Button, Spinner } from '@patternfly/react-core';
import { TimesIcon, CheckIcon, PencilAltIcon } from '@patternfly/react-icons';
import './EditableAction.scss';
im... |
src/app/core/atoms/icon/icons/sun.js | blowsys/reservo | import React from 'react'; const Sun = (props) => <svg {...props} viewBox="0 0 48 48"><g><path d="M14.255,27.812979C14.853,27.912979 15.352,27.912979 15.95,27.912979 16.548,27.912979 17.047,27.912979 17.645,27.812979L17.645,30.205976C17.645,31.102976 16.947,31.899975 15.95,31.899975 15.053,31.899975 14.255,31.201977 14... |
src/components/ShopsDetailsTable/ShopsDetailsTable.js | marinbgd/coolbeer | import React from 'react';
import PropTypes from 'prop-types';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
const tableConfig = {
fixedHeader: false,
showRowHover: false,
stripedRows: true,
selectable: false,
multiSelectable: false,
enabl... |
src/components/LoadingScreen.js | swashcap/LookieHere | import React, { Component } from 'react';
import { Animated, Easing, Image, StyleSheet, Text, View } from 'react-native';
import loadingAnimation from '../images/loading-animation.gif';
const styles = StyleSheet.create({
container: {
alignItems: 'center',
backgroundColor: 'white',
flex: 1,
flexDirec... |
maodou/events/client/components/admin/eventsList.js | ShannChiang/meteor-react-redux-base | import React, { Component } from 'react';
import {Link} from 'react-router';
import Loading from 'client/components/common/loading';
import moment from 'moment';
import { shortText } from 'lib/helpers';
export default class EventsList extends Component {
render() {
const { data, status } = this.props.events;
... |
src/components/ContainerProgress.react.js | xloup/kitematic | import React from 'react';
/*
Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} />
*/
var ContainerProgress = React.createClass({
render: function () {
var pBar1Style = {
height: this.props.pBar1 + '%'
};
var pBar2Style = {
height: this.props.pBar2 + '%'
};
va... |
src/components/views/login/CustomServerDialog.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
client/node_modules/uu5g03/doc/main/client/src/common/glyphicons.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import UU5 from 'uu5';
import Breadcrumbs from '../bricks/breadcrumbs.js';
import './glyphicons.css';
export default React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
UU5.Common.VucMixin
],
//@@viewOff:mixins
//@@viewO... |
src/routes/notFound/index.js | Grusteam/spark-in-me | import React from 'react';
import Layout from '../../components/Layout';
import Page from '../../components/Page';
import Link from '../../components/Link';
export default {
path: '*',
action() {
const pageData = {
title: 'Page Not Found',
desc: 'Sorry, the page you were trying to view does not exist.',
... |
src/main/js/layouts/containers/BaseLayout.js | Bernardo-MG/dreadball-toolkit-webpage | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import App from 'grommet/components/App';
import Box from 'grommet/components/Box';
import Button from 'grommet/co... |
app/components/ProductList.js | cqlanus/bons | import React from 'react'
import ProductPanel from './ProductPanel'
import { connect } from 'react-redux'
import { filterProducts } from '../reducers/products'
const mapStateToProps = (state) => ({
products: state.products.products,
filteredProducts: state.products.filteredProducts
})
// const mapDispatchToProps... |
src/containers/DevTools.js | rainbowland302/hangman | import React from 'react'
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools'
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
// createDevTools takes a monitor and pr... |
public/systemjs/app/pages/example.js | inquisive/keystonejs-site | import React from 'react';
import jade from '../html/templates'
import {languages as nav, routes} from '../config';
class Example extends React.Component {
constructor(props) {
super(props)
this.displayName = 'Fetch Examples '
this.state = { html: props.response }
this.props = props
}
render() {
... |
src/svg-icons/alert/warning.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
node_modules/react-native-mock/src/components/Image.js | niukui/gitpro | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Image/Image.ios.js
*/
import React from 'react';
import styleSheetPropType from '../propTypes/StyleSheetPropType';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType';
impor... |
lib-module-modern-browsers-dev/browser.js | turacojs/fody | 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; };
var _jsxFileName = 'browser.jsx';
/* eslint react/no-render-r... |
docs/src/components/ComponentDoc/ComponentSidebar/ComponentSidebar.js | Semantic-Org/Semantic-UI-React | import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import { Accordion, Menu, Sticky } from 'semantic-ui-react'
import { docTypes } from 'docs/src/utils'
import ComponentSidebarSection from './ComponentSidebarSection'
const sidebarStyle = {
background: '#fff',
boxShadow: '0 2px 2px... |
src/svg-icons/image/panorama-horizontal.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C... |
src/svg-icons/file/attachment.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileAttachment = (props) => (
<SvgIcon {...props}>
<path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.... |
app/components/Store/Order/OrderSummary/index.js | VineRelay/VineRelayStore | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const Wrapper = styled.div`
`;
const Title = styled.h2`
`;
const Divider = styled.div`
width: 100%;
height: 1px;
background: #EEE;
`;
const CartItem = styled.div`
display: flex;
justify-content: flex-sta... |
www/src/pages/404.js | avidw/redd | import React from 'react'
import Link from 'gatsby-link'
import SimplePage from '../components/SimplePage'
const NotFound = () => (
<SimplePage>
<h1>Four Zero Four</h1>
<p>Looks like you hit a non-existent or removed page. Sorry about that.</p>
<p><Link to='/'>Go Back?</Link></p>
</SimplePage>
)
expor... |
docs/app/Views/PageNotFound.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Segment, Header, Icon } from 'src'
const PageNotFound = () => (
<Grid padded textAlign='center' stretched>
<Grid.Row columns='equal'>
<Grid.Column>
<Header as='h1' icon textAlign='center'>
<Icon name='game' />
404
<Header.Subhea... |
web/static/js/components/heading_panel.js | TattdCodeMonkey/hmc5883l_demo | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Panel } from 'react-bootstrap';
import { getHeading } from '../reducers/compass';
class HeadingPanel extends Component {
render() {
const title = <h4>Heading</h4>;
const { heading } = this.props;
return (
<Pan... |
ui/src/js/common/components/IconButton.js | Dica-Developer/weplantaforest | import React, { Component } from 'react';
require('./iconButton.less');
export default class IconButton extends Component {
constructor() {
super();
}
render() {
return (
<div className="iconButton">
<a role="button" onClick={this.props.onClick.bind(this)}>
<span className={'gly... |
pages/_app.js | sikhote/clairic | import css from 'styled-jsx/css';
import React from 'react';
import NextApp, { Container } from 'next/app';
import Page from '../components/Page';
const styles = css.global`
@import url('/static/css/fontello.css');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.icon-play::before,
.icon-fast-forward:... |
app/main.js | jeflores7/character-voting-app | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
let history = createBrowserHistory();
ReactDOM.render(<Router history={history}>{routes}</Router>, document.getElementById... |
_seraphim/src/_arch/synth/StepSequence.js | goldbuick/src | import R from 'ramda';
import Tone from 'tone';
import React from 'react';
import Panel from 'elements/panel/Core';
import RenderObject from 'render/RenderObject';
import GridInput, { cellSize } from 'elements/panel/GridInput';
import choird from 'apps/synth/audio/choird.wav';
import wide_open from 'apps/synth/audio/w... |
app/jsx/account_course_user_search/components/UsersList.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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... |
app/components/KubeWatcherCreateForm/index.js | fission/fission-ui | /**
*
* KubeWatcherCreateForm
*
*/
import React from 'react';
// import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import commonMessages from 'messages';
class KubeWatcherCreateForm extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(prop... |
library/src/pivotal-ui-react/table/table-row.js | sjolicoeur/pivotal-ui | import PropTypes from 'prop-types';
import React from 'react';
export class TableRow extends React.Component {
static propTypes = {
index: PropTypes.number,
rowDatum: PropTypes.object
};
render() {
let {children, index, rowDatum, ...others} = this.props;
return (<tr {...others}>
{children... |
docs/src/pages/demos/lists/InsetList.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
import StarIcon from 'material-ui-icons/Star';
const styles = theme => ({
root: {
width: '100%',
maxWid... |
examples/js/manipulation/demo.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import InsertRowTable from './insert-row-table';
import DeleteRowTable from './delete-row-table';
import StrictSearchTable from './strict-search-table';
import SearchTable from './search-table';
import ColumnFilterTable from './filter-table';
import MultiSearchTable fr... |
src/index.js | relaunched/book_list | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
app/javascript/mastodon/features/follow_recommendations/index.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { fetchSuggestions } from 'mastodon... |
src/option-selector/option-selector.js | Synchro-TEC/apollo | import React from 'react';
import PropTypes from 'prop-types';
const optionSelectorStyles = {
container: {
display: 'inline',
position: 'relative',
},
options: {
padding: '10px',
backgroundColor: '#fff',
boxShadow: '0 0 5px #d1d1d1',
display: 'none',
position: 'absolute',
listStyl... |
packages/ndla-icons/src/editor/Heading2.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Heading2 = props => (
<Icon
view... |
src/routes.js | urre/chock.press | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
const routes = (
<Route path="/" component={ App }>
</Route>
);
export default routes; |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | mtsandeep/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* The `defaultValue` property sets the initial position of the slider.
* The slider appearance changes when not at the starting position.
*/
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slide... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupBasic.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button, Divider } from 'semantic-ui-react'
const ButtonExampleGroupBasic = () => (
<div>
<Button.Group basic>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
<Divider />
<Button.Group basic vertical>
<Button>O... |
js/about/index.js | JenningsWu/Chaldea-archives | /**
* @flow
*/
import React from 'react'
import {
View,
Text,
Linking,
Alert,
ScrollView,
} from 'react-native'
import {
List,
ListItem,
} from 'react-native-elements'
import { StackNavigator } from 'react-navigation'
import Icon from 'react-native-vector-icons/FontAwesome'
import NgaReference from '.... |
src/routes/Login/index.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Spin } from 'antd'
import LoginForm from './LoginForm'
import styles from './LoginForm.less'
function Login ({ dispatch, loading = false }) {
const loginProps = {
loading,
onOk (data) {
dispatch({ type: ... |
fields/types/number/NumberColumn.js | dvdcastro/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTyp... |
src/javascripts/components/NoMatch.js | taydakov/url-shortener | /* Static dependencies */
/* JS dependencies */
import React from 'react';
export default class NoMatch extends React.Component {
constructor (...args) {
super(...args);
this.state = {
};
}
render () {
return (
<div class="text-center">
<h4>Page Not Found</h4>
<h1>404</h1>
</div>
);
}
... |
src/pages/index.js | green-arrow/ibchamilton | import React from 'react';
import styled from 'react-emotion';
import Link from 'gatsby-link';
import Container from '../components/Container';
const PageWrapper = styled(Container)`
@media (min-width: 768px) {
text-align: center;
}
`;
const IndexPage = props => (
<PageWrapper>
<h2>Regular Services</h2... |
app/javascript/mastodon/features/account_timeline/components/header.js | 8796n/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
docs/src/app/components/pages/components/FlatButton/Page.js | manchesergit/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
src/js/main.js | michaelatmender/gui | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import { CacheProvider } from '@emotion/react';
import createCache from '@emotion/cache';
import { LocalizationProvider } from '@mui/lab';
import AdapterMom... |
src/components/profile/UserInfo.js | simnau/event-scraper-ui | import React from 'react';
import { Field } from 'redux-form';
import { TextField } from 'redux-form-material-ui';
import { Row, Col } from 'react-flexbox-grid';
function UserInfo({
profile,
}) {
return (
<Row
style={{
margin: 0,
padding: '2rem 0 2rem 2rem',
}}
>
<Col lg={... |
src/components/web/PageTitle.js | Manuelandro/Universal-Commerce | import React from 'react'
import styled from 'styled-components'
const { View, Text } = {
View: styled.div`
display: flex;
flex: 1;
flex-direction: row;
align-self: stretch;
justify-content: center;
margin-top: 20px;
margin-bottom: 5px;
`,
Text: style... |
static/src/components/islands/IslandSmall.js | taylorsmcclure/airhornbot-dev | // @flow
import React from 'react';
import Constants from '../../Constants';
const islands = [
Constants.Image.ISLAND_SMALL_1,
Constants.Image.ISLAND_SMALL_2,
Constants.Image.ISLAND_SMALL_3,
Constants.Image.ISLAND_SMALL_4,
Constants.Image.ISLAND_SMALL_5,
Constants.Image.ISLAND_SMALL_6
];
type Props = {
... |
react-dev/components/right_menu_bar.js | InsidiousMind/code.LiquidThink | import React from 'react';
import Toggle from 'material-ui/Toggle';
import { green800, green900, cyan500 } from 'material-ui/styles/colors';
import { getLink } from '../helpers';
import { SocialMediaList } from './social_media_list';
function getLogo(logo, logoURL) {
if (!logo) {
return;
}
return (... |
src/views/Playlist/components/Track.js | Gouthamve/BINS-FRONT | import React from 'react'
import { ListGroupItem, Row, Col, Image, Button } from 'react-bootstrap'
import alart from 'img/coverart1.jpg'
const Track = ({ name, album, artist, playing, setCurrent, pauseCurrent}) => {
let playButton = <Button onClick={setCurrent}><i className={`fa fa-play-circle-o fa-2x`}></i></Butto... |
app/components/PriceList/Symbol.js | cshutchinson/sk | import React, { Component } from 'react';
export default class Symbol extends Component {
constructor(props){
super(props);
}
render(){
return (
<tr>
<td>{this.props.symbolData.symbol}</td>
<td>{this.props.symbolData.name}</td>
<td className="text-right">${new Number(this.... |
examples/App.js | manishksmd/react-scheduler-smartdata | import React from 'react';
import Api from './Api';
// import Intro from './Intro.md';
import cn from 'classnames';
import { render } from 'react-dom';
import localizer from 'react-big-calendar/lib/localizers/globalize';
import globalize from 'globalize';
localizer(globalize);
import 'react-big-calendar/lib/less/sty... |
packages/mineral-ui-icons/src/IconBluetooth.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 IconBluetooth(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
test/helpers/shallowRenderHelper.js | panlu888/small-react-app | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
pkg/ui/src/components/WorkloadsPage.js | matt-deboer/kuill | import React from 'react'
import { Link } from 'react-router-dom'
import FloatingActionButton from 'material-ui/FloatingActionButton'
import { blueA400, grey200, grey300, grey500, grey800, red900, white } from 'material-ui/styles/colors'
import { connect } from 'react-redux'
import { addFilter, removeFilter, removeReso... |
newclient/scripts/components/user/entities/entity-form-information-step/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
information/blendle-frontend-react-source/app/components/navigation/HideOnScroll/index.js | BramscoChill/BlendleParser | import React from 'react';
import { node } from 'prop-types';
import Headroom from 'react-headroom';
import CSS from './style.scss';
function HideOnScroll({ children }) {
return (
<Headroom className={CSS.hideOnScroll} upTolerance={10} downTolerance={10}>
{children}
</Headroom>
);
}
HideOnScroll.pro... |
react-admin-dashboard/src/pages/UserProfile/index.js | chaitanya1375/Myprojects | import React from 'react';
import ProfileForm from './ProfileForm';
import UserInfo from './UserInfo';
const UserProfile = () => (
<div className="content">
<div className="container-fluid">
<div className="row">
<div className="col-md-8">
<ProfileForm />
</div>
<div class... |
src/svg-icons/image/blur-circular.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurCircular = (props) => (
<SvgIcon {...props}>
<path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5... |
fields/types/boolean/BooleanColumn.js | stunjiturner/keystone | import React from 'react';
import classnames from 'classnames';
import Checkbox from '../../../admin/client/components/Checkbox';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var BooleanColumn = React.creat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.