path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/containers/App.js | yuri/notality | import React from 'react';
import { connect } from 'react-redux';
import { loginUser, logoutUser } from '../actions/session';
import { Link } from 'react-router';
import Button from '../components/ui/Button';
import Content from '../components/ui/Content';
import LoginModal from '../components/login/LoginModal';
// ... |
archimate-frontend/src/main/javascript/components/view/nodes/model_a/applicationCollaboration.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='applicationCollaboration';
export class ApplicationCollaborationWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_a applicationCollaboration'; }
}
|
android/source/component/navigation.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
Navigator,
Image,
StatusBar,
View,
Dimensions
} from 'react-native';
import * as Page from '../view';
import Router from './router';
import Plugin from './plugin';
import { CommonStyles, StyleConfig } from '../style';
const defaultRoute = {
name: 'home',
compo... |
src/parser/monk/brewmaster/modules/spells/Guard.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StaggerFabricator from '../core/Stagge... |
app/components/ListItem/index.js | SenyOrg/kekecmed-frontend | import React from 'react';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>
{props.item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: React.PropTypes.any,
};
export default ListItem;
|
src/parser/demonhunter/havoc/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Mamtooth, Yajinni, Zerotorescue } from 'CONTRIBUTORS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-04-21'),
changes: <>Clean... |
src/utils/prop-types.js | alitaheri/material-ui | import React from 'react';
const horizontal = React.PropTypes.oneOf(['left', 'middle', 'right']);
const vertical = React.PropTypes.oneOf(['top', 'center', 'bottom']);
export default {
corners: React.PropTypes.oneOf([
'bottom-left',
'bottom-right',
'top-left',
'top-right',
]),
horizontal: horiz... |
src/views/AboutView.js | cyrilf/ecokit | import React from 'react';
import { Link } from 'react-router';
const AboutView = () => (
<div className='container text-center'>
<h1>This is the about view!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
);
export default AboutView;
|
src/packages/@ncigdc/modern_components/ExploreCasesTable/ExploreCasesTable.model.js | NCI-GDC/portal-ui | import React from 'react';
import _ from 'lodash';
import {
RepositoryCasesLink,
RepositoryFilesLink,
} from '@ncigdc/components/Links/RepositoryLink';
import OverflowTooltippedLabel from '@ncigdc/uikit/OverflowTooltippedLabel';
import { Tooltip } from '@ncigdc/uikit/Tooltip';
import ProjectLink from '@ncigdc/comp... |
frontend/src/containers/Root.js | hai5nguy/akaamo_app | import React from 'react';
import NavMenu from '../components/menu';
import About from '../components/about';
import Home from '../components/home';
import Calendar from '../components/calendar';
import Programs from '../components/programs';
import '../styles/app.scss';
const contentMap = {
'home': <Home />,
'a... |
packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/pass-through.input.js | ChristopherBiscardi/gatsby | /* eslint-disable */
import React from 'react';
export default function Hello() {
return <h1>Oh hey</h1>;
}
|
app/components/SubmitView.js | MomentoApp/momento | import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
TouchableOpacity,
Modal,
} from 'react-native';
import { saveToS3 } from '../utils/s3Interface';
import { saveVideo } from '../utils/queries';
import { Actions } from '../../custom_modules/react-native-router-flux';
import { setThumbn... |
src/index.js | vsanchezrod/React-Redux | // Instalamos una nueva dependencia (librería) LODASH y la importamos
import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import V... |
src/client/main.js | alessandrostone/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
src/svg-icons/hardware/smartphone.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
react/features/security/components/security-dialog/web/PasswordForm.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { translate } from '../../../../base/i18n';
import { LOCKED_LOCALLY } from '../../../../room-lock';
/**
* The type of the React {@code Component} props of {@link PasswordForm}.
*/
type Props = {
/**
* Whether or not to show the password editing fi... |
app/js/components/mainPage/sidepanel/tabs/chat/chatTab.js | Dennetix/Motwo | import React from 'react';
import autobind from 'autobind-decorator';
import { observer } from 'mobx-react';
import ChatStore from '../../../../../stores/chatStore';
import { clearInterval } from 'timers';
@observer
export default class ChatTab extends React.Component {
constructor(props) {
super(props);
this.s... |
components/connected/parse/status_content/paragraph/index.js | marrus-sh/mastodon-go |
// <ConnectedParseStatusContentParagraph>
// ======================================
// This simple functional component converts a single paragraph of
// plain-text status content into a React component suitable for a
// `<Status>`.
// * * * * * * * //
// Imports
// -------
// Package imports.
import cla... |
src/js/visuals/components/Maps/index.js | CT-Data-Collaborative/edi-v2 | import React, { Component } from 'react';
import bbox from 'turf-bbox';
import { Map, Marker, Popup, TileLayer, GeoJSON } from 'react-leaflet';
import Control from 'react-leaflet-control';
class EdiMap extends Component {
constructor(props) {
super(props);
this.state = {
geojson: JSON.p... |
src/svg-icons/image/crop.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
docs/tutorial/DO_NOT_TOUCH/10/src/index.js | FWeinb/cerebral | import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import App from './components/App'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import HttpProvider from 'cerebral-provider-http'
import {set, debounce} from 'cerebral/operators'
import {s... |
src/demo/Ajax/AjaxExample.js | sergiocruz/react-logbook | import React, { Component } from 'react';
import axios from 'axios';
import Highlight from 'react-highlight';
import 'highlight.js/styles/monokai-sublime.css';
import Logbook from '../../Logbook';
let sampleComponent;
let timer;
export class AjaxExample extends Component {
constructor() {
super();
this.st... |
demo/app/components/oauth/Router.js | itpkg/web | import React from 'react'
import { Route } from 'react-router'
import Google from './Google'
import Layout from '../Layout'
const Widget = (
<Route path='/oauth'>
<Route path="google" component={Google}/>
</Route>
);
export default Widget;
|
packages/vx-demo/components/tiles/multiline.js | Flaque/vx | import React from 'react';
import { Group } from '@vx/group';
import { GlyphDot } from '@vx/glyph';
import { LinePath } from '@vx/shape';
import { genDateValue } from '@vx/mock-data';
import { scaleTime, scaleLinear } from '@vx/scale';
import { curveMonotoneX, curveBasis } from '@vx/curve';
import { extent, max, min } ... |
src/containers/dummy_container.js | jackiechoi/redux_weather_app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Dummy from '../components/dummy';
class DummyContainer extends Component {
renderDummy(cityData) {
const name = cityData.city.name;
const temps = _.map(cityData.list.map(weather => weather.main.temp), (temp) => temp-273.1... |
src/components/Todo.js | sammosampson/relay-todomvc | import classNames from 'classnames';
import React from 'react';
import Relay from 'react-relay';
import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation';
import RemoveTodoMutation from '../mutations/RemoveTodoMutation';
import RenameTodoMutation from '../mutations/RenameTodoMutation';
import Todo... |
client/acp/view/widget/page-ranking.js | NicolasSiver/nodebb-plugin-ns-points | import React from 'react';
import {connect} from 'react-redux';
import SaveButton from '../display/save-button';
import saveProperties from '../../actions/save-properties';
import {updateProperty} from '../../actions/simple-actions';
class PageRanking extends React.Component {
constructor(props) {
super(p... |
src/js/components/icons/base/PersonalComputer.js | odedre/grommet-final | /**
* @description PersonalComputer 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.textColo... |
packages/mineral-ui-icons/src/IconSchedule.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 IconSchedule(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps... |
src/app/client.js | carlosazaustre/universal-js-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Link } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import routes from './routes';
const initialState = window.__INITIAL_STATE__;
const store... |
gallery-by-react/src/index.js | cooliean/react-study | //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('content'));
|
src/Url.js | gaearon/component-router | import React from 'react';
import classnames from 'classnames';
import Store from './Store';
import ActionCreator from './ActionCreator';
import urlUtil from './urlUtil';
const Url = React.createClass({
propTypes: {
pathname: React.PropTypes.string,
query: React.PropTypes.object,
children: React.PropTyp... |
src/html.js | xncbf/xncbf.github.io | import React from 'react'
import PropTypes from 'prop-types'
export default class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
... |
app/components/Header.js | elevensky/bookstore | import React from 'react';
import { Link, IndexLink } from 'react-router';
const ACTIVE = { color: '#FFF', background: '#333' }
class Header extends React.Component {
render() {
return (
<nav className='navbar navbar-default navbar-static-top'>
<div className='navbar-header'>
<button ty... |
node_modules/react-bootstrap/es/TabPane.js | mohammed52/something.pk | 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 ... |
docs/src/app/components/pages/components/DatePicker/Page.js | owencm/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
public/kibana-integrations/discover/application/components/top_nav/open_search_panel.js | wazuh/wazuh-kibana-app | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
client/src/AuthenticatedRoutes.js | clembou/github-requests | import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import githubClient from './shared/githubClient';
export const GithubAuthenticatedRoute = ({ component: Component, ...rest }) => (
<Route
{...rest}
render={props => githubClient.isAuthenticated
? <Component {...props} />
... |
src/components/StepChain/StepChain.stories.js | austinknight/ui-components | import React from 'react';
import { ThemeProvider } from 'styled-components';
import {
storiesOf
} from '@storybook/react';
import StepChain from './StepChain';
import { colors } from '../styles/colors.js';
import { generateFlexedThemeBackground } from '../styles/index.js';
const ThemeComponent = (props) => (
<T... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorInferred.js | JonathanUsername/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
constructor(props) {}
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
class MyComponent2 extends React.Component {
props: Props;
constructor(props) {}
defaultProps: T;
s... |
chapter-03/redux_basic/src/index.js | mocheng/react-and-redux | import React from 'react';
import ReactDOM from 'react-dom';
import ControlPanel from './views/ControlPanel';
import './index.css';
ReactDOM.render(
<ControlPanel />,
document.getElementById('root')
);
|
examples/05 Customize/Drop Effects/index.js | tomulin1/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>... |
classic/src/scenes/wbfa/generated/FASExclamation.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faExclamation } from '@fortawesome/pro-solid-svg-icons/faExclamation'
export default class FASExclamation extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faExclamation} />)
}
... |
react/src/components/dropdown/SprkDropdown.stories.js | sparkdesignsystem/spark-design-system | import React from 'react';
import { BrowserRouter, Link } from 'react-router-dom';
import SprkDropdown from './SprkDropdown';
import SprkButton from '../buttons/SprkButton';
import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder';
export default {
title: 'C... |
pootle/static/js/auth/components/SocialSignInForm.js | claudep/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
client/src/components/auth/logout.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions/auth';
class Logout extends Component {
componentWillMount() {
this.props.logoutUser();
}
render() {
return <div>Sorry to see you go!</div>;
}
}
export default connect(null, action... |
pages/postcss.js | karolklp/slonecznikowe2 | import React from 'react'
import './example.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi PostCSSy friends`}
/>
<h1 classNam... |
src/svg-icons/notification/bluetooth-audio.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationBluetoothAudio = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-... |
app/containers/HelpPage/index.js | bruceli1986/react-qdp | /*
*
* HelpPage
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import selectHelpPage from './selectors';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
export class HelpPage extends React.Component { // eslint-disable-li... |
src/js/components/ui/SelectCollapsibleInterest/SelectCollapsibleInterest.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './SelectCollapsibleInterest.scss';
import translate from "../../../i18n/Translate";
import ContentTypeIcon from "../ContentTypeIcon/ContentTypeIcon";
@translate('SelectCollapsibleInterest')
export default class SelectColl... |
examples/huge-apps/routes/Calendar/components/Calendar.js | 9618211/react-router | import React from 'react';
class Calendar extends React.Component {
static loadProps(params, cb) {
setTimeout(() => {
cb(null, {
events: [{
id: 0, title: 'essay due'
}]
})
}, 1000);
}
render () {
var { events } = this.props;
return (
<div>
<h2... |
components/Projects.js | charmainetham/charmainetham.github.io | import React from 'react'
import { Switch, Route } from 'react-router-dom'
import AllProjects from './AllProjects'
import Project from './Project'
const Projects = () => (
<Switch>
<Route exact path='/projects' component={AllProjects}/>
<Route path='/projects/:number' component={Project}/>
</Switch>
)
ex... |
src/Parser/DemonHunter/Havoc/Modules/Traits/RelicTraits.js | hasseboulen/WoWAnalyzer | import React from 'react';
import StatisticsListBox, { STATISTIC_ORDER } from 'Main/StatisticsListBox';
import Analyzer from 'Parser/Core/Analyzer';
import CriticalChaos from './CriticalChaos';
import ChaosVision from './ChaosVision';
import SharpenedGlaives from './SharpenedGlaives';
import DemonRage from './DemonR... |
demo/components/form/FormDemo.js | f0zze/rosemary-ui | import React from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet';
import Example2 from './Example2';
import {Form, formHelper, Input, Select, DateRangePicker} from '../../../src';
class FormDemo extends React.C... |
app/javascript/mastodon/features/list_editor/components/search.js | TheInventrix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
const messages ... |
packages/material-ui-icons/src/SystemUpdateAlt.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SystemUpdateAlt = props =>
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z" />
</S... |
app/src/ShareModal.js | struz/smash-move-viewer | import React, { Component } from 'react';
import ReactGA from 'react-ga';
import onClickOutside from "react-onclickoutside";
import copy from 'copy-to-clipboard';
import * as Common from './Common';
import './ShareModal.css';
class ShareModal extends Component {
constructor(props) {
super(props);
this.stat... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Drawer/Page.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import drawerReadmeText from './README';
import DrawerSimpleExample from './Exam... |
client/src/js/components/ItemList.js | yassinej/oerk_v4 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions/backpackActions';
import imageURL from '../../assets/item.jpg';
import Backpack from './Backpack';
class ItemList extends Component {
handlePlusOne(id) {
this.props.addItemToBackpack(id);
}
handle... |
geonode/contrib/monitoring/frontend/src/components/cels/layer-select/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
import actions from './actions';
import styles from './styles';
const mapStateToProps = (state) => ({
interval: stat... |
src/Parser/DeathKnight/Blood/Modules/Features/BoneShieldUptime.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBo... |
components/Social/SocialShare.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {ShareButtons, generateShareIcon} from 'react-share';
import addActivity from '../../actions/activityfeed/addActivity';
import incrementDeckViewCounter from '../../actions/activityfeed/incrementDeckViewCounter';
import EmbedModal from '../Deck/Conten... |
src-ui/map-editor/dialogs/usage.js | cdaniel/atlas2 | /* Copyright 2017, 2018 Krzysztof Daniel.
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, so... |
src/interface/CharacterParses.js | anom0ly/WoWAnalyzer | import { i18n } from '@lingui/core';
import { Trans, defineMessage } from '@lingui/macro';
import { captureException } from 'common/errorLogger';
import fetchWcl, { CharacterNotFoundError, UnknownApiError, WclApiError } from 'common/fetchWclApi';
import ITEMS from 'common/ITEMS';
import { makeCharacterApiUrl, makeItemA... |
ContosoUniversity.Spa.React/ClientApp/src/components/course/ManageCoursePage.js | alimon808/contoso-university | import React from 'react';
import {Redirect} from 'react-router';
import PropTypes from 'prop-types';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import CourseForm from './CourseForm';
import * as courseActions from '../../actions/courseActions';
import { departmentsFormattedForDropdo... |
src/routes/profile/plant/index.js | kuao775/mandragora | import React from 'react';
import ProfilePlant from './ProfilePlant';
import Layout from '../../../components/Layout';
import Profile from '../Profile';
async function action() {
return {
chunks: ['profile/plant'],
title: 'Minhas Plantas',
needLogin: true,
component: (
<Layout>
<Profile... |
src/components/SimpleCommonComponents/ColumnIcons/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import T from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { goToCustomLocation } from 'actions/creators';
import { SearchBox } from 'components/Table';
import { foundationPartial } from 'styles/foundation';
import fonts f... |
src/components/CostSheetForm.js | CostSheetApp/CostSheetsApp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import NumberFormat from 'react-number-format';
//import Moment from 'react-moment';
import '../styles/costSheets.css';
import AddCostSheetMaterial from './AddCostSheetMaterialForm';
import AddCostSheetManPower from './AddCostSheetManPowerFo... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
@injectIntl
export default class ColumnSettings extends React.... |
client/index.js | realsoftdev/knack | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.getEleme... |
components/Deck/InfoPanel/InfoPanelHeader.js | slidewiki/slidewiki-platform | import React from 'react';
import {NavLink, navigateAction} from 'fluxible-router';
//import classNames from 'classnames/bind';
import {connectToStores} from 'fluxible-addons-react';
//import DeckTreeStore from '../../../stores/SlideViewStore';
//import UserProfileStore from '../../../stores/UserProfileStore';
//import... |
frontend/app/components/items/Latest.js | orels1/Sono-Bot | import React from 'react';
import TimeAgo from 'react-timeago';
class Latest extends React.Component {
constructor(props) {
super(props);
this.onChange = this.onChange.bind(this);
}
componentDidMount() {
}
componentWillUnmount() {
}
onChange(state) {
this.setState... |
app/addons/setup/components/CurrentAdminPassword.js | apache/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... |
stories/dialogs/lnd-crashed.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { DialogLndCrashed } from 'components/Dialog'
import { Window } from '../helpers'
storiesOf('Dialogs', module)
.addDecorator(story => <Window>{story()}</Window>)
.add('Lnd Crashed', () => (
<DialogLndCrashed
isOpen
lndCra... |
examples/huge-apps/routes/Grades/components/Grades.js | besarthoxhaj/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
test/react-app/src/index.js | timarney/react-app-rewired | 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()... |
web/utils/test-helpers.js | skidding/flatris | // @flow
import React from 'react';
import { useDispatch } from 'react-redux';
import type { User } from 'shared/types/state';
export function getSampleUser(): User {
return {
id: '99bba208',
name: 'Tig',
};
}
export function getSampleUser2(): User {
return {
id: '018ac29a',
name: 'Louie',
}... |
app/components/App.js | dht/lpm | import React from 'react';
import './App.scss';
export default class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return<div className="App-container">
</div>
}
}
|
src/routes/admin/BlogContentEditor.js | Ozaroni/modestLifer |
import React from 'react';
import Immutable from 'immutable';
import {Editor, EditorState, RichUtils, AtomicBlockUtils, convertToRaw } from 'draft-js';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
require("../../../node_modules/draft-js/dist/Draft.css")
import s from './Admin.css';
import RaisedBut... |
geonode/contrib/monitoring/frontend/src/components/organisms/header/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import AutorefreshIcon from 'material-ui/svg-icons/action/autorenew';
import Back from 'material-ui/svg-... |
lens-ui/app/components/SavedQueriesComponent.js | archanah24/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
src/components/editor/MetronomeButton.js | calesce/tab-editor | import React from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { toggleMetronome, toggleCountdown } from '../../actions/playingIndex';
const styles = StyleSheet.create({
selected: {
':hover': {
MozUserSelect: 'none',
WebkitUserSelect: 'none',
... |
pwa/src/components/kinds/index.js | cmilfont/biohacking | import React from 'react';
import { connect } from 'react-redux';
import MyKinds from './list';
import actions from 'api/actions';
class KindsRoute extends React.Component {
componentDidMount() {
this.props.loading();
}
render() {
return (<MyKinds kinds={this.props.kinds} />);
}
}
const mapStateToPr... |
src/clincoded/static/libs/bootstrap/form.js | ClinGen/clincoded | "use strict";
// Use this module when you have a form with input fields and an optional submit button.
// It supplies an Input component used for all types of form fields (e.g. text fields,
// drop-downs, etc.). The component that includes the form must also include the InputMixin
// mixin that handles standard form th... |
pastebin/assets/js/pastebin-front.js | johannessarpola/django-pastebin | //import 'style-loader!css-loader!../css/font-awesome.min.css';
//import 'style-loader!css-loader!../css/milligram.min.css';
//import 'style-loader!css-loader!../css/pastebin.css';
/**
* Created by johanness on 23/02/2017.
*/
import Axios from 'axios';
import React from 'react';
import ReactDOM from 'react-dom';
con... |
app/containers/App/index.js | Cherchercher/Wedding-Llama | /**
*
* App
*
* 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)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
app/js/components/hello.js | pauloelias/simple-webpack-react | import React from 'react';
export default class Hello extends React.Component {
render() {
const names = [
'John',
'Jill',
'Jane',
'Jack',
'Jimmy',
'Jax'
];
return (
<div>
<h3>Hello {this.props.name}</h3>
<p>This is a cool looking paragraph.</p>
... |
yycomponent/notification/Notification.js | 77ircloud/yycomponent | import React from 'react';
import { notification } from 'antd';
export default notification
|
src/modules/auth/menus.js | xangxiong/xim-js | import React from 'react';
import { Icon, Dropdown, Item, Menu } from 'semantic-ui-react';
export default []; |
src/components/ActionSelect/ActionSelect.hsappstories.js | helpscout/blue | import React from 'react'
import { action } from '@storybook/addon-actions'
import ActionSelect from '.'
import FormGroup from '../FormGroup'
import Checkbox from '../Checkbox'
import Input from '../Input'
export class Example extends React.Component {
state = {
value: null,
values: {
'open-beacon': {
... |
src/Button.js | PeterDaveHello/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,... |
Todo/TodoItem.js | alexeygolev/elm-architecture-using-ramda-and-flyd | import React from 'react';
import R from 'ramda'
import classNames from 'classnames';
import {IO} from 'ramda-fantasy';
import Type from 'union-type';
import {genActions} from '../ActionsGen/ActionsGen';
import {
onEnter,
findDOMNode,
targetValue
} from './Utils';
const Action = genActions([
['Check', 'id', 'i... |
js/jqwidgets/demos/react/app/grid/aggregatesgrouping/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: generatedata(50),
datafields:
[
... |
src/components/search_bar.js | darknight1983/React_Youtube_searchSite | import React, { Component } from 'react';
// Make sure to import React into all files that have React Components that use
// JSX to create HTML
// Every component that is class based has to have a render method.
class SearchBar extends Component {
constructor(props) {
super(props)
// Inside of the construc... |
packages/react-widgets/src/Listbox.js | haneev/react-widgets | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { instanceId } from './util/widgetHelpers';
const propTypes = {
className: PropTypes.string,
role: PropTypes.string,
emptyListMessage: PropTypes.node,
};
class Listbox extends React.Component {
render() {
l... |
modules/IndexRedirect.js | malte-wessel/react-router | import React from 'react'
import warning from './warning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createClass({
... |
docs/src/examples/elements/Segment/Groups/SegmentExampleNestedSegments.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleNestedSegments = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment.Group>
<Segment>Nested Top</Segment>
<Segment>Nested Middle</Segment>
<Segment>Nested Bottom</Segment>
</Segment.Group>
... |
src/app.js | Factr/browsr | require('./styles/app.less')
import React from 'react'
import ReactDOM from 'react-dom'
import Layout from './pages/Layout'
import { Provider } from 'react-redux'
import configureStore from './store'
const store = configureStore()
window.store = store
ReactDOM.render(
<Provider store={store}>
<Layout />... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageSenderAlert/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import MessageSenderAlert from 'ringcentral-widgets/components/MessageSenderAlert';
const props = {};
props.currentLocale = 'en-US';
props.message = {
message: 'test string'
};
props.regionSettingsUrl = 'test string';
/**
* A example of `MessageSenderAlert`
*... |
src/components/Common/ReservedTokensItem.js | oraclesorg/ico-wizard | import React from 'react';
import '../../assets/stylesheets/application.css';
import classNames from 'classnames'
const ReservedTokensItem = props => {
return (
<div className="reserved-tokens-item-container">
<div className={classNames('reserved-tokens-item-container-inner', { 'monospace': props.readOnly ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.