path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/collections/Message/Variations/MessageExampleAttached.js | clemensw/stardust | import React from 'react'
import { Button, Checkbox, Form, Icon, Message } from 'semantic-ui-react'
const MessageExampleAttached = () => (
<div>
<Message
attached
header='Welcome to our site!'
content='Fill out the form below to sign-up for a new account'
/>
<Form className='attached fl... |
apps/marketplace/components/Reports/ReportView.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import DocumentTitle from 'react-document-title'
import { uniqueID } from '../helpers'
import ReportItem from './ReportItem'
import * as styles from './ReportView.scss'
const ReportView = props => {
const { data } = props
const { title, items, date } = data
return (
<div className=... |
screens/GuideScreen.js | FuzzyHatPublishing/isleep | import React, { Component } from 'react';
import {
Image,
View,
StyleSheet,
Text,
Platform,
Dimensions,
ScrollView,
TouchableHighlight
} from 'react-native';
import { Icon } from 'react-native-elements';
class GuideScreen extends Component {
static navigationOptions = ({ navigation }) => ({
title: 'Guide',
... |
app/containers/Transactions/ui/components/TransactionSummaryComponent.js | sahilkhan99/PosApp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class TransactionSummaryComponent extends Component {
render() {
return (
<div>
<div className="row row-inverse">
<div className="col-lg-6">
<div className="... |
src/svg-icons/av/mic-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicOff = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2... |
docs/app/Examples/elements/Button/Variations/ButtonExampleFluid.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleFluid = () => (
<Button fluid>Fits to Container</Button>
)
export default ButtonExampleFluid
|
src/main.js | TheTorProject/ooni-wui | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/Libraries/NavigationExperimental/NavigationCard.js | dingbat/react-native-mock | import React from 'react';
class CardStackPanResponder {
}
class PagerPanResponder {
}
class NavigationCard extends React.Component {
static CardStackPanResponder = CardStackPanResponder;
static CardStackStyleInterpolator = {
forHorizontal: () => ({}),
forVertical: () => ({}),
};
static PagerPanRespo... |
src/svg-icons/editor/format-textdirection-r-to-l.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionRToL = (props) => (
<SvgIcon {...props}>
<path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/>
</SvgIcon>
);
EditorFormatTextdirectionRTo... |
modules/dreamview/frontend/src/components/ModuleController/index.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import CheckboxItem from 'components/common/CheckboxItem';
import StatusDisplay from 'components/ModuleController/StatusDisplay';
import WS from 'store/websocket';
@inject('store') @observer
export default class ModuleController extends React.C... |
client/src/react/_controls/MoneyDisplay.js | charlesj/Apollo | import React from 'react'
import Flexbox from 'flexbox-react'
import PropTypes from 'prop-types'
import ClassNames from 'classnames'
import './MoneyDisplay.css'
function MoneyDisplay({amount,}){
const displayAmount = parseFloat(Math.round(amount * 100) / 100).toFixed(2)
return (<Flexbox width='100px'>
<Flexbo... |
src/components/reports/report-cash.js | Xabadu/VendOS | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import Moment from 'moment';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { getCash } from '../../actions/index';
class CashReport extends Component {
constructo... |
src/svg-icons/image/photo-size-select-small.js | pomerantsev/material-ui | 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... |
src/containers/ui/Menu/MenuView.js | shojil/bifapp | /**
* Menu Contents
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Alert,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { Actions } from 'react-native-router-flu... |
app/javascript/mastodon/components/column_header.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
src/routes/error/index.js | brian-kilpatrick/react-starter-kit | import React from 'react';
import ErrorPage from './ErrorPage';
export default {
path: '/error',
action({ error }) {
return {
title: error.name,
description: error.message,
component: <ErrorPage error={error} />,
status: error.status || 500,
};
},
};
|
src/svg-icons/maps/local-drink.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
frontend/src/index.js | natsukagami/hakkero-project | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import App from './App';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducers... |
wwwroot/app/src/components/MealPlannerPage/AddNewMeal.js | AlinCiocan/PlanEatSave | import React from 'react';
import Select from 'react-select';
import Routes from '../../services/Routes';
import TopBar from '../TopBar/TopBar';
import { ApiRequest } from '../../services/ApiRequest';
import DateFormatter from '../../utils/DateFormatter';
import Button from '../base/buttons/Button';
import OrSeparator ... |
src/svg-icons/image/rotate-90-degrees-ccw.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotate90DegreesCcw = (props) => (
<SvgIcon {...props}>
<path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7... |
src/components/block/story.js | casesandberg/react-color | import React from 'react'
import { storiesOf } from '@storybook/react'
import { renderWithKnobs } from '../../../.storybook/report'
import SyncColorField from '../../../.storybook/SyncColorField'
import Block from './Block'
storiesOf('Pickers', module)
.add('BlockPicker', () => (
<SyncColorField component={ Blo... |
src/platform/apps/team/admin/components/roles/index.js | ccetc/platform | import React from 'react'
import { connect } from 'react-redux'
import * as actions from './actions'
import _ from 'lodash'
class Roles extends React.Component {
static propTypes = {
assigned: React.PropTypes.array,
roles: React.PropTypes.array,
onLoad: React.PropTypes.func,
onToggleRole: React.Prop... |
src/pages/simplelife.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Simplelife' />
)
|
src/components/characterList.js | vitorfranca/fe-fates | import React from 'react';
import R from 'ramda';
import Character from './character';
import connect from '../redux/connect';
class CharacterList extends React.Component {
constructor(props) {
super(props);
this.state = {
characters: require('../../data/characters')
};
}
loadMore() {
retu... |
src/examples/styles/scss/index.js | vinogradov/react-starter-kit | import React from 'react';
import ReactDOM from 'react-dom';
import './style.scss';
function Scss() {
return (
<div className="parent">
<div className="child" />
</div>
);
}
ReactDOM.render(
<Scss />,
document.querySelector('#app')
);
|
examples/01 Dustbin/Multiple Targets/Container.js | tylercollier/react-dnd-demo | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd-html5-backend';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import update from 'react/lib/update';
@DragDropContext(HTML5Backend... |
src/Frontend/components/form/CompositeFormField.js | Sententiaregum/Sententiaregum | /*
* This file is part of the Sententiaregum project.
*
* (c) Maximilian Bosch <maximilian@mbosch.me>
* (c) Ben Bieler <ben@benbieler.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
import React, { Component }... |
src/common/components/Box.js | TheoMer/este | // @flow
import type { Color, Theme } from '../themes/types';
import React from 'react';
import isReactNative from '../../common/app/isReactNative';
// Universal styled Box component. The same API for browsers and React Native.
// Some props are ommited or limited or set to match React Native behaviour.
// - default ... |
src/client/notifications/Notifications.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import LeftSidebar from '../app/Sidebar/LeftSidebar';
import Affix from '../components/Utils/Affix';
import * as notificationConstants from '../../... |
frontend/app_v2/src/common/icons/Qrcode.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
function Qrcode({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200" className={styling}>
<title>QR Code</title>
<path d="M516.77-.082c-.047.023-.098.047-.145.074a37.561 37.561 0 00-30.816 20.63 37.56 37.5... |
app/index.js | pavelkomiagin/npmr | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './normalize.gl... |
src/svg-icons/editor/insert-drive-file.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertDriveFile = (props) => (
<SvgIcon {...props}>
<path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/>
</SvgIcon>
);
EditorInsertDriveFile = pure... |
packages/bonde-admin/src/subscriptions/forms/recurring-form.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { reduxForm } from 'redux-form'
import { FormGroup, ControlLabel, FormControl } from '@/components/forms'
import { Pagarme } from '@/components/external-services'
import * as validationHelper from '@/utils/validation-helper'
import * as validators from... |
milestones/03-inline-styles/After/src/slide.js | jaketrent/react-drift | import PropTypes from 'prop-types'
import React from 'react'
import styles from './slide-styles.js'
function Slide(props) {
return (
<article style={{ ...styles.root, ...props.style }}>
<img src={props.image} alt={props.title} />
<footer style={styles.footer}>
<h2 style={styles.title}>{props... |
client/src/components/ViewCampaign/SignCampaign/AdminAddSignatureModal.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
import { Button, ControlLabel, FormControl, FormGroup, Modal } from 'react-bootstrap';
import SignatureCheckbox from './SignatureCheckbox';
const AdminAddSignatureModalData = [
{
id: 'firstName',
label: 'First Name',
name: 'firstName',
pl... |
src/components/android/plain/AndroidPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './AndroidPlain.svg'
/** AndroidPlain */
function AndroidPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'AndroidPlain' + ' ' + className... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
src/components/web/App.js | mutualmobile/Brazos | import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
import LazyRoute from 'lazy-route';
import DevTools from 'mobx-react-devtools';
import {withRouter} from 'react-router'
import TopBar from './TopBar';
@inject('store')
@withRouter
@... |
ReactJS/class-2017-12-31/redux2/src/App.js | tahashahid/cloud-computing-2017 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import P1 from './com1';
import P2 from './com2';
class App extends Component {
render() {
return (
<div className="App">
<P1/>
<br/>
<P2/>
</div>
);
}
}
export default App;... |
src/svg-icons/maps/layers.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayers = (props) => (
<SvgIcon {...props}>
<path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/>
</SvgIcon>
);
MapsLayers = pure(MapsLayer... |
docs/src/components/seo.js | mistercrunch/panoramix | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
src/components/dashboard/Dashboard.react.js | Space-Cadets/Titania-v2 | import React from 'react'
import Header from '../shared/Header.react.js'
import SearchContainer from '../../containers/SearchContainer.react.js'
const Dashboard = () => (
<div>
<Header />
<div className="contentContainer">
<h1>Dashboard</h1>
<SearchContainer />
</div>
</div>
)
export defau... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-select-multiple.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import $ from 'jquery';
import {BaseMixin, ElementaryMixin, ContentMixin, Tools} from './../common/common.js';
import {Span, Div, Button, Glyphicon, Backdrop} from './../bricks/bricks.js';
import './select-multiple.less';
export default React.createClass({
mixins: [
BaseMixin,
El... |
demo/sections/Buttons.js | joshq00/react-mdl | import React from 'react';
import Example from './Example';
import Icon from '../../src/Icon';
import Button from '../../src/Button';
import IconButton from '../../src/IconButton';
import FABButton from '../../src/FABButton';
export default ( props ) => (
<section { ...props }>
<h3>Buttons</h3>
<... |
node_modules/react-router/es6/RoutingContext.js | HK8383/react_project_imooc | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
sundin/source/application.js | tkfeng/mppCalc | /**
* Main entry point into the app.
* Created by tkfeng on 3/29/17.
*/
import React from 'react';
import {
Navigator,
Linking,
AppState,
View,
StyleSheet,
Text,
} from 'react-native';
import { Router } from 'react-native-router-flux';
import scenes from './constants/scenes';
export default class Appli... |
components/StickyNode/StickyNode.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Hero from '../Hero/Hero';
import m from '../../globals/modifiers.css';
import StickyNode from './StickyNode';
storiesOf('StickyNode', module)
.add('Individual sticky bar', () => (
<div>
<div
className={m.pa96}
... |
Faw.Web.Client/src/routes/Quests/Index/components/CreateQuestDialog.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import {
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Button
} from 'react-mdl'
import QuestForm from './QuestForm'
import './Quests.scss'
var form = null
export const CreateQuestDialog = (props) => {
function submitForm () {
form.dispatchEvent(new Event('submit'))
}... |
src/components/ArticlePreview.js | cfilby/react-mobx-realworld-example-app | import React from 'react';
import { Link } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
const FAVORITED_CLASS = 'btn btn-sm btn-primary';
const NOT_FAVORITED_CLASS = 'btn btn-sm btn-outline-primary';
@inject('articlesStore')
@observer
export default class ArticlePreview extends React.Compo... |
src/pages/resume/components/education.js | dan9186/danielhess.me | import React from 'react'
import styled from 'styled-components'
import { faGraduationCap } from '@fortawesome/free-solid-svg-icons'
import { Date } from './date'
import { Icon, Subtitle } from '../../../components/typography'
import { Section } from '../../../components/grid'
export const Education = ({ education =... |
assets/javascripts/kitten/components/graphics/icons/stats-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const StatsIcon = ({ color, title, ...props }) => (
<svg
width="18"
height="18"
viewBox="0 0 18 18"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M18 16v2H0v-2h18zM3 8v... |
test/test_helper.js | Rui-Carvalho/react-redux | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/js/components/Grid/stories/NColumn.js | grommet/grommet | import React from 'react';
import { Box, Grid } from 'grommet';
export const NColumnGrid = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Grid
columns={{
count: 6,
size: 'auto',
}}
gap="small"
>
<Box background="brand">Item 1</Box>
... |
src/svg-icons/navigation-arrow-drop-right.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight = pure(NavigationArrowDropRight);
NavigationArrowDropRight.displayName = 'Navi... |
src/upgrade/UpgradePage.js | qingweibinary/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import UpgradeContainer from './UpgradeContainer';
export default (props) => (
<MobilePage toolbarShown={false}>
<UpgradeContainer {...props} />
</MobilePage>
);
|
src/examples/AdvancedCounter/View/React.js | steos/elmar.js | import React from 'react'
import {Action} from '../Model'
export default (signal, model) => (
<div>
<button onClick={signal(Action.Decrement)}>-</button>
<div>{model}</div>
<button onClick={signal(Action.Increment)}>+</button>
</div>
)
|
test/integration/image-component/default/pages/invalid-placeholder-blur-static.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
import testBMP from '../public/test.bmp'
const Page = () => {
return (
<div>
<Image
id="invalid-placeholder-blur-static"
src={testBMP}
placeholder="blur"
/>
</div>
)
}
export default Page
|
app/javascript/mastodon/features/ui/components/column_header.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId... |
app/javascript/mastodon/features/compose/index.js | lindwurm/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/modules/rightActive/index.js | skydaya/react-sell | /**
* Created by dllo on 17/8/26.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(
<App />,
document.getElementById('rightactive')
)
|
src/components/Pagination/Pagination.js | bodguy/bodguy.github.io | // @flow strict
import React from 'react';
import classNames from 'classnames/bind';
import { Link } from 'gatsby';
import { PAGINATION } from '../../constants';
import styles from './Pagination.module.scss';
type Props = {
prevPagePath: string,
nextPagePath: string,
hasNextPage: boolean,
hasPrevPage: boolean
... |
assets/jqwidgets/demos/react/app/chart/columnseriewithconditionalcolors/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'csv',
datafields: [
{ name: 'Quarter' },
... |
src/components/core/loading_spinner/loading_spinner.js | kyleaclark/ballcruncher | /* Credit https://github.com/lukehaas/css-loaders for spinner css */
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import styled, { keyframes } from 'styled-components';
const SpinnerKeyframes = keyframes`
0%,
80%,
100% {
box-shadow: 0 0;
height: 4em;
}
40% {
box-sh... |
app/modules/layout/components/Logotype/index.js | anton-drobot/frontend-starter | import React from 'react';
import { observer, inject } from 'mobx-react';
import { URL_PROVIDER } from 'framework/Providers/types';
import { bem, mix } from 'app/libs/bem';
import { HOME_PAGE } from 'app/routes';
import Link from 'app/modules/core/components/Link';
import Icon from 'app/modules/core/components/Icon'... |
app/index.js | riccardopiola/LeagueFlash | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './Root';
// render to the DOM
// ReactDOM.render(<Root />, document.getElementById('root'));
ReactDOM.render(<Root />, document.getElementById('root'));
|
source/components/textBlock.react.js | argaskins/ThinkReact-Jenkins | import React from 'react';
import Row from 'react-bootstrap/lib/Row';
const style ={
color: 'green'
}
const blueStyle ={
color:'blue',
fontSize:".8em",
fontStyle:"italic"
}
const textBlock = (date, text, user) => (
<div>
<h3>{user}</h3>
<div style={style}>{text}</div>
<span style={blueStyle}... |
js/components/sideBar/index.js | d3ming/kronos |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Content, Text, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { closeDrawer } from '../../actions/drawer';
import { setIndex } from '../../actions/list';
import styles from './style';
... |
packages/core/admin/admin/src/content-manager/components/DynamicZone/components/AddComponentButton/index.js | wistityhq/strapi | /**
*
* AddComponentButton
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import styled from 'styled-components';
import PlusCircle from '@strapi/icons/PlusCircle';
import { BaseButton } from '@strapi/design-system/BaseButton';
import { Box } from '@strapi... |
src/components/ModalPanel.js | webcerebrium/ec-react15-lib | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
const ContainerOuterStyle = styled.div`
overflow-y: scroll;
height: 100%;
display: flex;
align-items: flex-start;
justify-content: center;
`;
const ContainerInnerStyle = styled.div`
backgrou... |
src/components/Demo/Demo.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Demo.css';
const Demo = (props) => {
const hasText = !!props.text;
return (
<div
className = { styles.root }
>
{ hasText && <p className = { styles.text }>{ props.text }</p> }
<div className = { styles.... |
src/client/components/LikeCounterWidget/LikeCounterWidget.js | vidaaudrey/trippian | //not in use
import log from '../../log'
import React from 'react'
import classnames from 'classnames'
import {
COLOR_LIGHT_BLACK, SPACING_XSMALL
}
from '../../utils/styleGuide'
import {
IconWidget
}
from '../../components/index'
const LikeCounter = ({
count, isActive, activeColor, handleLikes
}) => ( < a class... |
app/components/Transactions/RecentTransactions.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button, Divider, Grid, Header, Segment, Statistic, Table } from 'semantic-ui-react';
export default class RecentTransactions extends Component {
render() {
const transactions = this.props.transactions;
const ... |
src/svg-icons/maps/directions-bike.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBike = (props) => (
<SvgIcon {...props}>
<path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.... |
generators/react/static/src/Components/Home.js | ecliptic/ship-yard | // @flow
import React from 'react'
export default function Home () {
return <div>Hello world!</div>
}
|
assets/jqwidgets/demos/react/app/navbar/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNavBar from '../../../jqwidgets-react/react_jqxnavbar.js';
class App extends React.Component {
render() {
return (
<JqxNavBar height={40} selectedItem={0} rtl={true}>
<ul>
<li>1</li>
... |
client/src/components/setup-workflow/index.js | safv12/trello-metrics | 'use strict';
import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import BoardList from './boards_list';
import ListConfiguration from './lists_configuration';
import MetricsControllers from './metrics_controllers';
class SetupWorkf... |
src/components/Main.js | k1sul1/wp-plugin.pro | import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import Article from './Article';
import style from './Main.module.styl';
const About = () => (
<h1>About</h1>
);
class Main extends Component {
render() {
return (
<main className={style.Main} id={this.props.id... |
pkg/ui/src/containers/Cluster.js | matt-deboer/kuill | import React from 'react'
import { connect } from 'react-redux'
import { requestResources } from '../state/actions/resources'
import ClusterPage from '../components/cluster/ClusterPage'
import { withRouter } from 'react-router-dom'
import LoadingSpinner from '../components/LoadingSpinner'
const mapStateToProps = funct... |
src/components/UIShell/SideNavSwitcher.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import ChevronDown20 from '@carbon/icons-react/lib/chevron--down/20';
import { settings } from 'carbon-components';
import cx from 'classname... |
src/parser/rogue/assassination/CHANGELOG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { tsabo, Cloake, Zerotorescue, Gebuz, Aelexe, Vetyst } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { change, date } from 'common/changelog';
export default [
change(date(2020, 5, 26), <>Fixed garrote early refresh tracki... |
src/svg-icons/image/wb-cloudy.js | kittyjumbalaya/material-components-web | 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... |
AirFront/point/activation.js | sunshinezxf/Airburg | import React from 'react';
import {
Button,
List,
WhiteSpace,
WingBlank,
InputItem,
Toast,
} from 'antd-mobile';
import {createForm} from 'rc-form';
var seconds=60;
const SendButton = React.createClass({
getInitialState(){
return {
disabled: false,
text: '获取验... |
src/svg-icons/maps/map.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMap = (props) => (
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ... |
src/routes.js | jimkim/vainglory | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/app';
import Jumbotron from './containers/jumbotron';
import AllMatches from './containers/allMatches'
import Player from './containers/player';
import SingleHero from './containers/singleHero';
import ErrorPage ... |
addons/themes/read-only/layouts/Single.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
import NavPanel from '../includes/NavPanel';
let Home = React.createClass({
component... |
app/components/Budget.js | jpsierens/budget | // @flow
import React from 'react';
import { Link } from 'react-router';
import handleUpdateItem from '../helpers/handleUpdateItem';
import withListDragAndDrop from '../helpers/withListDragAndDrop';
type Props = {
_id: string,
index: number,
name: string,
note: string,
completed: boolean,
updat... |
modules/dreamview/frontend/src/app.js | xiaoxq/apollo | import * as ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'mobx-react';
import 'styles/main.scss';
import STORE from 'store';
import Dreamview from 'components/Dreamview';
ReactDOM.render(
<Provider store={STORE}>
<Dreamview />
</Provider>,
document.getElementById(... |
BasicPractice/index.android.js | DajuanM/DHReactNativeDemo | /**
* 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 HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Original.js | neos/neos-development-collection | import React from 'react';
export default class Original extends React.PureComponent {
render() {
const {persistenceIdentifier, previewUri, width, height} = this.props;
return (
<ul className="neos-thumbnails">
<li className="asset" data-asset-identifier={persistenceIde... |
app/src/components/Users/views/form.js | jeremyhon/sia-challenge | import React from 'react';
import { Form, Control } from 'react-redux-form';
export default ({ error, handleChange, handleUpdate, handleSubmit }) => (
<Form model="user" onUpdate={form => handleUpdate(form)} onChange={values => handleChange(values)} onSubmit={values => handleSubmit(values)}>
{error && <di... |
admin/client/Signin/index.js | giovanniRodighiero/cms | /**
* The signin page, it renders a page with a username and password input form.
*
* This is decoupled from the main app (in the "App/" folder) because we inject
* lots of data into the other screens (like the lists that exist) that we don't
* want to have injected here, so this is a completely separate route and... |
client/scripts/components/user/manual/manual-event/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
docs-ui/components/mutedBox.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import MutedBox from 'app/components/mutedBox';
export default {
title: 'Features/Issues/Muted Box',
};
export const Default = withInfo('Default')(() => <MutedBox statusDetails={{}} />);
Default.story = {
name: 'default',
};
export cons... |
test/helpers/shallowRenderHelper.js | sunyuis/galler-by-reat | /**
* 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'... |
app/components/footer/footer.js | Rorchackh/Sink | import React from 'react';
export default class Footer extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
static defaultProps = {
version: process.env.npm_package_version
}
render() {
let env = ""
if (global.appConfig.env.isDev... |
src/components/streams/StreamOptions.js | streamr-app/streamr-web | import React from 'react'
import cx from 'classnames'
import { Button } from '../buttons'
import AudioRecordingStreamContainer from '../recording/AudioRecordingStreamContainer'
export default (props) => (
<form className={cx('stream-options', { pristine: props.pristine })} onSubmit={props.handleSubmit(props.onSubm... |
app/client/js/components/User.js | kgunbin/react-sprint-planning | import React from 'react';
import { Row, Col } from 'react-bootstrap';
import classnames from 'classnames';
export default class User extends React.Component {
static propTypes = {
user: React.PropTypes.object,
vote: React.PropTypes.string,
showVotes: React.PropTypes.bool
}
renderVote = () => {
v... |
src/components/TargetList.js | samkarp/murmuration | import React from 'react';
const TargetList = React.createClass({
render: function() {
console.log("PROPS IN TL");
console.log(this.props);
var target = this.props.targets.map(function(target, index){
return <TargetItem key={ index } targetId={ target }/>
});
return (
<div> Target List goes here:<b... |
src/index.js | vojtechsoban/mortgage-calc | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import Root from 'src/containers/Root';
import configureStore from 'src/store/configureStore';
import { initialState } from 'src/store/InitialState';
const rootElement = document.getElementById('root');
const ... |
server/sonar-web/src/main/js/apps/background-tasks/header.js | abbeyj/sonarqube | import React from 'react';
export default React.createClass({
render() {
return (
<header className="page-header">
<h1 className="page-title">{window.t('background_tasks.page')}</h1>
<p className="page-description">{window.t('background_tasks.page.description')}</p>
</header>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.