path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/modules/settings/SettingsViewContainer.js | futurice/PelaryHemmo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { List, Map } from 'immutable';
import {
Image,
ScrollView,
TouchableOpacity,
Alert,
Text,
TextInput,
View,
Platform,
StyleSheet,
} from 'react-native';
import { KeyboardAwareScr... |
src/svg-icons/action/assessment.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssessment = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
ActionA... |
packages/cf-component-card/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import {
Card,
CardContent,
CardControl,
CardDrawers,
CardMessages,
CardSection
} from 'cf-component-card';
import { Button } from 'cf-component-button';
class CardComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
activeDrawer: ... |
src/components/Header/Header.js | dervos/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { Component } from 'react';
import withStyle... |
packages/showcase/axes/custom-axis-tick-element.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
app/components/SegmentedControl/TabOption.js | JSSolutions/Perfi | import React from 'react';
import {
View,
ViewPropTypes,
TouchableOpacity,
Text,
} from 'react-native';
import T from 'prop-types';
import { cx } from '../../styles';
import Badge from './Badge';
import s from './styles';
const TabOption = ({
isTabActive,
index,
badge,
text,
firstTabStyle,
lastTabS... |
packages/mineral-ui-icons/src/IconSignalCellular1Bar.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 IconSignalCellular1Bar(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {..... |
src/index.js | cameronjroe/kosmos | // import 'source-map-support/register'
import { resolve } from 'path'
import http from 'http'
import express from 'express'
import compression from 'compression'
import React from 'react'
import helmet from 'helmet'
import ReactHelmet from 'react-helmet'
import Reloader from './reloader'
import { Router, RouterContext... |
examples/src/cardRoute.js | HBM/md-components |
import React from 'react'
import {Button, Card, Title, Text, Actions} from 'md-components'
export default class CardRoute extends React.Component {
render () {
return (
<div>
<section>
<h2>Card</h2>
<Card>
<Title>
Title
</Title>
... |
src/index.js | XPRO-LTD/resource-managment-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app/App';
import './styles/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
); |
navbar/components/Dashboard.js | kalmyk/calc-unit | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
malax/src/modules/navbar/index.js | cseale/nasa-space-jockey | import React from 'react';
import logo from './logo.svg';
class Navbar extends React.Component {
render() {
return (
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<button className="NavbarButton">Malax</button>
{/*<button className="Na... |
src/Tree.js | tanbo800/react-ui | "use strict"
// 为了提高效率,直接操作了tree.state.data,
// 由于tree.state.data是一个array,当data值改变时,不经过setState,
// 所有的Item的data也因此改变,可能破坏了react的一个原则
import React from 'react'
import classnames from 'classnames'
import { toArray, substitute } from './utils/strings'
import { forEach, isEmpty } from './utils/objects'
import { require... |
src/App.js | MinnSoe/ifyoupayme | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>IYPM CRA</h2>
</div>
... |
src/docs/components/quote/QuoteExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Quote from 'grommet/components/Quote';
import Paragraph from 'grommet/components/Paragraph';
import InteractiveExample from '../../../components/InteractiveExample';
Quote.displayName = 'Quote';
Parag... |
server/sonar-web/src/main/js/apps/component-measures/home/DomainMeasures.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
imports/ui/pages/Sendmessage.js | lizihan021/SAA-Website | import React from 'react';
import { Grid, Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import { Link } from 'react-router'
const Sendmessage = () => (
<section id="main-info" className="pad-mid">
<Grid>
<Row>
<Col sm={ 12 } md={ 6 }>
<h3 clas... |
app/config/routes.js | oneillci/egghead-react-app | import React from 'react';
import Main from '../components/Main';
import Home from '../components/Home';
import {Router, DefaultRoute, Route} from 'react-router';
const routes = (
<Route name="app" path="/" handler={Main}>
<DefaultRoute handler={Home} />
</Route>
);
export default routes;
// var React = require... |
shared/components/DemoApp/index.js | thehink/equilab-web | import 'normalize.css/normalize.css';
import React from 'react';
import Switch from 'react-router-dom/Switch';
import Route from 'react-router-dom/Route';
import Helmet from 'react-helmet';
import config from '../../../config';
import './globals.css';
import Error404 from './Error404';
import Header from './Header'... |
src/parser/rogue/outlaw/modules/features/Checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules... |
src/esm/components/layout/container/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
var _excluded = ["style"];
import React from 'react';
import PropTypes from 'prop-types';
import { St... |
blueocean-dashboard/src/main/js/components/stories/status.js | alvarolobato/blueocean-plugin | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { StatusIndicator } from '@jenkins-cd/design-language';
import RunningIndicator from '../RunningIndicator.jsx';
const props = {
width: '640px',
height: '640px',
};
const smaller = {
width: '320px',
height: '320px',
};
st... |
src/v2/stories/Icons.stories.js | aredotna/ervell | import React from 'react'
import { storiesOf } from '@storybook/react'
import Specimen from 'v2/stories/__components__/Specimen'
import States from 'v2/stories/__components__/States'
import Button from 'v2/components/UI/GenericButton'
import ButtonGroup from 'v2/components/UI/ButtonGroup'
import Icons, { ICON_NAMES }... |
src/svg-icons/image/rotate-right.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7... |
src/PasswordManager.Web/Client/app/components/AddAccount.js | SogetiUSA/PasswordManager | import React from 'react';
import AddAccountStore from '../stores/AddAccountStore';
import AddAccountActions from '../actions/AddAccountActions';
class AddAccount extends React.Component {
constructor(props) {
super(props);
this.state = AddAccountStore.getState();
this.onChange = this.onCha... |
fmi-2022-01-react-intro/src/index.js | iproduct/course-node-express-react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
src/svg-icons/hardware/laptop-mac.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopMac = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0... |
src/renderer/ui/components/modals/ConfirmTrayModal.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import { remote } from 'electron';
import React, { Component } from 'react';
import Dialog from './ThemedDialog';
import FlatButton from 'material-ui/FlatButton';
export default class ConfirmTrayModal extends Component {
constructor(...args) {
super(...args);
this.state = {
open: false,
};
}
... |
storybookStories/AddServerModal.story.js | xclix/chan | import React from 'react';
import { Provider } from 'react-redux';
import { storiesOf } from '@kadira/storybook';
import { createModal } from '../src/lib/gui/components/Modal';
import configureStore from '../src/lib/gui/store/index';
import AddServerModal from '../src/lib/gui/components/AddServerModal';
storiesOf('Add... |
app/src/App.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import Home from './routes/Home';
import LocationDetail from './routes/LocationDetail';
import DeveloperDetail from './routes/DeveloperDetail';
import LanguageDetail from './routes/LanguageDetail';
import NotFound from './components/NotFound... |
ajax/libs/recompose/0.20.2/Recompose.js | jdh8/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/svg-icons/image/photo-size-select-small.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectSmall = (props) => (
<SvgIcon {...props}>
<path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H... |
mobile/ClubLife/src/views/post.js | Bcpoole/ClubLife | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
TouchableNativeFeedback,
TouchableOpacity,
Platform,
} from 'react-native';
import Button from 'react-native-button';
export default class Post extends Component {
constructor(props){
super(props);
t... |
stories/FieldMultiInput.stories.js | maputnik/editor | import React from 'react';
import {useActionState} from './helper';
import FieldMultiInput from '../src/components/FieldMultiInput';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'FieldMultiInput',
component: FieldMultiInput,
decorators: [withA11y],
};
ex... |
src/Pagination.js | kwnccc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
fields/types/url/UrlField.js | andrewlinfoot/keystone | import React from 'react';
import Field from '../Field';
import { GlyphButton, FormInput } from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'URLField',
statics: {
type: 'Url',
},
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\... |
src/spares/radio/Radio.js | korchemkin/spares-uikit | /**
*
* Spares-uikit
*
* @author Dmitri Korchemkin
* @source https://github.com/korchemkin/spares-uikit
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Radio.css';
class Radio extends Component {
render() {
let inputProps = {
className: 'spares-radio',
type... |
react/dvademo/src/routes/IndexPage.js | fishjar/gabe-study-notes | import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
function IndexPage() {
return (
<div className={styles.normal}>
<h1 className={styles.title}>Yay! Welcome to dva!</h1>
<div className={styles.welcome} />
<ul className={styles.list}>
<li>To g... |
app/components/ColorPicker/components/Item/index.js | JSSolutions/Perfi | import React from 'react';
import { TouchableOpacity, View } from 'react-native';
import T from 'prop-types';
import s from './styles';
import { Icon } from '../../../index';
import { moderateScale } from '../../../../styles/scalingUtils';
const Item = ({ color, isSelected, onPress, ...props }) => (
<TouchableOpaci... |
src/components/app.js | heroTM737/Dota2CounterPlayClient | import React, { Component } from 'react';
import HeroPicker from '../containers/hero_picker';
import CounterView from '../containers/counter_view';
import SearchBar from '../containers/search_bar';
import MatchPickView from '../containers/match_pick_view';
import { Tabs, Tab } from './tab';
export default class App ex... |
6.2.0/examples/react-widgets/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(303),e.exports=n(302)},function(e,t,n){var r=n(6),o=n(40),i=n(21),a=n(22),u=n(41),s="prototype",... |
app/javascript/mastodon/components/gifv.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class GIFV extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
};
state = {
l... |
src/components/InfoSectionToggle.js | Journey316/resume | import React from 'react';
const HelpBox = ({onPressInfo}) => {
return (
<span
onClick={onPressInfo}
className="help-box">
<i className="fa fa-question-circle" aria-hidden="true"></i>
</span>
);
}
export default HelpBox;
|
src/main.js | easingthemes/notamagic | import React from 'react';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { useRouterHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import withScroll from 'scroll-behavior';
import createStore from './store/createS... |
app/components/Notes/NoteAdd.js | munir7/react | import React from 'react';
class NoteAdd extends React.Component {
handleSubmit() {
var newNote = this.refs.note.getDOMNode().value;
this.refs.note.getDOMNode().value = '';
this.props.noteAdd(newNote);
}
render() {
return (
<div className="input-group">
<input type="text" className... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | juagarciaga/samcell | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
app/components/elements/SaveState.js | DigitalOptimizationGroup/isomorphic-react-base-app | /**
* Copyright 2015, Digital Optimization Group, LLC.
* Copyrights licensed under the APACHE 2 License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import saveState from '../../actions/saveState';
class SaveState extends React.Component {
constructor(props, context) {
super();
th... |
node_modules/react-bootstrap/es/Radio.js | vitorgomateus/NotifyMe | 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 ... |
app/javascript/mastodon/features/ui/components/modal_loading.js | MastodonCloud/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'>
... |
src/svg-icons/notification/sync-problem.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncProblem = (props) => (
<SvgIcon {...props}>
<path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z... |
client/src/SignUp.js | mikehug/happyApp | import React from 'react';
import { Panel, FormGroup, FormControl, ControlLabel, Button } from 'react-bootstrap';
import { Link } from 'react-router';
class SignUp extends React.Component {
//TODO Validation on password length/security and confirmation. Server side also needed
//with email confirmation probably a ... |
src/svg-icons/device/brightness-medium.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
src/svg-icons/action/three-d-rotation.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThreeDRotation = (props) => (
<SvgIcon {...props}>
<path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.... |
packages/envision-docs/src/components/Header/index.js | albinohrn/envision | import React from 'react';
import Helmet from 'react-helmet';
import PropTypes from 'prop-types';
import Link from '../Link';
const Header = ({ title, menuItems }) => {
return (
<>
<Helmet>
<html lang="en" />
<meta charset="utf-8" />
<meta
name="view... |
src/main.js | iskarica/react-native-newsapp | import React, { Component } from 'react';
import { connect, Provider } from 'react-redux';
import { StatusBar, Platform } from 'react-native';
import configureStore from './store';
import App from './containers/App';
const store = configureStore({});
export default class Main extends Component {
componentDidMount... |
src/Sidebar/Form/InputImg.js | pirey/mie-ayam | import React from 'react'
const InputImg = ({ id, name, onChange, isLoading, size = 'm', classNames = '', label = '' }) => {
const icon = {
m: <i className="fa fa-camera fa-2x"></i>,
l: <i className="fa fa-camera fa-4x"></i>,
}
return (
<label htmlFor={id} className={`input-img text-center ${classNa... |
src/parser/demonhunter/vengeance/modules/talents/BurningAlive.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import { formatNumber } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
//WCL: https://www.warcra... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | DryFlyRyan/BrewsBrothersChillerFrontEnd | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/component/TodaysTodo.js | sososimsim/TT | import React, { Component } from 'react';
class TodaysTodo extends Component {
constructor(props){
super();
this.state = {
completed: props.todo.completed,
completedDate: props.todo.completedDate,
content: props.todo.content,
id: props.id
}
}
toggleCompleteState = () => {
... |
mine-data/src/CategoryList/CategoryList.js | BerlingskeMedia/nyhedsbreve | import React from 'react';
import './CategoryList.scss';
export const CategoryList = ({children}) => (
<div className="CategoryList">
{children}
</div>
); |
src/components/generics/navbar.js | bombe-software/demos | import React, { Component } from 'react';
import { Link } from "react-router-dom";
import { connect } from "react-redux";
class Navbar extends Component {
constructor(props) {
super(props);
this.state = {
isToggleOn: false,
isUserSelected: false
};
this.handleClick = this.handleClick.bind... |
src/components/MoveHistoryTableCell/MoveHistoryTableCell.js | jtiscione/redux-chess | import React from 'react';
import PropTypes from 'prop-types';
import { Glyphicon } from 'react-bootstrap';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import cx from 'classnames';
import s from './MoveHistoryTableCell.css';
function MoveHistoryTableCell({ side, san, clickFunction, faint, hot }) {... |
src/routes/main/password/create/Create.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Grid from 'react-bootstrap/lib/Grid';
import Link from '../../../../components/Link';
import s from './Create.scss';
class Create extends Component {
static propTypes ... |
src/client.js | LeraSavchenko/Maysternia | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-... |
src/Parser/Druid/Balance/Modules/Features/UnempoweredLunarStrike.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Combatants from 'Parser/Core/Modules/Combatants';
const TARGETS_FOR_GOOD_CAST = 4;
class UnempoweredLunarStrike extends Ana... |
admin/client/App/screens/Item/components/EditFormHeader.js | frontyard/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { connect } from 'react-redux';
import Toolbar from './Toolbar';
import ToolbarSection from './Toolbar/ToolbarSection';
import EditFormHeaderSearch from './EditFormHeaderSearch';
import { Link } from 'react-router';
import Drilldown from './Dr... |
app/components/Checkout.js | jbrod22/music-market-master |
import React from 'react'
import { connect } from 'react-redux'
import CheckoutForm from '../Forms/Checkoutform'
const Checkout = (props) => {
console.log('CHECKOUT PROPS', props)
const allCartItems = props.cart.cartItems
const orderTotal = allCartItems.reduce((acc, curVal) => {
return acc + (curVal.price ... |
src/tables/TableContainer.js | HarvestProfit/harvest-profit-ui | import React from 'react';
import PropTypes from 'prop-types';
import PureReactComponent from '../utilities/PureReactComponent';
const TableContainer = PureReactComponent(props => (
<div className="table-container">
{props.children}
</div>
));
TableContainer.propTypes = {
children: PropTypes.element.isRequi... |
src/components/PrioritySelect/PrioritySelect.js | F-Ruxton/taskata | import React from 'react';
// import PropTypes from 'prop-types';
import SimpleSelectWrapper from '../SimpleSelectWrapper/SimpleSelectWrapper';
const PrioritySelect = ({ value, handleChange }) => {
const options = [
{ value: 'High', label: 'High' },
{ value: 'Medium', label: 'Medium' },
{ value: 'Low', ... |
src/pages/anemess.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Anemess' />
)
|
ui/src/main/js/components/UpdateSettings.js | rdelval/aurora | import moment from 'moment';
import React from 'react';
import { isNully } from '../utils/Common';
export default function UpdateSettings({ update }) {
const settings = update.update.instructions.settings;
return (<div>
<table className='update-settings'>
<tbody>
<UpdateStrategy strategy={setti... |
index.es6.js | instructure-react/react-publish-toggle | import React from 'react'
import classSet from 'class-set'
const PublishToggle = React.createClass({
propTypes: {
published: React.PropTypes.bool,
onChange: React.PropTypes.func,
disabled: React.PropTypes.bool,
ariaLabels: React.PropTypes.object
},
getInitialState() {
return {
hasFocus... |
src/modules/ModuleC/index.js | lomocc/react-boilerplate | import React from 'react';
import commonStyles from 'style/index.less';
import styles from './index.less';
export default class extends React.Component {
render() {
return (
<div>
<h1 className={commonStyles.test}>CCCCCCCCCCCCCCCCCCCC</h1>
<p className={styles.tes... |
src/svg-icons/av/hearing.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
client/modules/polls/VoteForm/VoteForm.js | ncrmro/ango | import React from 'react'
import Button from 'react-mdc-web/lib/Button/Button'
import { createFragmentContainer, graphql } from 'react-relay'
import QuestionChoices from './QuestionChoices'
import styles from '../Polls.scss'
import VoteMutation from './VoteMutation'
export const variables = { count: 10 }
type VoteMut... |
client/client.js | carteb/carte-blanche | /**
* Main entry point for the CarteBlanche Client
*/
import React from 'react';
import ReactDOM from 'react-dom';
import {
Route,
Router,
hashHistory,
} from 'react-router';
import Plugins from './components/Plugins';
import App from './components/App';
import FourOhFour from './components/FourOhFour';
import... |
src/TabbedArea.js | mxc/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
client/src/shared/Loading.js | clembou/github-requests | import React from 'react';
export const Loading = props => (
<i className="fa fa-spinner fa-pulse fa-3x fa-fw">
<span className="sr-only">Loading...</span>
</i>
);
export const LoadingWithMessage = props => (
<div>
<Loading />
<h2>{props.message}</h2>
</div>
);
|
src/components/GameMenu.js | dherault/Oso | import React from 'react';
// import { Link } from 'react-router';
import { connect } from 'react-redux';
import ac from '../state/actionCreators';
class GameMenu extends React.Component {
render() {
const { dispatch } = this.props;
const s0 = {
position: 'fixed',
left: 0,
bottom: 10,... |
src/www/js/form-fields/checkbox-group.js | nickolusroy/react_dnd | import React from 'react';
export class CheckBoxGroup extends React.Component {
constructor(props) {
super(props);
this.state = {
selection : ''
};
this.onChange = this.onChange.bind(this);
};
onChange(e) {
this.setState({
selection : e.target.value
});
this.props.onUpd... |
src/sentry/static/sentry/app/index.js | jean/sentry | import jQuery from 'jquery';
import plugins from './plugins';
const csrfCookieName = window.csrfCookieName || 'sc';
// setup jquery for CSRF tokens
function getCookie(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
let cookies = document.cookie.split(';');
for (let i = 0;... |
frontend/src/components/organizationProfile/profile/organizationProfileOverviewPaper.js | unicef/un-partner-portal |
import PropTypes from 'prop-types';import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import Paper from 'material-ui/Paper';
import { withStyles } from 'material-ui/styles';
import OrganizationProfileOverview from './organizationProfileOverview';
import SwitchP... |
playground/index.js | gabrielbull/react-aim | import React from 'react';
import ReactDOM from 'react-dom';
import Playground from './playground';
document.documentElement.style.width = '100%';
document.documentElement.style.height = '100%';
document.body.style.background = 'white';
document.body.style.margin = '0';
document.body.style.padding = '0';
document.body... |
src/@ui/inputs/Picker/index.android.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Animated, Picker as NativePicker } from 'react-native';
import { mapProps } from 'recompose';
import InputUnderline from '../InputUnderline';
import InputWrapper from '../InputWrapper';
import FloatingLabel from '../FloatingLabel';
const MappedNa... |
tests/react_native_tests/test_data/native_code/Button/app/components/Mobile/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import Button from '@rn/commons/app/components/VIButton/VIButton'
import styled from 'styled-components/native'
import { View } from 'react-native'
const Mobile =... |
react-client/src/components/Rome.js | francoabaroa/escape-reality | import 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, withRouter } from 'react-router';
import Camera from './Camera';
import Text from './Tex... |
src/layouts/components/Icons.js | ArghTeam/argh.team | import React from 'react'
export const Skype = (props) =>
<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24.08 24.08' {...props}><path d='M23.03 13.5c.34.47.6 1 .78 1.57.2.57.28 1.16.28 1.77 0 .88-.18 1.7-.53 2.47-.35.77-.83 1.45-1.45 2.04-.6.58-1.33 1.04-2.15 1.37s-1.7.5-2.62.5c-1.3 0-2... |
src/modules/Button/Button.js | chengjianhua/templated-operating-system | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Tappable from 'react-tappable';
import cx from 'classnames';
import s from './Button.css';
export default class Button extends Component {
static displayName = 'Button';
/* eslint-disable comma-dangle, quotes, quote-props */
s... |
src/components/event_card.js | roman01la/ihub-events | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardHeader from 'material-ui/lib/card/card-header';
import CardText from 'material-ui/lib/card/card-text';
import CardMedia from 'material-ui/lib/card/card-media';
import List from 'material-ui/l... |
test/development/basic/hmr/pages/hmr/style-dynamic-component.js | azukaru/next.js | import React from 'react'
import dynamic from 'next/dynamic'
const HmrDynamic = dynamic(import('../../components/hmr/dynamic'))
export default () => {
return <HmrDynamic />
}
|
src/js/react/presentational/svg/FixClick.js | koluch/db-scheme | // @flow
import React from 'react'
import type {TPoint} from '~/types/TPoint'
type TProps = {
onClick: () => void,
children?: *,
}
type TState = {
start: ?TPoint,
}
const ALOWED_MOUSE_SHIFT = 3
class FixClick extends React.Component {
state: TState = {start: null}
props: TProps
handleMous... |
demo/examples/BackButton.js | OnsenUI/react-onsenui | import React from 'react';
import ons from '../../OnsenUI/build/js/onsenui.js'
import {
Page,
Toolbar,
BackButton,
} from '../../src/index.js';
export default class extends React.Component {
constructor(props) {
super(props);
}
handleClick() {
ons.notification.confirm('Do you really want to go b... |
ui/src/App.js | sgeisbacher/photogallery-api | import React, { Component } from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Navigation from './components/Navigation';
import Home from './components/Home';
import Label from './components/Label';
import Media from './components/Media';
class App extends Component {
render() {
... |
test/render-input-component/AutosuggestApp.js | YingyuWu/react-autosuggest-fix-ios-scroll-issue | import React, { Component } from 'react';
import Autosuggest from '../../src/Autosuggest';
import languages from '../plain-list/languages';
import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js';
const getMatchingLanguages = value => {
const escapedValue = escapeRegexCharacters(value.trim()... |
web/src/components/Icons/Cloud.js | dnote-io/cli | /* Copyright (C) 2019, 2020 Monomax Software Pty Ltd
*
* This file is part of Dnote.
*
* Dnote is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your optio... |
src/docs/components/notification/NotificationExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Notification from 'grommet/components/Notification';
import InteractiveExample from '../../../components/InteractiveExample';
Notification.displayName = 'Notification';
const PROPS_SCHEMA = {
statu... |
src/main/js/components/Listing.js | Bernardo-MG/dreadball-toolkit-webpage | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import List from 'grommet/components/List';
import ListItem from 'grommet/components/ListItem';
/**
* List component. Creates a list from a collection of items.
*
* The collection should contain a list of elements to show, which will be... |
src/Icons/Megaphone.js | enragednuke/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/megaphone/1399378/
// Created by Jony from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M77.2,7c-3.5,0-6.4,2.4-7.1,5.8L28.7,27.7H14.8c-4.4,0-8,3.6-8,8v22.8c0,0.2,0... |
client/src/components/auth/signin.js | vygandas/react-redux-nodejs-mongodb-auth-skeleton | import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { connect } from 'react-redux';
import * as actions from '../../actions';
const renderInput = field => // Define stateless component to render input and errors, // Type specified below in <Field>
<div>
... |
src/icons/Timer10Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Timer10Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M0 15.43v3.37l6-2V36h4V12h-.51L0 15.43zm47.57 13.3c-.29-.57-.71-1.06-1.26-1.48-.55-.42-1.23-.77-2.02-1.06-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.