path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/src/components/App.js | saffih/list-by-nextjs-redux-forms | import React from 'react'
import css from 'next/css'
import CategoryListView from '../containers/CategoryListView'
import CategoryListViewAdd from '../containers/CategoryListViewAdd'
const app = () => (
<div>
<CategoryListViewAdd name={"Category to Add"} />
<CategoryListView />
</div>
)
export default app;
|
src/components/footer/index.js | jakemmarsh/react-booster-boilerplate | import React from 'react';
import './styles.scss';
class FooterComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<footer className="footer-component">
Footer
</footer>
);
}
}
export default FooterComponent;
|
example/index.js | Neophy7e/react-bootstrap-typeahead | 'use strict';
import React from 'react';
import {render} from 'react-dom';
import Page from './components/Page';
import AsyncSection from './sections/AsyncSection';
import BasicSection from './sections/BasicSection';
import BehaviorsSection from './sections/BehaviorsSection';
import CustomSelectionsSection from './s... |
packages/material-ui-icons/src/Label.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z" /></g>
, 'Label');
|
src/Toast.js | 15lyfromsaturn/react-materialize | import React from 'react';
import cx from 'classnames';
import Button from './Button';
class Toast extends React.Component{
constructor(props) {
super(props);
this.onClick = this.onClick.bind(this);
}
render() {
let classes = {
toast: true,
rounded: this.props.rounded
};
let {cl... |
packages/mineral-ui-icons/src/IconChildFriendly.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 IconChildFriendly(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
src/components/TracksPage/TracksPage.js | ksevezich/Duke-Blueprint-website | import React from 'react'
import classes from './TracksPage.scss'
import TracksGrid from 'components/TracksGrid'
export const TracksPage = () => (
<div>
<div className={classes.container}>
<div className={classes.tracks}>
<h1 className={classes.tracksHeader}>TOPICS</h1>
<p className={classe... |
src/svg-icons/hardware/toys.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
src/decorators/requireRole.js | orionsoft/parts | import React from 'react'
import includes from 'lodash/includes'
import Button from '../components/Button'
import isArray from 'lodash/isArray'
import PropTypes from 'prop-types'
const styles = {
container: {
textAlign: 'center',
padding: 20
},
notAllowed: {
fontSize: 20,
color: 'red'
},
need... |
app/javascript/mastodon/features/follow_requests/index.js | riku6460/chikuwagoddon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/App/App.js | kasimir-k/laput | import React, { Component } from 'react';
import Board from '../Board/Board';
import logo from '../logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
... |
src/middleware.js | justinjung04/universal-boilerplate | import React from 'react';
import { renderToString } from 'react-dom/server';
import { StaticRouter } from 'react-router';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import App from './components/app';
import reducers from './reducers';
export default (req, res) => {
if(process.env.N... |
src/components/App.js | thinq4yourself/simply-social-in | import api from '../services/api';
import Header from './Header';
import React from 'react';
import { connect } from 'react-redux';
import { APP_LOAD, REDIRECT } from '../constants/actionTypes';
import { Route } from 'react-router-dom'
import Fader from 'react-fader'
import Switch from 'react-router-transition-switch'
... |
demo/client/Stateless.js | gadicc/meteor-hmr | import React from 'react';
const Stateless = (props) => (
<div>
<Stateless1 {...props} />
<Stateless2 {...props} />
</div>
);
const Stateless1 = ({prop1,prop2}) => (
<div>
<div>prop1a: {prop1}</div>
<div>prop2b: {prop2}</div>
</div>
);
const Stateless2 = ({prop1,prop2}) => {
var x = 12;
r... |
projects/twitch-ui/src/components/GridCell.stories.js | unindented/twitch-x | import React from 'react'
import styled from 'styled-components'
import {storiesOf} from '@storybook/react'
import GridCell from './GridCell'
const GridCellContainer = styled.div`
display: flex;
width: 240px;
`
storiesOf('GridCell', module)
.add('without info', () => (
<GridCellContainer>
<GridCell
... |
src/components/icons/index.js | ChronoBank/ChronoMint | /**
* Copyright 2017–2019, LaborX PTY
* Licensed under the AGPL Version 3 license.
*/
import React from 'react'
const Icons = {
get (name) {
switch (name) {
case 'notices.error.icon':
case 'notices.arbitrary.icon':
return <i className='material-icons'>error_outline</i>
case 'notices.approva... |
src/sharedTypes.js | RafalFilipek/just-box | // @flow
import React from 'react';
import { type UnitElement } from './unit';
export type MixedType = string | number | UnitElement;
export type RenderFunc = () => React.Element<*>;
|
server/sonar-web/src/main/js/apps/projects-admin/projects.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
client/share_trader/js/app.js | bigchaindb/bigchaindb-examples | // Install necessary polyfills (see supported browsers) into global
import 'core-js/es6';
import 'core-js/stage/4';
import 'isomorphic-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import ShareTrader from './components/share_trader';
import '../../lib/css/scss/main.scss';
const App = () => (... |
frontend/app/components/Users/Managers.js | sabbir044/AutoRepair | import React from 'react';
import PropTypes from 'prop-types';
import { Button, ButtonToolbar } from 'react-bootstrap';
import UserListView from './UserListView';
import CreateOrEditUserView from './CreateOrEditUserView';
import './Users.css';
class Managers extends React.Component {
constructor(props) {
super(... |
chrome/extension/app.js | adrienjoly/chrome-track-grabber | import React from 'react';
import ReactDOM from 'react-dom';
import App from '../../app/containers/App';
import './app.css';
chrome.tabs.getSelected(null, function(tab) {
console.log('TAB', tab);
ReactDOM.render(
<App tab={tab} />,
document.querySelector('#root')
);
});
|
src/src/Tabs/Certificates.js | ioBroker/ioBroker.web | import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import logo from '../assets/le.png';
import CustomCheckbox from '../Components/CustomCheckbox';
import CustomInput from '../Components/CustomInput';
import HintComponent from '../Compon... |
app/containers/LoginContainer/index.js | rahsheen/scalable-react-app | /*
*
* LoginContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLoginContainer from './selectors';
import Login from '../../components/Login';
import { login, cancelLogin } from './actions';
export class LoginContainer extends React.Component { // eslint-disable-line reac... |
src/router.js | janimattiellonen/discgolfresults | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import AppContainer from './components/smart/AppContainer';
import HomeContainer from './components/smart/HomeContainer';
export function createRouter({ store, history }) {
function checkFetcher(nextState, replaceState, callbac... |
js/components/layout/nested.js | ChiragHindocha/stay_fit |
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... |
app/javascript/mastodon/components/media_gallery.js | PlantsNetwork/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
Libraries/NewAppScreen/components/ReloadInstructions.js | hoangpham95/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import type {Node} from 'react';
import {Platform, StyleSheet, Text} from 'react-native';
impo... |
internals/templates/app.js | gtct/wallet.eine.com | /**
* 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';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
blog-post-4/src/www/js/components/input-demo.js | DevelopIntelligenceBoulder/react-flux-blog | 'use strict';
import React from 'react';
export default class InputDemo extends React.Component {
constructor(props) {
super(props);
this.state = Object.assign({}, props);
this._onChange = this._onChange.bind(this);
}
_onChange(e) {
this.setState(Object.assign({}, this.state, { [e.target.name]: e.target.... |
app/javascript/flavours/glitch/features/compose/components/autosuggest_account.js | Kirishima21/mastodon | import React from 'react';
import Avatar from 'flavours/glitch/components/avatar';
import DisplayName from 'flavours/glitch/components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount ... |
frontend/src/components/partners/profile/modals/addFlagModal/addFlagModal.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { submit } from 'redux-form';
import ControlledModal from '../../../../common/modals/controlledModal';
import { updatePartnerFlags } from '../../../../../reducers/partnerFlags';
import AddFlagForm... |
docs/app/Examples/elements/Button/GroupVariations/ButtonGroupIconExample.js | jcarbo/stardust | import React from 'react'
import { Button, Icon } from 'stardust'
const ButtonGroupIconExample = () => (
<Button.Group icon>
<Button>
<Icon name='play' />
</Button>
<Button>
<Icon name='pause' />
</Button>
<Button>
<Icon name='shuffle' />
</Button>
</Button.Group>
)
expor... |
web/themes/contrib/bootstrap_sass_starterkit/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | 1ns/project-r2 | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
assets/frontpage/index.js | dotKom/onlineweb4 | import React from 'react';
import ReactDom from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import ArticlesContainer from './articles/containers/ArticlesContainer';
import EventsContainer from './events/containers/EventsContainer';
import './initFrontpage';
import './less/frontpage.less';
const rende... |
packages/react-vis/src/legends/continuous-color-legend.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/client.js | hunt-genes/fasttrack | /* global window document */
/* eslint "import/no-extraneous-dependencies": 0 */
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import IsomorphicRelay from 'isomorphic-relay';
import IsomorphicRouter from 'isomorphic-relay-router';
import { match,... |
src/svg-icons/social/sentiment-very-satisfied.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVerySatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1... |
client/app/app.js | gustblima/what-can-i-play-with-my-friends | /**
* 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';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
docs/src/ComponentsPage.js | blue68/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import getOffset from 'dom-helpers/query/offset';
import css from 'dom-helpers/style';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import N... |
app/jsx/shared/SVGWrapper.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
docs/app/Examples/elements/Label/Types/LabelExampleBasic.js | ben174/Semantic-UI-React | import React from 'react'
import { Icon, Label } from 'semantic-ui-react'
const LabelExampleBasic = () => (
<Label>
<Icon name='mail' /> 23
</Label>
)
export default LabelExampleBasic
|
js/App/Components/TabViews/SubViews/Device/ShowMoreButton.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
client/src/components/recipeingredient/Show.js | noinc/SimpleStorefront | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import { retrieve, reset } from '../../actions/recipeingredient/show';
import { del } from '../../actions/recipeingredient/delete';
class Show extends ... |
src/containers/test/index.js | 8881/react-starter | import React, { Component } from 'react';
export default class extends Component {
static propTypes = {};
static defaultProps = {};
constructor(props) {
super(props);
}
componentDidMount() {
document.title = 'test';
}
render() {
return (
<div>test</div>
);
}
}
|
actor-apps/app-web/src/app/components/ToolbarSection.react.js | shenhzou654321/actor-platform | import React from 'react';
import DialogStore from 'stores/DialogStore';
import ActivityActionCreators from 'actions/ActivityActionCreators';
//import AvatarItem from 'components/common/AvatarItem.react';
var getStateFromStores = () => {
return {dialogInfo: null};
};
class ToolbarSection extends React.Component ... |
components/editor/FakeTagContainer.js | postor/react-builder | import React from 'react'
import { connect } from 'react-redux'
import TreeRenderer from 'react-tree-renderer'
import { tagTypes, currentEditorFakeTagRootPath, currentEditorFakeTagRelativePath, treeEvents } from './define'
import FakeTag from './FakeTag'
import { setJSON, getPath, pathMerge } from '../../tools/store/j... |
src/svg-icons/editor/format-color-fill.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorFill = (props) => (
<SvgIcon {...props}>
<path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ... |
TodoApp_Redux/components/Footer.js | oreillyross/coding_solutions | import React from 'react'
import FilterLink from './containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter='SHOW_ALL'>
All
</FilterLink>
{", "}
<FilterLink filter='SHOW_ACTIVE'>
Active
</FilterLink>
{", "}
<Filter... |
src/utils/classToCard.js | upworthy/react-mobiledoc-editor | import React from 'react';
import ReactDOM from 'react-dom';
const cardRenderer = (component, isEditing = false) => ({ env, options, payload }) => {
const targetNode = document.createElement('div');
const { didRender, onTeardown } = env;
didRender(() => {
payload = { ...payload }; // deref payload
const... |
src/example.js | danielmoll/component-win-articlepage | import 'babel-polyfill';
import Impart from '@economist/component-react-async-container';
import Loading from '@economist/component-loading';
import React from 'react';
import WorldInArticle from './';
import fetch from 'isomorphic-fetch';
function fetchArticle() {
return fetch('/stubbed/article.json')
.then((re... |
src/components/layout/footer/index.js | MoosemanStudios/app.moosecraft.us | import React from 'react';
import className from 'classnames';
import Column from 'src/components/layout/column';
import SocialIcon from 'src/components/component/socialIcon';
import ServerStatus from 'src/components/component/serverStatus';
import layout from 'src/styles/layout.scss';
import colors from 'src/styles/... |
fields/types/relationship/RelationshipField.js | belafontestudio/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import superagent from 'superagent';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'RelationshipField',
shouldCollapse () {
// many:true relationsh... |
src/components/tweet.js | philly-d/chirp-for-twitter | import React from 'react'
import TweetEditor from './tweetEditor'
import TweetDraft from '../containers/TweetDraft'
import twitterText from 'twitter-text'
const tweetEntityClass = 'twc-tweet-entity'
const tweetLinkClass = 'twc-tweet-link'
const twParseOptions = {
usernameIncludeSymbol: true,
targetBlank: true,... |
src/components/suppliers/suppliers-list.js | Xabadu/VendOS | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { getSuppliersFullList, deleteSupplier } from '../../actions/suppliers';
class SuppliersList extends Component {
con... |
src/parser/hunter/marksmanship/modules/spells/PreciseShots.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/hunter';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import... |
src/svg-icons/action/face.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... |
packages/material-ui-icons/src/Schedule.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Schedule = props =>
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6... |
samples/playground/judo-1/React.Js/ClientApp/src/App.js | moljac/Ph4ct3x | import React, { Component } from 'react';
import { Route } from 'react-router';
import { Layout } from './components/Layout';
import { Home } from './components/Home';
import { FetchData } from './components/FetchData';
import { Counter } from './components/Counter';
export default class App extends Component {
stat... |
fields/types/url/UrlField.js | webteckie/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window.o... |
src/components/menu/index.js | ianmcgregor/mcgregor.codes | import React from 'react';
import Link from 'gatsby-link';
import {withRouter} from 'react-router';
import styled from 'styled-components';
import {media, linkCss, marginFixed} from '../../styles';
import pagePathname from '../../utils/page-pathname';
import Label from '../label';
const Container = styled.div`
dis... |
src/svg-icons/action/dns.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
src/index.js | cismet/wupp-geoportal3-powerboats | import 'babel-polyfill';
import 'es6-symbol/implement';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import store, { history } from './redux/store';
import App from './App';
import './index.css';
const tar... |
src/index.js | lvyidan/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
packages/react-router-dom/modules/BrowserRouter.js | goblortikus/react-router | import React from 'react'
import PropTypes from 'prop-types'
import createHistory from 'history/createBrowserHistory'
import { Router } from 'react-router'
/**
* The public API for a <Router> that uses HTML5 history.
*/
class BrowserRouter extends React.Component {
static propTypes = {
basename: PropTypes.stri... |
src/js/components/icons/base/LinkDown.js | odedre/grommet-final | /**
* @description LinkDown SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
draft-js-emoji-plugin/src/components/EmojiSelect/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import strategy from 'emojione/emoji.json';
import createEmojisFromStrategy from '../../utils/createEmojisFromStrategy';
import defaultEmojiGroups from '../../constants/defaultEmojiGroups';
import Popover from './Popover';
const emojis = cre... |
src/Components/Layout/index.js | gabriel-lopez-lopez/gll-billin-code-challenge | /**
* Componente Layout
* Forma la estructura de los principales componentes genéricos
*
*/
import React from 'react';
// Componentes
import Header from '../Header';
import Footer from '../Footer';
import Loading from '../Loading';
import Notifications from '../Notifications';
const Layout = (props) => (
<di... |
src/frontend/components/buttons/RedditButton.js | gbgtech/gbgtechWeb | import React from 'react';
const RedditButton = React.createClass({
render() {
return (
<a className="main-follow-button reddit-logo" href="https://www.reddit.com/r/gbgtech/" target="_blank" rel="noopener noreferrer" />
);
}
});
export default RedditButton;
|
client/engines/engineUtils.js | Cellarise/cell-cycle | import React from 'react';
import R from 'ramda';
import moment from 'moment';
import classnames from 'classnames';
import DataTable from 'cell-cycle/client/dataTable/dataTable.jsx';
import Dropzone from "../widgets/dropzone.jsx";
import SelectBoxV2 from '../collection/selectBox.jsx';
import Button from '../forms/butto... |
src/stories/2016-06-11-tenerife-the-land-of-eternal-spring.js | danpersa/remindmetolive-react | import React from 'react';
import PostImage from '../components/story/PostImage';
import TwoPostImages from '../components/story/TwoPostImages';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/story/StoryImage... |
src/Autocomplete.js | prometheusresearch/react-autocomplete | /**
* @copyright 2015, Prometheus Research, LLC
* @flow
*/
import type {AutocompleteResult} from './index';
import invariant from 'invariant';
import React from 'react';
import ReactDOM from 'react-dom';
import debounce from 'lodash/function/debounce';
import Tether from 'tether';
import Layer from './Layer';
impo... |
src/components/Header/Header.js | fustic/here-hackaton | /**
* 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... |
frontend/landing_page/src/Routes/index.js | linea-it/dri | import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Header from '../components/Header';
import Footer from '../components/Footer';
import Home from '../pages/Home';
import AboutUs from '../pages/AboutUs';
import Help from '../pages/Help';
import Tutorials from '../pages/Tu... |
src/common/PaymentIcon/MasterCard.js | Syncano/syncano-dashboard | /* eslint-disable */
import React from 'react';
import { SvgIcon } from 'material-ui';
export default React.createClass({
render() {
return (
<SvgIcon {...this.props}>
<svg enable-background="new 0 0 512 512" height="100%" id="Layer_1" version="1.1" viewBox="0 0 512 512"
width="100%"
... |
src/Tooltip.js | omerts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
packages/react/src/components/ExpansionPanel.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
export default function ExpansionPanel({ summary, children, open, onToggle }) {
let handleToggle;
if (onToggle) {
handleToggle = evt => onToggle(evt.target.open);
}
return (
<details open={open} onToggle={handleToggle}>
... |
src/components/Loader.js | jonatanramhoj/single-page | import React from 'react';
import { CSSTransitionGroup } from 'react-transition-group';
class Loader extends React.Component {
render () {
return(
<CSSTransitionGroup
transitionName="loader"
className="loader"
transitionEnterTimeout={0}
transitionLeaveTimeout={600}>
... |
js/jqwidgets/demos/react/app/treemap/rangesrendering/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeMap from '../../../jqwidgets-react/react_jqxtreemap.js';
class App extends React.Component {
render () {
let data = [
{
label: 'China',
value: 1354040000
},
... |
src/index.js | kybetter/react-router-demo | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router} from 'react-router-dom'
import App from './App';
import './index.css';
ReactDOM.render(
<Router>
<App />
</Router>
,document.getElementById('root')
);
|
src/components/error-screen.js | dyesseyumba/git-point | import React, { Component } from 'react';
import { colors, fonts, normalize } from 'config';
import { translate } from 'utils';
import styled from 'styled-components';
const ViewWrapper = styled.View`
align-items: center;
align-content: center;
height: 100%;
justify-content: center;
`;
const TextStyled = styl... |
src/app/tabs/youtube.js | sonnylazuardi/natal-ppl-app | import React from 'react';
import MaterialUI from 'material-ui';
import axios from 'axios';
let { Card, CardHeader, CardTitle, CardText, Avatar, CardMedia, CardActions, FlatButton, IconButton, RefreshIndicator } = MaterialUI;
import Colors from 'material-ui/lib/styles/colors';
import Nav from '../tabs/nav';
class Yout... |
src/browser/todos/TodosPage.js | reedlaw/read-it | // @flow
import Buttons from './Buttons';
import NewTodo from './NewTodo';
import React from 'react';
import Todos from './Todos';
import linksMessages from '../../common/app/linksMessages';
import { Box, PageHeader } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { Title } from '... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/insert-chart.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorInsertChart = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
EditorInsertChart.displayName = 'Editor... |
src/DisplayArea.js | otsoaUnLoco/wolf-chess | // @flow
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { IMoveInfo } from './Interfaces';
import './DisplayArea.css';
type Props = {
moveList: IMoveInfo[],
markedMove: number,
onItemClick: (number) => void
};
export default function DisplayArea(props: Props): React.Element<*> {
c... |
node_modules/eslint-config-airbnb/test/test-react-order.js | NathanBWaters/website | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import baseConfig from '../base';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: {indent: 0},
});
function... |
app/components/Profile.js | rafaellucio/react-learning | import React from 'react';
import Repos from './Github/Repos';
import UserProfile from './Github/UserProfile';
import Notes from './Notes/Notes';
import ReactFireMixin from 'reactfire';
import Firebase from 'firebase';
import getGithubInfo from '../utils/helpers';
var Profile = React.createClass({
mixins: [ReactFireM... |
src/with-data/index.js | ForbesLindesay/react-data-fetching-demo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App/>,
document.getElementById('container'),
);
|
src/client/app/app.react.js | srhmgn/markdowner | require('./app.scss');
import * as state from '../state';
import Component from '../components/component.react';
import React from 'react';
import {measureRender} from '../console';
import Output from './output.react';
import Editor from './editor.react';
import {textCursor} from '../state';
import {registerWithStore... |
react/redux/client/src/components/dashboard/profile/view-profile.js | sabertazimi/st-proj | import React, { Component } from 'react';
import cookie from 'react-cookie';
import { connect } from 'react-redux';
import { fetchUser } from '../../../actions/index';
import UserInfo from './user-info';
class ViewProfile extends Component {
componentWillMount() {
// Fetch user data prior to component mounting
... |
src/plugins/timer/index.js | jimmed/spankhbot | import React from 'react';
import cx from 'suitcx';
import escapeRegexp from 'escape-string-regexp';
let responder;
// TODO: Allow enabling/disabling without reconnecting
export const displayName = 'Timed announcements';
const blankAnnouncement = {
announcement: 'This message brought to you by spankhbot!',
timer... |
src/components/raid/RaidInsert.js | Miroku87/pogo-raids-organizer | import React, { Component } from 'react';
import { Panel, Form, ControlLabel, Col, FormGroup, Button, FormControl, Checkbox } from "react-bootstrap";
import PopUp from '../ui/PopUp';
import ServerBridge from '../../utils/ServerBridge';
import TextsManager from '../../utils/TextsManager';
import UserManager from '../../... |
src/components/Cat.js | alexedev/relay-workshop | import React from 'react';
const Cat = ({ cat, onToggleShwifty, onDelete }) => (
<div>
{cat && (
<article className="dt w-100 bb b--black-05 pb2 mt2" href="#0">
<div className="dtc w2 w3-ns v-mid">
<img
src={cat.imageUrl}
className="ba b--black-10 db br-100 w2 w3-n... |
packages/wix-style-react-test-runtime/.storybook/component-definitions.js | wix/wix-style-react | import React from 'react';
import { GmapsTestClient } from 'wix-style-react/dist/es/src/GoogleAddressInput/gmapsTestClient';
import Popover from 'wix-style-react/dist/es/src/Popover';
import MultiSelect from 'wix-style-react/dist/es/src/MultiSelect';
import AutoComplete from 'wix-style-react/dist/es/src/AutoComplete';... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | tsjing/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
src/icons/MenuIcon.js | fathomlondon/fathomlondon.github.io | import React from 'react';
export function MenuIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32"
width="32"
height="32"
fill="none"
stroke="currentcolor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
>
<path d="M4 8h24M4 16h24M4 24h24" />
... |
src/containers/DevToolsWindow.js | todvora/extrade | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
app/containers/About/index.js | dijahmac/JobWeasel-FrontEnd | /*
*
* About
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import './style.css';
import './styleM.css';
import '../../global.css';
export default class About extends React.PureComponent {
render() {
return (
<div className="aboutContainer">
<Helmet title="About" meta={[ {... |
src/api/CameraRoll.js | lelandrichardson/react-native-mock | import invariant from 'invariant';
import React from 'react';
import CameraRollManager from '../NativeModules/CameraRollManager';
const { PropTypes } = React;
const GROUP_TYPES_OPTIONS = [
'Album',
'All',
'Event',
'Faces',
'Library',
'PhotoStream',
'SavedPhotos', // default
];
const ASSET_TYPE_OPTIONS ... |
wail-ui/loadingScreens/firstTime/components/progress/progressCard.js | N0taN3rd/wail | import React from 'react'
import { namedPure } from '../../../../util/recomposeHelpers'
import { Card, CardHeader, CardMedia } from 'material-ui/Card'
import ProgressSteps from './progressSteps'
import {firstTimeLoading as ftl} from '../../../../constants/uiStrings'
const enhance = namedPure('ProgressStepsCard')
cons... |
app/App.js | bmacheski/react-news | 'use strict';
import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
Router.run(routes, (Root) => {
React.render(<Root />, document.getElementById('app'));
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.