path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/main.js | farahat80/react-open-weather | import React from 'react';
import { render } from 'react-dom';
import ReactWeather, { useVisualCrossing, useOpenWeather, useWeatherBit } from '.';
const App = () => {
const { data, isLoading, errorMessage } = useVisualCrossing({
key: 'YOUR_API_KEY',
lat: '48.137154',
lon: '11.576124',
lang: 'en',
... |
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/LayoutViewer.js | flarnie/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 styles from './LayoutViewer.css';
import type {Layout} from './types';
type Props ... |
src/server/frontend/html.react.js | dfogas/my-mindmap | import Component from '../../client/components/component.react';
import React from 'react';
export default class Html extends Component {
render() {
// Only for production. For dev, it's handled by webpack with livereload.
const linkStyles = this.props.isProduction &&
<link
href={`/build/app.c... |
src/client/src/main.js | BloodyEnterprise/structor | /*
* Copyright 2015 Alexander Pustovalov
*
* 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 a... |
src/containers/pages/create-deck/after-class-selection/right-container/content-assets/deck-description/save-deck-assets/about-deck-inner-right-container.js | vFujin/HearthLounge | import React from 'react';
import Button from "../../../../../../../../components/buttons/button";
const InnerRightContainer = () => (
<div className="inner inner__right">
<Button type="submit--light" text="Submit"/>
</div>
);
export default InnerRightContainer; |
src/app.js | danielfazlijevic/rocketnote | import React from 'react';
import ReactDom from 'react-dom';
import NoteCard from './notecard';
// Initialize Firebase
const config = {
apiKey: "AIzaSyCbYwNLRiAx_IGTovWdqJLuXPXVjEqHgIk",
authDomain: "rocketnote-46fd7.firebaseapp.com",
databaseURL: "https://rocketnote-46fd7.firebaseio.com",
projectId: "rocketno... |
frontend/src/core/user/components/UserAvatar.js | jotes/pontoon | /* @flow */
import React from 'react';
import { Localized } from '@fluent/react';
type Props = {|
username: string,
title?: string,
imageUrl: string,
|};
export default function UserAvatar(props: Props) {
const { username, title, imageUrl } = props;
return (
<div className='user-avatar'>... |
docs/app/Examples/collections/Table/Variations/TableExampleFixed.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleFixed = () => {
return (
<Table fixed>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Description</... |
src/app.js | mad-pirate/dashboard-example-frontend | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import Root from './Components/Root';
/** Styles */
import 'bootstrap/dist/css/bootstrap.css';
import style from './Styles/global.scss';
/** Storage */
import Store from './Controll/Store';
render(<Root his... |
demo/src/index.js | taskworld/react-overlay-popup | import React from 'react'
import ReactDOM, { render } from 'react-dom'
import './style.css'
import { Overlay, Popup } from '../../src'
var _strategies = [
'bottom left', 'bottom center', 'bottom right',
'top left', 'top center', 'top right',
'left top', 'left center', 'left bottom',
'right top', 'right center... |
src/utils/utils.js | eljamaki01/NewsWatcher2RWeb | import React from 'react';
import { Form, FormGroup, FormLabel, FormControl } from 'react-bootstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
export function FieldGroup({ id, icon, label, help, ...props }) {
return (
<FormGroup controlId={id}>
<FormLabel><FontAwesomeIcon icon={icon... |
stories/Modal.stories.js | maputnik/editor | import React from 'react';
import Modal from '../src/components/Modal';
import {action} from '@storybook/addon-actions';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'Modal',
component: Modal,
decorators: [withA11y],
};
export const Basic = () => (
<Wr... |
src/routes/UIElement/dataTable/index.js | 102010cncger/antd-admin | import React from 'react'
import { DataTable } from 'components'
import { Table, Row, Col, Card, Select } from 'antd'
class DataTablePage extends React.Component {
constructor (props) {
super(props)
this.state = { filterCase: {
gender: '',
} }
}
handleSelectChange = (gender) => {
this.setS... |
src/components/LocationSearch/LocationSearch.js | neontribe/gbptm | import React from 'react';
import PropTypes from 'prop-types';
import { useCombobox } from 'downshift';
import { useTheme } from 'emotion-theming';
import styled from '@emotion/styled';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch, faTimes } from '@fortawesome/free-solid-svg-icons... |
docs/src/pages/components/autocomplete/LimitTags.js | lgollut/material-ui | /* eslint-disable no-use-before-define */
import React from 'react';
import Autocomplete from '@material-ui/lab/Autocomplete';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
const useStyles = makeStyles((theme) => ({
root: {
width: 500,
'& > * + *'... |
frontend/src/index.js | Yacenko/PetsInHome | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import AppContainer from './components/AppContainer';
import { Provider } from "react-redux";
import store from "./redux/store/index";
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<Provider store=... |
src/SafeAnchor.js | tonylinyy/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
packages/react-static-plugin-react-router/src/browser.api.js | nozzle/react-static | import React from 'react'
import { useBasepath, useStaticInfo } from 'react-static'
import { BrowserRouter, StaticRouter, withRouter } from 'react-router-dom'
const Location = withRouter(({ children, location }) => children(location))
export default ({ RouterProps: userRouterProps = {} }) => ({
Root: PreviousRoot =... |
e2e-tests/gatsby-image/src/pages/traced.js | ChristopherBiscardi/gatsby | import React from 'react'
import { graphql } from 'gatsby'
import Image from 'gatsby-image'
import PropTypes from 'prop-types'
import Layout from '../components/layout'
const FluidPage = ({ data }) => (
<Layout>
<span data-testid="image-traced">
<Image fluid={data.fruitsTraced.childImageSharp.fluid} />
... |
app/components/sparkline/SparklinesSpots.js | thewazir/twitbeat | import React from 'react';
export default class SparklinesSpots extends React.Component {
static propTypes = {
size: React.PropTypes.number,
style: React.PropTypes.object,
spotColors: React.PropTypes.object
};
static defaultProps = {
size: 2,
spotColors... |
src/index.js | kmoe/crypto-chat | import React from 'react';
import App from './components/app';
require('style!purecss');
require('style!./css/css.css');
React.render(<App />, document.getElementById('root'));
|
bulletin-board-app/src/Note.js | MuhammadHafidzMisrudin/reactjs-basics | import React from 'react';
import './App.css';
import Draggable from 'react-draggable';
//var React = require('react');
//var createClass = require('create-react-class');
class Note extends React.createClass{
getInitialState() {
return {editing: false}
}
componentWillMount() {
// this met... |
test/integration/i18n-support-index-rewrite/pages/[...slug].js | flybayer/next.js | import React from 'react'
const DynamicPage = (props) => (
<>
<div>DynamicPage</div>
<div id="props">{JSON.stringify(props)}</div>
</>
)
export const getStaticPaths = async ({ locales }) => {
const paths = []
for (const locale of locales) {
paths.push({
params: {
slug: ['hello'],
... |
src/pages/user-likes.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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 License, o... |
js/App.js | remypar5/mtg-lifecounter | import React from 'react';
import AppRouter from './routes';
const App = () => <AppRouter />;
export default App;
|
server/sonar-web/src/main/js/apps/sessions/routes.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... |
src/Components/AlertDialog.js | charlesbao/jinjiu_mission_app | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
const AlertDialog = ({open,close,content=""})=>(
<Dialog
actions={<FlatButton
label="关闭"
primary={true}
onTouchTap={close}
/>}
modal={fals... |
demo/src/flashMessage/withFlashMessageContext.hoc.js | cpeele00/bigbrother | import React from 'react';
import { FlashMessageContext } from '.';
export const withFlashMessageContext = Component => props => (
<FlashMessageContext.Consumer>
{state => <Component {...props} flashMessageContext={state} />}
</FlashMessageContext.Consumer>
); |
app/components/repo/RepoList.js | shawnxusy/git-dashboard | /* jshint esnext:true */
import React from 'react';
import {Link} from 'react-router';
import RepoListStore from '../../stores/repo/RepoListStore';
import RepoListActions from '../../actions/repo/RepoListActions';
class RepoList extends React.Component {
constructor(props) {
super(props);
this.state = RepoL... |
src/client/StatusBar.js | fewhnhouse/chrome-tab-switcher | import React, { Component } from 'react';
import Mousetrap from 'mousetrap';
class StatusBar extends Component {
constructor(props) {
super(props);
this.toggleSearchAllWindows = this.toggleSearchAllWindows.bind(this);
this.onChange = this.onChange.bind(this);
}
componentDidMount() {
Mousetrap.bi... |
src/core/display/App/Category/Current.js | JulienPradet/pigment-store | import React from 'react'
import {Link} from 'react-router'
import {PageTitle} from '../util/View/Title'
import CategoryList from './List'
import ComponentList from '../Component/List'
import Card from '../util/View/Card'
import Markdown from '../util/View/Markdown'
class CurrentCategory extends React.Component {
co... |
tests/Rules-isAlphanumeric-spec.js | sdemjanenko/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
src/FormControl.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import warning from 'warning';
import FormControlFeedback from './FormControlFeedback';
import FormControlStatic from './FormControlStatic';
import { bsClass, getClassSet, splitBsProps } from './... |
js/components/User.js | ChrisMLee/relay-mongoose-plair | import Relay from 'react-relay';
import React from 'react';
import HobbyList from './HobbyList.js';
import FriendsList from './FriendsList.js';
import Playlists from './Playlists';
import {Age} from './Age.js';
// <h2>Hobbies</h2>
// <HobbyList user={user} />
// <h2>Friends</h2>
// <FriendsList user={user} />
class U... |
modules/gui/src/app/home/body/process/recipe/planetMosaic/panels/sources/sources.js | openforis/sepal | import {AssetInput} from 'widget/assetInput'
import {Form} from 'widget/form/form'
import {Layout} from 'widget/layout'
import {NICFI_ASSETS} from 'app/home/body/process/recipe/planetMosaic/planetMosaicRecipe'
import {Panel} from 'widget/panel/panel'
import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process... |
src/components/Chat/Markup/Bold.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
const Bold = ({ children, ...props }) => <b {...props}>{children}</b>;
Bold.propTypes = {
children: PropTypes.node.isRequired,
};
export default Bold;
|
Paths/React/06.Styling React Components/5-react-styling-components-m5-exercise-files/Before/src/slide.js | phiratio/Pluralsight-materials | import React from 'react'
const { object, string } = React.PropTypes
function Slide(props) {
return (
<article style={props.style}>
<img src={props.image} alt={props.title} />
<footer>
<h2>{props.title}</h2>
<div>{props.children}</div>
</footer>
</article>
)
}
Slide.prop... |
src/components/screenshotter.js | philly-d/chirp-for-twitter | import React from 'react'
import HighlightButton from './highlightButton'
import Cropper from './cropper'
const Screenshotter = React.createClass({
render() {
const {
canShowScreenshotButton, isCropping, isTakingScreenshot,
initTakeScreenshot, hideScreenshotter, showScreenshotter
... |
src/components/Modal/ModalFooter.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
const ModalFooter = props => (
<div className={classnames('ui-modal-footer')}>
{props.children}
</div>
);
ModalFooter.propTypes = {
children: React.PropTypes.node,
};
export default ModalFooter;
|
src/components/cart/item.js | RamEduard/admin-lte-express | /**
* Created by Ramon Serrano <ramon.calle.88@gmail.com>
* Date: 5/24/16
* Time: 11:38 AM
*/
import React from 'react';
import CartButton from './button';
import AppActions from '../../actions/app-actions';
export default (props) => {
return (
<tr>
<td>
<CartButton
txt="x"
handler={AppActions... |
app/components/Drawer/index.js | minhnhat09/scalable-react | /**
*
* Drawer
*
*/
import React from 'react';
import styles from './styles.css';
import classNames from 'classnames';
function Drawer({items, selectItem, itemLabelAttr, itemKeyAttr, isDrawerOpen}) {
const itemNodes = items.map(item => (
<div
className={styles.item}
key={item[itemKeyAttr]}
... |
docs/src/_bilprospekt_dropdown_component.js | Bilprospekt/bilprospekt-ui | import React from 'react';
import * as BUI from 'bilprospekt-ui'
import _ from 'underscore';
const {DropdownMenu: {DropdownHolder, DropdownElement}} = BUI;
import {DatePicker} from 'bilprospekt-ui';
const DropdownDoc = React.createClass({
_onClick() {
this.setState({
checked: !this.state.check... |
src/routes/Home/components/Sidebar.js | adogpt/adogpt | import React from 'react'
import MatchList from './MatchList'
import './Sidebar.scss'
import Avatar from 'react-avatar'
import AppBar from 'material-ui/AppBar'
import Toolbar from 'material-ui/Toolbar'
class SideBar extends React.Component {
constructor(props) {
super(props)
this.state = {
matches: props.matc... |
packages/wix-style-react/src/DragAndDrop/docs/SortableList/NestableListExample/NestableListExample.js | wix/wix-style-react | import React from 'react';
import classNames from 'classnames';
import {
dndStyles as defaultDndStyles,
NestableList,
DragDropContextProvider,
} from 'wix-style-react';
import { classes } from './NestableList.st.css';
export default class NestableListExample extends React.Component {
state = {
items: [
... |
src/Parser/Hunter/Shared/Modules/Features/TimeFocusCapped.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import Wrapper from 'common/Wrapper';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SPECS from 'common/S... |
app/javascript/mastodon/features/direct_timeline/components/column_settings.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
example/src/WidgetFactory.js | rsamec/react-property-editor | import _ from 'lodash';
import React from 'react';
var ReactBootstrap = require('react-bootstrap');
var bgStyle = function (source, panelSize) {
var bg = source;
var bgStyle = {};
if (source === undefined) return bgStyle;
//size
if (!!bg.size) {
if (panelSize !== undefined && (bg.size === "leftHalf" || bg.size ... |
src/components/common/SimpleEditor/Component/utils/createInlineButton.js | anztrax/simple-image-server-frontend | import React from 'react';
import classnames from 'classnames';
export default function createInlineButton(type,text){
return class InlineButton extends React.Component{
static get blockType(){
return type;
}
constructor(props) {
super(props);
this.state = {
isHover : false
... |
src/js/components/Stack/stories/Fill.js | HewlettPackard/grommet | import React from 'react';
import { Box, Stack } from 'grommet';
export const Fill = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Stack fill>
<Box background="brand" fill>
Test
</Box>
</Stack>
// </Grommet>
);
Fill.args = {
full: true,
};
e... |
client/src/components/WeeklyMatrix/BottomContainer.js | fraktio/teamdaily | import React from 'react';
import { FormattedMessage } from 'react-intl';
import WeeklyData from './WeeklyData';
import UserWeeklyData from './UserWeeklyData';
import Button from 'components/Button';
import styles from './style.pcss';
const preventDefault = event => {
event.preventDefault();
event.stopPropagatio... |
app/views/Settings.js | MaxMEllon/comelon | 'use strict';
import R from 'ramda';
import React from 'react';
import Immutable from 'immutable';
import AppComponent from '../utils/AppComponent';
import SettingAction from '../actions/SettingAction';
import SettingStore from '../stores/SettingStore';
import {
Divider,
Dialog,
FlatButton,
Toggle
} from 'mat... |
src/parser/shaman/restoration/modules/talents/TalentStatisticBox.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import StatisticsListBox, { STATISTIC_ORDER } from 'interface/others/StatisticsListBox';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Torrent from './Torrent';
import UnleashLif... |
docs/app/Examples/elements/Button/Variations/ButtonExampleCircularSocial.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleCircularSocial = () => (
<div>
<Button circular color='facebook' icon='facebook' />
<Button circular color='twitter' icon='twitter' />
<Button circular color='linkedin' icon='linkedin' />
<Button circular color='g... |
client/src/components/Home.js | elliotjz/book-trading-club | import React from 'react'
import { Link } from 'react-router-dom'
import RaisedButton from 'material-ui/RaisedButton'
class Home extends React.Component {
render() {
return (
<div id='home' >
<h1>Welcome to Bookaholics Anonymous</h1>
<h4>Trade books with people in your area</h4>
<L... |
src/avoiding-the-monorepo/index.js | travi/presentations | import React from 'react';
import {render} from 'react-dom';
import Presentation from './presentation';
render(<Presentation />, document.getElementById('root'));
|
src/svg-icons/action/perm-media.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermMedia = (props) => (
<SvgIcon {...props}>
<path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 ... |
app/javascript/mastodon/components/timeline_hint.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
const TimelineHint = ({ resource, url }) => (
<div className='timeline-hint'>
<strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ... |
client/src/components/Link.js | Nauktis/inab | import React from 'react';
export default class Link extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired,
onClick: React.PropTypes.func,
className: React.PropTypes.string
};
handleClick(e) {
e.preventDefault();
if (this.props.onClick) {
this.props.o... |
node_modules/react-router/es/IndexLink.js | myapos/ClientManagerSpringBoot | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
mdbreact/components/Mask.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Mask extends React.Component {
render() {
const {
className,
children,
tag: Tag,
...attributes
} = this.props;
const classes = classNames(
'mask',
className
... |
src/components/Sections/LabelAxisTick.js | demisto/sane-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NONE_VALUE_DEFAULT_NAME, WIDGET_DEFAULT_CONF } from '../../constants/Constants';
import { getTextWidth, sentenceBreaker } from '../../utils/strings';
class LabelAxisTick extends Component {
static propTypes = {
payload: PropTy... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleGroupSizes.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentGroupSizesExample = () => {
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
return (
<div>
{sizes.map(size => (
<Segment.Group key={size} size={size}>
<Segment>
It'... |
my-feed-title/my-feed-title.js | uraway/Learnings |
import React from 'react'
import ReactDOM from 'react-dom'
import $ from 'jQuery'
class FeedTitle extends React.Component {
constructor() {
super();
this.state = ({
results: []
});
}
componentDidMount() {
$.ajax({
url: this.props.url,
data: {
q: "select * from... |
app/javascript/mastodon/features/account_timeline/components/moved_note.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
web/src/components.js | squaremo/ambergreen | require('font-awesome-webpack');
require('./main.less');
import React from 'react';
import ReactDOM from 'react-dom';
import ComponentExamples from './components/dev/examples';
ReactDOM.render(<ComponentExamples />, document.getElementById('app'));
|
js/components/form/floatingLabel.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, Content, Button, Item, Label, Input, Body, Left, Right, Icon, Form, Text } from 'native-base';
import { Actions } from 'react-native-route... |
src/pages/index.js | modestack/modestack.github.io | import React from 'react';
import config from '../../site-config';
import Subscription from '../components/subscription/subscription';
import Hero from '../components/hero/hero';
const removeSubscription = () => {
console.log('removing subscription');
};
class IndexPage extends React.Component {
constructor(p... |
src/parser/demonhunter/vengeance/modules/painchart/Pain.js | FaideWW/WoWAnalyzer | // Based on Main/Mana.js
import React from 'react';
import PropTypes from 'prop-types';
import {Line} from 'react-chartjs-2';
import fetchWcl from 'common/fetchWclApi';
import {formatDuration} from 'common/format';
import SPELLS from 'common/SPELLS';
import ManaStyles from 'interface/others/ManaStyles';
import PainC... |
webpack/scenes/ModuleStreams/ModuleStreamsTableSchema.js | snagoor/katello | import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
headerFormatter,
cellFormatter,
} from '../../components/pf3Table';
const TableSchema = [
{
property: 'name',
... |
src/components/productivity/modal/todos/Item.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React, { Component } from 'react';
import { Checkbox, Input, Button, Spin, message, Modal } from 'antd';
import { FormattedMessage } from 'react-intl';
import translate from 'app/global/helper/translate';
import { graphql } from 'react-apollo';
import UpdateTodoMutation from 'app/graphql/mutation... |
App/db/entities/content/Place.js | neytz/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. 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
* License, or (at your option) any later version.
... |
docs/app/Examples/elements/Reveal/Types/RevealExampleRotate.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image, Reveal } from 'shengnian-ui-react'
const RevealExampleRotate = () => (
<Reveal animated='rotate'>
<Reveal.Content visible>
<Image circular size='small' src='/assets/images/wireframe/square-image.png' />
</Reveal.Content>
<Reveal.Content hidden>
<Image... |
src/app/components/Favorites.js | Boluwatifes/andela24 | // import required dependencies
import React from 'react';
/**
* Render react component
* @method render
*/
const Favorites = () => (
<div className="col s12 home-inner" >
<div className="inner-content center m-auto">
<span className="center"><img alt="loading" src="imgs/loading.gif" /></span>
<h... |
src/routes/privacy/index.js | HappyBandit/TeamBingo | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/Components/Webview.js | dylanbathurst/bacon-mobile | import React, { Component } from 'react';
import {
AppRegistry,
View,
StyleSheet,
Text,
TouchableOpacity,
Image,
WebView
} from 'react-native';
import HeaderStyle from '../Styles/HeaderStyle.js';
export default class Webview extends Component {
static navigationOptions = ({ navigation }) => {
retu... |
components/KanbanList.js | bchoe/React-Kanban | import React from 'react';
import KanbanItem from './KanbanItem';
import KanbanNew from './KanbanNew';
class KanbanList extends React.Component{
render(){
const cards = this.props.queue.map((dataItem) => {
return(
<KanbanItem {...dataItem} key={dataItem.id} />
)
})
return(
<div... |
src/index.js | nicmak/movioBook | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import { Provider } from 'react-redux';
import store from './store'
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>
, document.get... |
src/PerfViewJS/spa/src/components/EventList.js | vancem/perfview | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
export class EventList extends Component {
static displayName = EventList.name;
constructor(props) {
super(props);
var dataFile = this.props.match.params.dataFile;
this.state = { dataFile: dataFile, event... |
ui/src/containers/Visualisations/TemplateMostPopularActivities/Viewer.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import SourceResults from 'ui/containers/VisualiseResults/SourceResults';
import BarChartResults from 'ui/containers/VisualiseResults/BarChartResults';
/**
* @param {string} props.visualisationId
* @param {boolean} props.showSourceView
*/
const Viewer =... |
src/smif/app/src/components/ConfigForm/General/NotFound.js | nismod/smif | import React from 'react'
const NotFound = () => (
<div className="alert alert-danger">
<strong>Nothing found here</strong> – try the main menu.
</div>
)
export default NotFound
|
src/components/TimeAndSalary/SearchScreen/SearchScreen.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { compose, setStatic } from 'recompose';
import qs from 'qs';
import Loading from 'common/Loader';
import { P } from 'common/base';
import FanPageBlock from 'common/FanPageBlo... |
example/index.js | maxwellhealth/react-maxwell-modal | import React from 'react';
import { render } from 'react-dom';
import { ConfirmModal, MaxwellModal, AlertModal } from 'react-maxwell-modal';
function onYes(closeModal) {
console.log('i\'ve clicked yes');
closeModal(true);
}
function onNo(closeModal) {
var a = confirm('Are you really sure')
if (a) {
closeM... |
admin/src/components/ListColumnsForm.js | asifiqbal84/keystone | import classnames from 'classnames';
import React from 'react';
var Transition = React.addons.CSSTransitionGroup;
var CurrentListStore = require('../stores/CurrentListStore');
var Popout = require('./Popout');
var PopoutList = require('./PopoutList');
var { Button, Checkbox, InputGroup, SegmentedControl } = require('e... |
src/routes/main/index.js | seunggabi/excel-merge-tool | /**
* 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 Main from '../../containe... |
src/screens/screen_main.js | kebugcheckex/zhihu-electron | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import StickyHeader from '../components/sticky_header';
import ContentColumn from '../components/content_column';
import QuestionBox from '../components/question_box';
import AnswerBox from '../comp... |
docs/src/app/components/pages/components/Subheader/Page.js | pomerantsev/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 subheaderReadmeText from './README';
import listExampleChatCode from '!ra... |
app/javascript/mastodon/features/getting_started/index.js | kibousoft/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
app/javascript/mastodon/features/getting_started/components/trends.js | primenumber/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Hashtag from 'mastodon/components/hashtag';
import { FormattedMessage } from 'react-intl';
export default class Trends e... |
src/pages/base/induction.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
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 License, o... |
blueocean-material-icons/src/js/components/svg-icons/action/markunread-mailbox.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionMarkunreadMailbox = (props) => (
<SvgIcon {...props}>
<path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionMarkunreadMailbox.displayName = 'ActionMarkunreadMailbo... |
examples/relay-treasurehunt/js/components/App.js | meteor/relay-runtime-query | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/views/menu.js | wiki1024/sam-bs | import React, { Component } from 'react';
import Row from '../components/bootstrap/Row'
import Column from '../components/bootstrap/Column'
import Dropdown from '../components/bootstrap/Dropdown'
import { toggleMenu,clickOption } from '../actions/dropdownAction'
export default function menu(viewModel) {
let menuMo... |
src/components/NewEmail.js | MutakamwoyoCloud/MCloud | import React, { Component } from 'react';
import { Form, FormGroup, FormControl, Col, ControlLabel} from 'react-bootstrap';
import { Button } from 'react-bootstrap';
export default class NewEmail extends Component {
constructor(props){
super(props);
this.handleSubmit = this.handleSubmit.bind(this);
... |
src/index.js | synchon/react-biosummit-17 | 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('app'));
registerServiceWorker();
|
src/containers/pages/extensions/right-container/content.js | vFujin/HearthLounge | import React from 'react';
import _ from 'lodash';
import {extensionBossExists, extensionWingExists} from "../../../../utils/checkIfPathExist";
import ExtensionDetails from './details';
import NotFound from "../../../../components/not-found/not-found";
const Content = ({detailsChild, details, extension}) => {
const... |
examples/huge-apps/routes/Grades/components/Grades.js | egobrightan/react-router | import React from 'react'
class Grades extends React.Component {
render() {
return (
<div>
<h2>Grades</h2>
</div>
)
}
}
export default Grades
|
pootle/static/js/auth/components/AuthWindow.js | Jobava/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.
*/
'use strict';
import React from 'react';
import { Modal ... |
packages/material/src/components/ListItemLink.native.js | wq/wq.app | import React from 'react';
import { useNav, useComponents } from '@wq/react';
import PropTypes from 'prop-types';
export default function ListItemLink({ to, ...rest }) {
const { ListItem } = useComponents(),
onPress = useNav(to);
return <ListItem onPress={onPress} {...rest} />;
}
ListItemLink.propType... |
src/components/matches/Match/OtherMatchTeamTitle.js | TTCErembodegem/TTC-React-Front | import React from 'react';
import PropTypes from '../../PropTypes.js';
import {OpponentLink} from '../../teams/controls/OpponentLink.js';
export const OtherMatchTeamTitle = ({team, readonlyMatch, isHome, withPosition}) => {
const opponent = isHome ? readonlyMatch.home : readonlyMatch.away;
return <OpponentLink tea... |
app/javascript/mastodon/features/directory/index.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.