path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-input-svideo.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-... |
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/components/WorkflowGenProfileComponent.js | advantys/workflowgen-templates | import React, { Component } from 'react';
import {
ActivityIndicator,
Text,
Button,
SectionList,
View
} from 'react-native';
import gql from 'graphql-tag';
import { Query, withApollo } from 'react-apollo';
import { CommonStyles } from './styles';
import { Container, Separator } from '.';
const GET_VIEWER_IN... |
packages/wix-style-react/src/FontUpgrade/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
columns,
code,
api,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import FontUpgrade from '..';
export default {
category: storySettings.category,
storyName: 'FontUpg... |
src/views/HomeView/HomeView.js | hbaughman/audible-temptations | import React from 'react';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-button';
import { OAUTH_REQUEST } from '../../constants';
const Home = () => {
//<Link to="/filterLibrary" style={{padding: "24px"}} >
return (
<div>
<img style={{marginTop: "64px"}} src="/in... |
blueocean-material-icons/src/js/components/svg-icons/action/compare-arrows.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows.displayName = 'ActionCompareArrows';
ActionCompareArrows.muiName =... |
src/mobile/components/PlaylistManager/PlaylistPanel.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import MediaList from '../MediaList';
import PlaylistEmpty from '../../../components/PlaylistManager/Panel/PlaylistEmpty';
const PlaylistPanel = ({ items }) => (
<div className="PlaylistPanel">
{items.length > 0 ? (
<MediaList
className... |
lib/HotKeyMapMixin.js | danauclair/react-hotkeys | import React from 'react';
import assign from 'lodash/object/assign';
import isEqual from 'lodash/lang/isEqual';
export default function HotKeyMapMixin(hotKeyMap = {}) {
return {
contextTypes: {
hotKeyMap: React.PropTypes.object
},
childContextTypes: {
hotKeyMap: React.PropTypes.object
... |
src/components/common/svg-icons/notification/do-not-disturb-on.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOn = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
NotificationDoNotDisturbOn = pure(No... |
ui/src/index.js | lucapette/deloominator | import React from 'react';
import ReactDOM from 'react-dom';
import {ApolloProvider} from 'react-apollo';
import AppConfig from './services/AppConfig';
import GraphqlClient from './services/GraphqlClient';
import {Provider} from 'react-redux';
import {createStore} from 'redux';
import appReducers from './reducers';
... |
src/components/FileChooseComponent.js | Philin-Anton/prototypeApp | 'use strict';
import React from 'react';
import FileInput from 'react-file-input';
import FileDrop from 'react-file-drop';
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import {drawFrame} from '../api/maggo';
import { actionPopUpBlock } from '../actions/index';
const setImagePopUp... |
app/navigators/app-navigator.js | CarlaCrandall/DoItNow | import React from 'react';
import { StackNavigator } from 'react-navigation';
import Icon from 'react-native-vector-icons/FontAwesome';
import AppTabNavigator from './app-tab-navigator';
import { AddEditTask } from '../screens';
import { AppNavigatorStyles } from '../styles/navigators';
import { colors, iconSizes } fro... |
src/components/page_header.js | intrepion/hojberg-mastering-reactjs-tutorial | import React from 'react';
class PageHeader extends React.Component {
render() {
return (
<div className='page-header'>
{this.props.children}
</div>
);
}
}
export default PageHeader;
|
packages/node_modules/@webex/react-container-scrolling-activity/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import injectScrollable from '@webex/react-hoc-scrollable';
import {Loading} from '@momentum-ui/react';
import styles from './styles.css';
const injectedPropTypes = {
children: PropTypes.node.isRequired
};
const pr... |
src/svg-icons/content/unarchive.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
app/components/base/Button/Button.storybook.js | rhberro/the-react-client | import { action } from '@storybook/addon-actions'
import { storiesOf } from '@storybook/react'
import { text, withKnobs } from '@storybook/addon-knobs/react'
import React from 'react'
import Button from './Button'
const onClick = action('clicked')
storiesOf('app/components/base/Button', module)
.addDecorator(withK... |
spec/javascripts/jsx/grading/PostAssignmentGradesTray/FormContentSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
components/rs-client-js/src/mixin.js | intelix/reactiveservices | /*
* Copyright 2014-16 Intelix Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
packages/core/upload/admin/src/components/EmptyAssets/EmptyAssetGrid.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Box } from '@strapi/design-system/Box';
const EmptyAssetCard = styled(Box)`
background: linear-gradient(180deg, rgba(234, 234, 239, 0) 0%, #eaeaef 100%);
opacity: 0.33;
`;
const GridColSize = {
S: 180... |
client/layouts/Views.js | briefguo/learn-js | /**
* 布局组件
*
* 布局组件注意点:
* 1.布局组件,应该是尽量自己写的组件
* 2.尽量不包含第三方UI库的东西,比如:
*
* // XXX
* import { Col, Row } from 'antd'
*
* 3.绝对不是一个redux组件,只是一个单纯的react组件
* 4.尽量只引用react、react-router的Link、自定义工具库utils、布局的样式
*/
import React from 'react'
import mapChildrenToView from 'lib/mapChildrenToView'
export default clas... |
src/svg-icons/device/battery-charging-20.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging20 = (props) => (
<SvgIcon {...props}>
<path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ... |
html_js/prototypes/demo011b/index.js | pyromobile/nubomedia-ouatclient-src | 'use-strict';
import React from 'react';
import {render} from 'react-dom';
import ToolboxApp from 'react-toolbox/lib/app';
import AppCnt from './containers/appCnt';
import AppRouterCnt from './containers/appRouterCnt';
import {Lang} from './modules/languageCtrl';
Lang.changeLanguage('en',function(){
render(
(
... |
app/javascript/mastodon/features/ui/components/modal_loading.js | blackle/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
app/client/src/components/Login/Login.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import isEmail from 'validator/lib/isEmail';
import RaisedButton from 'material-ui/RaisedButton';
import { attemptLogin } from 'actions/AuthActions';
import history from 'lib/history';
import Link fr... |
assets/jqwidgets/demos/react/app/chart/splinearea/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [{ a: 0.35, b: 14.5 }, { a: 1, b: 2.5 }, { a: 10, b: 0.2 }, { a: 100, b: 205 }, { a: 1, b: 100 }, { a: 5.11, b: 10... |
service_1/src/components/transcluded_component.js | cleverbridge/spike_living_styleguide | 'use strict';
import React from 'react';
export default class TranscludedComponent extends React.Component {
constructor () {
super();
this.state = {
fetched_component: ''
};
}
componentDidMount () {
fetch('http://localhost:3001', {cache:'no-cache', mode:'cors'... |
examples/todomvc/index.js | ggerrietts/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/components/splitPane/Resizer.js | ZackLeonardo/nw-react-hexo-blog-client | 'use strict';
import React from 'react';
export default React.createClass({
onMouseDown(event) {
this.props.onMouseDown(event);
},
render() {
const split = this.props.split;
const classes = ['Resizer', split];
return (<span className={classes.join(' ')} onMouseDown={this... |
fixtures/ssr/src/index.js | aickin/react | import React from 'react';
import {hydrate} from 'react-dom';
import App from './components/App';
hydrate(<App assets={window.assetManifest} />, document);
|
Lumino/js/components/ControllersList/ControllerView.js | evonove/lumino | import React from 'react';
import PropTypes from 'prop-types';
import { Slider, Switch, Text, View, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import styles from './style';
import SwitchComponent from './SwitchComponent';
import DimmerComponent from './DimmerComponen... |
src/views/HowTo.js | DaLancelot/tinyQuotes | import React, { Component } from 'react';
export default class HowTo extends Component {
render() {
return (
<div className='container'>
<div className='howto'>
<h1>How<i>To</i></h1>
<p>
The page is designed to have simple functionality. The only thing you have to d... |
web/src/index.js | miaolz123/samaritan | import routes from './routes';
import configureStore from './store/configureStore';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
const store = conf... |
src/components/icons/TaskIcons.js | austinknight/ui-components | import React from 'react';
import AutoEmailIcon from './AutoEmailIcon';
import PhoneFilledIcon from './PhoneFilledIcon';
import EmailFilledIcon from './EmailFilledIcon';
import OtherFilledIcon from './OtherFilledIcon';
import CallbackIcon from './CallbackIcon';
import LinkedinSocialIcon from './LinkedinSocialIcon';
c... |
node_modules/react-bootstrap/es/Label.js | ASIX-ALS/asix-final-project-frontend | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
app/app.js | qiubit/lamp-experiment | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?n... |
form/PhoneField.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {view} from 'components';
export default class PhoneField extends React.Component {
static propTypes = {
metaItem: PropTypes.object.isRequired,
input: PropTypes.shape({
name: PropTypes.string,
value: Pro... |
src/SettingsPanel.js | qiubit/wason-selection-parallel | import _ from 'lodash';
import React, { Component } from 'react';
import { Nav, NavItem, Panel, PanelGroup, Button } from 'react-bootstrap';
import Markdown from 'react-markdown';
import './SettingsPanel.css';
import PilotPhase from './PilotPhase';
import Phase1 from './Phase1';
import Phase2 from './Phase2';
import P... |
client/homescreen.js | hr-memories/greenfield | import Exponent from 'exponent';
import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
AlertIOS,
AsyncStorage
} from 'react-native';
import { Font } from 'exponent';
import { Container, Header, Title, Content, Footer, Button } from 'native-base';
import { Ionicons } from '@exponent/vector-icons... |
src/App/Components/RecentPosts.js | ccubed/Vertinext | import React from 'react';
import Spinner from 'react-spinkit';
class RecentPosts extends React.Component {
render(){
return(<h3>Recent Posts</h3>);
}
}
module.exports = RecentPosts;
|
src/client/common/components/speed-reader.js | michigan-com/nova | 'use strict';
import React from 'react';
import { SimpleReader } from 'reeeeeader';
import { brandIcon } from '../../../../config';
export default class SpeedReader extends React.Component {
constructor(props) {
super(props);
this.state = {
gotStarted: false,
playing: false,
speedReaderF... |
src/routes.js | frigg/frigg-hq-frontend | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/app';
import {BuildListPage, BuildDetailsPage, DeploymentDetailsPage, FourOFourPage, WorkerStatsPage} from './pages';
import './stylus/main.styl';
export default (
<Route component={App} path='/'>
<IndexRou... |
local-cli/server/middleware/heapCapture/src/heapCapture.js | DannyvanderJagt/react-native | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
src/pages/PelleMap/geo.js | dylmye/pelleglobe | import React from 'react';
import {geolocated} from 'react-geolocated';
class Demo extends React.Component {
render() {
return !this.props.isGeolocationAvailable
? <div>Your browser does not support Geolocation</div>
: !this.props.isGeolocationEnabled
? <div>Geolocation is not enabled</div>
... |
src/timelines/components/ComposeButton.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... |
ReactNativeApp/react-native-starter-app/src/containers/recipes/Listing/ListingContainer.js | jjhyu/hackthe6ix2017 | /**
* 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';
... |
src/components/containers/MixData/MixFavorites.js | planlodge/soundmix | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as APIService from '../../../api/APIService';
import DocumentTitle from 'react-document-title';
import ReactPaginate from 'react-paginate';
import Loader from '../../helpers/loader';
import IssueHandler from '../../helpers/IssueHa... |
public/js/components/LoginButton.js | davejtoews/cfl-power-rankings | import PropTypes from 'prop-types';
import React from 'react';
module.exports = class extends React.Component {
static contextTypes = {
feathersApp: PropTypes.object,
login: PropTypes.bool
};
handleClick = (e) => {
if (this.context.login) {
e.preventDefault();
this.context.feathersApp.logout().th... |
rojak-ui-web/src/app/kit/SimpleList.js | rawgni/rojak | import React from 'react'
import style from './SimpleList.css'
class SimpleList extends React.Component {
static propTypes = {
data: React.PropTypes.object,
children: React.PropTypes.any,
style: React.PropTypes.object
}
render () {
return (
<table className={`uk-table ${style.simpleList}`}... |
packages/bootstrap-shell/src/providers/Menu/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
src/app/modules/components/ErrorPage.js | lili668668/lili668668.github.io | import React from 'react'
import classnames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import ErrorIcon from '@material-ui/icons/Error'
import Typography from '@material-ui/core/Typography'
import Grid from '@material-ui/core/Grid'
import CardFrame from '../../plugins/CardFrame'
import info... |
public/src/components/feed-item-redux.js | alannesta/redux-rss | import React from 'react';
var classNames = require('classnames');
class FeedItem extends React.Component {
constructor(props) {
super(props);
this.clicked = false;
this.onItemClick = this.onItemClick.bind(this);
}
componentWillReceiveProps(nextProp) {
// kind of a hack because could not know when the asy... |
admin/client/App/components/Navigation/Mobile/SectionItem.js | everisARQ/keystone | /**
* A mobile section
*/
import React from 'react';
import MobileListItem from './ListItem';
import { Link } from 'react-router';
const MobileSectionItem = React.createClass({
displayName: 'MobileSectionItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
curren... |
node_modules/react-bootstrap/es/NavbarBrand.js | Technaesthetic/ua-tools | 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 ... |
src/index.js | lukebelliveau/aclu-matchers | import React from 'react';
import ReactDOM from 'react-dom';
import GoogleAnalytics from 'react-ga';
import App from './App';
import './styles/index.css';
GoogleAnalytics.initialize('UA-91151405-1');
function logPageView() {
GoogleAnalytics.set({ page: window.location.pathname })
GoogleAnalytics.pageview(window... |
fixtures/fiber-debugger/src/index.js | kaushik94/react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/components/common/svg-icons/action/perm-phone-msg.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
example/examples/FitToCoordinates.js | amitv87/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
TouchableOpacity,
Text,
} 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... |
app/index.js | Pabloader/socket.io-debugger | import './styles.css';
import React from 'react';
import {render} from 'react-dom';
import Immutable from 'immutable';
import Root from './containers/Root';
import configureStore from './store/configureStore';
import storage from 'store';
import * as actions from './actions';
const store = configureStore();
const ... |
src/components/skins.js | MarcoPolo/emoji-mart | import React from 'react'
export default class Skins extends React.Component {
constructor(props) {
super(props)
this.state = {
opened: false,
}
}
handleClick(skin) {
var { onChange } = this.props
if (!this.state.opened) {
this.setState({ opened: true })
} else {
onCh... |
src/svg-icons/action/info.js | IsenrichO/mui-with-arrows | 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/components/ui/Input.js | yuri/notality | import React from 'react';
const Input = (props) => {
const {
type = 'text',
style = {},
placeholder = '',
fieldDefinition,
} = props;
return (
<input
className="block col-12 mb1 field"
style={{ ...styles.base, ...style }}
type={ type }
placeholder={ placeholder }
... |
src/routes/error/ErrorPage.js | pustovitDmytro/maysternya | /**
* 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-... |
src/parser/rogue/assassination/modules/spells/EnvenomUptime.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDE... |
src/components/Timesheets/Table.js | nadavspi/UnwiseConnect | import React from 'react';
import * as Table from 'reactabular-table';
import { compose } from 'redux';
import * as resolve from 'table-resolver';
import './timesheets.scss';
const columns = [
{
property: 'member.name',
header: {
label: 'Person',
},
visible: true,
},
{
property: 'compan... |
src/components/WorkshopMap.js | r-portas/robogals-brisbane-pwa | import React, { Component } from 'react';
class WorkshopMap extends Component {
constructor(props) {
super(props);
this.map = null;
this.markers = [
{position: {lat: -27.497686, lng: 153.014022}, title: 'University of Queensland'},
{position: {lat: -27.476547, lng: 153.027841}, title: 'Queen... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | Chronister/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/components/common/layout/Drawer/Drawer.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
/**
* Component
*/
class Drawer extends React.Component {
//*** Component Lifecycle ***//
componentDidMount() {
// Component styles
require('./Drawer.scss');
}
//*** Template ***//
render() {
let drawerClass = 'drawer';
... |
src/js/components/VoteCountWidget/VoteCountWidget.js | shane-arthur/react-redux-and-more-boilerplate | import React, { Component } from 'react';
import { styles } from './styles';
export default class VoteCountWidget extends Component {
render() {
return (
<div style={styles.widget}>
<p> {this.props.name} </p>
<p style={styles.text}> votes : {this.props.voteCount}</p>
... |
src/svg-icons/action/invert-colors.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1... |
fields/types/relationship/RelationshipColumn.js | brianjd/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
web/src/server/components/charts/projects-vs-authors-chart.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
src/components/todo/TodoHeader.js | chipnin/React-TodoApp | import React from 'react';
export default class TodoHeader extends React.Component {
constructor(props) {
super(props);
let date = new Date();
this.state = {
tdDate: {
day: date.getDate(),
month: date.getMonth() + 1,
... |
app/imports/ui/client/components/Specifications/AddForm.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { Session } from 'meteor/session';
import { Collections } from '../../../../api/common/collections.js';
class addForm extends Component {
constructor(props) {
super(props);
this.state = {
uploading: [],
progress: 0,
inProgress: false,
... |
src/routes.js | guivazcabral/site | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage/HomePage';
import About from './components/About/About';
import Past from './components/About/Past';
import Projects from './components/About/Projects';
export d... |
src/shared/element-react/dist/npm/es6/src/checkbox/CheckBox.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { Component, PropTypes } from '../../libs';
var Checkbox = function (_C... |
admin/src/components/PopoutPane.js | developer-prosenjit/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
onLayout: React.PropTypes.func
},
componentDidMount () ... |
app/javascript/mastodon/features/favourites/index.js | RobertRence/Mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | webwlsong/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import classnames from '... |
node_modules/react-superagent/examples/simple/index.js | manojadd/bob-demo | import React from 'react';
import {App} from './app';
React.render(<App/>, document.getElementById('root'));
|
webpack/routes/OvalPolicies/OvalPoliciesShow/index.js | theforeman/foreman_openscap | import React from 'react';
import PropTypes from 'prop-types';
import { useQuery } from '@apollo/client';
import { useDispatch } from 'react-redux';
import { translate as __ } from 'foremanReact/common/I18n';
import { showToast } from '../../../helpers/toastHelper';
import OvalPoliciesShow from './OvalPoliciesShow';
... |
frontend/src/Settings/Tags/TagsConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchDelayProfiles, fetchImportLists, fetchNotifications, fetchReleaseProfiles } from 'Store/Actions/settingsActions';
import { fetchTagDetails } from ... |
docs/src/pages/demos/tables/EnhancedTable.js | cherniavskii/material-ui | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Table, {
TableBody,
TableCell,
TableHead,
TablePagination,
TableRow,
TableSortLabel,
} from 'material-ui/Table';
import Toolbar from 'material-ui/Toolba... |
modules/RouteUtils.js | dalexand/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
others/music/src/main.js | fengnovo/diary | import React from 'react';
import ReactDOM from 'react-dom';
import './css/reset.css';
import routes from './js/Router.js';
ReactDOM.render(
routes, document.getElementById('app')
) |
app/app.js | Omnicrola/panoptes-react | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].... |
source/component/header/home.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Image,
Text,
StyleSheet,
ScrollView,
TouchableOpacity
} from 'react-native';
import _ from 'lodash';
import * as Animatable from 'react-native-animatable';
import Icon from 'react-native-vector-icons/Ionicons';
import PureRenderMixin from 'react-addons-pur... |
react/src/routes.js | Brianpan/charity | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/Board.js | janapejic/tic-tac-toe | import _ from 'lodash';
import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import update from 'react-addons-update';
import moment from 'moment';
import './Board.css';
import BoardCell from './BoardCell';
import { checkGameOver }... |
src/interface/common/DragScroll.js | ronaldpereira/WoWAnalyzer | /**
* Created by joe on 16/9/2.
* Source: https://raw.githubusercontent.com/qiaolb/react-dragscroll/master/src/DragScroll.jsx
* This was cleaned up. A lot.
*/
import React from 'react';
import PropTypes from 'prop-types';
class DragScroll extends React.PureComponent {
static propTypes = {
children: PropType... |
src/components/antd/affix/index.js | hyd378008136/olymComponents | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
ide/static/js/tooltip.js | Cloud-CV/IDE | import React from 'react';
import TooltipData from './tooltipData';
import data from './data';
import ReactTooltip from 'react-tooltip'
class Tooltip extends React.Component {
constructor(props) {
super(props);
}
componentDidUpdate() {
ReactTooltip.rebuild();
}
render() {
if (this.props.hovered... |
app/components/Home/Home.js | taggun/app-benchmark | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './Home.css';
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
apikey: '',
error: '',
list: []
};
this.handleChange = this.handleChange.bi... |
public/svg/navBar.js | corbmanj/tote | import React from 'react'
export const line = (
<svg className="line" width="20" height="2" viewBox="0 0 20 2" fill="none" xmlns="http://www.w3.org/2000/svg">
<line y1="1" x2="20" y2="1" stroke="#DEDEDE" strokeWidth="2"/>
</svg>
)
export const completed = (
<svg width="26" height="26" viewBox="0 0 26 ... |
src/components/chat/Username.js | mBeierl/Better-Twitch-Chat | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import { green500, red900, grey200, grey800 } from 'material-ui/styles/colors';
export default class Username extends React.Component {
static styles = {
chip: {
margin: 4
},
wrapper: {
di... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | mosaxiv/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
examples/auth-with-shared-root/components/Login.js | tkirda/react-router | import React from 'react'
import { History } from 'react-router'
import auth from '../utils/auth.js'
const Login = React.createClass({
mixins: [ History ],
getInitialState() {
return {
error: false
}
},
handleSubmit(event) {
event.preventDefault()
const email = this.refs.email.value
... |
Web/src/components/ValidatedInput/Radio.js | CMITInternational/Guitars | import React from 'react';
import ValidatedInput from './ValidatedInput';
export default class Radio extends ValidatedInput {
render () {
return super.render();
}
}
Radio.propTypes = Object.assign({}, ValidatedInput.propTypes, {
name: React.PropTypes.string
});
|
app/components/SelectAll/SelectAll.js | adrianocola/spyfall | import React from 'react';
import { css } from 'emotion';
import { Button, Col, Row } from 'reactstrap';
const SelectAll = ({ checked, onClick }) => (
<Row className="justify-content-center align-items-center">
<Col xs="auto">
<Button outline color="primary" size="sm" onClick={onClick}>
<input type... |
src/slides/slide1.js | coder36/react-slides | import React from 'react'
export default function () {
return (
<div className='title slide slide1'>
<h1>Get Ready</h1>
</div>
)
}
|
examples/shared-root/app.js | arbas/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
klets-client/src/components/Page.js | rhmeeuwisse/KletsApp | import React from 'react'
import './Page.css'
const Page = ({children}) => (
<div className="PageContainer">
{children}
</div>
)
export default Page
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.