path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/wrapper/map-finder/map-finder-result-list-component.js | rocachien/neptune-map-finder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ListItem from './map-finder-result-list-item';
import TableComponent from '../../common/table/table-component';
import Icon from '../../common/icon/icon-component';
import Text from '../../common/text/text-component';
import Paging f... |
monkey/monkey_island/cc/ui/src/components/report-components/security/StrongUsers.js | guardicore/monkey | import React from 'react';
import ReactTable from 'react-table'
import {renderArray} from '../common/RenderArrays';
const columns = [
{
Header: 'Powerful Users',
columns: [
{Header: 'Username', accessor: 'username'},
{Header: 'Machines', id: 'machines', accessor: x => renderArray(x.machines)},
... |
src/apps/Traces/TracesListItem.js | Syncano/syncano-dashboard | import React from 'react';
import { Paper } from 'material-ui';
import { colors as Colors } from 'material-ui/styles';
import { ColumnList, TraceResult, TraceBigResult } from '../../common/';
const Column = ColumnList.Column;
const TracesListItem = ({ item, onToggle, onLoadMore, visible = true }) => {
const styles... |
Realization/frontend/czechidm-core/src/content/module/Caches.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import { CacheManager, DataManager } from '../../redux';
import * as Utils f... |
src/view/route/link.js | NaNuNoo/Matcha | import { withStyles } from 'material-ui/styles';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { changeRoute } from '../../action/route';
import styles from './link-styles';
export class _Link ext... |
src/components/Containers.react.js | kitematic/kitematic | import $ from 'jquery';
import _ from 'underscore';
import React from 'react';
import Router from 'react-router';
import containerStore from '../stores/ContainerStore';
import ContainerList from './ContainerList.react';
import Header from './Header.react';
import metrics from '../utils/MetricsUtil';
import {shell} from... |
app/js/components/Timestamp.js | niksoc/srmconnect | import React from 'react';
import {pure} from 'recompose';
const Timestamp = (props) => {
const monthStrings = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
const datetime = props.datetime.replace('T',' ');
const date = datetime.split(' ')[0].split('-');
const d... |
src/shared/components/linkButton/linkButton.js | miaket/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Link as ScrollLink } from 'react-scroll';
import styles from './linkButton.css';
const LinkButton = (props) => {
const {
link,
text,
theme,
scrollLink,
isExternal,
...otherProps
... |
stories/demos/luxon.stories.js | jquense/react-big-calendar | import React from 'react'
import moment from 'moment'
import { Calendar, momentLocalizer } from '../../src'
import Luxon from './exampleCode/luxon'
export default {
title: 'Examples',
component: Calendar,
parameters: {
docs: {
page: null,
},
},
}
const localizer = momentLocalizer(moment)
export... |
information/blendle-frontend-react-source/app/modules/alerts/components/AlertManageDialog.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from 'components/dialogues/Dialogue';
import { translateElement, translate } from 'instances/i18n';
export default class ManageAlertDialog extends React.Component {
static propTypes = {
onClose: PropTypes.func.isRequired,
onClickDel... |
app/containers/newtabs.js | Judygc/Api_ActiveCollab | import React from 'react';
import _ from 'lodash';
import axios from 'axios';
//Formulario para la creación de nuevas tareas
class newTabs extends React.Component {
constructor(props) {
super(props);
this.guardar = this.guardar.bind(this);
}
guardar(){
axios.defaults.headers.post[... |
src/views/target/Punch.js | airloy/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/9.
*/
import React from 'react';
import {View, Text, StyleSheet, Modal, TouchableWithoutFeedback, Image} from 'react-native';
import Button from 'react-native-button';
import {analytics, styles, colors, px1, airloy, api, L, toast, hang} from '../../app';
imp... |
l5/src/routes/settings.js | huang6349/rn | import React, { Component } from 'react';
import {
View,
Text,
} from 'react-native';
import styles from '../router.style';
import { connect } from 'dva/mobile';
class Settings extends React.Component {
render() {
return (
<View style={styles['container']}>
<Text>设置</Text>
</View >
);... |
app/components/Icons/icons/icon-it_other.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
function IconItOther() {
return (
<svg version="1.1" id="icon-it_other" x="0px" y="0px" viewBox="0 0 489.9 489.9">
<g>
<path d="M391.2,469.994c3.4,3.4,7.8,5.1,12.3,5.1c4.3,0,8.7-1.6,12-4.9l69.3-67.8c3.3-3.2,5.1-7.6,5.1-12.3s-1.9-9-5.1-12.3l-69.3-67.8c-6.8-6.6-17.6-6.5-24.... |
src/app/containers/app.js | tuxsudo/react-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { init as initNav } from '../actions/site-nav.js';
import AppView from '../views/AppView';
import { selectSiteNav, selectPageMeta } from '../store.js';
// argument 1 of react-redux `connect` maps... |
src/components/krakenjs/original-wordmark/KrakenjsOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './KrakenjsOriginalWordmark.svg'
/** KrakenjsOriginalWordmark */
function KrakenjsOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
classNa... |
test/test_helper.js | Jaime691/ReactTube | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
app/containers/News/index.js | MathieuDebit/rise2016-app | /**
*
* News
*
*/
import React from 'react';
import BaseAPI from 'api/base.js';
import localforage from 'localforage';
import Header from '../Header';
import GoTop from '../../components/GoTop';
import NewsArticle from './NewsArticle.js';
import loader from '../App/img/loader.png';
import styles from './styles.css';... |
src/index.js | codeslinger/kenko | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router';
import {AppContainer} from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
import {syncHistoryWithStore} from 'reac... |
js/AppNavigator.js | bsusta/HelpdeskAppTemplate |
import React, { Component } from 'react';
import { StatusBar, Platform } from 'react-native';
import { connect } from 'react-redux';
import { StyleProvider, Drawer } from 'native-base';
import { actions } from 'react-native-navigation-redux-helpers';
import { Router, Scene } from 'react-native-router-flux';
import get... |
js/app.js | iamchenxin/relay-starter-kit | import 'babel-polyfill';
import App from './components/App';
import AppHomeRoute from './routes/AppHomeRoute';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
ReactDOM.render(
<Relay.Renderer
environment={Relay.Store}
Container={App}
queryConfig={new AppHome... |
src/components/Content.js | lapanoid/redux-devtools-gentest-plugin | import React, { Component } from 'react';
export default class Content extends Component {
render() {
return <div
style={{
marginLeft:'20%',
maxWidth:'80%',
paddingLeft:'2em',
paddingRight:'6em'
}}>{this.props.children}</div>;
}
} |
src/components/Login/index.js | escudero89/my-npc-manager | import React, { Component } from 'react';
import firebase from 'firebase';
import Login from './Login';
import './style.css';
export default class LoginContainer extends Component {
constructor(props) {
super(props);
this.auth = this.auth.bind(this);
}
auth(email, password) {
firebase.auth()
... |
admin/client/App/shared/Popout/PopoutBody.js | rafmsou/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
src/js/components/gsim/class-details.js | UNECE/Model-Explorer | import React from 'react'
import ServicesByGSIMInput from './services-by-input'
import ServicesByGSIMOutput from './services-by-output'
import { sparqlConnect} from 'sparql-connect'
/**
* Builds the query that retrieves the details for a GSIM class
*/
const queryBuilder = GSIMClass => `
SELECT ?label ?definition... |
src/svg-icons/navigation-arrow-drop-right.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight = pure(NavigationArrowDropRight);
NavigationArrowDropRight.displayName = 'Navi... |
src/scenes/catalogBookList.js | Seeingu/borrow-book | /*
不同类别的图书页
*/
import React, { Component } from 'react';
import {
Text,
ListView,
View,
TouchableOpacity,
Alert,
Image,
StyleSheet,
RefreshControl,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
import { connect } from 'react-redux';
import * as api from '../redux/constant/api';
... |
src/js/helpers/table.js | kukua/dashboard | import React from 'react'
import _ from 'underscore'
import { Table as DataTable, resolve } from 'reactabular'
import date from './date'
export class Table extends React.Component {
getColumnSchema () {
return _.map(this.props.columns, (column) => {
var cell = {}
if (column.key) {
cell.property = column.... |
src/containers/PetitionImage.js | iris-dni/iris-frontend | import React from 'react';
import { connect } from 'react-redux';
import PetitionImage from 'components/PetitionImage';
import getPetitionImage from 'selectors/petitionImage';
const PetitionImageContainer = (props) => (
<PetitionImage {...props} />
);
const mapStateToProps = ({ petition }) => getPetitionImage(petit... |
src/svg-icons/action/account-box.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
MobileApp/node_modules/react-native-elements/example/src/views/forms_home.js | VowelWeb/CoinTradePros.com | import React, { Component } from 'react';
import { ScrollView, View, StyleSheet, Platform } from 'react-native';
import colors from 'HSColors';
import Icon from 'react-native-vector-icons/MaterialIcons';
import {
Button,
Text,
FormInput,
FormLabel,
CheckBox,
SearchBar,
} from 'react-native-elements';
clas... |
src/svg-icons/editor/monetization-on.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (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.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... |
src/js/components/UserAuthenticator.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/components/text-editor/formatting-help/formatting-help.js | vFujin/HearthLounge | import React from 'react';
import Tr from "./formatting-help-tr";
import TrList from "./formatting-help-list-tr";
const FormattingHelp = () => {
return (
<table className="formatting-help default-style">
<thead>
<tr>
<td>You type:</td>
<td>You see:</td>
</tr>... |
src/mobile/Line/helpers/subcomps.js | Krizzu/react-progressor | import React from 'react';
import propTypes from 'prop-types';
import { View, StyleSheet } from 'react-native';
const Styles = StyleSheet.create({
Container: {
position: 'relative',
},
Absolute: {
position: 'absolute',
left: 0,
top: 0,
},
});
export const Container = ({ width, height, childre... |
packages/cp-frontend/src/components/service/delete.js | yldio/copilot | import React from 'react';
import PropTypes from 'prop-types';
import { ModalHeading, ModalText, Button } from 'joyent-ui-toolkit';
const ServiceDelete = ({
service,
onCancelClick = () => {},
onConfirmClick = () => {}
}) => (
<div>
<ModalHeading>
Deleting a service: <br /> {service.name}
</ModalH... |
app/hocs/Session/index.js | zebbra-repos/Zeiterfassung-medi | /* eslint-disable no-console */
/*
*
* Session
*
* Higher order component to ensure user is logged in
* http://engineering.blogfoster.com/higher-order-components-theory-and-practice/
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindRoutineCreat... |
react/src/components/graph/Graph.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... |
src/svg-icons/maps/local-car-wash.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
src/components/StatusBarContainer/StatusBarContainer.js | alexhawkins/trackingWidget | 'use strict';
import React from 'react';
import Ball from './BallComponent';
import 'styles//StatusBarContainer.scss';
class StatusBarContainer extends React.Component {
constructor(props) {
super(props);
}
render() {
let statuses = {'ORDERED': 0, 'IN PREP': 1, 'READY FOR CARRIER' : 2, 'IN TRANSIT': ... |
src/svg-icons/social/people-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeopleOutline = (props) => (
<SvgIcon {...props}>
<path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7... |
rn-06-widthNheight.js | KyoungRan/react-native-ex-NDH | import React, { Component } from 'react';
import { StyleSheet, Text, View, StatusBar } from 'react-native';
export default class App extends Component {
render() {
return (
<View style={{ flex: 1 }}>
<View style={styles.container}>
<StatusBar hidden={true} />... |
client/modules/Body.js | jde-maga/supermoube | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Body.js :+: :+: :+: ... |
src/components/Top-Nav/Top-Nav.js | dfala/high-club | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as counterActions } from '../../redux/modules/counter'
import styles from './TopNav.scss'
const mapStateToProps = (state) => ({
counter: state.counter
})
export class TopNav extends React.Component {
... |
fields/types/datearray/DateArrayFilter.js | brianjd/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import {
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No e... |
src/files/file-import-status/FileImportStatus.stories.js | ipfs/webui |
import React from 'react'
import { storiesOf } from '@storybook/react'
import { checkA11y } from '@storybook/addon-a11y'
import { action } from '@storybook/addon-actions'
import {
withKnobs
// , boolean
} from '@storybook/addon-knobs'
import i18nDecorator from '../../i18n-decorator'
import { FileImportStatus } fro... |
blueocean-material-icons/src/js/components/svg-icons/image/music-note.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageMusicNote = (props) => (
<SvgIcon {...props}>
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/>
</SvgIcon>
);
ImageMusicNote.displayName = 'ImageMusicNote';
ImageMusicNote.muiName = 'SvgIc... |
admin/client/App/components/Navigation/Mobile/index.js | benkroeger/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
lib/index.js | erik0110/Weatherly | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './styles.scss'
ReactDOM.render(
<App />,
document.getElementById('app')
);
|
draft-js-buttons/src/utils/createBlockStyleButton.js | koaninc/draft-js-plugins | /* eslint-disable react/no-children-prop */
import React, { Component } from 'react';
import { RichUtils } from 'draft-js';
import unionClassNames from 'union-class-names';
export default ({ blockType, children }) => (
class BlockStyleButton extends Component {
toggleStyle = (event) => {
event.preventDefa... |
client/components/dashboard/TweetModal.js | creativcoder/rio | import { Modal, Button, Popover, OverlayTrigger, Tooltip, Glyphicon } from 'react-bootstrap';
import React from 'react';
import Tweetbox from './Tweetbox';
const TweetModal = React.createClass({
getInitialState() {
return { showModal: false };
},
close() {
this.setState({ showModal: false });
},
open... |
src/svg-icons/av/volume-mute.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeMute = (props) => (
<SvgIcon {...props}>
<path d="M7 9v6h4l5 5V4l-5 5H7z"/>
</SvgIcon>
);
AvVolumeMute = pure(AvVolumeMute);
AvVolumeMute.displayName = 'AvVolumeMute';
AvVolumeMute.muiName = 'SvgIcon'... |
src/components/App/App.js | denysovkos/testtask | import React from 'react'
import { HeaderContainer } from '../../containers'
class App extends React.Component {
constructor(props) {
super(props)
}
componentWillMount() {
this.props.loadOrders()
}
render() {
let orders = this.props.orders.orders
return(
<div>
<HeaderContai... |
webdash/src/Tabs.js | ohsu-comp-bio/funnel | import React from 'react';
import PropTypes from 'prop-types';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Paper from '@material-ui/core/Paper';
function TabPanel(props) {
co... |
browser/boot.js | tomgrooffer/basenji | import React from 'react'
import { render } from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory, Router } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Provider } from 'react-redux'
import configureStore from './configur... |
src/components/obligee/BoundarySpecification.js | axmand/react-webpack-redux | import React, { Component } from 'react';
import InputCell from './InputCell'
// import { Provider, connect } from 'react-redux'
class BoundarySpecification extends Component {
render() {
var table=(
<table className="mytable" height="373">
<tbody >
<tr>
<td width="108"><p>界址点位说明 </p><... |
src/modules/backgrounds/space_background.js | Falieson/planetx-boilerplate-crater | /* Space: Random Stars - canvas generated background | planetx-backgrounds
- [ ] standard star colors
- [/] rainbow stars
- [/] expansion/retraction
- [~] big-bang / big-shrink
- [ ] super-nova
- [ ] flow
Inspired by generateStar() by https://codepen.io/alexandredees/pen/wseEi
*/
/* eslint flowtype/requ... |
app/Components/App.js | gerbilsinspace/wikilynx | import React from 'react';
import Breadcrumbs from '../Containers/Breadcrumbs';
import CompletedGame from '../Containers/CompletedGame';
import CustomGame from '../Containers/CustomGame';
import Footer from './Footer.js';
import GameBoard from '../Containers/GameBoard';
import Header from '../Containers/Header';
impor... |
examples/js/column-format/react-column-format-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0*/
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
function addProducts(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jobs.push... |
test/development/basic-basepath/next-dynamic/components/welcome.js | JeromeFitz/next.js | import React from 'react'
export default class Welcome extends React.Component {
state = { name: null }
componentDidMount() {
const { name } = this.props
this.setState({ name })
}
render() {
const { name } = this.state
if (!name) return null
return <p>Welcome, {name}</p>
}
}
|
app/javascript/mastodon/features/compose/components/search.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
const messages = defineMessages({... |
src/components/dashboard/feed/comment.js | cosminseceleanu/react-sb-admin-bootstrap4 | import React from 'react';
import {
Media
} from 'reactstrap';
import CommentActions from './comment-actions';
const Comment = ({isReply, user, src, text, children}) => {
return (
<Media className={isReply ? "mt-3" : ""}>
<Media object src={src} className={isReply ? "d-flex pr-3" : "d-flex... |
src/interface/DamageTakenTable.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'interface/SpellLink';
import Icon from 'interface/Icon';
import { formatNumber } from 'common/format';
import Tooltip, { TooltipElement } from 'interface/Tooltip';
export const MITIGATED_NONE = 0;
export const MITIGATED_MAGICAL = 1;... |
examples/polling/src/components/RemoveLoadingScreen.js | lore/lore | /**
* This component removes the loading screen. It does so by adding a class to hide it,
* and then removes it from the DOM by setting the display property to 'none'.
**/
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactCla... |
web/src/scripts/middleware/editor/AutocompleteMiddleware.js | alexzherdev/deco-ide | /**
* Copyright (C) 2015 Deco Software Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
src/parser/shaman/shared/talents/SpiritWolf.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatThousands, formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
... |
src/mention/test-pages/promise.js | Kindling/react-tinymce-mention | import React from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import Editor from './components/Editor';
import Mention from '../Mention';
ReactDOM.render(
<div>
<Editor />
<Mention
showDebugger={true}
delimiter={'@'}
dataSource={axios.get('/public/api/complex.json'... |
core/router.js | gabergg/react-scene-graph | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/components/common/svg-icons/communication/portable-wifi-off.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPortableWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.... |
front_end/src/pages/Tiles/TilesPage.js | oyiptong/splice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { pageVisit } from 'actions/App/AppActions';
class TilesPage extends Component {
componentDidMount() {
const { dispatch } = this.props;
pageVisit('Tiles', this);
}
render() {
return (
<div>
<h1>Til... |
client/components/MainBackup.js | Frostimage/Frostimage | import React from 'react';
import THREE from 'three';
import Detector from '../public/dist/Detector';
class MainBU extends React.Component {
constructor( props ) {
super( props );
this.state = {
data: []
}
}
render() {
// Declare Varibles
let scene, camera, renderer, bulblight, conta... |
tests/Formsy-spec.js | meraki/mki-formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-dom/test-utils';
import Formsy from './..';
import TestInput from './utils/TestInput';
import TestInputHoc from './utils/TestInputHoc';
import immediate from './utils/immediate';
import sinon from 'sinon';
export default {
'S... |
docs-ui/components/text.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import Text from 'app/components/text';
export default {
title: 'Core/Style/Text',
};
export const Default = withInfo('On-demand styling for native dom elements')(() => (
<div style={{padding: 20, backgroundColor: '#ffffff'}}>
<Text>
... |
react-weather-forecast/test/test_helper.js | majalcmaj/ReactJSCourse | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
examples/auth-with-shared-root/components/About.js | taion/rrtr | import React from 'react'
const About = React.createClass({
render() {
return <h1>About</h1>
}
})
export default About
|
test/js/AR/release_test/ARPlaneSelectorTest.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, 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.
*/
import Re... |
examples/src/app.js | oriweingart/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
docs/src/app/pages/components/DatePicker/ExampleDatePickerCallback.js | GetAmbassador/react-ions | import React from 'react'
import DatePicker from 'react-ions/lib/components/DatePicker'
import Button from 'react-ions/lib/components/Button'
import style from './style.scss'
const oldDate = '2017-07-07'
const newDate = '2019-03-03'
class ExampleDatePickerCallback extends React.Component {
constructor(props) {
... |
src/pages/best-posts.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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, o... |
src/molecules/header/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import any from '@travi/any';
import storyRouter from 'storybook-router';
import {linkTo} from '@storybook/addon-links';
import Header from './index';
export default {
title: 'Molecules/Header',
decorat... |
frontend/src/Settings/Profiles/Quality/QualityProfileItem.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import { icons } from 'Helpers/Props';
import translate from 'U... |
app/client/src/components/LoginModalPrompt/LoginModalPrompt.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Dialog from 'material-ui/Dialog';
import IconButton from 'material-ui/IconButton';
import Login from 'components/Login';
import Signup from 'components/Signup';
import layoutStyles from 'styles/... |
src/containers/Routes/NoMatchRoute.js | jmahc/that-react-app-you-want | import React from 'react'
const NoMatchRoute = () => (
<div className="block">
<h1>Page Not Found</h1>
<p>We couldn't find the page you were looking for.</p>
</div>
)
export default NoMatchRoute
|
src/components/video_detail.js | gerCasas/ReduxSimpleStarter | import React from 'react';
const VideoDetail = ({video}) => {
//si el video viene vacio entonces lo validamos y regresamos loading
if(!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
// ES5 sintax
// const url = 'https://www.youtube.com/embed/' + videoId;
// ES6 sintax
... |
app/routes/Course/routes/Assignments/components/Sidebar.js | jefferchang/reactApp | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class Sidebar extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment =>... |
src/js/components/icons/base/PlatformDos.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/common/admin/analytics/AnalyticsResultsTable.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { urlToSource, urlToCollection } from '../../../../lib/urlUtil';
const localMessages = {
name: { id: 'analytics.table.name', defaultMessage: 'Name' },
count: { id: 'analytics.table.count... |
client/admin/mailer/Mailer.stories.js | subesokun/Rocket.Chat | import React from 'react';
import { Mailer } from './Mailer';
export default {
title: 'admin/pages/mailer',
component: Mailer,
};
export const _default = () =>
<Mailer />;
|
src/svg-icons/action/https.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttps = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-... |
src/components/GlobalForm.js | tonyxiao/segment-debugger | import React from 'react'
import CSSModules from 'react-css-modules'
import { Form, FormGroup, FormControl, ControlLabel, Col, HelpBlock } from 'react-bootstrap'
import styles from './GlobalForm.scss'
export const GlobalForm = ({ fields: {writeKey, sdk} }) => (
<Form horizontal>
<FormGroup controlId="writeKey" v... |
src/pages/BookAdd.js | prodigalyijun/demo-by-antd | import React from 'react';
import HomeLayout from '../layouts/HomeLayout';
import BookEditor from '../components/BookEditor';
class BookAdd extends React.Component {
render() {
return (
<BookEditor />
);
}
}
export default BookAdd; |
react-snake/app/main.js | react-europe/hackathon | /**
* Main component.
*
* @author Rob Gietema
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* Copyright (C) 2015 Rob Gietema
*
* @licence The above is the entire license notice for the JavaScript code in
* this page.
* @version 0.0.1
*/... |
admin/components/page_menu.js | svyatogor/dreamscape | import React from 'react'
import PropTypes from 'prop-types'
import {compose} from 'recompose'
import {connect} from 'react-redux'
import {
List,
ListItem,
Paper,
Subheader,
Divider,
MenuItem,
IconMenu,
IconButton,
makeSelectable,
} from 'material-ui'
import {map, get, pickBy} from 'lodash'
import {hu... |
example/examples/GradientPolylines.js | lelandrichardson/react-native-maps | import React from 'react';
import { StyleSheet, Dimensions } from 'react-native';
import MapView, { Polyline, ProviderPropType } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DE... |
src/containers/ProfilesIndex.js | lancespears/profile-maker | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions/index';
import { bindActionCreators } from 'redux';
import ProfilesList from '../components/ProfilesList';
const style = {
page: {
margin: 30,
},
};
@connect(state => ({
profiles: state.profiles.all
}), ac... |
src/esm/components/graphics/logos/la-banque-postale/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["variant", "width", "height"],
_excluded2 = ["color"],
_excluded3 = ["colors"];
import React from 'react';
import PropTypes from 'prop-types';
... |
app/node_modules/react-router/es6/RouteContext.js | BZhawaii/ArtStorm | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/App.js | SATELLITE-CAPSTONE-18/Capstone-Web | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
frontend/src/pages/sys-admin/web-settings/section.js | miurahr/seahub | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const propTypes = {
headingText: PropTypes.string.isRequired,
children: PropTypes.object.isRequired
};
class Section extends Component {
constructor(props) {
super(props);
}
render() {
const { headingText, children} = th... |
frontend/src/components/public_group/PublicGroupWhoWeAre.js | carlosascari/opencollective-website | import React from 'react';
import UserCard from '../../components/UserCard';
import Markdown from '../../components/Markdown';
import { displayUrl } from '../../components/DisplayUrl';
export default class PublicGroupWhoWeAre extends React.Component {
render() {
const { group, i18n } = this.props;
const ti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.