path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/action/pageview.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPageview = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-... |
tests/react/ref.js | samwgoldman/flow | // @flow
import React from 'react';
class Foo extends React.Component<{}, void> {}
class Bar extends React.Component<{}, void> {}
<Foo />; // OK
<Foo ref="foo" />; // OK
<Foo ref={null} />; // OK
<Foo ref={undefined} />; // OK
<Foo ref={(foo: number) => {}} />; // Error: `Foo` is not a `number`.
<Foo ref={foo => (fo... |
src/Parser/Core/Modules/NetherlightCrucibleTraits/ChaoticDarkness.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import HealingDone ... |
src/index.js | nazaninreihani/binary-next-gen | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import config from './config';
import Root from './_store/root';
import storage from './_store/storage';
import Device from './_utils/Device';
import '../styles/styles.scss';
import './_utils/validateExtend';
// import { whyDidYouUpd... |
assets/jqwidgets/demos/react/app/window/multiplewindows/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.showWindowButton.on('click', () => {
... |
src/Subheader/Subheader.js | hwo411/material-ui | import React from 'react';
import PropTypes from 'prop-types';
const Subheader = (props, context) => {
const {
children,
inset,
style,
...other
} = props;
const {
prepareStyles,
subheader,
} = context.muiTheme;
const styles = {
root: {
boxSizing: 'border-box',
color:... |
src/views/scheduler/instructions.js | Bernardstanislas/luz-ui | import React from 'react';
const Instructions = () => (
<div data-role='instructions' data-position='wheel-center'>
<p>To begin scheduling your garden lightning, hover the mouse over one of the two white cyclic tracks.</p>
<p>Each track corresponds to one relay.</p>
<p>To create a new sched... |
specs/spec-helper.js | yggie/mach-ci | 'use strict';
import React from 'react';
window.context = describe;
window.specs = (function () {
let specs = {};
specs.render = function (component) {
let renderer = React.addons.TestUtils.createRenderer();
renderer.render(component);
return renderer.getRenderOutput();
};
specs.renderToString... |
src/list-item/index.js | twilson63/t63 | import React from 'react'
import R from 'ramda'
import combine from '../lib/combine-string-lists'
const ListItem = props => {
const className = combine(
"flex items-center lh-copy pa3 ph0-l bb b--black-10",
props.className)
const newProps = R.merge(R.omit(['left', 'right'], props), { className: className... |
docs/src/app/components/pages/components/Toolbar/Page.js | ichiohta/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 toolbarReadmeText from './README';
import toolbarExampleSimpleCode from '... |
app/react-icons/fa/renren.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaRenren extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.3 35q-3.8 2.1-8.2 2.1-4.4 0-8.2-2.1 3.1-1.9 5.2-4.7t3-5.9q0.8 3.2 2.9 5.9... |
node_modules/react-color/src/components/sketch-2/SketchPresetColors.js | ottomajik/react-demo | 'use strict'; /* @flow */
import React from 'react';
import ReactCSS from 'reactcss';
export class SketchPresetColors extends ReactCSS.Component {
constructor() {
super();
this.handleClick = this.handleClick.bind(this);
}
classes(): any {
return {
'default': {
colors: {
ma... |
src/components/antd/locale-provider/index.js | hyd378008136/olymComponents | import React from 'react';
import PropTypes from 'prop-types';
import { changeConfirmLocale } from '../modal/locale';
export default class LocaleProvider extends React.Component {
getChildContext() {
return {
antLocale: Object.assign({}, this.props.locale, { exist: true }),
};
}
... |
app/components/SignupBox.js | cdiezmoran/AlphaStage-desktop | // @flow
import React, { Component } from 'react';
import toastr from 'toastr';
import $ from 'jquery';
import type { NewUser } from '../utils/globalTypes';
type Props = {
isLoading: boolean,
toggleState: () => void,
validateEmail: (email: string) => boolean,
signup: (user: NewUser) => void
};
class SignupBo... |
packages/react-art/src/ReactART.js | nhunzaker/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactVersion from 'shared/ReactVersion';
import {
createContainer,
updateContainer,
inject... |
src/index.js | maloun96/react-admin | import React from 'react';
import {render} from 'react-dom';
import {BrowserRouter, Switch, Route, Router} from 'react-router-dom'
import {createHashHistory} from 'history'
import Header from './components/Header.js';
import Sidebar from './components/Sidebar.js';
import Footer from './components/Footer.js';
// import... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | RickyDan/react-router | import React from 'react';
class Assignment extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignment: COURSES[params.courseId].assignments[params.assignmentId]
//});
//}
render () {
//var { title, body } = this.props.assignment;
var { courseId, assignmentId } ... |
app/addons/documents/doc-editor/components/CloneDocModal.js | apache/couchdb-fauxton | // 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, software
// distributed un... |
test/test_helper.js | ebb-tide/passage_nautical | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
rn-client/app/ui/loading/page.loading.js | patrickml/votify | import React from 'react';
import {
View, Text,
} from 'react-native';
export default () => (
<View>
<Text>Loading</Text>
</View>
);
|
src/components/video_list_item.js | Jaberwalky/ReduxCourse | import React from 'react'
const VideoListItem = ({ video, onVideoSelect }) => {
const imageUrl = video.snippet.thumbnails.default.url
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list-media">
<div className="media-left">
<img class... |
src/client/user/Login.js | jmicmoore/merit-badge-university | import React from 'react';
import {connect} from 'react-redux';
import '../styles/login.css';
import {Link} from 'react-router-dom'
import {login} from '../user/userActions';
import TextField from '../common/components/TextField';
import {validate, convertErrorToReport} from '../common/util/validation';
import loginCon... |
src/server.js | s-mironov31/react-web | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
techCurriculum/ui/solutions/2.6/src/components/User.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
6-css/src/index.js | mariusz-malinowski/tutorial-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/src/app/routes/ui/containers/icons/Glyphicons.js | zraees/sms-project | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../../components'
export default class Glyphicons extends React.Component {
state = {
search: ''
};
shouldComponentUpdate(nextProps, nextState) {
if (this.state.search != nextState.search) {
let $conta... |
src/components/TeamGeosuggest/TeamGeosuggest.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import loadComponent from '../../helpers/loadComponent';
let Geosuggest = () => null;
let google = { maps: { Geocoder: function Geocoder() { return {}; }, GeocoderStatus: {} } };
if... |
app/javascript/mastodon/components/relative_timestamp.js | hyuki0000/mastodon | import React from 'react';
import { injectIntl, FormattedRelative } from 'react-intl';
import PropTypes from 'prop-types';
const dateFormatOptions = {
hour12: false,
year: 'numeric',
month: 'short',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
};
@injectIntl
export default class RelativeTimestamp e... |
packages/material-ui-icons/src/Battery30.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z" /><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V15H7z" /></React... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | Bogala/create-react-app-awesome-ts | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return [
{ id: 1, name: '1' },
... |
app/javascript/mastodon/features/compose/components/search.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/layouts/CoreLayout/CoreLayout.js | parkgaram/solidware-mini-project | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
class CoreLayout extends React.Component{
constructor(props){
super(props)
}
render(){
const { children } = this.props;
return(
<div className='cont... |
e2e-tests/path-prefix/src/components/layout.js | 0x80/gatsby | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import Header from './header'
import './layout.css'
const Layout = ({ children }) => (
<StaticQuery
query={graphql`
query SiteTitleQuery {
site {
s... |
src/fields/TimePickerField.ios.js | MichaelCereda/react-native-form-generator | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative;
import {DatePickerComponent} from '../lib/DatePickerComponent';
export class TimePickerField extends React.Component{
setTime(date){
this.refs.datePickerComponent... |
client/src/components/Listing/AddListing/AddListingComponents/ListingDisplayImages.js | wolnewitz/raptor-ads | import React from 'react';
import { Grid, Image } from 'semantic-ui-react';
import ListingDisplayImage from './ListingDisplayImage';
const ListingDisplayImages = ({ images, handleDelete }) => {
return (
<Grid width={16}>
<Grid.Column width={5} />
<Grid.Column width={6}>
<div>
{image... |
src/components/projects.js | elbecita/me | 'use strict';
import React from 'react';
const Projects = () => {
return (
<div className="card-deck">
<div className="card project-card">
<a href="apps/icebreaker" target="_blank"><span></span></a>
<div className="card-block">
<h4 className="card-title project-title font-bold">i... |
src/components/android/original/AndroidOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './AndroidOriginal.svg'
/** AndroidOriginal */
function AndroidOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'AndroidOriginal' + ' '... |
webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/index.js | theforeman/foreman_ansible | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { useQuery } from '@apollo/client';
import variableOverrides from '../../../../graphql/queries/hostVariableOverrides.gql';
import AnsibleVariableOverridesTable from './AnsibleVariableOverri... |
client-react/src/containers/LoginSuccess/LoginSuccess.js | diman84/Welthperk | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as authActions from 'redux/modules/auth';
@connect(
state => ({ user: state.auth.user }),
authActions)
export default
class LoginSuccess extends Component {
static propTypes = {
user:... |
node_modules/react-router/es6/RouteContext.js | sharonjean/React-Netflix | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
examples/async/src/main.js | jbrodriguez/reactorx | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'reactorx'
import App from './components/app'
import Api from './lib/api'
import actions from './actions/reddit'
let initialState = {
selectedReddit: 'reactjs',
postsByReddit: {},
}
const api = new Api... |
src/www/js/components/view-row.js | training4developers/bootcamp_04112016 | import React from 'react';
export default props => <tr>
<td>{props.widget.name}</td>
<td>{props.widget.description}</td>
<td className='capitalize'>{props.widget.color}</td>
<td className='capitalize'>{props.widget.size}</td>
<td className='number'>{props.widget.quantity}</td>
<td>{props.widget.owner.name}</td>
... |
src/ButtonGroups.js | sansetty2510/bootStrap | import React from 'react';
import { Tabs, Tab, Nav, NavItem, ButtonGroup, Button} from 'react-bootstrap';
import NPort from './NPort';
import NCen from './NCen';
const cssCls = {
color: '#fff',
backgroundColor: '#337ab7',
borderColor: '#2e6da4'
}
export default class ButtonGroups extends React.Com... |
docs/src/pages/examples/BlankEditorPage.js | gocreating/redux-draft | import React, { Component } from 'react';
import { reduxDraft } from '../../../../lib';
import PageLayout from '../../utils/PageLayout';
import Preview from '../../editors/utils/Preview';
import Raw from '../../editors/utils/Raw';
import BlankEditor from '../../editors/BlankEditor/BlankEditor';
import draftConfig from ... |
src/Alert.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, bsStyles, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
import { State } from './utils/StyleConfig';
const propTypes = {
onDismiss: React.PropTypes.func,
closeLabel: React.PropTypes.string,
};
const defaultPr... |
src/views/NoChapterSelected.js | learnfwd/lfa-printview-hotspot-editor | import React from 'react';
export default function NoChapterSelected() {
return <div>Please select a chapter</div>;
}
|
src/svg-icons/editor/text-fields.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTextFields = (props) => (
<SvgIcon {...props}>
<path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/>
</SvgIcon>
);
EditorTextFields = pure(EditorTextFields);
EditorTextFields.displayName = 'Edi... |
src/js/container/GridColorChooser.js | nirrattner/KnitPix | import React, { Component } from 'react';
import { ControlLabel, FormControl, FormGroup } from 'react-bootstrap';
class GridColorChooser extends Component {
render() {
const {
gridColor,
onGridColorChange,
stitchesHigh,
stitchesWide,
} = this.props;
if (!stitchesHigh && !stitchesW... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/copyright.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.... |
src/routes/content/index.js | dreambo8563/RSK | /**
* 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 ExcelTable from './../..... |
src/app/js/icons/Connection.js | AppSaloon/chrome-app_socket.io-tester | import React from 'react'
import TemplateIcon from './TemplateIcon'
const Connection = ({size, color, customStyle}) =>
<TemplateIcon
size={size}
color={color}
customStyle={customStyle}
viewBox="9 9 30 30"
>
<path
d="M31.848,27.984l-1.941,1.939c-1.382-1.391-3.... |
packages/site/components/examples/CodeSandbox.js | InventingWithMonster/redshift | import React from 'react';
import styled from 'styled-components';
import { MajorCentered } from '~/templates/global/grid';
import { cols } from '~/styles/vars';
import { IntersectionElement } from 'react-intersection';
const FrameContainer = styled(MajorCentered.withComponent('div'))`
margin-top: ${cols(2)};
marg... |
app/components/common/datePicker.js | robhogfeldt-fron15/ReactiveDogs | import React from 'react';
import DayPicker from 'react-day-picker';
import { isSameDay } from './DateUtils';
import '../../style/DayPicker.scss';
import '../../style/SelectableDayExample.scss';
class datePicker extends React.Component{
constructor(props) {
super(props);
this.handleDayClick = this.handleDay... |
server/render.js | hwclass/fe-as-microservices | import path from 'path'
import React from 'react'
// import ReactDOM from 'react-dom/server'
import { renderToString } from 'react-dom/server'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { flushChunkNames } from 'react-universal-component/server'
import flushChunks from 'webpack-fl... |
packages/flint.js/src/main.js | agrat193866/flint | // this file is only used by browser
import 'whatwg-fetch'
import React from 'react'
import rafBatch from './lib/reactRaf'
import runFlint from './flint'
import './shim/require'
if (process.env.production)
rafBatch.inject();
else {
// prevent breaking when writing $ styles in auto-save mode
window.$ = null
}
w... |
src/components/pages/language-list/list.js | translatium/translatium | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* global */
import React from 'react';
import PropTypes from 'prop-types';
import Divider from '@material-ui/cor... |
src/svg-icons/hardware/phone-android.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneAndroid = (props) => (
<SvgIcon {...props}>
<path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/>
</SvgIcon>
... |
examples/js/sort/manage-multi-sort-external-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
let price = 2100;
for (let i = 0; i < quantity; i++) {
const id = s... |
src/components/weight-results.js | djake1680/React-Weight-Calculator | import React, { Component } from 'react';
export default class WeightForm extends Component {
calcGoals = () => {
let weightToday = this.props.weightResults.currentWeight;
let goalsWeight = this.props.weightResults.goalWeight;
let startingWeight = this.props.weightResults.startWeight;
... |
src/main/webapp/static-wx/js/modules/index/index.js | zzhoouxin/react-demo | import React from 'react';
import {withRouter, Link} from 'react-router';
import iflux, {msg, mixins, connectToStore} from 'iflux';
import appStore from './store';
class Hello extends React.Component {
constructor(props) {
super(props);
this.state = {
btn: ""
}
}
com... |
src/pages/landingPage/section/paper/index.js | sunway-official/acm-admin | import React from 'react';
import { Component } from 'react';
import { Col, Grid, Row } from 'react-flexbox-grid';
import { images } from '../../../../theme';
import './style.css';
import { withRouter } from 'react-router';
class Paper extends Component {
constructor() {
super();
this.handleRegister = this.h... |
src/routes/Counter/components/Counter.js | Dankoda/react-unit-test | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
src/svg-icons/maps/store-mall-directory.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStoreMallDirectory = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
MapsStoreMallDirectory = pure(MapsStoreMallDirec... |
src/parser/monk/brewmaster/modules/features/StaggerPoolGraph.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StaggerFabricator from '../core/StaggerFabricator';
import StaggerGraph from './StaggerGraph';
/**
* A graph of sta... |
src/pages/contact.js | travi-org/matt.travi.org | import React from 'react';
import {Contact} from '@travi/matt.travi.org-components';
import SiteLayout from '../components/layout';
export default function WrappedContact() {
return (
<SiteLayout>
<Contact name="contact" action="/contact-results" />
</SiteLayout>
);
}
|
react/exercises/part_02/src/ContactForm.js | jsperts/workshop_unterlagen | import React from 'react';
import './ContactForm.css';
function ContactForm() {
return (
<form className="contact-form">
<div className="row">
<div className="col-xs-6">
<div className="form-group">
<label htmlFor="name">Name:</label>
<input type="text" className="... |
TestDemos/examples/LessonExamples/IIID-News/Main.js | AzenXu/ReactNativeTest | /**
* Created by Azen on 16/9/4.
*/
'use strict';
import React, { Component } from 'react';
import {
View,
Image,
Text,
TabBarIOS,
NavigatorIOS,
StyleSheet
} from 'react-native'
var Home = require('./Components/Home');
var Finder = require('./Components/Finder');
var Message = require('./Co... |
app/components/Footer/index.js | sarea-alkebaly/way-finding | /**
*
* Footer
*
*/
import React from 'react';
import './style.scss';
function Footer() {
return (
<div className="footer-container py-3 mt-3 links">
<div className="container my-3">
<div className="row d-flex justify-content-center">
<div className="px-2"><a href="https://www.facebook.... |
src/core/routes.js | kompot/rjanko | import React from 'react';
import Routr from 'routr';
import _ from 'lodash';
const debug = require('./logging/debug')(__filename);
import {Component} from './components/Component';
import Api from './api.js';
const routes = {
home: {
path: '/'
},
admin: {
path: '/admin'
},
adminLogin: {
path... |
src/components/Undo.js | bryaneaton13/discussion-comments | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/lib/snackbar';
class Undo extends Component {
render() {
let { open, message, undo, onUndo, onCloseSnackbar } = this.props;
return (
<Snackbar
open={open}
action="undo"
... |
src/routes/login/index.js | kutou/react-starter-kit | /**
* 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 Login from './Login';
e... |
app/assets/scripts/components/sources-list.js | openaq/openaq.org | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import config from '../config';
const Container = styled.ul`
padding: 0;
list-style: none;
> *:not(:last-child) {
margin-bottom: 0.5rem;
}
`;
export default function SourcesList({ sources, showReadme, ... |
src/svg-icons/action/change-history.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
src/index.js | blanck-space/redux-weather | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promiseMiddleware from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddlew... |
src/modules/search/components/SearchAlbumItem.js | paramsinghvc/harp | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class SearchAlbumItem extends Component {
render() {
let imgUrl = this.props.album.get('images').size > 0 ? this.props.album.get('images').first().get('url') : null;
return (
<Link to={`/album/${this... |
examples/NavigationPlayground/js/ModalStack.js | Steviey/win-react-navigation | /**
* @flow
*/
import React from 'react';
import {
Button,
ScrollView,
StyleSheet,
} from 'react-native';
import {
StackNavigator,
} from 'react-navigation';
import SampleText from './SampleText';
const MyNavScreen = ({ navigation, banner }) => (
<ScrollView>
<SampleText>{banner}</SampleText>
<But... |
src/docs/examples/TextInput/ExampleOptional.js | vonZ/rc-vvz | import React from 'react';
import TextInput from 'ps-react/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => {}}
... |
src/react/dropdown/DropDownContent.js | laundree/laundree | // @flow
import React from 'react'
export default class DropDownContent extends React.Component<{className?: string, children?: *}> {
render () {
const props = this.props
return (
<div className={'dropDownContent ' + (props.className ? props.className : '')}>{props.children}</div>
)
}
}
|
server/sonar-web/src/main/js/apps/account/organizations/OrganizationCard.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
src/svg-icons/device/storage.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
src/svg-icons/action/pregnant-woman.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPregnantWoman = (props) => (
<SvgIcon {...props}>
<path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/>
</SvgIcon>
);
... |
src/components/MainFooter/MainFooter.js | Bartekus/r3 | import React from 'react';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
import { links } from '../../shared/links';
import styles from './MainFooter.scss';
const footerLinks = [
links.aboutUs,
links.faq,
links.policies,
links.terms,
links.help,
];
export default class M... |
src/components/Header/index.js | caijinchun/hsweb-antd | import React from 'react';
import {Link} from 'react-router';
import {Icon, Menu} from 'antd';
import Logger from '../../utils/Logger';
import globalConfig from 'config';
import './index.less';
import {headerMenu} from 'menu';
const SubMenu = Menu.SubMenu; // 为了使用方便
const MenuItem = Menu.Item;
const MenuItemGroup = M... |
src/components/Form.js | wdavew/king-pong | import React, { Component } from 'react';
function Form(props) {
return (
<div className='row'>
<form onSubmit={props.handleSubmit} type='submit'>
<div className='col-xs-6'>
<input type='text' className='login-user' placeholder='Username' onChange={props.handleUserChange} />
</div... |
src/svg-icons/image/linked-camera.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
src/components/DateRangePicker/index.js | DataSF/open-data-explorer | import React from 'react'
import { OverlayTrigger, Popover, Form, Glyphicon } from 'react-bootstrap'
import DayPicker, { DateUtils, LocaleUtils } from 'react-day-picker'
import moment from 'moment'
import './@DateRangePicker.css'
import 'react-day-picker/lib/style.css'
const DateInput = ({date, target, onChange, class... |
test/src/index.js | d62remi/react-refresher | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/packages/@ncigdc/modern_components/QQPlot/QQPlotWrapper.js | NCI-GDC/portal-ui | import React from 'react';
import {
compose,
withState,
pure,
withProps,
} from 'recompose';
import withSize from '@ncigdc/utils/withSize';
import QQPlot from '@oncojs/qqplot';
export default compose(
withState('chart', 'setState', <span />),
withProps(({ data }) => ({ data })),
withSize({ refreshRate: 1... |
actor-apps/app-web/src/app/components/dialog/messages/MessageItem.react.js | amezcua/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import VisibilitySensor from 'react-visibility-sensor';
import DialogActionCreators from 'actions/DialogActionCreators';... |
js/components/loaders/ProgressBar.ios.js | soltrinox/MarketAuth.ReactNative |
import React from 'react';
import { ProgressViewIOS } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
export default class ProgressBarNB extends NativeBaseComponent {
render() {
const getColor = () => {
if (this.props.color) {
return this.p... |
src/packages/@ncigdc/theme/icons/SurvivalIcon.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
export default ({ style = {}, ...props }) => (
<svg
viewBox="0 0 2048 1536"
style={{
height: '0.8em',
fill: 'currentcolor',
flexBasis: 16,
...style,
}}
{...props}
>
<path d="m 1917.282,1250.0708 0,-435.00002 c 0,-14 -6.5,-23.83333 -19.... |
client/components/MissionPlanning.js | cadus/crewing | import React from 'react';
import _ from 'lodash';
import { Card, Alert, Spinner } from 'elemental';
import Mission from './Mission';
import * as http from '../lib/http';
export default React.createClass({
childContextTypes: {
missions: React.PropTypes.array,
volunteers: React.PropTypes.object,
a... |
src/components/PetitionResponseStatus/index.js | iris-dni/iris-frontend | import React from 'react';
import Markdown from 'react-markdown';
import settings from 'settings';
import styles from './petition-response-status.scss';
import Icon from 'components/Icon';
import Link from 'components/Link';
const PetitionResponseStatus = ({ title, text, closed }) => (
<article className={styles.roo... |
docs-ui/components/areaChart.stories.js | ifduyue/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import AreaChart from 'app/components/charts/areaChart';
// eslint-disable-next-line
storiesOf('Charts/AreaChart', module).add(
'default',
withInfo('Stacked AreaChart with previous period')(() =... |
example/examples/PolylineCreator.js | ali-alamine/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
src/screen/Oscilloscope/Oscilloscope.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import { connect } from 'react-redux';
import debounce from 'lodash/debounce';
import GraphPanelLayout from '../../components/GraphPanelLayout';
import Graph from './components/Graph';
import FFTGraph from './components/FFTGraph';
import FitPanel from './components/FitPanel';
i... |
src/svg-icons/hardware/laptop-chromebook.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... |
docs/app/Examples/elements/Segment/Variations/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const SegmentVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compon... |
Libraries/Components/TextInput/TextInput.js | imDangerous/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
app/components/ContainerPage/Graphs/index.js | tomhah/containerProject | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import moment from 'moment';
import Chart from 'chart.js';
import styles from './styles.css';
import selectedData from 'modules/container/computed/selectedData';
Chart.defaults.global.tooltips.mode = 'label';
Chart.defaults.global.ti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.