path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/LayoutViewer.js | rickbeerendonk/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.
*
* @flow
*/
import React from 'react';
import styles from './LayoutViewer.css';
import type {Layout} from './types';
type Props ... |
src/svg-icons/av/movie.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie = pure(AvMovie);
Av... |
src/IconSprite/index.js | devsy-io/devsy-components | import React from 'react'
const tryRequireSvg = () => {
try {
return require('./sprite.svg')
} catch (e) {
console.warn( // eslint-disable-line
'sprite: sprite.svg not found. Is it properly generated?'
)
return ''
}
}
export default function Icon () {
const sprite = tryRequireSvg()
.... |
src/app/settings/Provider.js | mailvelope/mailvelope | /**
* Copyright (C) 2012-2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {port, getAppDataSlot} from '../app';
import {matchPattern2RegExString} from '../../lib/util'... |
src/App.js | atyenoria/chat-server-client-mixed | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
frontend/src/app/events/problems/index.js | the-invoice/nab | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Route, IndexRoute } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createSelector } from 'reselect';
import urls from 'app/urls';
import { View } from 'ui/layout';
i... |
src/svg-icons/av/fiber-dvr.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
app/entry.js | lisakuli/la-vie | import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import Main from './main';
import { Dashboard } from './dashboard';
import { Recipes, ListRecipes, EditRecipe, ViewRecipe ... |
ajax/libs/react-select/1.1.0/react-select.es.js | jdh8/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
clas... |
lib/MultiSelection/MultiDownshift.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
import findIndex from 'lodash/findIndex';
import isEqual from 'lodash/isEqual';
import Downshift from 'downshift';
class MultiDownshift extends React.Component {
static propTypes = {
actionHelpers: PropTypes.func,
children: PropTypes.fun... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | JeeLiu/actor-platform | import _ from 'lodash';
import React from 'react';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import InviteUserActions from 'actions/InviteUserActions';
import ContactStore from 'stores/ContactStore';
import InviteUserStore from 'stores/InviteUserStore';
im... |
react/test/components/BranchTileSpec.js | nm357/v | import React from 'react'
import { Link, BrowserRouter as Router } from 'react-router-dom'
import BranchTile from '../../src/components/BranchTile'
describe('BranchTile', () => {
let wrapper
let branch = {
id: 1,
name: 'test branch',
repository_id: 1,
user_id: 1,
branch_goal: 'branch ... |
app/components/Home.js | paladinze/testSemantic | 'use strict'
import React from 'react';
import {Link} from 'react-router';
import {Container, Button, Form, Input} from 'semantic-ui-react';
class Home extends React.Component{
render() {
return (
<div>
<h1>Github Home</h1>
<p>Some fancy motto</p>
<Link to='/playerOne'>
... |
src/PageHeader.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
app/components/Field/__tests__/index-test.js | nelsonomuto/budgeting-sample-app-webpack2 | import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import { Field } from '../';
it('renders correctly', () => {
const testFormData = {
fields: {
testFieldName: {
value: 1234,
onBlur: () => {},
},
},
};
const tree = rendere... |
src/index.js | Space-Cadets/Titania-v2 | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './static/index.css'
import './static/App.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
pathfinder/vtables/applicationdataqualitycompleteness/src/Report.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import CommonQueries from './common/CommonGraphQLQueries';
import DataIndex from './common/DataIndex';
import Utilities from './common/Utilities';
import RuleSet from './RuleSet';
import Table from './Table';
const RULE_OPTIONS = Utilities.createOptionsObj(
RuleSet.singleRule... |
src/nuggets/node/client/src/views/CategoryPage/CategoryPage.js | civiclee/Hack4Cause2017 | import React from 'react';
import axios from 'axios';
import Promise from 'bluebird';
import _ from 'lodash';
import Layout from '../Shared/Layout';
import Graph from '../Shared/Graph';
import ButtonSelectorMenu from '../Shared/ButtonSelectorMenu';
const labelMappings = {
unemployment: 'Regional Unemployment',
... |
src/components/Work.js | fgriberi/fgriberi-resume | import React from 'react';
import WorkItem from './WorkItem';
/**
* Handles work experiencie component
*/
const Work = props => {
/**
* Gets work experiencie items
*/
const getWorkExperience = () => {
const workItems = [];
props.workData.forEach((val, index) => {
workItems.push(<WorkItem key... |
src/ReactBoilerplate/Scripts/containers/About/About.js | pauldotknopf/react-aspnet-boilerplate | import React, { Component } from 'react';
import Helmet from 'react-helmet';
export default class About extends Component {
render() {
return (
<div>
<h1>About us...</h1>
<Helmet title="About us" />
</div>
);
}
}
|
frontend/src/components/options/root.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import { connect } from 'react-redux';
import DropdownToggle from 'misago/components/dropdown-toggle'; // jshint ignore:line
import { SideNav, CompactNav } from 'misago/components/options/navs'; // jshint ignore:line
import ChangeForumOptions from 'misago/components/opti... |
src/docs/examples/TextInput/ExamplePassword.js | MallikarjunaMG/react-components | import React from 'react'
import TextInput from 'comps-root/TextInput';
/**
* Password Textinput Field - Required
*/
export default function ExamplePassword() {
return <TextInput htmlId='example-password' label='Password' name='password'
placeholder='Enter Password' required type='password'
error='Passowrd... |
src/components/navigation/NavBarAdmin.js | belaczek/BeerCheese-client | import React, { Component } from 'react';
import {
Navbar,
NavbarToggler,
Collapse,
Nav,
NavItem,
NavLink,
NavbarBrand
} from 'reactstrap';
import { Link } from 'react-router';
import localizedTexts from '../../text_localization/LocalizedStrings';
import { connect } from 'react-redux';
import { logout } f... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | chenbk85/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/index.js | yoo2001818/redux-form | import React from 'react';
import {connect} from 'react-redux';
import createAll from './createAll';
export const {
actionTypes,
blur,
change,
connectReduxForm,
destroy,
focus,
reducer,
reduxForm,
initialize,
initializeWithKey,
reset,
startAsyncValidation,
startSubmit,
stopAsyncValidation,
... |
src/parser/druid/balance/modules/features/SunfireUptime.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { ... |
app/components/SVGWithMargin/index.js | thuy616/react-d3-charts | import React from 'react';
import getContentContainerStyle from './getContentContainerStyle';
import getSVGDimensions from './getSVGDimensions';
type Props = {
children: React$Element | React$Element[],
contentContainerBackgroundRectClassName: ?string,
contentContainerGroupClassName: ?string,
height: number,
... |
fixtures/fiber-debugger/src/Fibers.js | Simek/react | import React from 'react';
import {Motion, spring} from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}... |
src/components/dashboard/nav.js | jmdelcarmen/gartist | import React from 'react';
import { Link } from 'react-router';
const Nav = ({
logout
}) => (
<div className="main-nav">
<Link
to="/dashboard"
className="btn btn-primary">Dashboard</Link>
<Link
to="/setlists/create"
className="btn btn-success">Add Setlist</Link>
<button
on... |
src/AppBar/AppBar.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalizeFirstLetter } from '../utils/helpers';
import Paper from '../Paper';
export const styles = (theme: Object) => ({
root: {
display: 'flex... |
src/views/Oscillator/AlgorithmSwitch.js | looshi/wavetable-synth-2 | /*
AlgorithmSwitch
Switches between multiply, divide, minus, and plus.
*/
import React from 'react'
import {connect} from 'react-redux'
import Actions from '../../data/Actions.js'
class AlgorithmSwitch extends React.Component {
onAlgorithmChanged (event) {
const {id, dispatch} = this.props
const algo = even... |
src/index.js | muhanad40/Todo-Test | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/DevTools.js | TobiasBales/PlayuavOSDConfigurator | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIsVisible={fal... |
platform/viewer/src/googleCloud/DicomUploader.js | OHIF/Viewers | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { formatFileSize } from './utils/helpers';
import CancellationToken from './utils/CancellationToken';
import dicomUploader from './api/DicomUploadService';
import './DicomUploader.css';
export default class DicomUploader extends Compo... |
src/parser/priest/discipline/modules/features/PurgeTheWicked.js | sMteX/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer... |
src/svg-icons/places/business-center.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBusinessCenter = (props) => (
<SvgIcon {...props}>
<path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1... |
source/shared/containers/devTools/index.js | gacosta89/knightsTour | 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... |
client/components/Signup/SignupComponent.js | lvarayut/relay-fullstack | // @flow
import React from 'react';
import { Grid, Cell, Textfield, Button } from 'react-mdl';
import Page from '../Page/PageComponent';
export default class Signup extends React.Component {
render() {
return (
<Page heading='Signup'>
<div style={{ width: '70%', margin: 'auto' }}>
<Grid>
... |
frontend/src/setupTests.js | kilip/demo | import 'rxjs';
import React from 'react';
import configureMockStore from 'redux-mock-store';
import { createEpicMiddleware } from 'redux-observable';
import { LOGIN_START } from './components/auth/actions';
import Dashboard from './views/Dashboard';
import rootEpic from './epics';
import { Route, Router, Provider } fro... |
src/svg-icons/editor/pie-chart.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
src/js/__tests__/default-props-test.js | HewlettPackard/grommet | import React from 'react';
import { render } from '@testing-library/react';
import styled from 'styled-components';
import 'jest-styled-components';
import { grommet, defaultProps, extendDefaultTheme, Box, Grommet } from '..';
const CustomBox = styled.div`
background: ${(props) => props.theme.global.colors.brand};... |
js/components/Pages/NewAccount.js | furgat/sabertoot | 'use strict';
import React from 'react';
import ReactTimeout from 'react-timeout'
import AddAccount from '../NewAccount/AddAccount';
import AddDomain from '../NewAccount/AddDomain';
export default class NewAccount extends React.Component {
render() {
return (
<div className="new-account">
{this.pr... |
app_old/containers/LocaleToggle/index.js | daicas/react-boilerplate-examp | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
node_modules/semantic-ui-react/src/elements/Image/Image.js | SuperUncleCat/ServerMonitoring | import _ from 'lodash'
import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useValueAndKey,
useVerticalAlignProp,
} f... |
src/components/common/CardSection.js | phelipemaia/marvelous-app | import React from 'react';
import { View, StyleSheet } from 'react-native';
export default class CardSection extends React.Component {
render() {
const { containerStyle } = styles;
return (
<View style={containerStyle}>
{this.props.children}
</View>
);
}
}
const styles = StyleShee... |
src/components/ReactRouter.js | nchathu2014/reactApp | import React from 'react';
import ReactDOM from 'react-dom';
import {Router,Route,Link,browserHistory,IndexRoute} from 'react-router';
export default class ReactRouter extends React.Component{
render(){
return(
<div>
<ul>
<Link>Home</Link>
<li>About</li>
<li>Contact</li>
</ul>
{this.p... |
actor-apps/app-web/src/app/components/common/Fold.React.js | sc4599/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
react-ui/src/crafts/react/Cellular Automaton/CellGrid.react.js | simonlimon/varsncrafts | import React from 'react';
import Cell from './Cell.react';
class CellGrid extends React.Component {
constructor(props) {
super(props);
this.state = {
cols: 0,
rows: 0,
cellMatrix: []
};
}
updateDimensions = () => {
let cellMatrix = [];
const cols = window.innerWidth / this... |
definitions/npm/react-joyride_v1.x.x/flow_v0.16.x-v0.52.x/react-joyride_v1.x.x.js | gaborsar/flow-typed | import React from 'react';
type ReactJoyride$LocaleOption = {
back?: string,
close?: string,
last?: string,
next?: string,
skip?: string,
}
type ReactJoyride$DefaultProps = {
debug: bool,
keyboardNavigation: bool,
locale: ReactJoyride$LocaleOption,
resizeDebounce: bool,
resizeDebounceDelay: number... |
src/components/Nav/Nav.js | isaacrowntree/hyde | import React, { Component } from 'react';
import { LOGOUT, Store } from './../../Redux';
class Nav extends Component {
constructor(props) {
super(props);
this.logout = this.logout.bind(this);
}
logout(e) {
Store.dispatch({type: LOGOUT});
e.preventDefault();
}
render() {
return (
... |
tosort/2016/jspm/lib_react_005_x.js | Offirmo/html_tests | import React from 'react';
import ReactDOM from 'react-dom';
// https://facebook.github.io/react/docs/reusable-components.html
class CoolComponent extends React.Component {
constructor (props) {
console.info('~~ constructor', arguments)
super(props)
// define initial state
this.state = {
click_count: 0
... |
js/components/svg/Value.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import {compose} from 'recompose';
const Value = compose(
)(({value,x,y})=>
value && !value.statusCode.value
? <text x={x} y={y} fontSize="20pt">{value.value ? Math.round((value.value.value + 0.00001) * 100) / 100 : null}</text>
: <text x={... |
example/examples/DisplayLatLng.js | jrichardlai/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/staticPages/Splash.js | michael-eightnine/hometown-advantage-2 | import React from 'react'
import { Link } from 'react-router-dom'
import { CSSTransitionGroup } from 'react-transition-group'
import identity from './../svg/identity.svg'
const Splash = () => {
return (
<CSSTransitionGroup
transitionName="splash-fade"
transitionAppear={true}
transitionAppearTimeout={250... |
app/javascript/flavours/glitch/features/generic_not_found/index.js | im-in-space/mastodon | import React from 'react';
import Column from 'flavours/glitch/features/ui/components/column';
import MissingIndicator from 'flavours/glitch/components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator fullPage />
</Column>
);
export default GenericNotFound;
|
src/js/Components/textInput.js | 7sleepwalker/addicted-to-mnt | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
class Input extends Component {
constructor(props) {
super(props);
this.state = {
value: ' ',
}
}
render() {
return (
<div className="input__box">
<input type="text" id={ this.props.inputID } o... |
src/svg-icons/av/pause-circle-filled.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleFilled = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/>
</SvgIcon>
);
AvPauseCircleFilled = pure(AvP... |
src/components/google_map.js | psongpin/Weather-App | import React, { Component } from 'react';
export default class GoogleMap extends Component {
componentDidMount() {
new google.maps.Map(this.refs.map, {
zoom: 12,
center: {
lat: this.props.lat,
lng: this.props.lon
}
});
}
render() {
return <div ref="map" />
}
};
|
src/containers/recipes/Listing/ListingContainer.js | Jenny-L/lumohacks2017 | /**
* List of Recipes for a Meal Container
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// Actions
import * as RecipeActions from '@redux/recipes/actions';
... |
githubprofileviewer/index.ios.js | pritamstyz4ever/github-profile-viewer | import React, { Component } from 'react';
import { AppRegistry, NavigatorIOS, StyleSheet } from 'react-native';
import Main from './app/components/Main';
export default class App extends Component {
render() {
return (
<NavigatorIOS style={styles.container}
initialRoute = {{
title : "gith... |
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | jevakallio/react-native | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the popular libra... |
example/examples/AnimatedMarkers.js | jrichardlai/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width / screen.height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
app/javascript/mastodon/features/introduction/index.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
src/components/jobtable.js | dietervanhoof/transcoder-frontend | import React from 'react';
import JobRow from './jobrow';
class JobTable extends React.Component {
constructor(props) {
super(props);
this.props = props;
}
render() {
return <table className="striped">
<thead>
<tr>
<th width="40%">File</th>
... |
src/packages/@ncigdc/components/Links/InternalLinkWithContext.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import _ from 'lodash';
import LocationSubscriber from '@ncigdc/components/LocationSubscriber';
import { mergeQuery as mq } from '@ncigdc/utils/filters';
import { IRawQuery } from '@ncigdc/utils/uri/types';
import InternalLink from './InternalLink';
import { TLinkProps } from... |
react-flux-mui/js/material-ui/src/svg-icons/av/fiber-manual-record.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberManualRecord = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="8"/>
</SvgIcon>
);
AvFiberManualRecord = pure(AvFiberManualRecord);
AvFiberManualRecord.displayName = 'AvFiberManualRecord';
... |
ui/src/containers/WidgetVisualiseCreator/index.js | LearningLocker/learninglocker | import { Map, fromJS } from 'immutable';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Portal from 'react-portal';
import { withProps, compose } from 'recompose';
import { createDefaultTitleWithIcon, createDefaultTitle } from 'ui/utils/defaultTitles';
import ModelAutoComplete from... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactUtilityTypes/codemod.js | claudiopro/flow | /**
* @format
*/
'use strict';
// All the event names that we need to add <> to.
const SYNTHETIC_EVENT_NAMES = new Set([
'SyntheticEvent',
'SyntheticAnimationEvent',
'SyntheticClipboardEvent',
'SyntheticCompositionEvent',
'SyntheticInputEvent',
'SyntheticUIEvent',
'SyntheticFocusEvent',
'SyntheticKe... |
app/src/Frontend/modules/weui/pages/cell/index.js | ptphp/ptphp | /**
* Created by jf on 15/12/10.
*/
"use strict";
import React from 'react';
import { ButtonArea,
Button,
Cells,
CellsTitle,
CellsTips,
Cell,
CellHeader,
CellBody,
CellFooter,
Form,
FormCell,
Icon,
Input,
Label,
TextArea,
Switch,
Radio,
Checkbox,
... |
src/svg-icons/notification/no-encryption.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
webpack/scenes/ModuleStreams/ModuleStreamsTable.js | cfouant/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from '../../move_to_foreman/components/common/table';
import TableSchema from './ModuleStreamsTableSchema';
import { LoadingState } from '../../move_to_pf/LoadingState';
const ModuleStreamsTable = ({ moduleStreams, onPaginationChange }) =>... |
springboot/GReact/src/main/resources/static/app/routes/forms/components/bootstrap-validation/ProductForm.js | ezsimple/java | import React from 'react'
import BootstrapValidator from '../../../../components/forms/validation/BootstrapValidator'
const validatorOptions = {
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
price: ... |
app/javascript/mastodon/features/compose/containers/warning_container.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\S+)/i;
const mapStateToProps = sta... |
fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/a/a.js | Talend/ui | import React from 'react';
console.log('THIS IS A!');
|
src/components/AssignmentList.js | dpastoor/assignment-manager | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import {Card, List, ListItem} from 'material-ui';
import {Assignment} from './Assignment';
import moment from 'moment';
export default class AssignmentList extends React.Component {
constructor(props) {
super(props... |
SettingsView.js | tugberka/tubi-weather | import React, { Component } from 'react';
import { AppRegistry, Text, View, AsyncStorage } from 'react-native';
import SettingsList from 'react-native-settings-list';
import SettingsStorage from './SettingsStorage'
import EnterCityModal from './EnterCityModal'
var SettingsView = React.createClass ({
statics: {
... |
src/components/RingtonePlayer.js | enzeberg/nap-alarm | import React, { Component } from 'react';
class RingtonePlayer extends Component {
constructor(props) {
super(props);
this.state = {
src: './ringtone/Tassel-Cymophane.mp3', // the path related to "public/index.html"
shouldPlay: props.shouldPlay
};
}
componentWillReceiveProps(n... |
classic/src/scenes/traypopout/src/Scenes/RecentScene/RecentListItem.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { ListItem, ListItemText } from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
import PropTypes from 'prop-types'
import { accountStore } from 'stores/account'
import classNames from 'classnames'
import... |
dev/src/react-dat-gui/components/Picker/index.js | rohan-deshpande/react-dat-gui | import { ColorWrap, Hue, Saturation } from 'react-color/lib/components/common';
import Fields from './Fields';
import Pointer from './Pointer';
import PointerCircle from './PointerCircle';
import PropTypes from 'prop-types';
import React from 'react';
const Picker = ({
onChange,
hsl,
hsv,
hex,
className = '... |
src/components/DropdownV2/DropdownV2.js | jzhang300/carbon-components-react | import cx from 'classnames';
import Downshift from 'downshift';
import PropTypes from 'prop-types';
import React from 'react';
import ListBox, { PropTypes as ListBoxPropTypes } from '../ListBox';
export default class DropdownV2 extends React.Component {
static propTypes = {
/**
* Disable the control
*/... |
app/frontend/javascripts/containers/emoji-new.js | czyzykowski/chatroom | import {keys, map} from 'ramda';
import React from 'react';
import ReactDOM from 'react-dom';
import {connect} from 'react-redux';
import cx from 'classnames';
import * as Actions from '../actions';
class EmojiNew extends React.Component {
handleSubmit(event) {
event.preventDefault();
const {dispatch} = thi... |
packages/cf-component-list/src/ListItem.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = () => ({});
const ListItem = ({ children, className }) => (
<li className={className}>{children}</li>
);
ListItem.propTypes = {
className: PropTypes.string,
children: PropTypes.no... |
front-end/src/component/skills/mongodb_icon.js | axelmichael11/website | import React from 'react'
export default React.createClass({
render(){
return(
<svg viewBox="0 0 128 128" className="skills-icons">
<path fillRule="evenodd" clipRule="evenodd" fill="#4FAA41" d="M82.803 34.23c-2.604-8.108-6.781-15.284-12.667-21.459-1.488-1.562-3.142-2.993-4.18-4.936-.656-1.23-1.281-2... |
src/components/_Common/Footer.js | hoppispace/hoppi-space-web-app | import React from 'react';
import {URL_FACEBOOK, URL_INSTAGRAM, URL_TWITTER} from "../../constants";
const Footer = () => {
return (
<footer id="footer">
<div className="container-fluid">
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-4 col... |
src/routes/Home/components/AuthView/SignUpView.js | sanalonyedi/egitimbudur-web-app | import React from 'react';
import axios from 'axios';
import * as Http from 'utils/http.helper'
class SignUpView extends React.Component {
constructor() {
super();
this.state = {
email: "",
password: "",
hasError: false,
errorMessage: ""
}
... |
components/Searchbar.ios.js | joeyrlee/snacktime | import React, { Component } from 'react';
import { Text, View, Image, TextInput, Alert } from 'react-native';
import styles from '../styles.ios.js';
import helpers from '../helpers/helpers.js';
import FoodpairResults from './FoodpairResults.ios.js';
export default class Searchbar extends Component {
constructor(prop... |
src/svg-icons/image/nature.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... |
src/index.js | zhangxintong/movieDemo | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
client/views/admin/settings/SectionSkeleton.js | VoiSmart/Rocket.Chat | import { Accordion, Box, FieldGroup, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import Setting from './Setting';
function SectionSkeleton() {
return (
<Accordion.Item noncollapsible title={<Skeleton />}>
<Box is='p' color='hint' fontScale='p1'>
<Skeleton />
</Box>
<FieldGroup... |
client/pages/SearchIndex.js | freakimkaefig/melodicsimilarity | import React from 'react';
import DocumentTitle from 'react-document-title';
import LoadingOverlay from '../components/LoadingOverlay';
import { APP_NAME } from '../constants/AppConstants';
import { FIELDS } from '../constants/SolrConstants';
import { MODES } from '../constants/MelodyConstants';
import SearchService fr... |
src/containers/Home/Home.js | kievechua/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
src/svg-icons/action/info.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfo = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
</SvgIcon>
);
ActionInfo = pure(ActionInfo);
ActionI... |
src/index.js | crazypulka/frontend | import React from 'react';
import Root from './root';
import { render } from 'react-dom';
import store, { history } from './store';
import registerServiceWorker from './registerServiceWorker';
const target = document.getElementById('root');
console.info(Root);
render(<Root store={store} history={history}/>, target);... |
src/containers/Root.js | vcostin/simon-game | import React from 'react';
import SimonDevice from '../components/SimonDevice';
const Root = () => (
<div>
<SimonDevice />
</div>
);
export default Root;
|
src/components/video_list_item.js | lCavazzani/ReactReduxStarter | import React from 'react'
const VideoListItem = ({video, onVideoSelect})=>{
// const video = props.video mesma coisa que o {video}
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item" >
<div className="video-list media">
... |
src/components/home.js | AnkilRNaik/AnkilRNaik.github.io | import React from 'react';
import profileImage from '../images/ankil.jpeg';
function Home() {
const message = "Hello! My name is...Ankil Naik.";
return (
<div>
<img src={profileImage}></img>
<p>{message}</p>
</div>
);
}
export default Home; |
src/components/CustomJob/CustomJob.js | josedigital/koala-app | import React from 'react'
import {jobHelpers} from '../../utils/helpers'
import JobLister from '../JobLister/JobLister'
class CustomJob extends React.Component {
constructor (props) {
super(props)
this.state = {
title: '',
url: '',
summary: '',
location: '',
jobList: []
}
... |
src/createDevtools.js | icezeros/ice-react | import React from 'react'
import { render } from 'react-dom'
import DevTools from './components/DevTools'
export default function createDevTools(store) {
if(__DEVCLIENT__ && __DEVTOOLS__ && !window.devToolsExtension){
setTimeout(() => render(
<DevTools store={store} />,
window.document.body.appendChi... |
packages/react/src/components/atoms/buttons/ButtonAlert/index.js | massgov/mayflower | /**
* ButtonAlert module.
* @module @massds/mayflower-react/ButtonAlert
* @requires module:@massds/mayflower-assets/scss/01-atoms/button-with-icon
* @requires module:@massds/mayflower-assets/scss/01-atoms/button-search
* @requires module:@massds/mayflower-assets/scss/01-atoms/input-typeahead
* @requires module:@m... |
docs/src/app/components/pages/components/Slider/ExampleAxis.js | ichiohta/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const styles = {
root: {
display: 'flex',
height: 124,
flexDirection: 'row',
justifyContent: 'space-around',
},
};
/**
* The orientation of the slider can be reversed and rotated using the `axis` prop.
*/
const SliderExampleAxis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.