path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/common/svg-icons/av/repeat-one.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
public/src/admin/components/Nav.react.js | SLedunois/Shiva | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Nav extends Component {
render() {
return (
<header className="navbar col-9 menu">
<section className="navbar-section">
<Link to="/" className="btn btn-link">Projects</Link>
<Link to="/confi... |
Lumino/js/components/ControllerTypeSelector/ControllerTypeSelector.js | evonove/lumino | import React from 'react';
import PropTypes from 'prop-types';
import { Text, TouchableOpacity, View } from 'react-native';
import IconIonic from 'react-native-vector-icons/Ionicons';
import IconFontAwesome from 'react-native-vector-icons/FontAwesome';
import styles from './style';
/*
* Component to make the user c... |
src/routes.js | ummahusla/Hacker-Reader | import React from 'react';
import { Router, Route } from 'react-router';
import TopStories from './components/topStories/TopStories';
import NewStories from './components/newStories/NewStories';
import BestStories from './components/bestStories/BestStories';
import JobStories from './components/jobStories/JobStories';
... |
app/app.js | marliseu/react-app-1 | import React, { Component } from 'react';
import {render} from 'react-dom';
import KanbanBoard from './KanbanBoard';
let cardsList = [
{
id: 1,
title: "Read the Book",
description: "I should read the **whole** book",
color: '#eddd61',
status: "in-progress",
tasks: []
},
{... |
app/renderer/views/DisplayMovies/MovieDetail/Location.js | blenoski/movie-night | import React from 'react'
import styled from 'styled-components'
import { Ban, FileIcon } from '../../../icons'
export default ({ fileSize, location, handleClick, fileExists }) => {
if (fileExists) {
return renderClickable(handleClick, location, fileSize)
} else {
return renderNotClickable(location, fileSi... |
node_modules/react-native/local-cli/generator/templates/index.ios.js | Winfore/ReactNativePro | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
app/components/Content/index.js | beingmohit/tranium | import React from 'react';
import classnames from 'classnames';
import styles from './styles.css';
function classes(props) {
return classnames(styles.main, props.className, {
[styles.compact]: props.compact,
});
}
const Content = (props) => (
<div className={classes(props)}>
{props.children}
</div>
);... |
app/components/team/Pipelines/index.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { second } from 'metrick/duration';
import Panel from 'app/components/shared/Panel';
import SearchField from 'app/components/shared/SearchField';
import ShowMoreFooter from 'app/components/shared/ShowMoreFoot... |
anubis/ui/components/balloonpad/BalloonPadListContainer.js | KawashiroNitori/Anubis | /**
* Created by Nitori on 2017/3/26.
*/
import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import i18n from '../../utils/i18n';
import BalloonRow from './BalloonPadListItemContainer';
const mapStateToProps = (state, ownProps) => ({
...ownProps,
isLoading:... |
src/docs/examples/TextInputBEM/ExampleError.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import TextInput from 'ps-react/TextInputBEM';
/** Required TextBox with error */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={... |
node_modules/react-bootstrap/es/Popover.js | xuan6/admin_dashboard_local_dev | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
node_modules/react-icons/md/call-to-action.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdCallToAction = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 31.6v-5h-30v5h30z m0-26.6c1.8 0 3.4 1.6 3.4 3.4v23.2c0 1.8-1.6 3.4-3.4 3.4h-30c-1.8 0-3.4-1.6-3.4-3.4v-23.2c0-1.8 1.6-3.4 3.4-3.4h30z"/></g>
</Icon>
)
e... |
WebApp/wwwroot/ReactApp/src/components/codecamp/common/Footer.js | pkellner/svcc-react4 | import React from 'react';
export default function Footer() {
return (
<footer className="footer">
<div className="container-main">
<div className="footer__menu" />
<div className="footer__disclaimer">
<p>
Code Stars Summit and Silicon Valley Code Camp (tm) are tradema... |
src/no-redux/Fields.js | fourlabsldn/fl-form-builder | import React from 'react';
import { curry } from 'lodash';
import FieldCreatorPropType from './default-fields/FieldCreatorPropType';
import Field from './Field';
const getTypeConstructor = curry((typeConstructors, type) => {
return typeConstructors.find(t => t.info.type === type);
});
const Fields = props => {
c... |
docs/src/app/pages/components/InlineEdit/ExampleInlineEditInline.js | GetAmbassador/react-ions | import React from 'react'
import InlineEdit from 'react-ions/lib/components/InlineEdit'
import Icon from 'react-ions/lib/components/Icon'
import style from './styles'
class ExampleInlineEditInline extends React.Component {
constructor(props) {
super(props)
}
render = () => {
return (
<InlineEdit n... |
app/javascript/mastodon/features/favourites/index.js | cybrespace/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
src/containers/DevTools/DevTools.js | sfarthin/youtube-search | 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">
<LogMonitor /... |
local-cli/templates/HelloNavigation/views/MainNavigator.js | ankitsinghania94/react-native | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
src/svg-icons/image/filter-2.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter2 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ... |
src/components/playPauseButtons/PlayPauseButtons.js | ianroberts131/visual-algorithms | import React from 'react';
import { Col } from 'react-bootstrap';
import './playPauseButtons.css';
var classNames = require('classnames');
class PlayPauseButtons extends React.Component {
render() {
var sortIsPaused = this.props.sort.paused;
var isSorted = this.props.sort.isSorted;
var sortIterations =... |
browser/src/index.js | shygiants/ChangeGAN | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
client/views/room/components/MessageTemplate/Username.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
function Username(props) {
return (
<Box
rcx-message__username
color='neutral-800'
fontSize='x14'
fontWeight='600'
flexShrink={1}
withTruncatedText
{...props}
/>
);
}
export default Username;
|
app/components/Counter.js | kamidipreetham/Easymove | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
type Props = {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
class Counter extends Component<Props> {
p... |
information/blendle-frontend-react-source/app/components/buttons/Follow.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Analytics from 'instances/analytics';
import { locale as i18n } from 'instances/i18n';
import Auth from 'controllers/auth';
import BrowserEnvironment from 'instances/browser_environment';
import ChannelActions fro... |
information/blendle-frontend-react-source/app/modules/settings/components/DeleteAccount/index.js | BramscoChill/BlendleParser | import React from 'react';
import { Button } from '@blendle/lego';
import DeleteAccountActions from 'actions/DeleteAccountActions';
import { translate } from 'instances/i18n';
import DeleteAccountDialogContainer from '../../containers/DeleteAccountDialogContainer';
import CSS from './style.scss';
function DeleteAccoun... |
closure-comments/frontend/src/App.js | cloudbirds/comments | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/App.js | dronesmith/Dronesmith-Ground-Control | import React, { Component } from 'react';
import Map from './Map';
// App component
class App extends Component {
render() {
return (
<Map />
);
}
}
export default App;
|
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchInMenu.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]
const DropdownExampleSearchInMenu = () =... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/notifications-paused.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialNotificationsPaused = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11v5l-2 2v1h16v-1l-2-2zm-3.5-6.2l-2... |
docs/src/components/Feedback/Feedback.js | bmatthews/haze-lea | /**
* 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 withStyles from 'isom... |
public/js/components/chat/Messages.react.js | rajikaimal/Coupley | import React from 'react';
import Paper from 'material-ui/lib/paper';
import ThreadActions from '../../actions/Thread/ThreadActions';
import ThreadStore from '../../stores/ThreadStore';
import LoginStore from '../../stores/LoginStore';
import ListItem from 'material-ui/lib/lists/list-item';
import Avatar from 'material... |
src/svg-icons/action/verified-user.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVerifiedUser = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/>
</SvgIcon>
);
ActionVerif... |
examples/universal/client/index.js | dieface/redux | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../common/store/configureStore'
import App from '../common/containers/App'
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState... |
js/components/anatomy/index.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles fro... |
web/src/components/Icons/Menu.js | dnote-io/cli | /* Copyright (C) 2019, 2020 Monomax Software Pty Ltd
*
* This file is part of Dnote.
*
* Dnote 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 optio... |
app/containers/LoginPage/LoginForm.js | kdprojects/nichesportapp | import React, { Component } from 'react';
import {connect} from 'react-redux';
import {Field, reduxForm, formValueSelector} from 'redux-form/immutable';
import { push } from 'react-router-redux';
import {
TextField
} from 'redux-form-material-ui';
import RaisedButton from 'material-ui/RaisedButton';
import CenteredSe... |
src/main/resources/static/src/components/home.js | Sukram21/FlixFace | import React, { Component } from 'react';
import image from '../images/home.jpg';
class Home extends Component {
componentDidMount() {
document.body.style.background = `url(${image}) no-repeat center center fixed`;
document.getElementsByTagName("html")[0].style.backgroundSize = "cover";
}
componentWillU... |
server/sonar-web/src/main/js/apps/background-tasks/main.js | abbeyj/sonarqube | import _ from 'underscore';
import moment from 'moment';
import React from 'react';
import {getQueue, getActivity, cancelTask, cancelAllTasks} from '../../api/ce';
import {STATUSES, CURRENTS, DATE} from './constants';
import Header from './header';
import Stats from './stats';
import Search from './search';
import Task... |
ReactNative/weather/App/Containers/MainContainer.js | AllanChen/WorkSample | import React, { Component } from 'react';
import {connect} from 'react-redux';
import Main from './Main';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableHighlight,
InteractionManager
} from 'react-native';
class MainContainer extends Component {
constructor(props) {
super(props... |
frontend/src/components/recipes/MyRecipe.js | raulGX/recipeblog | import React from 'react';
import recipesApi from '../../api/recipesApi';
import ingredientsApi from '../../api/ingredientsApi';
import IngredientsTable from '../ingredients/IngredientsTable';
import { Button, Modal, FormControl, ControlLabel } from 'react-bootstrap';
class MyRecipe extends React.Component {
const... |
client/src/components/Login.js | chi-bumblebees-2017/gnomad | import React, { Component } from 'react';
import {
Redirect
} from 'react-router-dom';
import ReactDOM from 'react-dom';
import FacebookLogin from 'react-facebook-login';
import { Loader } from 'semantic-ui-react';
import gnomad_logo from '../gnomad_logo.jpg';
import GnomadLogo from '../logoslogan.png';
class Login ... |
imports/client/components/Project/ProjectItem.js | evancorl/portfolio | import React from 'react';
import BuildingWithPoetic from './BuildingWithPoetic';
import ProjectInfoList from './ProjectInfoList';
const poeticUrl = 'http://www.poeticsystems.com';
class ProjectItem extends React.Component {
shouldComponentUpdate() {
return false;
}
render() {
const { project } = this... |
src/index.js | rndstr/wilks | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/device/battery-30.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery30 = (props) => (
<SvgIcon {...props}>
<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 ... |
src/js/schedule-app/index.js | DevFestNordeste/ne.devfest.com.br | import { CALENDAR_CONFIG } from 'config';
import React from 'react';
import ReactDOM from 'react-dom';
import Store from './Store';
import Schedule from './components/Schedule';
class ScheduleManager {
constructor() {
const { apiKey, calendarId } = CALENDAR_CONFIG;
const url = encodeURI(`https://www.googlea... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js | HelpfulHuman/helpful-react-scripts | /**
* 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(prefix) {
return [
{ id: 1, [`${prefi... |
frontend/src/Settings/ImportLists/ImportLists/AddImportListModalContentConnector.js | geogolem/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchImportListSchema, selectImportListSchema } from 'Store/Actions/settingsActions';
import AddImportListModalContent from './... |
actor-apps/app-web/src/app/utils/require-auth.js | tsdl2013/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/App.js | hoodwink73/react-hello-world | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Time To React!! Will build a simple notes application here</h1>
);
}
}
|
app/static/src/diagnostic/NewTestForm_modules/NewSyringeForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import {findDOMNode} from 'react-dom';
import HelpBlock from 'react-bootstrap/lib/H... |
app/javascript/mastodon/features/account/components/action_bar.js | Craftodon/Craftodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { Link } from 'react-router-dom';
import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } fr... |
src/components/PXBottomSheet.js | alphasp/pxview | import React, { Component } from 'react';
import {
StyleSheet,
View,
Modal,
TouchableWithoutFeedback,
Animated,
} from 'react-native';
import { withTheme } from 'react-native-paper';
import { globalStyleVariables } from '../styles';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyCo... |
src/workflows/pyfr/components/root/NewSimulation.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
/* eslint-disable import/extensions */
import Simput from 'Simput';
/* eslint-enable import/extensions */
import { FileUploadEntry } from '../../../../panels/ItemEditor';
import { dispatch } from '../../../../redux';
import * as NetActions from '../../../... |
src/decorators/withViewport.js | youprofit/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
tests/test_project/www-dev/jsx/index.js | bazzisoft/webmake |
'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import Component from './Component.jsx'
export default function renderReact(elementId)
{
ReactDOM.render(
<Component/>,
document.getElementById(elementId))
}
module.exports = {
renderReact: renderReact,
}
|
benchmarks/src/implementations/react-native-web/Tweet/IconDirectMessage.js | rofrischmann/fela | /* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import React from 'react';
import styles from './styles';
const IconDirectMessage = props =>
createElement('svg', {
children: (
<g>
<path d="M43.34 14H12.66L28 27.946z" />
<path d="M51.392 14.789L30.018 34.2... |
renderer/components/Icon/Circle.js | LN-Zap/zap-desktop | import React from 'react'
const SvgCircle = props => (
<svg height="1em" viewBox="0 0 24 24" width="1em" {...props}>
<circle cx={12} cy={12} fill="currentColor" r={8} />
</svg>
)
export default SvgCircle
|
src/layouts/CoreLayout/CoreLayout.js | nskpaun/group-therapist | import React from 'react'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className={classes.mainContainer}>
{children}
</div>
)
CoreLayout.propTypes = {
children: React.PropTypes.element.isRequired
}
export default CoreLayout
|
mobile/mock ups/auth/src/components/common/Button.js | parammehta/TravLendar | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle} >
<Text style={textStyle}> {children} </Text>
</... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | JohanGustafsson91/React-JWT-Authentication-Redux-Router | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
client/containers/Header.js | akihiroxob/PostThem | import React from 'react';
import { connect } from 'react-redux';
import Header from '../compornents/whiteboard/Header.jsx';
import * as Action from '../actions/header';
import {importItems, exportItems, captureCanvas, clearItems } from '../actions/board';
import BoardAction from '../actions/board';
// state
function ... |
app/assets/scripts/components/page-header.js | openaq/openaq.org | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
import c from 'classnames';
import Breakpoint from './breakpoint';
import SmartLink from './smart-link';
import NewsBanner from './news-banner';
const subMenus = [
{
id: 'open-data',
title: 'Open Data',
items: [
{
... |
docs/src/examples/modules/Popup/Usage/PopupExampleHideOnScroll.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Popup } from 'semantic-ui-react'
const PopupExampleHideOnScroll = () => (
<>
<Popup
trigger={<Button>Click me</Button>}
content='Hide the popup on any scroll event'
on='click'
hideOnScroll
/>
<Popup
trigger={<Button>Hover me</Button... |
src/svg-icons/maps/directions-boat.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBoat = (props) => (
<SvgIcon {...props}>
<path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99... |
src/client.js | luanlv/comhoavang | /**
* 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 ReactDOM from 'react-... |
src/views/Card/index.js | r1cebank/EventCore | import React from 'react';
import Card from '../../components/Card';
class CardView extends React.Component {
render() {
return (
<Card />
);
}
}
module.exports = CardView;
|
src/components/GradientBuilder/Palette.js | iurii-kyrylenko/react-gradient | import React from 'react'
import PropTypes from 'prop-types'
const Palette = ({ palette, width, height }) => {
const compare = ({ pos: pos1 }, { pos: pos2 }) => pos1 - pos2
const sortedPalette = [...palette].sort(compare)
const gradientId = '_' + Math.random().toString(36).substr(2, 9)
const gradientUrl = `url... |
src/packages/@ncigdc/components/Header/Dropdown.js | NCI-GDC/portal-ui | import React from 'react';
import Dropdown from '@ncigdc/uikit/Dropdown';
import DropdownItem from '@ncigdc/uikit/DropdownItem';
import styled from '@ncigdc/theme/styled';
import Link from '@ncigdc/components/Links/Link';
const iconStyle = {
fontSize: '1.65rem',
marginRight: '0.5rem',
};
const DropdownItemStyled ... |
internals/templates/notFoundPage/notFoundPage.js | Proxiweb/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/lib/legends/discrete-color-legend.js | jameskraus/react-vis | // Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | hyuki0000/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
import SettingText from '../../../components/se... |
hw4/src/index.js | brendazhao/comp531 | require('./styles.css')
require('expose?$!expose?jQuery!jquery')
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger'
import { createStore, applyMiddleware } from 'redux'
import Reducer from './reducers'
import App fr... |
App/Stores/LocalKeyStore.js | taskrabbit/ReactNativeSampleApp | // wrapper on local storage technique
import React from 'react';
import {
AsyncStorage
} from 'react-native';
var LocalKeyStore = {
getKey: function(keyName, callback) {
AsyncStorage.getItem(keyName, function(error, value) { // callback: error, value
if (error) {
console.log('Error getting item (... |
app/javascript/mastodon/features/following/index.js | rekif/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
src/components/topic/controlbar/FocusSelector.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import Select from '@material-ui/core/Select';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import ListItemText from '@material-ui/core/L... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | carloscuatin/mern-starter | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/index.js | Pephers/react-autofill | import React from 'react';
import ReactDOM from 'react-dom';
export default function autofill(DecoratedComponent) {
return class AutofillWrapper extends React.Component {
constructor(props, context) {
super(props, context);
this._listeners = [];
}
componentDidM... |
test/es6/react-components.js | vidul-nikolaev-petrov/react-rx-storage | import React from 'react';
import Rx from 'rxjs/Rx';
import s$ from '../../indexES5';
export class StepOne extends React.Component {
// basic storage functionaity
constructor(props) {
super(props);
this.state = { testStep: false };
this.onClick = this.onClick.bind(this);
s$.sub... |
src/Col.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const Col = React.createClass({
propTypes: {
/**
* The number of columns you wish to span
*
* for Extra small devices Phones (<768px)
*
... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | beingsagir/angularjs-practice-projects | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
assets/search-view/profile-view/components/InterestedEmployersList.js | janta-devs/nyumbani | import React, { Component } from 'react';
class InterestedEmployersList extends Component {
render(){
const styleIEButton = {
lineHeight: '10px',
padding: '1px 1px 1px 1px',
textTransform: 'unset',
};
return (
<ul>
<li>
<a href="#" titl... |
web/src/components/Figure.js | ajmalafif/ajmalafif.com | import React from 'react'
import { GatsbyImage } from 'gatsby-plugin-image'
import {getGatsbyImageData} from 'gatsby-source-sanity'
import clientConfig from '../../client-config'
export default ({node}) => {
if (!node || !node.asset || !node.asset._id) { return null }
const fluidProps = getGatsbyImageData(
nod... |
lib/components/modification/editor.js | conveyal/scenario-editor | // @flow
import Icon from '@conveyal/woonerf/components/icon'
import message from '@conveyal/woonerf/message'
import debounce from 'lodash/debounce'
import get from 'lodash/get'
import omit from 'lodash/omit'
import React from 'react'
import {Application, Dock, Title} from '../base'
import {Button} from '../buttons'
i... |
src/components/Header/HeaderContainer.js | Ciunkos/ciunkos.com | import React from 'react'
import styled from 'styled'
export default class HeaderContainer extends React.PureComponent {
state = { scrollY: 0 }
listener = null
startLoop = () => {
if (window && !this.frameId) {
this.frameId = window.requestAnimationFrame(this.loop)
}
}
loop = () => {
co... |
src/components/Html.js | SgtRock91/FantasyOptimizer | /**
* 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 PropTypes from 'prop-... |
test_case/saga/src/shared/app.js | BeaverGuo/react-boilerplate | // @flow
/*
React Helmet uses react-side-effect's rewind to pull out some data from the rendering of our app,
which will soon contain some <Helmet /> components. Those <Helmet /> components are where we set the
title and other head details for each page. Note that Helmet.rewind() must come after
ReactDOMServer.renderT... |
src/components/UI/card/Card.js | radekzz/netlify-cms-test | import React from 'react';
import styles from './Card.css';
export default function Card({ style, className = '', onClick, children }) {
return <div className={`${styles.card} ${className}`} style={style} onClick={onClick}>{children}</div>;
}
|
src/.templates/js/component.js | Astrocoders/astroman | const { stripIndent } = require('common-tags')
const chalk = require('chalk')
const fs = require('fs')
module.exports.args = { name: 'Component name' }
module.exports.where = (name) => {
if (!fs.existsSync('components')){
fs.mkdirSync('components')
return `components/${name}.js`
} else {
return `compo... |
app/javascript/mastodon/features/notifications/index.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
src/client/pages/project/TaskList.js | callmeJozo/MKRN | import React from 'react';
import { Link } from 'react-router';
import { Button, Icon, Menu, Dropdown, Modal, message } from 'antd';
import ProjectStore from '../../stores/project';
class ProjectDetailApi extends React.Component {
constructor(props) {
super(props);
this.state = {
projec... |
src/scripts/router.js | Joywok/Joywok-Mobility-Framework | import React from 'react';
import { Router, Route,hashHistory} from 'dva/router';
import IndexPage from './routers/IndexPage';
import Error from "./routers/Error";
module.exports = function({hashHistory}) {
return (
<Router history={hashHistory}>
<Route path="/" component={IndexPage} />
<Route path="... |
packages/material-ui-icons/src/LiveHelp.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LiveHelp = props =>
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c... |
views/components/CalendarViewUi.js | gvaldambrini/madam | import React from 'react';
import moment from 'moment';
import { fnRenderErrors } from './util';
import AppointmentsTableDateUi from './AppointmentsTableDateUi';
import PlanAppointmentFormUi from './PlanAppointmentFormUi';
// The main presentational component used in the calendar / homepage section.
export default ... |
src/clincoded/static/libs/render_approval_status.js | ClinGen/clincoded | 'use strict';
import React from 'react';
import moment from 'moment';
import { sortListByDate } from './helpers/sort';
/**
* Method to render the 'APPROVED' status of a given GDM's classification or interpretation
* @param {array} snapshots - List of snapshots associated with a classification or interpretation
* @p... |
app/components/Tabs/EditorList.js | lgarcin/LatexElectronReact | // @flow
import React, { Component } from 'react';
import Editor from './Editor';
import styles from './EditorList.css';
export default class EditorList extends Component {
render() {
const visible = this.props.editors.length > 0
? ''
: styles.hidden;
return (
<div className={visible}>
... |
src/pages/fresh-pop.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Fresh Pop' />
)
|
src/js/containers/Ranking.js | githayu/nicotunes | import { remote } from 'electron';
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { Tabs, Tab, CircularProgress } from 'material-ui';
import { rankingActions, playActions } from '../actions';
import... |
js/components/GalleryCard.js | fractal-mind/portfolio | import React from 'react';
class GalleryCard extends React.Component {
render(){
return(
<div className="card z-depth-2">
<div className="card-image">
<a href={this.props.url} target="_blank"><img className="galleryThumb" src={this.props.thumb} /></a>
</div>
<div className... |
src/mui/input/SelectInput.js | azureReact/AzureReact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import translate from '../../i18n/translate';
import FieldTitle from '../../util/FieldTitle';
/**
* An Input comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.