path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
tests/react_custom_funs/clone_element.js | MichaelDeBoey/flow | // @flow
import React from 'react';
import type {Element} from 'react';
declare var any: any;
class A extends React.Component<{foo: number}, void> {}
class B extends React.Component<{foo: number, bar: number}, void> {}
class C extends React.Component<{children: number}, void> {}
class D extends React.Component<{chil... |
app/javascript/mastodon/components/domain.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', default... |
src/svg-icons/hardware/keyboard-arrow-left.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft);
Hardware... |
src/frontend/index.js | resummed/resummed | import React from 'react';
import { compose } from 'recompose';
import { Provider, connect } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import configureRoutes from './configureRoutes';
import 'frontend/static/favicon.ico';
con... |
fields/explorer/field.js | matthieugayon/keystone | import Domify from 'react-domify';
import React from 'react';
import Markdown from 'react-markdown';
const Row = (props) => {
const styles = {
display: 'flex',
flexWrap: 'wrap',
marginLeft: -10,
marginRight: -10,
...props.style,
};
return (
<div
{...props}
className={props.className || 'Row'}
... |
src/svg-icons/av/queue-music.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueueMusic = (props) => (
<SvgIcon {...props}>
<path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/>
</SvgIcon>
);
AvQu... |
src/parser/ui/Panel.js | anom0ly/WoWAnalyzer | import { Panel as InterfacePanel, ErrorBoundary } from 'interface';
import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY';
import PropTypes from 'prop-types';
import React from 'react';
const Panel = ({ category = STATISTIC_CATEGORY.PANELS, position, ...others }) => (
<ErrorBoundary>
<InterfacePanel {...... |
src/components/__tests__/PageDropdownTest.js | joellanciaux/Griddle | import 'jsdom-global/register';
import React from 'react';
import test from 'ava';
import { shallow, mount } from 'enzyme';
import PageDropdown from '../PageDropdown';
// TODO: This whole test is pretty bad. I couldn't get the matches element working with option for some reason
test('renders with style', (t) => {
... |
5-use-firebase/src/pages/Login.js | pirosikick/react-hands-on-20171023 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as firebase from 'firebase';
/**
* ログインページ
*/
class Login extends Component {
static propTypes = {
history: PropTypes.shape({
replace: PropTypes.func.isRequired,
}).isRequired,
};
state = {
error: false,
... |
src/Game/UI/Panel/Component/Close.js | digijin/space-station-sim | //@flow
import React from 'react'
type Props = {
close:Function
}
export default class Close extends React.Component{
props:Props
render(){
return <div className='close' onClick={this.props.close}>X</div>
}
}
|
writeExampleWebpack2/src/js/contains/AddTodo.js | fengnovo/webpack-react | import React from 'react'
import { connect } from 'react-redux'
import { ADD } from '../actions'
let AddTodo = ({dispatch}) => { //来自props的,参数要加花括号
let input
return <div>
<form onSubmit={e=>{
e.preventDefault()
if(!input.value.trim()){ return }
dispat... |
static/src/containers/PieGraph.js | eltrufas/cosmico | import React from 'react';
import connectToDataPoints from '../connectToDataPoints';
import {Chart} from 'react-google-charts';
const unsusedColors = [
'#2196F3',
'#F44336',
'#FF9800',
'#4CAF50'
]
const PieGraph = ({ sensorsObj, totals, sensors, key }) => {
const rows = sensors
.map((sensorId, idx) => [... |
packages/web/src/components/result/addons/Results.js | appbaseio/reactivesearch | import React from 'react';
import { getClassName } from '@appbaseio/reactivecore/lib/utils/helper';
import types from '@appbaseio/reactivecore/lib/utils/types';
import ImpressionTracker from './ImpressionTracker';
const Results = ({
filteredResults,
hasCustomRender,
listClass,
innerClass,
renderItem,
triggerClic... |
ui/src/Mining.js | halilozercan/halocoin | import React, { Component } from 'react';
import Balance from './widgets/balance.js';
import Address from './widgets/address.js';
import Send from './widgets/send.js';
import Miner from './widgets/miner.js';
import Power from './widgets/power.js';
import Stake from './widgets/stake.js';
import JobListing from './widget... |
src/js/OrderCompleted.js | merlox/dapp-transactions | import React from 'react'
import Header from './Header'
import {Link} from 'react-router-dom'
import './../stylus/index.styl'
import './../stylus/ordersentpage.styl'
import LINKS from './utils.js'
class OrderSentPage extends React.Component {
constructor(props) {
super(props)
}
render(){
return (... |
src/LeaderboardSeparator1/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import Spacer from '../Spacer';
import styles from './styles.css';
function LeaderboardSeparator1() {
return (
<div className={styles.wrapper}>
<Spacer size="double" />
<div className={styles.iconWrapper}>
... |
client/my-sites/drafts/controller.js | tinkertinker/wp-calypso | /**
* External Dependencies
*/
import React from 'react';
import i18n from 'i18n-calypso';
/**
* Internal Dependencies
*/
import sitesFactory from 'lib/sites-list';
import route from 'lib/route';
import { setDocumentHeadTitle as setTitle } from 'state/document-head/actions';
import { renderWithReduxStore } from 'l... |
assets/jqwidgets/jqwidgets-react/react_jqxlineargauge.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxLinearGauge extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.cr... |
demo/client/AppWithStateless.js | gadicc/meteor-react-hotloader | import React, { Component } from 'react';
import Stateless from './Stateless';
export class AppWithStateless extends Component {
render() {
return (
<div>Stateless:
<Stateless prop1={14} prop2={"z"} />
</div>
);
}
} |
packages/mineral-ui-icons/src/IconRoomService.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 IconRoomService(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
app/components/About.js | RoadToGlobal/ClientDistro | import React from 'react';
const About = () =>
<div>
Just a crummy page to showcase react-router!
</div>;
export default About;
|
src/svg-icons/device/battery-50.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
packages/material-ui-icons/src/DeveloperBoard.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DeveloperBoard = props =>
<SvgIcon {...props}>
<path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4v3h-4z... |
node_modules/react-bootstrap/es/InputGroup.js | cmccandless/SolRFrontEnd | 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 ... |
js/app.js | paulbevis/teamcity-build-monitor | import App from './containers/App';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<App/>,
document.getElementById('root')
); |
client/src/app/routes/settings/containers/Students/StudentControl.js | zraees/sms-project | import React from 'react'
import axios from 'axios'
import classNames from 'classnames'
import {getLangKey, instanceAxios} from '../../../../components/utils/functions'
import Msg from '../../../../components/i18n/Msg'
class StudentControl extends React.Component {
constructor(props){
super(props);
... |
src/smart/workflow/EditableWorkflow.js | jeckhummer/wf-constructor | import React from 'react';
import {connect} from 'react-redux';
import {getWorkflowMatrix} from "../../selectors/workflow";
import {EditableWorkflowBlock} from "./EditableWorkflowBlock";
import {getSortedPhasesIds} from "../../selectors/phases";
import {getWorkflowTeamIds} from "../../selectors/teams";
import {Workflow... |
src/routes/codes/List.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import classnames from 'classnames'
import { DropOption } from 'components'
import { Link } from 'dva/router'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import styles from './List.less'
const conf... |
src/SparklinesReferenceLine.js | borisyankov/react-sparklines | import PropTypes from 'prop-types';
import React from 'react';
import * as dataProcessing from './dataProcessing';
export default class SparklinesReferenceLine extends React.Component {
static propTypes = {
type: PropTypes.oneOf(['max', 'min', 'mean', 'avg', 'median', 'custom']),
value: PropTypes.... |
app/src/index.js | oramics/synth-kit | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/main/resources/public/js/components/tabs.js | SICTIAM/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
class Tabs extends React.Component {
static propTypes = {
//Warning: Attributes of fields headers and tabs must be sames
//ex headers { tab1: () => "toto", tab2: () => <h1>Toto 2</h1> }
headers: PropTypes.object.isRequired,
... |
src/client/react/admin/views/ResponsesView/ResponseCheck.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import DateFormat from 'dateformat';
import { graphql } from 'react-apollo';
import { withRouter } from 'react-router-dom';
import { Intent, Button, Collapse, Switch } from '@blueprintjs/core';
import { ch... |
client/scripts/components/content-clients.js | rubeniskov/web-palomasafe | import React from 'react';
export default class ContentClients extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<section id="clients" className="e-block-null e-block-darkest" data-stellar-background-ratio="0.5">
<div className="container">
<div... |
src/components/form/LoginForm.js | jhameenaho/weather-demo | import React from 'react'
import { Form, Field } from 'react-final-form'
import './LoginForm.css'
const LoginForm = props => {
const onSubmit = values => {
props.onSubmit(values)
}
return (
<Form
onSubmit={onSubmit}
render={({ handleSubmit }) => (
<form onSubmit={handleSubmit} cla... |
actor-apps/app-web/src/app/components/modals/MyProfile.react.js | yangchenghu/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import Modal from 'react-modal';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import MyProfileActions from 'actions/MyPro... |
src/Card/CardText.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};
const CardText = ({ className, children }) => (
<section
className={classnames('mdc-card__supporting-text', className)}
>
{c... |
blueocean-material-icons/src/js/components/svg-icons/communication/call.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationCall = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 ... |
src/components/explorer/ExplorerApp.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import AppContainer from '../AppContainer';
import messages from '../../resources/messages';
import PageTitle from '../common/PageTitle';
const ExplorerApp = (props) => {
const { formatMessage } = props.intl;
re... |
src/shared/visualization/BarChart.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import { color } from 'd3-color';
import { ResponsiveOrdinalFrame } from 'semiotic';
import HorizontalLegend from './HorizontalLegend';
import Tooltip from './Tooltip';
import { formatDataForStackedBar, budgetBarAnnotationRule } from './visUtilities';
/*
... |
node_modules/react-router/es6/Link.js | rageboom/React_Study | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
docs/client/components/pages/InlineToolbar/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleInlineToolbarEditor';
// eslint-disable-next-line import/no-unresolved
import simpleExampleEditorStylesCode from '!!../../../loaders/prism... |
src/main.js | daimagine/gh-milestone | import React from 'react'
import ReactDOM from 'react-dom'
import { useRouterHistory } from 'react-router'
import { createHistory } from 'history'
import makeRoutes from './routes'
import Root from './containers/Root'
import configureStore from './redux/configureStore'
import { addLocaleData } from 'react-intl'
import ... |
frontend-new/src/js/components/common/header/hamburger/index.js | leapfrogtechnology/vyaguta-resource | import React, { Component } from 'react';
import App from '../../../../../custom-ui/app';
class Hamburger extends Component {
toggleSidebar(){
App.sidebar('toggle-sidebar');
}
render() {
return(
<ul className='nav navbar-nav-custom'>
<li><a href='javascript:void(0)' id='burgerMenu' onCli... |
src/svg-icons/editor/functions.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFunctions = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/>
</SvgIcon>
);
EditorFunctions = pure(EditorFunctions);
EditorFunctions.displayName = 'EditorFunctions... |
src/client.js | erikras/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
src/containers/DevToolsWindow.js | VinSpee/react-redux-postcss-boilerplate | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
app/routes/Profile/Profile.js | blovato/sca-mobile | import React from 'react';
import { Text, View, Image } from 'react-native';
import Button from '../../components/Button';
import Avatar from '../../components/Avatar';
import images from '../../config/images';
import { capitalize } from '../../lib/string';
import styles from './styles';
const Profile = (props) => {
... |
docs/client/components/pages/Playground/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
import Container from '../../shared/Container';
import Heading from '../../shared/Heading';
import PlaygroundEditor from './PlaygroundEditor';
import NavBar from '../../shared/NavBar';
import Separator from '../../shared/Separator';
export default class App extends Component {... |
src/js/Components/Home.js | RoyalSix/myBiolaApp | import React, { Component } from 'react';
import {
View,
Text,
Image,
ScrollView,
KeyboardAvoidingView
} from 'react-native';
import BoardContainer from '../Containers/BoardContainer'
import { biola_picture } from 'assets';
export default class HomeContainer extends Component {
re... |
blueocean-material-icons/src/js/components/svg-icons/image/switch-video.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5 3.5z"/>
</SvgIcon>
);
ImageSwi... |
app/components/ShowUserApplications/index.js | theClubhouse-Augusta/JobWeasel-FrontEnd | /**
*
* ShowUserApplications
*
*/
import React from 'react';
import {Link} from 'react-router-dom';
import './style.css';
import './styleM.css';
export default class ShowUserApplications extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
applications: [],
n... |
client/app/admin/index.js | prilutskiy/hackathon | import React from 'react';
import { Router, Route, IndexRoute, Redirect, browserHistory } from 'react-router';
import NotFound from './../shared/NotFound';
import Application from './Application';
import Home from './Home';
import Profile from '../shared/Profile';
import Lab from './Lab';
const adminRoutes = (
<Rou... |
src/FormaticTestUtils.js | zapier/formatic | import React from 'react';
import { mount } from 'enzyme';
import Formatic from './formatic';
// Render some Formatic fields to HTML so we can do a snapshot test of them.
// Pass in a callback so you can do assertions on the components as well.
export const renderFieldsToHtml = (fields, handleComponent = () => {}) =>... |
src/components/App.js | shoegazer/shuffly-now | import React from 'react'
import HeaderIcons from './HeaderIcons'
import Settings from './Settings'
import Help from './Help'
import Weather from './Weather'
import Now from './Now'
import Popup from './Popup'
import Alert from './Alert'
import Background from './Background'
import Graph from './Graph'
import '../styl... |
stories/examples/BadgePills.js | reactstrap/reactstrap | import React from 'react';
import { Badge } from 'reactstrap';
const Example = (props) => {
return (
<div>
<Badge color="primary" pill>Primary</Badge>
<Badge color="secondary" pill>Secondary</Badge>
<Badge color="success" pill>Success</Badge>
<Badge color="danger" pill>Danger</Badge>
... |
src/svg-icons/editor/format-quote.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
paraviewweb/src/React/CollapsibleControls/PlotlyChartControl/index.js | CordyChen/VisMechan | import React from 'react';
import CollapsibleWidget from '../../Widgets/CollapsibleWidget';
import DropDownWidget from '../../Widgets/DropDownWidget';
import Histogram from './Histogram';
import Histogram2D from './Histogram2D';
import Scatter3D from './Scatter3D';
import PieChart from './PieChart';
const ... |
node_modules/react-icons/md/mic-off.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdMicOff = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7.1 5l27.9 27.9-2.1 2.1-7-7c-1.2 0.8-2.8 1.3-4.3 1.5v5.5h-3.2v-5.5c-5.5-0.8-10-5.4-10-11.1h2.8c0 5 4.2 8.4 8.8 8.4 1.3 0 2.7-0.3 3.8-0.9l-2.7-2.7c-0.3 0.1-0.7 0.2-1.1... |
information/blendle-frontend-react-source/app/components/PortalDialog.js | BramscoChill/BlendleParser | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import portalMixin from 'components/mixins/PortalMixin';
import classNames from 'classnames';
export default createReactClass({
displayName: 'PortalDialog',
propTypes: {
children: PropTypes.elemen... |
source/components/DatasetSelector.js | PitchInteractiveInc/tilegrams | import React from 'react'
import geographyResource from '../resources/GeographyResource'
const CUSTOM_LABEL = 'Custom CSV'
export default class DatasetSelector extends React.Component {
constructor(props) {
super(props)
this.state = {
selectedIndex: 0,
csvInputValue: '',
}
this._onCsvC... |
src/routes/discover/index.js | transitlinks/web-app | import { getLog } from '../../core/log';
const log = getLog('routes/discover');
import React from 'react';
import ErrorPage from '../../components/common/ErrorPage';
import Discover from './Discover';
import { createParamString } from '../../core/utils';
import { getActiveTripQuery, getDiscoverQuery } from '../../data... |
packages/zensroom/lib/components/bookings/BookingsNewForm.js | SachaG/Zensroom | /*
Form for inserting a new booking, wrapped with withNew HoC.
http://docs.vulcanjs.org/mutations.html#Higher-Order-Components
*/
import React, { Component } from 'react';
import { Components, registerComponent, withCurrentUser, getFragment, getSetting, withMessages, withNew, addCallback } from 'meteor/vulcan:core'... |
app/routes/Match/NoSets.js | arnef/ligatool-hamburg | import React from 'react';
import { View, Linking, Alert, Platform } from 'react-native';
import { connect } from 'react-redux';
import moment from 'moment';
import {
Text,
TeamLogo,
Card,
ListItem,
Image,
Separator,
} from '../../components';
import S from '../../lib/strings';
import styles from './styles'... |
src/routes/fullscreen/components/Fullscreen.js | ahthamrin/kbri-admin2 | import React from 'react';
import QueueAnim from 'rc-queue-anim';
const Fullscreen = () => (
<section className="container-fluid">
<QueueAnim type="bottom" className="ui-animate">
<div key="1">
<div className="article-title">Blank</div>
</div>
</QueueAnim>
</section>
);
module.export... |
webapp/src/App.js | Freshmilkymilk/ardacraft.me | import React from 'react';
import {Header} from "./Margins/Header";
import {Footer} from "./Margins/Footer";
import {BrowserRouter as Router, Route, Switch} from "react-router-dom";
import './App.css';
import Home from "./Pages/Home";
import Modpack from "./Pages/Modpack";
import About from "./Pages/About";
import Ma... |
app/components/keyboard.js | BAMason/HI | import React from 'react';
export default class Keyboard extends React.Component {
constructor(props) {
super(props);
const alpha = [`A`, `B`, `C`, `D`, `E`, `F`, `G`, `H`, `I`, `J`, `K`, `L`,
`M`, `N`, `O`, `P`, `Q`, `R`, `S`, `T`, `U`, `V`, `W`, `X`, `Y`, `Z`];
this.keys = alpha.map((ltr) => <div... |
src/parser/hunter/survival/modules/talents/VipersVenom.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import StatTracker from 'parse... |
docs/src/sections/BadgeSection.js | lzcmaro/react-ratchet | import React from 'react';
import Samples from '../Samples'
import ReactPlayground from '../ReactPlayground'
export default function BadgeSection() {
return (
<div>
<ReactPlayground id="badges" title='Badges' desc='标记' codeText={Samples.Badge} />
</div>
);
}; |
pkg/interface/groups/src/js/components/lib/icons/sigil.js | ngzax/urbit | import React, { Component } from 'react';
import { sigil, reactRenderer } from 'urbit-sigil-js';
export class Sigil extends Component {
render() {
const { props } = this;
const classes = props.classes || '';
const rgb = {
r: parseInt(props.color.slice(1, 3), 16),
g: parseInt(props.color.sli... |
src/svg-icons/image/compare.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
app.js | teamhacksmiths/food-drivr-frontend | import express from 'express';
// import React from 'react';
// import { renderToString } from 'react-dom/server'
// import { match, RouterContext } from 'react-router'
//import routes from './app/config/routes';
const app = express();
const path = require('path');
const port = process.env.NODE_ENV === 'production' ? p... |
src/components/fluid-commons/fluid-table/TableEditableColumn.js | great-design-and-systems/cataloguing-app | import { TABLE_CANCEL_EDIT, TABLE_EDIT_SUBMIT, TABLE_SET_NEW_VALUE, TABLE_SUBMIT_NEW_VALUE } from './fluid.info';
import FluidFunc from 'fluid-func';
import PropTypes from 'prop-types';
import React from 'react';
export class TableEditableColumn extends React.Component {
constructor(props) {
super(props);
t... |
web/utils/select-styles.js | earaujoassis/watchman | import React from 'react';
const groupStyles = {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
};
const groupBadgeStyles = {
backgroundColor: '#EBECF0',
borderRadius: '2em',
color: '#172B4D',
display: 'inline-block',
fontSize: 12,
fontWeight: 'normal',
lineHeight: '1',
m... |
react-flux-mui/js/material-ui/src/svg-icons/content/content-copy.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
src/containers/LoginStatus.js | ftorre104/todolist-redux | import React from 'react'
import { connect } from 'react-redux'
import { login, logout } from '../actions'
let LoginStatus = ({ dispatch, user }) => {
let input
// dispatch({
// type: 'LOG_IN',
// name: 'fede',
// email: 'ft@gm'
// })
// These are EQUIVALENT.
// dispatch(login('fede', 'fede@gma... |
src/mixins/OverlayMixin.js | jiachitor/TOTO-UI | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
/**
* Overlay Mixin
*
* @desc `overlay` is something like Popover, Modal, etc.
* */
module.exports = {
//propTypes: {
// container: React.PropTypes.node
//},
componentDidMount: function () {
this._renderOverla... |
app/containers/Shop.js | suyiya/wantplus-react-native | /**
* Created by SUYIYA on 16/8/30.
*/
'use strict';
import React, { Component } from 'react';
import { View, StyleSheet, Image, Text, Platform } from 'react-native';
export default class Shop extends Component {
render() {
return (
<View style={styles.container}>
<View st... |
src/native/app/components/Text.js | xiankai/triple-triad-solver | import React from 'react';
import theme from '../themes/initial';
import { StyleSheet, Text } from 'react-native';
// https://github.com/facebook/react-native/issues/7877
const round = value => Math.round(value);
const styles = StyleSheet.create({
text: { // eslint-disable-line react-native/no-unused-styles
col... |
src/decorators/withViewport.js | tcrosen/nhl-scores | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/components/Footer/Footer.js | jackgardner/tactics | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import s from './Footer.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
@withStyles(s)
class Footer extends Component {
render() {
return (
<div clas... |
src/components/Adv/Adv.js | febobo/react-redux-start | import React from 'react'
import ad4 from '../../static/images/ad4.jpg'
import classes from './Adv.scss'
type Props = {
};
export class Adv extends React.Component {
props: Props;
render () {
const advProps = {
style : {display:"inline-block",width:"970px",height:"90px"},
client : 'ca-pub-5722932... |
app/components/Calendar/Calendar.js | zchen9/DonutTab | import React from 'react';
import Weather from '../Weather/Weather.js';
require('./Calendar.scss');
const WEEKS = ['Sun', 'Mon', 'Tues', 'Wed', 'Thur', 'Fri', 'Sat'];
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
export default class Calendar extends React.Compo... |
src/routes/Counter/components/Counter.js | salvocanna/shotio | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
pootle/static/js/shared/components/ModalContainer.js | evernote/zing | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import cx from 'classnames';
import React from 'react';
i... |
src/routes/DebisResources/components/DebisResourcesView.js | houston88/housty-home-react | import React from 'react'
// import { Link } from 'react-router'
import Card from '../../../components/Card'
import './DebisResourcesView.scss'
import TPT from '../assets/Hands.jpg'
import ART from '../assets/Art.jpg'
import SHOP from '../assets/Store.jpg'
import ESCAP from '../assets/Escape.jpg'
// import WEEK from '.... |
app/components/gui/preferencesModal.js | todbot/Blink1Control2 | "use strict";
// import React from 'react';
var React = require('react');
var Col = require('react-bootstrap').Col;
var Row = require('react-bootstrap').Row;
var Modal = require('react-bootstrap').Modal;
var ButtonInput = require('react-bootstrap').ButtonInput;
var Button = require('react-bootstrap').Button;
var For... |
src/views/Login.js | astrauka/expensable-r1 | import React from 'react';
export default class Login {
render() {
return (
<div>
<h1>Login</h1>
</div>
);
}
}
|
src/todos/components/TodoItem.js | nnance/react-backbone-flux-example | import React from 'react';
import TodoActions from '../TodoActions';
module.exports = React.createClass({
onToggle: function() {
TodoActions.toggle(this.props.todo);
},
onRemove: function(ev) {
ev.preventDefault();
TodoActions.remove(this.props.todo);
},
render: function(... |
js/components/layout/nested.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Button, Icon, Left, Right, Body } from 'native-base';
import { Grid, Row, Col } from 'react-native-easy-grid';
import { Actions } from 're... |
src/pages/sorting/Quicksort/Quicksort.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Quicksort extends React.Component {
render() {
return (
<div>Quicksort</div>
)
}
}
export default Quicksort |
dev/js/uiComponents/text/store/text-container.js | artisnull/React-CMS | /*
Filename: text-container.js
Author: Zach Lambert
Last Updated: 17 Apr 2017
Description: Connects Text to its reference in the store, exposes the
available fonts from Google Fonts API, responds to deletion
Props: ownData, fontObj, fontArr, activeElement, deleted
PropMethods: none
*/
import React from 'react';
impor... |
docs/src/examples/elements/Label/Types/LabelExampleIcon.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon, Label } from 'semantic-ui-react'
const LabelExampleIcon = () => (
<div>
<Label image>
<img src='/images/avatar/small/ade.jpg' />
Adrienne
<Icon name='delete' />
</Label>
<Label image>
<img src='/images/avatar/small/zoe.jpg' />
Zoe
... |
spec/sections/LinkSection.js | kmees/react-fabric | import React from 'react'
import Link from '../../src/Link'
const LinkSection = () => (
<section>
<h2>Link</h2>
<Link href="http://react-fabric.github.io" title="docs">Docs</Link>
</section>
)
export default LinkSection
|
src/parser/shaman/shared/azerite/IgneousPotential.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { formatNumber } from 'common/format';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import { calcu... |
src/components/googe_map.js | framirez224/weather-app | import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount() {
new google.maps.Map(this.map, {
zoom: 12,
center: {
lat: this.props.lat,
lng: this.props.lon,
},
});
}
render() {
return (
<div ref={(m) => { this.map = m; }} /... |
frontend/app_v2/src/components/Story/StoryContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import StoryData from 'components/Story/StoryData'
import StoryPresentation from 'components/Story/StoryPresentation'
import StoryPresentationDrawer from 'components/Story/StoryPresentationDrawer'
import Loading from 'components/Loading'
function StoryContai... |
fields/types/geopoint/GeoPointFilter.js | matthewstyers/keystone | import React from 'react';
import {
FormField,
FormInput,
Grid,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const DISTANCE_OPTIONS = [
{ label: 'Max distance (km)', value: 'max' },
{ label: 'Min distance (km)', value: 'min' },
];
function getDefaultValue () {
return {
lat: undefined,
l... |
src/components/CentreBox/CentreBox.js | GJMcGowan/personal_site | import React from 'react';
import './CentreBox.css';
const CentreBox = (props) => (
<div className='main'>
<div className="center-box">
<div className="text">
{props.children}
</div>
</div>
</div>
);
export default CentreBox;
|
src/components/slide9-ref.js | lucky3mvp/react-demo | import React from 'react'
export default React.createClass({
handleClick () {
if (this.refs.myInput !== null) {
this.refs.myInput.focus();
}
},
render () {
return (
<div className={this.props.className}>
<input type="text" ref="myInput" />
<br />
<input type="button" value="Focus the text in... |
app/javascript/flavours/glitch/features/compose/components/search.js | Kirishima21/mastodon | // Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import spring from 'react-motion/lib/spring';
import {
injectIntl,
FormattedMessage,
defineMessages,
} from 'react-intl';
import Overlay from 'react-overl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.