path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
html.js | inthegully/steveGillian | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes() {
return {
body: React.PropTypes.string,
}
},
render() {
const head = Helmet.rewind()
let css
... |
src/components/projects/content/Zune.js | tehfailsafe/portfolio | import React from 'react';
import Section from '../show/Section'
import CopySplitLeft from '../show/CopySplitLeft'
import CopySplitRight from '../show/CopySplitRight'
import Copy from '../show/Copy'
import ImageFull from '../show/ImageFull'
import VideoPlayer from '../show/VideoPlayer'
export default React.createClas... |
src/components/NavBar.js | anitrack/anitrack-web | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { Navbar, NavbarBrand, Collapse, Nav, NavItem, NavbarToggler } from 'reactstrap';
import Login from './Login';
class NavBar extends Component {
constructor(props){
super(props);
t... |
src/components/WithLoading/__tests__/WithLoading-test.js | retaxJS/retax-seed | import chai, { expect } from 'chai';
import mockery from 'mockery';
import dirtyChai from 'dirty-chai';
chai.use(dirtyChai);
import { shallow } from 'enzyme';
import React from 'react';
describe('WithLoading', () => {
beforeEach(() => {
mockery.enable({
warnOnReplace: false,
warnOnUnregistered: fal... |
src/examples/redux/separate-files/index.js | vinogradov/react-starter-kit | import React from 'react';
import ReactDOM from 'react-dom';
import {createStore, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import createSagaMiddleware from 'redux-saga';
import 'regenerator-runtime/runtime'; // eslint-disable-line import/no-extraneous-dependencies
import logger from 'redux-l... |
tests/routes/Counter/components/Counter.spec.js | Mikosko/EimPanel | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'routes/Counter/components/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter : 5,
...bindA... |
src/components/source/mediaSource/suggest/PendingSuggestionsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import Link from 'react-router/lib/Link';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { fetchSourceSuggestions, updateSourceSuggestion } fr... |
internals/templates/containers/App/index.js | VeloCloud/website-ui | /**
*
* 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... |
_inc/client/components/dash-section-header/test/component.js | igmoweb/jetpack | /**
* External dependencies
*/
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
/**
* Internal dependencies
*/
import { DashSectionHeader } from '../index';
describe( 'DashSectionHeader', () => {
let testProps = {
label: 'Site Stats',
settingsPath: '',
externalLi... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
docs/src/pages/components/snackbars/CustomizedSnackbars.js | lgollut/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Snackbar from '@material-ui/core/Snackbar';
import MuiAlert from '@material-ui/lab/Alert';
import { makeStyles } from '@material-ui/core/styles';
function Alert(props) {
return <MuiAlert elevation={6} variant="filled" {...props} />;
}
... |
ui/src/main/frontend/src/components/AsyncComponent.js | Dokuro-YH/alice-projects | import React, { Component } from 'react';
export default function asyncComponent(importComponent) {
class AsyncComponent extends Component {
constructor(props) {
super(props);
this.state = {
component: null
};
}
async componentDidMount() {
const { default: component } = ... |
frontend/src/Components/Loading/LoadingMessage.js | geogolem/Radarr | import React from 'react';
import styles from './LoadingMessage.css';
const messages = [
'Downloading more RAM',
'Now in Technicolor',
'Previously on Radarr...',
'Bleep Bloop.',
'Locating the required gigapixels to render...',
'Spinning up the hamster wheel...',
'At least you\'re not on hold',
'Hum som... |
platform/viewer/src/routes/CallbackPage.js | OHIF/Viewers | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import { CallbackComponent } from 'redux-oidc';
class CallbackPage extends Component {
static propTypes = {
userManager: PropTypes.object.isRequired,
history: PropTypes.object.isRequir... |
core/src/plugins/editor.codemirror/res/js/editor.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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 License, o... |
src/TextField/TextFieldUnderline.js | hai-cea/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
const propTypes = {
/**
* True if the parent `TextField` is disabled.
*/
disabled: PropTypes.bool,
/**
* Override the inline-styles of the underline when parent `TextField` is disabled.
*/
... |
js/src/modals/LoadContract/loadContract.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/server.js | sallen450/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
client/src/Logout.js | panter/mykonote | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import { ajax } from './ajax';
import AlertFlash from './AlertFlash';
import { scrollToTop } from './scroll';
import { ReactComponent as LogoutIcon } from './icons/material/logout-24px.svg';
class Logout extends Component {
render(... |
apps/shared/form/RadioList.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Control } from 'react-redux-form'
import StatefulError from './StatefulError'
import styles from './RadioList.scss'
const RadioList = props => {
const { id, label, name, options, model, messages, validators, onChange } = props
return (
<div... |
pootle/static/js/auth/components/AccountInactive.js | Avira/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
host/Chart.js | xeejp/chicken-race | import React from 'react'
import { connect } from 'react-redux'
import throttle from 'react-throttle-render'
import { addLog } from './actions'
import HighCharts from 'react-highcharts'
import RaisedButton from 'material-ui/RaisedButton'
function usersToData(name, users) {
const data = [[0, 0]]
Object.keys(users... |
client/src/components/shared/Info/RelationList.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {Badge} from 'reactstrap'
import {sortBy} from 'lodash'
import RecursiveInfo from './RecursiveInfo'
import {showRelationType, getRelationTitle, getColor} from '../utilities'
import type {RelatedEntity} from '../../../state'
type RelationListProps = {
data: Array<RelatedEnti... |
ngiiedu-client/src/components/courses/create/Step2Work.js | jinifor/branchtest | import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
class Step2Work extends React.Component {
constructor() {
super();
this.state = {
items: [],
selectedRows: []
};
this.onSelectionWork = this.o... |
client/components/__tests__/Team.spec.js | bjoberg/social-pulse | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Team } from '../Team/Team';
test('renders team members information correctly', t => {
const wrapper = shallow(
<Team />
);
t.is(wrapper.find('p').length, 7);
t.is(wrapper.find('h1').length, 1);
t.is(wrapper.fin... |
packages/material-ui-icons/src/CastForEducationSharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M23 3H1v5h2V5h18v14h-7v2h9V3zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm10 1.09v2L14.5 15l3.5-1.91v-2L14.... |
app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js | KnzkDev/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import AutosuggestEmoji from '../autosuggest_emoji';
describe('<AutosuggestEmoji />', () => {
it('renders native emoji', () => {
const emoji = {
native: '💙',
colons: ':foobar:',
};
const component = renderer.create(<Autos... |
docs/app/Examples/views/Statistic/Types/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Statistic'
description='A statistic ca... |
web/src/js/__tests__/components/FlowView/DetailsSpec.js | vhaupert/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import Details, { TimeStamp, ConnectionInfo, CertificateInfo, Timing } from '../../../components/FlowView/Details'
import { TFlow } from '../../ducks/tutils'
let tflow = TFlow()
describe('TimeStamp Component', () => {
it('should render correctly... |
resources/src/js/components/Finder/components/Header.js | aberon10/thermomusic.com | 'use strict';
// Dependencies
import React from 'react';
import PropTypes from 'prop-types';
const resetInput = (e) => {
e.target.value = '';
};
export default class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="panel-queuelist__header">
<di... |
public/src/components/Home.js | dolchi21/open-prices-web | import React from 'react';
import LoginForm from '../containers/LoginForm.js';
require('/css/Home.less');
var Home = React.createClass({
render : function render(){
return (
<div id="Home">
<div>
<h1>HOME</h1>
</div>
<div>
<a href="/login">login</a>
</div>
</div>
);
}
});
expo... |
src/index.js | C3-TKO/junkan | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './stores';
import { IntlProvider } from 'react-intl';
import App from './containers/App';
import messages from './intl/en';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import ... |
archimate-frontend/src/main/javascript/components/view/nodes/model_t/device.js | zhuj/mentha-web-archimate | import React from 'react'
import { BaseNodeLikeWidget } from '../_base'
export const TYPE='device';
export class DeviceWidget extends BaseNodeLikeWidget {
getClassName(node) { return 'a-node model_t device'; }
}
|
src/index.js | johnie/jobb.johnie.se | import React from 'react';
import ReactDOM from 'react-dom';
// Your top level component
import App from './App';
// Export your top level component as JSX (for static rendering)
export default App;
// Render your app
if (typeof document !== 'undefined') {
window.addEventListener('load', () => {
const ga... |
packages/reactor-tests/src/tests/createChild/InsertStart.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Panel, Button, Container } from '@extjs/ext-react';
export default class InsertStart extends Component {
state = {
showInserted: false
}
insert = () => {
this.setState({ showInserted: true })
}
render() {
const { showInse... |
web/app/admin/users.js | seanhess/serials | // @flow
// @flow
import React from 'react'
import {Link} from 'react-router'
import {User, Users, userApiURL} from '../model/user'
import {reloadHandler} from '../data/load'
import {makeUpdate} from '../data/update'
import {toDateString} from '../helpers'
import {clickable} from '../style'
import {sortBy, reverse} f... |
app/javascript/mastodon/features/niconico/components/connect_account.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
class ConnectAccount extends ImmutablePureComponent {
static propTypes = {
nico_url: PropTypes.string,
};
connectedLink(nico_url) {
return (
<a
href={nico_ur... |
src/app/components/Groups/Badge.js | sphinxominator/councils-feathers | import React from 'react'
import styled from 'styled-components'
const Badge = ({ name, color, id, onClick, active, showLetter }) =>
<Container
onClick={() => onClick && onClick(id)}
active={active}
color={color}
>
{showLetter &&
<Letter color={color} active={active}>
{name.charAt(0)}... |
packages/logos/src/ubuntu.js | yldio/joyent-portal | import React from 'react';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
colors = {},
...rest
}) => (
<svg
id="svg4300"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 42 42"
{...rest}
>
<path
fill={calcFill({ fill, disabled, ligh... |
src/routes/error/index.js | BankaiMikeH/HackWSU2017_AirRands | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 ErrorPage from './Err... |
lib/Loading/stories/Loading.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import Readme from '../readme.md';
import Loading from '../Loading';
import LoadingView from '../LoadingView';
import LoadingPane from './LoadingPane.story';
storiesOf('Loading', module)
.a... |
app/javascript/mastodon/features/blocks/index.js | dwango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/demos/building-a-geospatial-app/2-scatterplot-overlay/src/controls.js | uber-common/vis-academy | import React, { Component } from 'react';
import { mapStylePicker, layerControl } from './style';
export const HEXAGON_CONTROLS = {
showHexagon: {
displayName: 'Show Hexagon',
type: 'boolean',
value: true
},
radius: {
displayName: 'Hexagon Radius',
type: 'range',
value: 250,
step: 50,... |
ki1st-xtqb/src/main/webapp/front/app/containers/AddTodo.js | chosenki/chosenki-2016 | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
frontend/src/Components/Filter/Builder/MinimumAvailabilityFilterBuilderRowValue.js | geogolem/Radarr | import React from 'react';
import translate from 'Utilities/String/translate';
import FilterBuilderRowValue from './FilterBuilderRowValue';
const protocols = [
{ id: 'announced', name: translate('Announced') },
{ id: 'inCinemas', name: translate('InCinemas') },
{ id: 'released', name: translate('Released') }
];
... |
public/app/src/components/Panel.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
const Panel = props => {
const { header, children, footer } = props;
let headerElement,
footerElement;
if (header) {
if (typeof header === 'string') {
headerElement = (
<div className='panel-heading'>
<h3 className='pa... |
client/src/components/home/BurndownChartComponent.js | krzysztofkolek/github-bugtracker | 'use strict';
require('styles//BurndownChart.css');
import React from 'react';
import { connect } from "react-redux"
import {AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip} from 'Recharts';
const data = [
{name: '12-12-2016', uv: 4000, pv: 2400, amt: 2400},
{name: '13-12-2016', uv: 3000, pv: 1398... |
app/javascript/mastodon/features/ui/index.js | lynlynlynx/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
node_modules/antd/es/pagination/Pagination.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
examples/todos-flow/src/containers/AddTodo.js | jhwgnu/redux | // @flow
import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
import type { Dispatch } from '../types'
import type { Connector } from 'react-redux'
type Props = {
dispatch: Dispatch
};
const AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form o... |
src/components/Alexandria/components/PlayBar.js | dloa/react-alexandria-ux | import React from 'react';
export class PlayBarShadow extends React.Component {
render() {
return (
<div className="playbar-shadow">
<h2>
You need to pay the artist or pin the file/album in order to play this track !
</h2>
</div>
... |
packages/wix-style-react/src/ModalPreviewLayout/docs/examples/FullWidthContent.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
import ModalPreviewLayout from '../..';
import { Modal, Box, Button, TextButton, IconButton } from 'wix-style-react';
class FullWidthContentExample extends React.Component {
state = {
isModalOpened: false,
};
openModal() {
this.setState({ isModalOpened: ... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js | tholu/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
demo/components/Copy.js | solid/solid-auth-client | // @flow
import React from 'react'
import auth from '../../src/'
export default class Copy extends React.Component<Object, Object> {
componentWillMount() {
auth.trackSession((session) =>
this.setState({ webId: session && session.webId })
)
}
render() {
const { webId } = this.state
return ... |
examples/react-native-vanilla/index.ios.js | jribeiro/storybook | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// This is the default file as put down by RN
/* eslint-disable */
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
export default class ReactNativeVanilla extends Comp... |
app/scripts/app.js | transmute-industries/monarch-portal | import React from 'react'
import {render} from 'react-dom'
import {Router, hashHistory} from 'react-router'
import routes from './routes'
require('../styles/app.less')
if (process.env.NODE_ENV !== 'production') {
localStorage.debug = true
}
document.addEventListener('DOMContentLoaded', () => {
const root = docu... |
website/src/components/layout.js | explosion/thinc | import React from 'react'
import SEO from './seo'
import '../styles/base.sass'
const Layout = ({ title, description, className, children }) => (
<>
<SEO title={title} description={description} />
<main className={className}>{children}</main>
</>
)
export default Layout
|
src/views/grid.js | bulletcms/bullet-tracer | import React from 'react';
class Grid extends React.Component{
/**
* props:
* strict: boolean - no margins between columns
* array: boolean - should double grid at 4k
* vcenter: boolean - flexbox vertical center
* vstretch: boolean - flexbox vertical stretch
*/
render(){
const center... |
src/entypo/CreditCard.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--CreditCard';
let EntypoCreditCard = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18,3H2C0.899,3,0,3.9,0,5v10c0,1.1,0.899,2,2,2h16c1.1,0,2-0.9,2-2V5C20,3.9,19.1,3,18,3z M18,1... |
examples/real-world/containers/Root.js | jstrimpel/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
src/media/js/site/components/subnav.js | mozilla/marketplace-submission | import React from 'react';
export class Subnav extends React.Component {
render() {
return (
<nav className="page--subnav">
<ul>
{this.props.children}
</ul>
</nav>
);
}
}
|
src/components/background.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
import Helmet from 'react-helmet';
import Link from 'gatsby-link';
import styled from 'styled-components';
const Kai = styled.div`
&:before{
position: absolute;
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 0 100vh 100vh 0;
border-color: transparent t... |
static/src/components/islands/IslandShrooms.js | andribja/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
number: number,
paused: boolean
};
export default ({number, paused}: Props): React.Element => {
let className = 'island shrooms';
if (number) {
className += `-${number}`;
}
if (paused) {
className += ' paused';
... |
GitLab-LIGO-Display-Wall/src/DIsplay Wall/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | qwerjkl112/CMPEN482 | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
app/views/Splash.js | AndryYu/ReadingGank | import React from 'react';
import { Dimensions,Animated } from 'react-native';
import store from 'react-native-simple-store';
import { registerApp } from 'react-native-wechat';
import AV from 'leancloud-storage';
import NavigationUtil from '../utils/NavigationUtil';
const maxHeight = Dimensions.get('window').height;
c... |
frontend/src/components/JobActionEvaluate/JobActionEvaluate.js | Wintermute1/hashi-ui | import React from 'react'
import { connect } from 'react-redux'
import { EVALUATE_JOB, JOB_HIDE_DIALOG } from '../../sagas/event'
class JobActionEvaluate extends React.Component {
handleSubmit = () => {
this.props.dispatch({ type: JOB_HIDE_DIALOG })
this.props.dispatch({ type: EVALUATE_JOB, payload: this.pr... |
src/app/checkbox.js | calvinterpstra/FTCResQCalculatorWebApp | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const styles = {
block: {
maxWidth: 250,
},
checkbox: {
marginBottom: 16,
},
};
const CheckboxExampleSimple = () => (
<div style={styles.block}>
<Checkbox
label="test"
style={styles.checkbox}
/>
<Checkb... |
src/svg-icons/image/exposure.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposure = (props) => (
<SvgIcon {...props}>
<path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/>
</... |
src/components/app.js | b-pmcg/ptravels | import Leaflet from 'leaflet';
import React from 'react';
import PtravelsMap from './ptravels-map';
/*Main react app*/
Leaflet.Icon.Default.imagePath =
'//cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/images/'
const App = () => (
<div>
<PtravelsMap />
</div>
)
export default App
|
src/svg-icons/action/history.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/parser/demonhunter/havoc/modules/spells/azeritetraits/ChaoticTransformation.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import Events from 'parser/core/Events';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellUsable ... |
information/blendle-frontend-react-source/app/modules/coupon/components/CouponAuth.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'instances/i18n';
import FacebookConnectContainer from 'components/facebookConnect/FacebookConnectContainer';
import SignUpContainer from 'components/signUp/SignUpContainer';
import LoginContainer from 'components/login/LoginContai... |
frontend/App.js | honggzb/practise_node | import React from 'react';
import Header from './component/Header';
import Footer from './component/Footer';
import TopicList from './component/TopicList';
export default class App extends React.Component {
render() {
return (
<div className="container">
<Header />
{this.props.children ? th... |
src/containers/single_collection_product.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
import Product from '../components/product';
class SingleCollectionProduct extends Component {
updateProduct = (product) => {
if (this.props.collectionProducts) {
// never modify this.props d... |
blueocean-material-icons/src/js/components/svg-icons/image/crop-landscape.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape.displayName = 'ImageCropLandscape';
ImageCropLan... |
src/auth/components/AddAccount.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* 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
* License, or (at your o... |
example/src/views/modal/components/info/info.js | TransferGo/react-subrouter | import React from 'react';
export default class extends React.Component{
render() {
return (
<div className="content">
Info Content
</div>
);
}
}
|
src/svg-icons/action/settings-power.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
app/packs/src/components/collection_management/MySharedCollections.js | ComPlat/chemotion_ELN | import React from 'react';
import Tree from 'react-ui-tree';
import {Button, ButtonGroup, FormControl, Modal} from 'react-bootstrap';
import ManagingModalSharing from '../managing_actions/ManagingModalSharing';
import CollectionStore from '../stores/CollectionStore';
import CollectionActions from '../actions/Collection... |
test/connect/connectWpQuery.js | outlandishideas/kasia | /* global jest:false, expect:false */
jest.disableAutomock()
import React from 'react'
import merge from 'lodash.merge'
import { mount } from 'enzyme'
import queryCounter from '../../src/util/queryCounter'
import { wrapQueryFn } from '../../src/connect'
import { ActionTypes } from '../../src/constants'
import '../_... |
react-life/src/App.js | CaMnter/front-end-life | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
src/components/EditSections/EditContactInfo/EditContactInfo.js | folio-org/ui-users | import React from 'react';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import { Field } from 'react-final-form';
import {
Select,
TextField,
Row,
Col,
Accordion,
Headline,
} from '@folio/stripes/components';
import { AddressEditList } from '@folio/stri... |
src/components/services/content/Services.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer, PropTypes as MobxPropTypes } from 'mobx-react';
import { Link } from 'react-router';
import { defineMessages, intlShape } from 'react-intl';
import Webview from './ServiceWebview';
import Appear from '../../ui/effects/Appe... |
src/icons/PhotoLibraryIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhotoLibraryIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 32V8c0-2.21-1.79-4-4-4H16c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4zm-22-8l4.0... |
src/__tests__/OffcanvasBody.spec.js | reactstrap/reactstrap | import React from 'react';
import { shallow } from 'enzyme';
import { OffcanvasBody } from '../';
describe('OffcanvasBody', () => {
it('should render with "offcanvas-body" class', () => {
const wrapper = shallow(<OffcanvasBody>Yo!</OffcanvasBody>);
expect(wrapper.text()).toBe('Yo!');
expect(wrapper.hasC... |
src/ui/site/AppLayout.js | philiplopez/webappjourney | import React from 'react'
import Link from 'react-router/lib/Link'
import Header from "./Header"
import Footer from "./Footer"
export default class AppLayout extends React.Component {
render() {
return (
<div>
<Header />
<nav>
<ul>
<li>
<Link to="/">Home... |
packages/material-ui-icons/src/Shuffle.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z" /></g>
, 'Shuffle');
|
src/components/common/svg-icons/content/drafts.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
src/components/Search/Search.js | nikhilfusion/substitutionApp | import React, { Component } from 'react';
import SearchResultList from './SeachResultList';
import './Search.css';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
randomState: '',
};
}
render() {
return (
<div className="searchPageContainer">
... |
src/screens/InicioScreen.js | Grilados/site | import React, { Component } from 'react';
import Header from '../components/Header';
import { MenuSimples } from '../components/Menus';
import { CardNoticias } from '../components/Cards';
import { Alert } from '../components/Alert';
import './css/InicioScreen.css';
const MENU_HEADER = [
'Início',
'Vídeos',
'Cont... |
client/src/components/Navbar/index.js | qasim/what-class-is-this | import React from 'react';
import githubLogo from './../../static/images/github-logo.svg';
import './style.css';
const Navbar = () => (
<div className="app__navbar">
<div className="navbar__container">
<div className="container__name">
<a href="/" title="What Class Is This??">logo</a>
</div>
... |
packages/mcs-lite-ui/src/StatusLight/StatusLight.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
export const Svg = styled.svg`
width: 12px;
> * {
fill: ${props => props.theme.color[props.color]};
transition: fill cubic-bezier(0.47, 0, 0.75, 0.72) 0.3s;
}
`;
const StatusLight = props => (
<Svg ... |
client/modules/App/__tests__/App.spec.js | eantler/simmeme-client | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { App } from '../App';
import styles from '../App.css';
import { intlShape } from 'react-intl';
import { intl } from '../../../util/react-intl-test-helper';
import { toggleAddPost } from '../App... |
docs/app/Examples/collections/Message/Variations/MessageExampleFloating.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleFloating = () => (
<Message floating>
Way to go!
</Message>
)
export default MessageExampleFloating
|
Albums/src/components/AlbumList.js | deepmehtait/React-Native-Albums | import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import axios from 'axios';
import AlbumDetail from './AlbumDetail';
class AlbumList extends Component {
state = { albums: [] };
componentWillMount() {
console.log('inside componentWillMount');
axios.get('https://rallycod... |
src/components/const/selectableList.js | motion123/mbookmakerUI | /**
* Created by tomino on 17/03/06.
*/
import React from 'react';
import {List, ListItem,makeSelectable} from 'material-ui/List';
let Selectable = makeSelectable(List);
export default class SelectableList extends React.Component {
render() {
const {
onSelect,
selectIndex,
} = this... |
src/svg-icons/action/print.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPrint = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/>
</... |
docs/src/examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleShorthandElement = () => (
<Checkbox label={<label>Make my profile visible</label>} />
)
export default CheckboxExampleShorthandElement
|
client/util/requireAuth.js | rystecher/senior-design | import React from 'react';
import { connect } from 'react-redux';
export default function (ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
this.context.router.push('/');
}
}
... |
src/index.js | Lukkub/Redux-ShopCartApp | import React from 'react';
import App from './containers/App';
import { combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { createStore, renderDevTools } from './utils/devTools';
import * as reducers from './reducers';
const reducer = combineReducers(reducers);
const store = createS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.