path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Parser/Monk/Brewmaster/Modules/Items/SalsalabimsLostTunic.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import Combatants from 'Parser/Core/Modules/Combatants';
/**
* The Brewmas... |
imports/client/utils/uniforms-custom/NumberField.js | mordka/fl-events | import React from 'react'
import connectField from 'uniforms/connectField'
import { FormGroup, Label, Input } from 'reactstrap'
const Number_ = ({
id,
label,
name,
onChange,
placeholder,
type,
value,
max,
min,
customType,
defaultValue,
error,
field,
...props
}) => {
return (
<FormGrou... |
src/client/components/remote/controls.js | fk1blow/react-presentception | import React from 'react';
import classNames from 'classnames';
class RemoteControls extends React.Component {
render() {
const containerCls = classNames('mw8 center phl-ns bg-gray', {
'dn': !this.props.active,
'container': this.props.active
});
return (
<div id="remote-details" class... |
packages/xo-web/src/common/no-objects.js | vatesfr/xo-web | import PropTypes from 'prop-types'
import React from 'react'
import { isEmpty } from 'lodash'
// This component returns :
// - A loading icon when the objects are not fetched
// - A default message if the objects are fetched and the collection is empty
// - The children if the objects are fetched and the collection... |
client/components/releases-list-item.js | pradel/octon | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';
// import classnames from 'classnames';
import styled from 'styled-components';
import Avatar from 'material-ui/Avatar';
import Typography from 'ma... |
internals/templates/containers/App/index.js | FlorianVoct/monPropreMix | /**
*
* App.react.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... |
src/index.js | yildizozann/yildizozan.com | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
src/src/components/SceneForm.js | ioBroker/ioBroker.scenes | import React from 'react'
import clsx from 'clsx'
import PropTypes from 'prop-types';
import {withStyles} from "@material-ui/core/styles";
import TextField from '@material-ui/core/TextField';
import Switch from '@material-ui/core/Switch';
import Select from '@material-ui/core/Select';
import MenuItem from '@ma... |
react-flux-mui/js/material-ui/src/svg-icons/action/delete.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDelete = (props) => (
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>
</SvgIcon>
);
ActionDelete = pure(ActionDelete);
ActionDelete.display... |
packages/material-ui-icons/src/FormatListBulleted.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FormatListBulleted = props =>
<SvgIcon {...props}>
<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 ... |
test/test_helper.js | codingkapoor/technology-jukebox | 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... |
app/containers/HomePage.js | caiizilaz/exchange-rate | // @flow
import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
app/javascript/mastodon/components/status.js | h-izumi/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import MediaGallery from... |
src/components/Checkbox.js | chrisxclash/play-midnight | import React from 'react';
import styled from 'styled-components';
import noop from 'lodash/noop';
import withTheme from 'hoc/withTheme';
import { darken, lighten, TRANSITION_FAST } from 'style/theme';
const StyledCheckbox = styled.div`
display: inline-flex;
.Checkbox__container {
position: relative;
wid... |
app/components/CompanyPage/CompanyPage.js | tenhaus/bbwelding | import React from 'react';
import Radium from 'radium';
import Vimeo from 'react-vimeo';
import RetinaImage from 'react-retina-image';
import FlameImage from './images/flame.png';
import FlameImageRetina from './images/flame@2x.png';
import MachineImage from './images/machine.png';
import MachineImageRetina from './i... |
react-express-single/client/src/index.js | rob-blackbourn/scratch-js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/views/atoms/emptyAvatar/emptyAvatar.js | Metaburn/doocrate | import React from 'react';
import PropTypes from 'prop-types';
import i18n from 'src/i18n';
import emptyAvatar from './empty-avatar.svg';
const EmptyAvatar = ({ alt, isShowText = false }) => (
<div className={`empty-avatar-container lang-${i18n.language}`}>
<img src={emptyAvatar} className={'avatar'} alt={alt} ... |
src/components/TrickHistory.js | tgevaert/react-redux-hearts | import React from 'react';
import { connect } from 'react-redux';
import Trick from './Trick';
import { getRoundTrickHistory } from '../reducers';
const TrickHistoryPresentation = ({ tricks = [] }) => {
let trickElements = tricks.map(trick =>
<li
key={trick.reduce((acc, move) => acc + move.card.value + mov... |
src/components/BarChart.js | ionutmilica/react-chartjs-components | import React from 'react';
import Chart from './Chart';
const propTypes = {
className: React.PropTypes.string,
redraw: React.PropTypes.bool,
data: React.PropTypes.object.isRequired,
options: React.PropTypes.object,
width: React.PropTypes.number,
height: React.PropTypes.number,
};
class PieChart extends Re... |
packages/wix-style-react/src/TableActionCell/TableActionCell.js | wix/wix-style-react | import PropTypes from 'prop-types';
import React from 'react';
import ChevronRight from 'wix-ui-icons-common/ChevronRight';
import More from 'wix-ui-icons-common/More';
import PopoverMenu from '../PopoverMenu';
import Button from '../Button';
import IconButton from '../IconButton';
import Tooltip from '../Tooltip';
imp... |
src/components/Rightbar.js | twelch/reactmap-tour | import React from 'react';
const { LeftNav} = require('material-ui');
class Sidebar extends React.Component {
// Props validation
static propTypes = {
ref : React.PropTypes.object
}
constructor () {
super();
}
toggle() {
this.refs.leftNav.toggle();
}
render() {
const menuItems = [
... |
app/react-icons/fa/heart.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaHeart extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20 37.1q-0.6 0-1-0.4l-13.9-13.4q-0.2-0.2-0.6-0.6t-1.3-1.4-1.5-2.2-1.2-2.7-0.5... |
app/components/Upload.js | Toreant/monster_web | /**
* Created by apache on 15-11-22.
*/
import React from 'react';
import UploadActions from '../actions/UploadActions';
import UploadStore from '../stores/UploadStore';
class Upload extends React.Component {
constructor(props) {
super(props);
this.state = UploadStore.getState();
this.onC... |
src/components/Root.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ConnectedRouter } from 'connected-react-router';
import { Provider } from 'react-redux';
import App from './App';
export default class Root extends Component {
render() {
const { store, history } = this.props;
return (
... |
gatsby-strapi-tutorial/cms/plugins/content-type-builder/admin/src/components/PluginLeftMenuLink/index.js | strapi/strapi-examples | /**
*
* PluginLeftMenuLink
* - Required props:
* - {object} Link
*
* - Optionnal props:
* - {function} renderCustomLink : overrides the behavior of the link
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import styles from './styles.scss';
c... |
public/js/components/WorkshopSetList.js | JasonShin/HELP-yo | /**
* Created by Shin on 24/09/2016.
*/
import React from 'react';
import { observer } from 'mobx-react';
import {Link, withRouter} from 'react-router';
@observer
export default class WorkshopSetList extends React.Component {
constructor() {
super();
}
render() {
//REMINDER: WorkshopS... |
packages/material-ui-icons/src/AirportShuttle.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AirportShuttle = props =>
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.5s.6... |
app/javascript/mastodon/main.js | anon5r/mastonon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/svg-icons/communication/rss-feed.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
app/addons/documents/index-results/components/queryoptions/QueryOptions.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
frontend/src/components/frame/components/SnackbarPres.js | jf248/scrape-the-plate | import React from 'react';
import { IconButton, Snackbar, withStyles } from '@material-ui/core';
import Close from '@material-ui/icons/Close';
const styles = theme => ({
close: {
width: theme.spacing.unit * 4,
height: theme.spacing.unit * 4,
},
});
function SnackbarPres(props) {
const { classes, isOpen,... |
src/svg-icons/maps/local-library.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLibrary = (props) => (
<SvgIcon {...props}>
<path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-hospital.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalHospital = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/>
</SvgIcon>
);
MapsLocalHospital.displayName = 'MapsLocal... |
src/js/Navigation.js | w01fgang/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
export default class {
render() {
return (
<ul className="Navigation" role="menu">
<li><a href="#/">Home</a></li>
... |
server-client/index.js | zdizzle6717/tree-machine-records | 'use strict';
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redu... |
assets/jqwidgets/demos/react/app/scrollbar/defaultfunctionality/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScrollBar from '../../../jqwidgets-react/react_jqxscrollbar.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScrollBar.on('valueChanged', (event) => {
document.getElementById('HorizontalDiv').inner... |
newclient/scripts/components/read-only-declaration-summary/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... |
src/svg-icons/content/drafts.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
frontend/Toolbar/BannerImage.js | fdemian/SeguidorCarrera | import React from 'react';
import cssModules from 'react-css-modules';
import Styles from './css/BannerImage.scss';
const BannerImage = ({source}) => (
<img src={source} styleName="BannerImage" />
);
export default cssModules(BannerImage, Styles, { allowMultiple: true }); |
zoho-experiments/app/components/ReposList/index.js | glandre/prototypes | import React from 'react';
import PropTypes from 'prop-types';
import List from 'components/List';
import ListItem from 'components/ListItem';
import LoadingIndicator from 'components/LoadingIndicator';
import RepoListItem from 'containers/RepoListItem';
function ReposList({ loading, error, repos }) {
if (loading) ... |
js/queries/QuizQueries.js | xuorig/insyto | import React from 'react';
import Relay from 'react-relay';
export default {
quiz: () => Relay.QL`query { quiz(id: $id) }`
};
|
src/containers/Asians/TabControls/Dashboard/Controls/Complete/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Button from 'material-ui/Button'
import Card, {
CardHeader,
CardActions,
CardContent
} from 'material-ui/Card'
import onSubmit from './onSubmit'
export default connect(mapStateToProps)(({
dispatch,
tournament
}) => {
return (
<Car... |
src/components/app.js | pagarme/api-reference | import React from 'react';
import Navigation from './navigation';
import Content from './content';
import RoundedToggle from './rounded_toggle';
import PureRenderMixin from 'react-pure-render/mixin';
import GithubSlugger from 'github-slugger';
import debounce from 'lodash.debounce';
import { brandNames, brandClasses } ... |
examples/05 Customize/Drop Effects/index.js | numso/react-dnd | import React from 'react';
import Container from './Container';
export default class CustomizeDropEffects {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Drop%20Effects'>Browse the Source</a></b>
</p>
<p>... |
src/container/description.js | ftmatsumoto/crss | import React from 'react';
import { browserHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import weightlifting from '../asset/weightlifting.svg';
import calendar from '../asset/calendardelete.svg';
import heart from '../asset/humanheartorgan.svg';
const Description = () => (
<d... |
src/components/BlogList/index.js | benceg/dani | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import BlogLink from '../BlogLink';
if (process.env.WEBPACK) require('./stylesheet.styl');
const BlogList = ({
tint,
posts
}) =>
<section className='BlogList'>
<ReactCSSTransitionGroup transitionName="blogListT... |
templates/frontOffice/modern/components/React/Title/index.js | lopes-vincent/thelia | import React from 'react';
export default function Title({ title, className }) {
return <div className={`Title ${className}`}>{title}</div>;
}
|
frontend/src/Components/Page/Toolbar/PageToolbarButton.js | lidarr/Lidarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import { icons } from 'Helpers/Props';
import styles from './PageToolbarButton.css';
function PageToolbarButton(props) {
const {
label,
... |
docs/app/Examples/elements/Button/Variations/ButtonExampleCircular.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleCircular = () => (
<Button circular icon='settings' />
)
export default ButtonExampleCircular
|
src/svg-icons/notification/event-busy.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventBusy = (props) => (
<SvgIcon {...props}>
<path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V... |
packages/material-ui-icons/src/Web.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z" /></g>
, 'Web');
|
react-flux-mui/js/material-ui/src/svg-icons/image/burst-mode.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | chieryw/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import pureRender from 'pure-render-decorator';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions/AddContactActionCreators'... |
packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js | mjackson/react | /**
* 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
*/
import React from 'react';
import Immutable from 'immutable';
const set = new Set(['abc', 123]);
const map = new Map(... |
stories/Introduction/index.js | nirhart/wix-style-react | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Markdown from '../utils/Components/Markdown';
import Readme from '../../README.md';
import TestsReadme from '../../TESTS.md';
import Contribution from '../../CONTRIBUTION.md';
storiesOf('Introduction', {})
.add('Getting started', () => (
... |
src/index.js | Kiran-Rao/react-redux-starter | import 'es5-shim';
import 'es6-shim';
import 'es6-promise';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import confi... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | terios/playMe | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/react-router/modules/withRouter.js | DelvarWorld/react-router | import React from 'react'
import PropTypes from 'prop-types'
import hoistStatics from 'hoist-non-react-statics'
import Route from './Route'
/**
* A public higher-order component to access the imperative API
*/
const withRouter = (Component) => {
const C = (props) => {
const { wrappedComponentRef, ...remainingP... |
src/javascript/shared/components/footer/profileMenu.js | rahulharinkhede2013/xigro-dashboard | import React from 'react';
import { Menu, MenuItem, MenuDivider } from 'att-iot-ui/lib/menu';
import Icon from 'att-iot-ui/lib/icon';
import Avatar from 'att-iot-ui/lib/avatar';
import classnames from 'classnames';
import index from '../../../index.scss';
import styles from './style.scss';
import app from '../../../app... |
src/svg-icons/image/movie-filter.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMovieFilter = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.7... |
app/components/XIcon/index.js | andyzeli/Bil | import React from 'react';
import PropTypes from 'prop-types';
import Svg from './Svg';
function XIcon(props) {
return (
<Svg
className={props.className}
height="2em"
width="2em"
viewBox="0 0 20 20">
<path fill="none" d="M12.71,7.291c-0.15-0.15-0.393-0.15-0.542,0L10,9.458L7.833,7.291c-0.1... |
public/src/index.js | rafaelfbs/rmodel | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, browserHistory } from 'react-router'
import Home from './routes/home'
import { IntlProvider, addLocaleData } from 'react-intl'
import en from 'react-intl/locale-data/en'
addLocaleData(en)
import i18next from 'i18next';
i18next.init({
... |
src/client/main.js | terakilobyte/esterethinksocketchat | import React from 'react';
import Router from 'react-router';
import routes from './routes';
// Never render to body. Everybody updates it.
// https://medium.com/@dan_abramov/two-weird-tricks-that-fix-react-7cf9bbdef375
const app = document.getElementById('app');
Router.run(routes, Router.HistoryLocation, (Handler) =... |
src/app/components/NotFound.js | zendra1994/react-ssr | import React from 'react';
export default class NotFound extends React.Component {
render() {
return <div>Not Found</div>;
}
} |
app/javascript/mastodon/components/loading_indicator.js | MastodonCloud/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
src/components/Post/Author/Author.js | nicklanasa/nicklanasa.github.io | // @flow strict
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';
import { useSiteMetadata } from '../../../hooks';
const Author = () => {
const { author } = useSiteMetadata();
return (
<div className={styles['author']}>
<p className={... |
src/svg-icons/communication/import-contacts.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
frontend/entry.js | akin520/pratice-node-project | window.jQuery = require('jquery');
require('bootstrap-webpack');
//import 'bootstrap-webpack';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, Link, browserHistory} from 'react-router'
import App from './App';
import TopicDetail from './component/TopicDetail';
import Login from './co... |
examples/js/others/demo.js | pvoznyuk/react-bootstrap-table | import React from 'react';
import MouseEventTable from './mouse-event-table';
import TableInTabs from './table-in-tabs';
import GetPageNumByKeyTable from './expose-api-table';
import { Col, Panel } from 'react-bootstrap';
class Demo extends React.Component {
render() {
return (
<Col md={ 8 } mdOffset={ 1 }... |
src/js/components/footer/app-footer.js | TheFixers/node-honeypot-client | /**
* Filename: 'app-footer.js'
* Author: JMW <rabbitfighter@cryptolab.net>
* App footer stateless component
*/
import React from 'react'
export default () => {
let stylesGitHub = {
width: '40px',
height: '40px',
margin: '5px'
}
return (
<div className="footer text-cente... |
src/index.js | mjarrettjohnson/live-hash | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware () (createStore);
ReactDOM.render (
<Provid... |
src/icons/instagramRound.js | jasongforbes/jforbes.io | import React from 'react';
export default props => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}>
<path
d="
M14.829 6.302
c-.738-.034-.96-.04-2.829-.04
s-2.09.007-2.828.04
c-1.899.087-2.783.986-2.87 2.87-.033.738-.041.959-.041 2.828
... |
frontend/src/components/CameraSegmentBuilderCarousel.js | WildflowerSchools/sensei | import React from 'react';
import _ from 'lodash';
import { Carousel } from 'react-bootstrap';
import {getSenseiToken, baseUrl, vantagePoints} from './../constants';
import { Preload } from 'react-preload';
import moment from 'moment';
import { parsePhotoSegmentTimestamp } from './../utils';
import momentTimezoneSetup... |
docs/src/examples/modules/Dropdown/Variations/DropdownExampleMenuDirection.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Menu, Dropdown } from 'semantic-ui-react'
const options = [
{ key: 1, text: 'This is a super long item', value: 1 },
{ key: 2, text: 'Dropdown direction can help', value: 2 },
{ key: 3, text: 'Items are kept within view', value: 3 },
]
const DropdownExampleMenuDirection = () =... |
src/FlatButton/FlatButtonLabel.js | pradel/material-ui | import React from 'react';
function getStyles(props, context) {
const {baseTheme} = context.muiTheme;
return {
root: {
position: 'relative',
paddingLeft: baseTheme.spacing.desktopGutterLess,
paddingRight: baseTheme.spacing.desktopGutterLess,
verticalAlign: 'middle',
},
};
}
clas... |
public/js/components/profile/Photos.react.js | TRomesh/Coupley | import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import ProfileActions from '../../actions/profile/ProfileActions';
import ProfileStore from '../../stores/ProfileStore';
import Photo from './Photo.react';
const Photos = React.createClass({
getInitialState: function() {
return ... |
frontend/src/AddMovie/ImportMovie/ImportMovies.js | Radarr/Radarr | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import ImportMovieConnector from 'AddMovie/ImportMovie/Import/ImportMovieConnector';
import ImportMovieSelectFolderConnector from 'AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolderConnector';
import Switch from 'Components/Route... |
clients/render/index.js | Desertsnowman/Caldera-Forms | /** globals CF_API_DATA **/
import './index.scss';
import {CalderaFormsRender} from "./components/CalderaFormsRender";
import React from 'react';
import ReactDOM from "react-dom";
import domReady from '@wordpress/dom-ready';
const jQuery = window.jQuery;
import {
hashFile,
createMediaFromFile,
captureRenderComponent... |
src/svg-icons/hardware/videogame-asset.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareVideogameAsset = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-... |
src/components/GameInputForm/EntryCard.js | jhlav/mpn-web-app | /* eslint-disable global-require, import/no-dynamic-require */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { connect } from 'react-redux';
import Avatar from 'react-md/lib/Avatars';
import Autocomplete from 'rea... |
examples/with-docker/pages/index.js | BlancheXu/test | import React from 'react'
import getConfig from 'next/config'
const { publicRuntimeConfig } = getConfig()
const { API_URL } = publicRuntimeConfig
export default class extends React.Component {
static async getInitialProps () {
// fetch(`${API_URL}/some-path`)
return {}
}
render () {
return <div>The... |
docs/src/app/components/pages/components/Divider/ExampleList.js | spiermar/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import MobileTearSheet from '../../../MobileTearSheet';
const DividerExampleList = () => (
<MobileTearSheet height={250}>
<List>
<ListItem insetChildren={true} primaryText="Janet Perkins B... |
src/svg-icons/notification/no-encryption.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
src/components/users/list.js | plastical/react-theme | // External dependencies
import React, { Component } from 'react';
// Internal dependencies
import User from './single';
import Placeholder from '../placeholder';
const UserList = (props) => {
if (!props.users) {
return null;
}
const users = props.users.map((user, i) =>
<User key={`user-${i}`} ... |
src/components/connect_bar.js | erik-sn/mslt | if (process.env.BROWSER) {
require('../sass/admin.scss');
}
import React from 'react';
const ConnectBar = () => (
<div id="connect-container" >
<div className="connect-icon">
<a href="https://github.com/erik-sn"><img src="https://simpleicons.org/icons/github.svg" /></a>
</div>
<div cl... |
app/containers/LanguageProvider/index.js | itimofeev/hustlesa-ui | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
js/components/tab/tabThree.js | bengaara/simbapp |
import React, { Component } from 'react';
import { Container, Content, Card, CardItem, Text, Body } from 'native-base';
import styles from './styles';
export default class TabThree extends Component { // eslint-disable-line
render() { // eslint-disable-line
return (
<Content padder style={{ marginTop: ... |
src/svg-icons/notification/mms.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
src/components/Feedback/Feedback.js | w10036w/ReactTest | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/app/core/atoms/icon/icons/arrow-left-circle.js | blowsys/reservo | import React from 'react'; const ArrowLeftCircle = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="5.5859 11.9998 11.2929 17.7068 12.7069 16.2928 9.4149 12.9998 18.9999 12.9998 18.9999 10.9998 9.4149 10.9998 12.7069 7.7068 11.2929 6.2928"/><path d="M2,12 C2,17.5237639 6.47661164,22 12,22 C17.52376... |
app/javascript/mastodon/components/edited_timestamp/index.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl } from 'react-intl';
import Icon from 'mastodon/components/icon';
import DropdownMenu from './containers/dropdown_menu_container';
import { connect } from 'react-redux';
import { openModal } from 'mastodon/actions/modal... |
fields/types/markdown/MarkdownField.js | Tangcuyu/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// App... |
packages/cf-component-textarea/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import Textarea from 'cf-component-textarea';
class TextareaComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
textareaValue: ''
};
}
handleTextareaChange(e) {
this.setState({
textareaValue: e.target.value
});
}
r... |
src/svg-icons/av/subscriptions.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubscriptions = (props) => (
<SvgIcon {...props}>
<path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z"/>
</SvgIcon>
)... |
dont-need/header.js | connameng/router-survey-project | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { PageHeader, small } from 'react-bootstrap'
class Header extends Component {
render() {
return (
<section id="header">
<div class="inner">
<span class="icon major fa-wifi"></span>
... |
src/index.js | FinnFrizzle/Weather_Info | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from "redux-promise";
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
src/interface/icons/Checklist.js | FaideWW/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/checklist/437165/
// Checklist by David from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M37.434,25.406H92.54c1.354,0,2.46-1.103,2.46-2.459c0-1.356-1.104-2.46-2.4... |
src/parser/warlock/demonology/modules/talents/DemonicCalling.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { STATISTIC_ORDER } from 'interface/o... |
src-client/scripts/ACTIONS.js | VeryBarry/iLuggit | import Backbone from 'backbone'
import React from 'react'
import $ from 'jquery'
import {UserModel, UserCollection, LoginModel, CreateUserModel, TruckModel, CreateTruckModel, CreateLuggModel, ReviewCollection, AuthenticateUser, LogOut} from './lugg-model.js'
import STORE from './STORE.js'
const ACTIONS = {
_loginU... |
docs/app/Examples/modules/Accordion/Types/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const AccordionTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.