path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/Settings/Quality/Definition/QualityDefinitionLimits.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import formatBytes from 'Utilities/Number/formatBytes';
import translate from 'Utilities/String/translate';
function QualityDefinitionLimits(props) {
const {
bytes,
message
} = props;
if (!bytes) {
return <div>{message}</div>;
}
con... |
src/components/TodoForm.js | pekkis/dr-kobros-2016 | import React from 'react';
import uuid from 'node-uuid';
export default class TodoForm extends React.Component {
render() {
return (
<form onSubmit={this.onSubmit.bind(this)}>
<input ref="text" type="text" placeholder="what u wanna todo?" />
<button type="submi... |
examples/huge-apps/routes/Course/components/Course.js | moudy/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | sc4599/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
src/components/StylesEditor/StylesEditor.react.js | OpusCapitaBES/js-react-showroom-client | import React, { Component } from 'react';
import Types from 'prop-types';
import StyleCompiler from '../StyleCompiler';
import CodeMirror from 'kvolkovich-sc-react-codemirror';
import 'codemirror/mode/css/css';
const propTypes = {
initialRawStyles: Types.string
};
const defaultProps = {
initialRawStyles: ''
};
ex... |
src/js/components/input/autocomplete/input_autocomplete_select.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from '../../../prop_types';
import $ from 'jquery';
import { uuid } from '../../../utils';
import { mixin } from '../../../utils/decorators';
import InputBase from '../input_base';
import InputText from '../input_text';
import... |
docs/app/Examples/addons/Radio/States/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'shengnian-ui-react'
const RadioStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExampl... |
packages/ndla-icons/src/common/Sad.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Sad = props => (
<Icon
viewBox="... |
examples/browser/create-splunk-react-app/src/SplunkJsExample.js | splunk/splunk-sdk-javascript | import React from 'react';
import './SplunkJsExample.css';
import Inputs from './Inputs';
import * as splunkjs from 'splunk-sdk';
// jquery.ajax is used for the underlying http client in ProxyHttp
window.$ = require('jquery');
//const splunkjs = require('splunk-sdk');
const Async = splunkjs.Async;
const clientHttp =... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/subject.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSubject = (props) => (
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/>
</SvgIcon>
);
ActionSubject.displayName = 'ActionSubject';
ActionSubject.muiName = 'SvgIcon';
export default ActionS... |
src/index.js | michalholasek/react-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import RootComponent from './components/RootComponent';
ReactDOM.render(<RootComponent />, document.getElementById('root'));
|
client/src/NewItem.js | anshdivu/react-express | import React, { Component } from 'react';
export default class NewItem extends Component {
constructor(props) {
super(props);
this.state = { value: '' };
this.onInput = this.onInput.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
onInput(event) {
this.setState({ value: event.target.... |
es/components/footerbar/footer-toggle-button.js | dearkaran/react-planner | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
information/blendle-frontend-react-source/app/modules/settings/views/social.js | BramscoChill/BlendleParser | import ByeBye from 'byebye';
import Social from 'modules/settings/components/Social';
import React from 'react';
import ReactDOM from 'react-dom';
import FacebookActions from 'actions/FacebookActions';
import TwitterActions from 'actions/TwitterActions';
import FacebookStore from 'stores/FacebookStore';
import TwitterS... |
cheesecakes/plugins/content-manager/admin/src/components/VariableDraggableAttr/Carret.js | strapi/strapi-examples | /**
*
* Carret
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
const Carret = ({ style }) => {
return <div style={style} className={styles.carret} />;
};
Carret.defaultProps = {
style: {},
};
Carret.propTypes = {
style: PropTypes.object,
};
export def... |
frontend/src/components/common/InputField.js | icedcoffeeallday/CostPers | import React from 'react';
import { TextInput, View, Text } from 'react-native';
const InputField = ({ label, value, onChangeText, placeholder, secureTextEntry }) => {
const { inputStyle, labelStyle, containerStyle, color } = styles;
return (
<View style={styles.input}>
<TextInput
autoCapitalize... |
src/CheckboxGroup.js | zanjs/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import Checkbox from './Checkbox'
import { toArray } from './utils/strings'
import { toTextValue } from './utils/objects'
class CheckboxGroup extends React.Component {
static displayName = "CheckboxGroup"
static propTypes = {
classNam... |
017 - React Native Testing/rn_cli_example/index.ios.js | StephenGrider/RallyCodingWeekly | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class rn_cli_example extends Component {
render() {
return (
<View style={styles.cont... |
src/app/components/Wiki/index.js | ajacksified/reddit-mobile | import './styles.less';
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Anchor } from '@r/platform/components';
import { makeWikiPath } from 'lib/makeWikiPath';
import Loading from 'app/components/Loading';
import RedditLinkHijacker from 'app/compo... |
src/components/common/svg-icons/image/wb-cloudy.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96... |
src/components/FileUploadProgress.js | victormier/react-fileupload-progress | 'use strict';
import {EventEmitter} from 'events';
import React from 'react';
import objectAssign from 'object-assign';
const styles = {
progressWrapper: {
height: '10px',
marginTop: '10px',
width: '400px',
float:'left',
overflow: 'hidden',
backgroundColor: '#f5f5f5',
borderRadius: '4px'... |
src/statement/StatementContainer.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
import { connect } from 'react-redux';
import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS';
import shouldPureComponentUpdate from 'react-pure-render/function';
import StatementCard from './StatementCard';
import statementSelectors from './statementSelect... |
src/svg-icons/maps/local-hotel.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/app/components/bus-route/bus-route.js | swcraftersclm/katangapp-frontend | /**
* Copyright 2016-today Software swcraftersclm
*
* 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 ... |
tagging_interface/src/views/SharedComponents/Comment.js | Michael-Stewart-Webdev/annotation-tool | import React from 'react';
import {Component} from 'react';
import BASE_URL from 'globals/base_url';
import formatDate from 'functions/formatDate'
import { Link } from 'react-router-dom'
// text={comment.text} date={comment.created_at} author={comment.author} document={comment.document_string}
class Comment extends C... |
docs/themes/theme-custom/theme/Prototyper/context.js | RasaHQ/rasa_nlu | import React from 'react';
const PrototyperContext = React.createContext();
export default PrototyperContext;
|
nodejs/static/javascripts/admin/containers/NotFound.js | shen100/wemall | import React, { Component } from 'react';
import { connect } from 'react-redux';
let Index = () => {
return (
<div>404----</div>
)
}
export default connect()(Index); |
src/icons/LibraryMusicIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LibraryMusicIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 4H16c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-4 10h-6v1... |
src/InputBase.js | asiniy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return React.findDOMNode(this.refs.input);
}
getValue() {
if (this.props.type === 'static') {
retu... |
node_modules/react-bootstrap/es/FormControlStatic.js | vietvd88/developer-crawler | 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 ... |
examples/esnext/src/components/Master.js | lore/lore | /**
* This component serves as the root of your application, and should typically be the only
* component subscribed to the store.
*
* It is also a good place to fetch the current user. Once you have configured 'models/currentUser'
* to fetch the current user (by pointing it to the correct API endpoint) uncomment ... |
Rasberry Pi/JavaScriptReact/client/app.js | jorbensaaltink/rasreact | import React from 'react'
import Wrapper from './info-wrapper'
import Clock from './clock'
import Counter from './count'
import Data from './data'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
export default () => (<div>
<Router>
<main>
<Link to='/info'>Info </Link>
<L... |
src/FormGroup.js | dongtong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class FormGroup extends React.Component {
render() {
let classes = {
'form-group': !this.props.standalone,
'form-group-lg': !this.props.standalone && this.props.bsSize === 'large',
'form-group-sm': !this.props.standalone && this.pr... |
app/src/components/Button.js | xaviervia/tessellation | import React from 'react'
export default function Button ({children, title, ...props}) {
return <button
className='b--none bg-navy'
{...props}>
{children}
<span className='below'>{title}</span>
</button>
}
|
src/sheetElems/manyRequiredAnswers/preview.js | lukaszmakuch/quiz | import React from 'react';
import TextField from 'material-ui/TextField';
export default answer => {
return <div style={{
whiteSpace: 'nowrap'
}}>
{answer.answers.map((value, index) => {
return <div key={index + value}>
<TextField
value={value}
disabled
/>
... |
gitweb/public/js/components/layout.js | alanctgardner/gitweb | import React from 'react';
import {http} from 'http'
import bus from 'fluxed/bus';
import * as router from 'react-router';
var Router = router.default;
var { Route, Link, RouteHandler } = Router;
console.log('token', authStore.token())
var Button = React.createClass({
render() {
return (<button onClick={this.... |
src/parser/warlock/destruction/modules/azerite/Accelerant.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
const accelerantStats = traits => ... |
src/components/Nav/Nav.js | luisma1989/portfolio-react | import React from 'react'
import './Nav.scss'
export const Nav = () => (
<div id='main'>
<ul id='navigationMenu'>
<li>
<a className='home' href='#'>
<span>Home</span>
</a>
</li>
<li>
<a className='about' href='#'>
<span>About</span>
</a>
... |
test/helpers/shallowRenderHelper.js | dggriffin/MPSOhhh | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/CardsHelper.js | giladgreen/pokerStats | import React, { Component } from 'react';
import {cloneDeep} from 'lodash';
import {CardGroup, OddsCalculator} from 'poker-odds-calculator';
import consts from '../consts';
const { SITE_URL } = consts;
const prefix = `${SITE_URL}/images/`;
const TRANSPARENT =`${prefix}transparent.png`;
const GREEN = `${prefix}green.pn... |
reactjs-server-side-rendering/src/client/index.js | vert-x3/vertx-examples | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from '../shared/components/routes';
render (
<Router routes={routes} history={browserHistory} />,
document.getElementById('app')
);
|
node_modules/enzyme/src/version.js | mjchamoures/personalPortfolio | import React from 'react';
export const VERSION = React.version;
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = VERSION.slice(0, 3) === '15.';
|
src/svg-icons/social/share.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialShare = (props) => (
<SvgIcon {...props}>
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0... |
src/parser/priest/holy/modules/talents/45/Afterlife.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemHealingDone from 'interface/ItemHealingDone';
const SPIRIT_OF_REDEMPTION_DURATION = 15000;
// Example... |
src/server.js | martinval/boiler2 | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/js/components/hex-grid.js | talldan/hex-demo-motion | import React, { Component } from 'react';
import { Group } from 'react-art';
import HexTile from './hex-tile';
import { makeRadialGrid } from '../utils/hex-layout';
export default class HexGrid extends Component {
render() {
const widthPixels = this.props.dimensions.width;
const heightPixels = this.props.di... |
src/SideMenu/core/footer/index.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
const Footer = ({children}) =>
<div className={styles.footer} data-hook="menu-footer">
{children}
</div>;
Footer.propTypes = {
children: PropTypes.node
};
export default Footer;
|
src/components/notify/Toast.stories.js | ipfs/webui | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { checkA11y } from '@storybook/addon-a11y'
import Toast from './Toast'
storiesOf('Toast', module)
.addDecorator(checkA11y)
.add('Default', () => (
<div style={{ height: '100vh' }}>
... |
src/svg-icons/editor/drag-handle.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
features/team/team.page.component.js | nlambert/checkin | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { addCheckin, deleteCheckin } from '../reducers/checkin.reducer';
import { inviteUser, removeMember, deleteTeam, addTeam } from '../reducers/team.reducer';
import { joinTeam } from '../reducers/user.reducer';
im... |
src/parser/deathknight/blood/modules/spells/azeritetraits/BonesOfTheDamned.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
im... |
src/Parser/Warlock/Destruction/Modules/Items/T21_4set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Wrapper from 'co... |
src/parser/hunter/shared/modules/talents/BindingShot.js | fyruna/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import React from 'react';
/**
* Fires a magical projectile, tethering the enemy and any other enemies within 5 yards for 10 sec, rooting them in place for 5 sec if th... |
apps/test-suite/tests/helpers.js | exponentjs/exponent | // @flow
import asyncRetry from 'async-retry';
import { isMatch } from 'lodash';
import React from 'react';
import { Alert } from 'react-native';
export const waitFor = (millis) => new Promise((resolve) => setTimeout(resolve, millis));
export const alertAndWaitForResponse = async (message) => {
return new Promise(... |
webapp/src/icons/Calendar.js | cpollet/itinerants | import React from 'react';
import styles from './Calendar.less';
export default function Calendar() {
return (
<i className={styles.component}/>
);
}
|
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
actor-apps/app-web/src/app/components/Install.react.js | gaolichuang/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
src/components/common/ComboBox/ComboBoxItem.js | anztrax/simple-image-server-frontend | import React from 'react';
export default class ComboBoxItem extends React.Component{
constructor(props){
super(props);
}
render(){
const { text, value } = this.props;
return (
<option value={value}>
{text}
</option>
)
}
} |
client/components/create_tournament.js | AlaMurkan-FIFA-Boyz-2017-Dremz2Lyf/Game-Manager-V2 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import {
Row,
Col,
ListGroupItem,
FormControl,
FormGroup,
ControlLabel,
InputGroup,
DropdownButton,
MenuItem,
Button,
Panel
} from 'react-bootstrap';
import PlayerList ... |
src/utils/domUtils.js | adampickeral/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
fields/components/columns/InvalidColumn.js | everisARQ/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
return (
<ItemsTableVal... |
public/client/routes/login/containers/login.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {login} from '../../../modules/auth/actions/index'
export const Login = React.createClass({
do_login (event) {
event.preventDefault()
const {email, pass} = this.refs
const {dispatch, params} = this.props
let data = {... |
react-project/src/index.js | troy-lamerton/cart-kreatize | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import registerServiceWorker from './registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
import rootReducer from './reducers';
import App from './App';
... |
examples/preact/src/components/PushButton/PushButton.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import './PushButton.css';
/**
* An example-less button.
*/
export default function PushButton({ color, size, children }) {
const styles = {
color,
fontSize: PushButton.sizes[size],
};
return (
<button className="push-button" style={styles}>
... |
packages/mineral-ui-icons/src/IconReportProblem.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconReportProblem(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
client/modules/videos/components/video.js | gotrecillo/daw-euskalvideo | import React from 'react';
import { Card, CardActions } from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import TextField from 'material-ui/TextField';
import VideoCore from './video_core';
import { styles } from './styles';
class Video extends React.C... |
src/react-components/Product/ProductList.js | somabc/codehunt | import React from 'react';
import ProductItem from './ProductItem';
class ProductList extends React.Component {
render() {
return (
<ul className="product-list">
{
this.props.productList.map{function(item, idx) }
return <ProductItem key={idx} {...item}/>
})
... |
src/components/linkIf.js | Ciunkos/ciunkos.com | import React from 'react'
import InlineLink from './InlineLink'
const wrapIf = (Component, props) => condition => value =>
condition ? <Component {...props}>{value}</Component> : value
const linkIf = uri => wrapIf(InlineLink, { href: uri })(uri)
export default linkIf
|
react/FlagIDIcon/FlagIDIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import FlagIDIcon from './FlagIDIcon';
export const symbols = {
'FlagIDIcon': <FlagIDIcon />
};
|
app/imports/ui/client/components/CreateProject/CreationForm.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { Session } from 'meteor/session';
import { createContainer } from 'meteor/react-meteor-data';
import FeedbackMessage from '../misc/FeedbackMessage';
class CreationForm extends Component {
constructor(props) {
super(props)... |
src/views/WhiteListManage/AddUserIdBox.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Form, Button, Input, Modal, message } from 'antd'
import Spin from 'COMPONENT/effects/Spin'
import { setAddUserIdState, addUserId } from 'REDUCER/pages/whiteListManage'
const FormItem = Form.Item
@conne... |
AssetsMgmtApp/AppIOS/Views/Web/index.js | sunlrain/AssetsMgmt | /*
Coded by: Simar (github.com/iSimar)
GitHub Project: https://github.com/iSimar/HackerNews-React-Native
*/
import React, { Component } from 'react';
import {
View,
WebView,
StyleSheet,
TouchableOpacity,
Text,
} from 'react-native';
var styles = StyleSheet.create({
container: {
flex: 1,
background... |
client/src/js/components/header/Avatar.js | abitlog/retube | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import Spinner from 'react-spinkit';
import { fadeAnimation } from '../../utils/animationSettings';
class Avatar extends React.Component {
static propTypes = {
src: React.PropTypes.string.isRequired
};
cons... |
src/components/videos/VideoPreviewCard.js | mg4tv/mg4tv-web | import * as _ from 'lodash'
import {DocumentCard, DocumentCardPreview, DocumentCardTitle} from 'office-ui-fabric-react'
import React from 'react'
const VideoPreviewCard = (
{
className = '',
videoId,
videos
}) => (
<div className={className}>
<DocumentCard onClickHref={`/videos/${videoId}`}>
... |
ui/src/views/applications/UpdateIntegration.js | brocaar/lora-app-server | import React, { Component } from 'react';
import Grid from '@material-ui/core/Grid';
import Card from '@material-ui/core/Card';
import CardContent from "@material-ui/core/CardContent";
import TitleBar from "../../components/TitleBar";
import TitleBarTitle from "../../components/TitleBarTitle";
import TitleBarButton f... |
src/app/js/icons/Check.js | AppSaloon/socket.io-tester | import React from 'react'
import TemplateIcon from './TemplateIcon'
const Check = ({size, color, customStyle}) =>
<TemplateIcon
size={size}
color={color}
customStyle={customStyle}
viewBox="6 6 12 12"
>
<path d="M9.599,11.86c-0.097-0.097-0.097-0.256,0-0.354l1.01-1.009c0.0... |
src/containers/AdvancedUI/codeMirror/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Row, Col } from 'antd';
import Switch from '../../../components/uielements/switch';
import Select from '../../../components/uielements/select';
import Form from '../../../components/uielements/form';
import PageHeader from '../../../components/utility/pageHeader';
impo... |
js/components/TodoList.js | RisingStack/graffiti-todo | import React from 'react';
import Relay from 'react-relay';
import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation';
import Todo from './Todo';
class TodoList extends React.Component {
getFilteredTodos() {
const edges = this.props.todos.edges;
if (this.props.filter === 'active') {
... |
app/components/Header/SecondaryNavBar.js | klpdotorg/tada-frontend | /*
* Secondary navigation bar for filtering/search etc..
*/
import React from 'react';
import PropTypes from 'prop-types';
// import { asyncContainer, Typeahead } from 'react-bootstrap-typeahead';
import { CreateDistrict } from '../../containers/Header';
import { checkPermissions } from '../../checkPermissions';
// co... |
src/Parser/Warlock/Destruction/Modules/Talents/SoulHarvestTalent.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
impo... |
src/renderTemplate.js | jeffhandley/react-composite-pages | import React from 'react';
import ContainerState from './ContainerState';
import ContainerClient from './ContainerClient';
import { renderToStaticMarkup } from 'react-dom/server';
const _ = {
mapValues: require('lodash/mapValues')
};
export default function renderTemplate(template) {
const sections = _.mapValues... |
src/routes.js | mpbill/ca.scta.admin.client | import React from 'react';
import { Route, IndexRoute,IndexRedirect} from 'react-router';
import EditAddressContainer from './containers/EditAddressContainer';
import AddressListPage from './containers/AddressListPage';
import App from './components/App';
import GenericContainer from './containers/GenericContainer';
im... |
src/components/common/books/BookGrid.js | zainxyz/react-reads | import PropTypes from 'prop-types';
import React from 'react';
import shortid from 'shortid';
import Book from './Book';
/**
* Render a collection of books in a grid
* @param {Array} options.booksList The list of books
* @param {Function} options.onShelfChange The callback for shelf change event
* @p... |
src/components/shell/viewMap.js | datea/datea-webapp-react | import React from 'react';
/* VIEWS */
import Home from '../home';
import Landing from '../landing';
import Error404 from '../error/error-404';
import LoginPage from '../account/login-page';
import RegisterPage from '../account/register-page';
import RegisterFormPage from '../account/register-form-page';
import Recove... |
src/App.js | hannes-hochreiner/more-notes | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import FlatButton from 'material-ui/FlatButton';
import MnSnackbar from "./MnSnack... |
src/components/DragBox/DragBoxSelect.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
/**
* **DragBoxSelect** is a specialized usage of [DragBox](#!/DragBox) that is also accessible via `DragBox.Select`. It is
* provided as a convenience as it is a commonly used group of components. All properties available in both
* [Selectable](#!/S... |
static/src/containers/Personal.js | detailyang/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-11T12:16:28+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:14:10+08:00
* @License: The MIT License (MIT)
*/
import React from 'react';
import Antd, {
Upload,
Form,
Button,
Input,
Radio,
... |
lib/js/apps/home/index.js | jneander/learning | import React from 'react';
import Container from 'instructure-ui/lib/components/Container';
import Heading from 'instructure-ui/lib/components/Heading';
import AppHarness from 'js/shared/components/AppHarness';
export default class Home extends React.Component {
render () {
return (
<AppHarness page="home... |
webpack/components/RoutedTabs/index.js | snagoor/katello | import React from 'react';
import { shape, string, number, element, arrayOf } from 'prop-types';
import { Tab, Tabs, TabTitleText } from '@patternfly/react-core';
import { Switch, Route, Redirect, useLocation, withRouter, HashRouter } from 'react-router-dom';
import { head, last } from 'lodash';
const RoutedTabs = ({
... |
src/svg-icons/image/filter-4.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-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 16H7V3h14... |
src/components/Tickets/CreateTicketForm/TicketForm.js | nadavspi/UnwiseConnect | import React from 'react';
import Autocomplete from 'react-autocomplete';
import TicketLink from '../TicketLink';
const TicketForm = (props) => {
return (
<form>
<button
type="button"
className="close-btn btn"
aria-label="close"
onClick={() => props.toggleTicketModal()}
... |
docs/src/app/components/pages/components/SelectField/ExampleLongMenu.js | rscnt/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compone... |
test/integration/link-ref/pages/child-ref.js | zeit/next.js | import React from 'react'
import Link from 'next/link'
export default () => {
const myRef = React.createRef(null)
React.useEffect(() => {
if (!myRef.current) {
console.error(`ref wasn't updated`)
}
})
return (
<Link href="/">
<a ref={myRef}>Click me</a>
</Link>
)
}
|
app/view/ios/ChatScreen.js | 1598692232/rn-xcf | /**
* Created by bll on 2017/7/18.
*/
import React from 'react';
import {
Button,
Image,
View,
Text
} from 'react-native';
class ChatScreen extends React.Component {
static navigationOptions = {
title:'聊天',
};
render() {
const {params} = this.props.navigation.state;
return (
<View style={{background... |
src/app/starter.js | fouad/aframe-react-starter | import 'aframe-core'
import 'babel-polyfill'
import {Animation, Entity, Scene} from 'aframe-react'
import React from 'react'
import ReactDOM from 'react-dom'
import sample from 'lodash.sample'
import {cdn} from '../utils'
import {Camera, Cursor, Light, Sky, CurvedImage, VideoSphere} from '../components/primitives'
cla... |
src/app.js | Mikel45/GNO | import React, { Component } from 'react';
import { Header, Footer } from './components/index';
export default class App extends Component {
render() {
return (
<div>
<Header />
</div>
);
}
}
|
modules/IndexLink.js | shunitoh/react-router | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Base/Footer/Footer.js | abimarank/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
views/decoration_toggle.js | Young55555/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
src/components/Main.js | DaveJump/photo-gallery | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片相关数据
var imageDatas = require('../data/imageDatas.json');
//将图片名信息转成图片URL路径信息
imageDatas = (function genImageURL(imageDatasArr){
for(var i = 0,j = imageDatasArr.length; i < j; i ++)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.