path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
test/js/release_test/ViroLightTest.js | viromedia/viro | /**
* Sample React Native App
* https://github.com/facebook/react-native
*//**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
ViroS... |
src/svg-icons/action/settings-brightness.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBrightness = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1... |
modern/src/components/NavBar.js | tananaev/traccar-web | import React from 'react';
import {
AppBar, Toolbar, Typography, IconButton,
} from '@material-ui/core';
import MenuIcon from '@material-ui/icons/Menu';
const Navbar = ({ setOpenDrawer, title }) => (
<AppBar position="fixed" color="inherit">
<Toolbar>
<IconButton
color="inherit"
aria-labe... |
components/SingleFlop.js | TopOfTheFlops/client-side | import React from 'react'
import Header from './Header'
import Nav from './Nav'
import deleteFlop from '../api/deleteFlop'
import voteFlop from '../api/voteFlop'
function Flops ({state, dispatch}) {
function goToCreateFlop (e) {
dispatch({type: 'CHANGE_PAGE', payload: '/flops/new'})
}
function goBack (e) {... |
src/views/Icons/GlyphiconsSocial/GlyphiconsSocial.js | hungtruongquoc/shipper_front | import React, { Component } from 'react';
class GlyphiconsSocial extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="card">
<div className="card-header">
<strong>GLYPHICONS</strong> Social
</div>
<div className="card-bl... |
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/After/app/containers/NotFoundPage/index.js | phiratio/Pluralsight-materials | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
app/containers/todolist/PrivateTodoList.js | flanamacca/react-learning-kit | import React from 'react';
import { connect } from 'react-redux';
import { toggleTodo, removeTodo } from '../../actions';
import TodoList from '../../components/todolist/TodoList';
import AddTodo from './AddTodo';
import FilterList from '../../components/todolist/FilterList';
import TodoCounter from '../../components/t... |
assets/js/social.js | Subash/sundar-nepal.subash.me | import React from 'react';
export default function() {
return (
<div className="social">
<div
className="fb-like"
data-href="http://sundar-nepal.subash.me/"
data-layout="standard"
data-action="like"
data-show-faces="false"
data-share="true"
/>
</div... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | damoguyan8844/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
src/AffixMixin.js | PeterDaveHello/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
client/src/components/StreamField/blocks/FieldBlock.js | zerolab/wagtail | /* global $ */
import { escapeHtml as h } from '../../../utils/text';
import ReactDOM from 'react-dom';
import React from 'react';
import Icon from '../../Icon/Icon';
export class FieldBlock {
constructor(blockDef, placeholder, prefix, initialState, initialError) {
this.blockDef = blockDef;
this.type = block... |
src/components/Nav.js | Oluwasetemi/Oluwasetemi.github.io | import {Link} from 'gatsby'
import React from 'react'
import styled from 'styled-components'
const LogoStyles = styled.h1`
margin-top: 0px;
margin-bottom: 0px;
color: var(--color);
/* Tablet */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
margin-bottom: 25px;
}
/... |
stories/types/user-token-type.js | smclab/react-faceted-token-input | import React from 'react';
const FIELDS = {
'author': 'Author',
'mention': 'Mentioned',
'modifier': 'Modified by…'
};
const USERS = [
[ 'Davide', '', 'Roman' ],
[ 'Fabio', '', 'Pezzutto' ],
[ 'Marco', '', 'Tessarin' ],
[ 'Mauro', '', 'Mariuzzo' ],
[ 'Paolo', '', 'Valeri' ],
[ 'Pier Paolo', '', 'Ramo... |
docs/app/Examples/elements/Step/Types/StepExampleStepShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { Step } from 'shengnian-ui-react'
const StepExampleStepShorthand = () => (
<Step.Group>
<Step content='Shipping' />
</Step.Group>
)
export default StepExampleStepShorthand
|
jenkins-design-language/src/js/components/material-ui/svg-icons/file/folder.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const FileFolder = (props) => (
<SvgIcon {...props}>
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
</SvgIcon>
);
FileFolder.displayName = 'FileFolder';
FileFolder.muiName = 'SvgIcon';
expo... |
app/containers/Login/CreateServerFormSteps/CreateServerFormStep.js | medialab/hyphe-browser | import React from 'react'
import cx from 'classnames'
import PropTypes from 'prop-types'
import { FormattedMessage as T } from 'react-intl'
import { get, set } from 'lodash'
class CreateServerFormStep extends React.Component {
constructor (props) {
super(props)
// Use inital state as state placeholder:
... |
src/__tests__/testUtils/render.js | toomuchdesign/react-minimal-pie-chart | import React from 'react';
import { render as TLRender, act, fireEvent } from '@testing-library/react';
// @NOTE this import must finish with "/src" to allow test runner
// to remap it against bundled artefacts (npm run test:bundles:unit)
import { PieChart } from '../../../src';
const dataMock = [
{ value: 10, color... |
app/javascript/mastodon/components/load_more.js | tateisu/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
disabled: PropTypes.bool,
visible: PropTypes.bool,
}
static defaultProps = {
vi... |
examples/advanced/src/App.js | nosovsh/reduceless | import React from 'react';
import {connectSlicedState} from '../../../src';
import User from './User';
/**
* You can use decorators to simplify you code even more.
* You can override prop names with `connectSlicedState(path, stateName, setStateName, replaceStateName)`
* You can send `null` instead of any prop name ... |
packages/react-router/modules/Router.js | d-oliveros/react-router | import warning from 'warning'
import invariant from 'invariant'
import React from 'react'
import PropTypes from 'prop-types'
/**
* The public API for putting history on context.
*/
class Router extends React.Component {
static propTypes = {
history: PropTypes.object.isRequired,
children: PropTypes.node
}... |
frontend/src/Components/Modal/ModalFooter.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './ModalFooter.css';
class ModalFooter extends Component {
//
// Render
render() {
const {
children,
...otherProps
} = this.props;
return (
<div
className={styles.modalFooter}... |
src/svg-icons/image/crop-original.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (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-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
lib/ui/widgets/compass.js | SignalK/instrumentpanel | import React from 'react';
import util from 'util'
import ReadingComponent from './compassreadingcomponent';
import RoseComponent from './compassrosecomponent';
import DigitalComponent from './digitalcomponent';
import BaseWidget from './basewidget';
var SettingsPanel = (props) => {
return (
<div>
{props.... |
lib/ui/components/QuickEdit/QuickEdit.js | 500tech/mimic | import React from 'react';
import get from 'lodash/get';
import values from 'lodash/values';
import assign from 'lodash/assign';
import HttpStatus from 'http-status-codes';
import API from 'api';
import UIState from 'ui/states/UIState';
import { connectToState } from 'ui/states/connector';
import MocksState from 'ui/st... |
src/components/app.js | dcporter44/tunefest-frontend | import React, { Component } from 'react';
import Header from './header';
import Loader from './util/loader';
import Modal from './modals/modal';
import { MuiThemeProvider } from 'material-ui';
import injectTapEventPlugin from 'react-tap-event-plugin';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
export de... |
app/src/components/Description/index.js | AlexandreBourdeaudhui/abourdeaudhui.fr | /*
* Package Import
*/
import React from 'react';
import PropTypes from 'prop-types';
import sanitizeHtml from 'sanitize-html';
/*
* Local Import
*/
/*
* Code
*/
const createSanitizeRender = (dirtyHTML) => {
const html = sanitizeHtml(dirtyHTML, {
allowedTags: ['a', 'strong', 'br'],
allowedAttributes... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | rainyday/mastodon | import { decode } from 'blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes fr... |
app/packs/src/components/chemscanner/components/SmiSelect.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
import VirtualizedSelect from 'react-virtualized-select';
export default class SmiSelect extends React.Component {
constructor(props) {
super(props);
this.onSelect = this.onSelect.bind(this);
}
onSelect(selected) {
const { onSelect, typ... |
src/common/components/ObjectEditor/index.js | jspsych/jsPsych-Redux-GUI | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import IconButton from 'material-ui/IconButton';
import MenuItem from 'material-ui/MenuItem';
import { List } from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import TextField from... |
src/layouts/index.js | MRmac1/blog | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import Header from '../components/header'
// import './index.css'
const Layout = ({ children, data }) => (
<div>
<Helmet
title={data.site.siteMetadata.title}
meta={[
{ name: 'description', content:... |
src/app/views/Projects/index.js | nhardy/web-scaffold | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Helmet } from 'react-helmet';
import { connect } from 'react-redux';
import { asyncConnect } from 'redux-connect';
import { get } from 'lodash-es';
import config from 'app/config';
import { setRouteError } from 'app/actions/routeErr... |
src/components/babel/original/BabelOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './BabelOriginal.svg'
/** BabelOriginal */
function BabelOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'BabelOriginal' + ' ' + class... |
src/components/common/MenuOverlay.react.js | EaglesoftZJ/iGem_Web | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import classnames from 'classnames';
import MessageActions from './dropdown/MessageActions.react';
import RecentContextMenu from './dropdown/RecentContextMenu.react'
import Dro... |
zoho-experiments/app/containers/FeaturePage/index.js | glandre/prototypes | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import { Helmet } from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from '... |
public/app/components/online-tab/details-network.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import icons from '../icons';
import MainTitle from '../main-title';
import humanFormat from 'human-format';
import moment from 'moment';
import 'moment-duration-format';
import DetailsContainer from './details-container';
const timeFormat ... |
packages/mineral-ui-icons/src/IconFlipToFront.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 IconFlipToFront(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
src/svg-icons/editor/format-textdirection-r-to-l.js | mmrtnz/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... |
public/assets/scripts/components/common/alerts.js | luisfbmelo/reda | 'use strict';
import React from 'react';
import { Component } from 'react';
export default class AlertsBox extends Component {
constructor(props) {
super(props);
this.setTimer = this.setTimer.bind(this);
this.dismissAlert = this.dismissAlert.bind(this);
this.state = {
visible: false
... |
app/app.js | bluce1017/betterthangoodell | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./... |
src/components/Footer.js | guivazcabral/site | import React from 'react';
const Footer = () => {
return (
<div className="content footer row">
<div className="small-12 medium-12 large-12 columns">
<div className="icons">
<div className="socialIcon">
<a href={'https://pt.linkedin.com/in/guilhermevazcabral'}>
<... |
docs/src/pages/index.js | balloob/nuclear-js | import React from 'react'
import Wrapper from '../layouts/wrapper'
import ItemFilterExample from '../components/item-filter-example'
import UsageExample from '../components/usage-example'
import Nav from '../components/nav'
export default React.createClass({
render() {
return <Wrapper>
<Nav />
<div c... |
www/src/pages/index.js | glenjamin/react-bootstrap | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Container from 'react-bootstrap/lib/Container';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Jumbotron from 'react-bootstrap/lib/Jumbotron';
import styled from 'astroturf';
import withProps... |
src/components/Pagination/Pagination-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Pagination from '../Pagination';
import PaginationV2 from '../PaginationV2';
const props = {
onChange: ({ page, pageSize }) => {
console.log(`Page: ${page}`, `Page Size: ${pageSize}`); // eslint-disable-line no-console
},
pageSiz... |
src/components/Layout/Layout.js | SgtRock91/FantasyOptimizer | /**
* 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 PropTypes from 'prop-... |
src/TextFieldCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {MDCTextField} from '@material/textfield/index';
import classnames from 'classnames';
import ReactGA from 'react-ga';
import {getUrlParamsFromSearch} from './hero/urlHelper';
import './styles/TextFieldCatal... |
src/server.js | 60frames/react-boilerplate | import React from 'react';
import { compose } from 'redux';
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
import { createMemoryHistory, match, RouterContext } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
import Helmet ... |
src/containers/recipes/Listing/ListingView.js | jeanlescure/detox-react-native-demo | /**
* Recipe Listing Screen
* - Shows a list of receipes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
ListView,
RefreshControl,
} from 'react-native';
// Consts and Libs
im... |
src/admin/lib/CategoryContent.js | rendact/rendact | import React from 'react';
import Query from '../query';
import _ from 'lodash';
import Notification from 'react-notification-system';
import Halogen from 'halogen'
import {riques, hasRole, errorCallback, removeTags, swalert, disableForm, defaultHalogenStyle} from '../../utils';
import {TableTagCat, SearchBox, DeleteBu... |
src/components/NotFoundPage/NotFoundPage.js | yanivefraim/mobile-device-manager | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
//require('./NotFoundPage.less');
import React from 'react';
export defa... |
src/repository/screens/pull-list.screen.js | dyesseyumba/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
FlatList,
View,
StyleSheet,
Dimensions,
Text,
Platform,
} from 'react-native';
import { ButtonGroup } from 'react-native-elements';
import {
... |
docs/build.js | jakubsikora/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
docs/src/examples/modules/Tab/Usage/TabExampleDefaultActiveIndex.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Tab } from 'semantic-ui-react'
const panes = [
{ menuItem: 'Tab 1', render: () => <Tab.Pane>Tab 1 Content</Tab.Pane> },
{ menuItem: 'Tab 2', render: () => <Tab.Pane>Tab 2 Content</Tab.Pane> },
{ menuItem: 'Tab 3', render: () => <Tab.Pane>Tab 3 Content</Tab.Pane> },
]
const Tab... |
client/components/Footer.js | KristinaMatuleviciute/reactapp | 'use strict';
import React from 'react';
export default class Footer extends React.Component {
render () {
return (
<footer className='footer txt-small txt-dimmed mb mt txt-center has-icon' role='contentinfo'>
<div className='container-fluid'>
<a href='https://github.com/KristinaMatulevic... |
src/common/header.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
TouchableOpacity,
Text,
View,
Image,
StyleSheet,
Dimensions
} from 'react-native';
import * as colors from '../common/colors';
import Icon from 'react-native-vector-icons/MaterialIcons';
const { width, height } = Dimensions.get('window');
export defaul... |
src/common/components/FormulaeRender.js | benoitvallon/react-native-nw-react-calculator | 'use strict';
import React from 'react';
export default function (props, state) {
return (
<div className='formulae'>
{state.displayFormulae.map(function(formula) {
return <span key={formula.id} onClick={this.handleClick.bind(this, formula)} className={this.dynamicClass(formula.operator)}>{formula... |
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js | matthewoates/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
export default class LinearProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() => thi... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | ashfurrow/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
definitions/npm/fixed-data-table-2_v0.7.x/flow_v0.47.x-v0.52.x/test_fixed-data-table-2_v0.7.x.js | mwalkerwells/flow-typed | /* @flow */
import React from 'react';
import {Cell, Column, ColumnGroup, Table} from 'fixed-data-table-2';
let cell = <Cell/>;
cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, columnKey, event) => {event.target;}}/>;
// $ExpectError
cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, columnKe... |
react/features/base/react/components/native/LoadingIndicator.js | bgrozev/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { ActivityIndicator } from 'react-native';
import { ColorPalette } from '../../../styles';
type Props = {
/**
* The color of the spinner.
*/
color: ?string,
/**
* Prop to set the size of the indicator. This is the same as the
... |
components/utils/defaultArrowRenderer.js | VACO-GitHub/vaco-components-library | import React from 'react';
const arrowRenderer = ({ onMouseDown }) => {
return <span className="Select-arrow" onMouseDown={onMouseDown} />;
};
export default arrowRenderer;
|
src/User/components/LoginRegisterModal.js | jirkae/hobby_hub | import React, { Component } from 'react';
import Tabs from "./../../Base/components/layout/Tabs";
import LoginForm from "./LoginForm";
import RegisterForm from "./RegisterForm";
class LoginRegisterModal extends Component {
render() {
const { onSuccessLogin } = this.props;
const tabs = [
... |
app/javascript/mastodon/features/account_gallery/index.js | TheInventrix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '../... |
test/fixtures/export-default-from-indexjs/index.js | wyze/babel-plugin-transform-react-stateless-component-name | import React from 'react'
export default () => (
<h1>Hello!</h1>
)
|
src/App.js | anvaka/actg | import React, { Component } from 'react';
import SearchBar from './SearchBar.js';
export class App extends Component {
render() {
return (
<div>
<SearchBar model={this.props.model} />
</div>);
}
}
|
src/components/Footer/Footer.js | fechy/retropie-web-gui | /**
* 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 from 'react';
import withStyles from 'isomorp... |
app/containers/App/index.js | dreamweaver1231/react-project | /**
*
* App.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
... |
src/components/screen/ScreenFooter.js | hostables/musicquiz | import React from 'react'
import ScreenBar from './ScreenBar'
import './ScreenFooter.css'
import '../../variables.css'
const ScreenFooter = ({ children, className }) => (
<ScreenBar className={className ? `ScreenFooter ${className}` : 'ScreenFooter'} backgroundColor="var(--secondary)">
{children}
</ScreenBar>
... |
app/routes.js | CKrawczyk/electron-subject-uploader | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app';
import Home from './home';
import Project from './project';
import SubjectSet from './subject-set';
export default (
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path=":projectID" ... |
src/components/MenuItem.js | tgdn/react-dropdown | import React from 'react'
import cx from 'classnames'
class DropdownMenuItem extends React.Component {
render() {
const {closeOnClick, wrap, ...otherProps} = this.props
const classes = cx(
'Dropdown__menu__item',
this.props.className ? this.props.className.split(' ') : '', {... |
src/svg-icons/image/filter-6.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter6 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2... |
example/example.js | smronju/React-Music-Player | import React from 'react';
import ReactDOM from 'react-dom';
import ReactMusicPlayer from './ReactMusicPlayer';
let songs = [
{
url: 'http://tegos.kz/new/mp3_full/Redfoo_-_New_Thang.mp3',
cover: 'http://www.nossoarmario.com/blog/wp-content/uploads/2015/01/redfoo.jpg',
artist: {
... |
src/components/tabs/tab-group.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getCallbacks } from '../../helper/helper';
import styles from '../../../build/styles';
export default class TabGroup extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
style:... |
src/shared/SellerProfile/LiteHeader.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import PropTypes from 'prop-types'
import classNames from 'classnames';
import { validURL } from '../../helpers'
const LiteHeader = (props) => {
const {
name,
seller_type,
summary,
website,
contact_email,
contact_phone,
contact_name
} = props;
return (
... |
src/components/Widgets/Markdown/MarkdownControl/Toolbar/ToolbarButton.js | dopry/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { Icon } from '../../../../UI';
import styles from './ToolbarButton.css';
const ToolbarButton = ({ label, icon, action, active, disabled }) => (
<button
className={classnames(styles.button, { [styles.active... |
js/jqwidgets/demos/react/app/tagcloud/customtags/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js';
class App extends React.Component {
render () {
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'test' },
{ countryNam... |
App/homeScreen.js | Dagers/React-Native-Differential-Updater | import React from 'react';
import { StyleSheet,Text, View, Button, Alert } from 'react-native';
/**
* Represents the home screen of our app.
*
* @author Daniel Strebinger
* @version 1.0
* */
export class HomeScreen extends React.Component {
static navigationOptions = {
title: 'Diff Updater',
};
... |
src/icons/IosList.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosList extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M64,64v384h384V64H64z M144,368c-8.836,0-16-7.164-16-16s7.164-16,16-16s16,7.164,16,16S152.836,368,144,368z M144,272
... |
src/pages/project.js | matchilling/com-matchilling | import Helmet from 'react-helmet'
import React from 'react'
import ProjectList from '../components/project-list/'
export default class Project extends React.Component {
render() {
return (
<div>
<Helmet title={`Projects`} />
<h1>Projects</h1>
<ProjectList />
</div>
)
}
... |
node_modules/react-bootstrap/es/ButtonGroup.js | hsavit1/gosofi_webpage | 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/containers/HomePage.js | chrigu/braukontrol-react | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Braumeister from '../components/Braumeister';
import * as BraumeisterActions from '../actions/braumeister';
import { getTemperatures, showExportButton } from '../reducers/braumeis... |
src/components/DynamicForm.js | dynamicform/dynamicform-react-client | import 'antd/dist/antd.min.css';
import React from 'react';
import DynamicFormRender from './DynamicFormRender';
class DynamicForm extends React.Component{
constructor(){
super();
}
render(){
return(
<DynamicFormRender {...this.props} />
);
}
}
export default Dyna... |
src/components/Header.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import Link from './Link';
import Helmet from 'react-helmet';
import Menu from './Menu';
import styled from 'styled-components';
import SelectLanguage from './SelectLanguage';
import { FormattedMessage } from 'react-intl';
const headerTheme = (props) =>
... |
introduction-to-react/app/Product.js | sunitJindal/react-tutorial | import React from 'react';
import data from './productData';
/**
* Stateless react component
*
*/
const Product = () => {
return (
<div>
{data.name}
</div>
);
};
export default Product;
|
icon-builder/tpl/SvgIcon.js | vanHeemstraSystems/components | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import SvgIcon from '{{{ muiRequireStmt }}}';
const {{className}} = React.createClass({
mixins: [PureRenderMixin],
render() {
return (
<SvgIcon {...this.props}>
{{{paths}}}
</SvgIcon>
);
}
});
... |
lib/component-library-slides/InlineStyling.js | waynecraig/encoding-present | import React from 'react';
const dragonSrc = require('./images/dragons.gif');
export default class Slide extends React.Component {
render() {
return (
<div>
<h1>Inline styles: here be slightly cuter dragons</h1>
<img src={ dragonSrc } width={ 490 } height={ 320 }/>
</div>
);
}... |
indico/modules/events/editing/client/js/management/tags/index.js | indico/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import dashboardURL from 'indico-url:event_editing.dashboard';
import React from 'react';
import {... |
src/RecordView.js | louh/naics-browser | import React from 'react'
import { Link } from './Link'
import reactStringReplace from 'react-string-replace'
import { parseCrossrefs } from './record-helpers'
class RecordView extends React.Component {
constructor(props) {
super(props)
this.onClickLearnMore = this.onClickLearnMore.bind(this)
}
onClick... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/brightness-3.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness3 = (props) => (
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/>
</SvgIcon>
);
ImageBrightness3.displayName = 'Im... |
app/components/CharacterList.js | sachinmour/newedenfaces-react | import React from 'react';
import {Link} from 'react-router';
import {isEqual} from 'underscore';
import CharacterListStore from '../stores/CharacterListStore';
import CharacterListActions from '../actions/CharacterListActions';
class CharacterList extends React.Component {
constructor(props) {
super(props);
... |
src/templates/page-template.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Page from '../components/Page';
import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';
type Props = {
data: ... |
src/parser/druid/balance/modules/Abilities.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CoreAbilities from 'parser/core/modules/Abilities';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
class Abilities extends CoreAbilities {
spellbook() {
const combatant = this.selectedCom... |
harish/ui-elements/src/index.js | fcc-hyd/moc-rnf | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
Realization/frontend/czechidm-core/src/content/form/FormProjectionLocalization.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Utils from '../../utils';
import { FormProjectionManager, FormDefinitionManager } from '../../redux';
const manager = new FormProjectionManager();
/**
* Form proje... |
app/javascript/mastodon/features/pinned_statuses/index.js | imas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
app/components/LayoutElements/index.js | typesettin/manuscript | import React, { Component } from 'react';
import { Text, View, Dimensions, StyleSheet, } from 'react-native';
import styles from '../Styles/shared';
import layoutStyles from '../Styles/layout';
import Icons from '../Icons';
import HTMLText from '../HTMLText';
import { Grid, Col } from '../Grid';
// import ActionBar fro... |
src/Parser/Monk/Mistweaver/CHANGELOG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Anomoly, Zerotorescue, Scaleable } from 'CONTRIBUTORS';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-02-05'),
changes: 'Implemented Stat Values for Mistweaver Mo... |
Console/app/node_modules/rc-upload/es/Upload.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | sfshine/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
transforms/__testfixtures__/React-PropTypes-to-prop-types/with-top-comment.output.js | reactjs/react-codemod | /**
* This is some multiline comment
*/
import PropTypes from 'prop-types';
import React from 'react';
function FunctionalComponent (props) {
return <div>{props.text}</div>;
}
FunctionalComponent.propTypes = {
text: PropTypes.string.isRequired,
};
|
src/scripts/views/header.js | IronNation/NCI-trial-search | import React from 'react'
class Header extends React.Component {
render() {
return (
<div className = 'header'>
<h1>Welcome to DTST!</h1>
<p>Search for a clinical drug trial near you!</p>
<Navigation />
</div>
)
}
}
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.