path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/jqwidgets/demos/react/app/notification/customicon/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNotification from '../../../jqwidgets-react/react_jqxnotification.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
import JqxTextArea from '../../../jqwidg... |
docs/build.js | justinanastos/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
app/components/notifications/list/Container.js | rvpanoz/luna | import React from 'react';
import { useState, useCallback, useEffect } from 'react';
import { useMappedState, useDispatch } from 'redux-react-hook';
import {
installMultiplePackages,
viewPackageStart,
} from 'models/packages/actions';
import { iMessage } from 'commons/utils';
import Notifications from './Notificat... |
app/javascript/mastodon/features/audio/index.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { formatTime } from 'mastodon/features/video';
import Icon from 'mastodon/components/icon';
import classNames from 'classnames';
import { throttle } from 'lodash';
import { getPointerPosition, ... |
src/svg-icons/image/flash-off.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
admin/src/components/ItemsTableCell.js | lastjune/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
render () {
let className = 'ItemList__col' + (this.props.className ? (' ' + this.props.className) : '');
return (
<td {...this.props} className={className... |
src/server.js | tim-mays/react-heroku-sandbox | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
examples/sidebar/app.js | kenwheeler/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{cat... |
src/components/app.js | nchristiny/deck_saver_app | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>deck saver app</div>
);
}
}
|
site/renderPath.js | jchristman/react-context-menus | import React from 'react';
import IndexPage from './IndexPage';
export default function renderPath(path, props, onRender) {
onRender(
IndexPage.renderToString(props)
);
}
|
example/index.ios.js | 3dEYE/react-native-exoplayer | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class VideoPlayer extends Component {
render() {
return (
<View style={styles.contain... |
examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.js | kadirahq/react-storybook | /* eslint-disable react/no-unused-prop-types */
/* eslint-disable react/require-default-props */
/* eslint-disable react/prop-types */
import React from 'react';
import PropTypes from 'prop-types';
export const ButtonTooManyProps = ({ onClick, children }) => (
<button type="button" onClick={onClick}>
{children}
... |
src/containers/DevTools.js | JohanGustafsson91/React-JWT-Authentication-Redux-Router | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q' >
<LogMonitor />
</... |
src/components/Main.js | daz10020/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
import ReactDOM from 'react-dom';
let imgDatas = require('../sources/product.json');
// 图片名信息转成图片路径信息
imgDatas = (function genImageURL(imgDatasArr) {
for (var i = 0,j = imgDatasArr.length;i < j;i ++) {
var singleImgData =... |
src/components/nav.js | nicolas-briemant/react-inception | import React from 'react';
import PropTypes from 'prop-types';
import Lang from './lang';
import Menu from './menu';
import Location from './location';
import { Classes } from '@blueprintjs/core';
import classNames from 'classnames';
const Nav = () => {
return (
<nav className={classNames(Classes.NAVBAR, Classes... |
app/javascript/mastodon/features/follow_requests/index.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/components/run.js | bensonby/ezrb | require('style!css!sass!../styles/libs.scss');
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from '../stores';
import App from '../containers/App';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provide... |
frontend/src/containers/Subscriptions.js | OpenCollective/opencollective-website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';
import LoginTopBar from '../containers/LoginTopBar';
import PublicFooter from '../components/PublicFooter';
import Notification from '../containers/Notification';
import SubscriptionItem from '../... |
src/layouts/core-layout/core-layout.js | ArcQ/stocks-on-stats | import React from 'react';
import { Layout, Panel } from 'react-toolbox';
import 'styles/core.scss';
import Header from 'components/header';
import Drawer from 'containers/drawer-container';
import './core-layout.scss';
export const CoreLayout = ({ children }) => (
<div className='core-layout'>
<Header />
<L... |
src/app/plugins/Popover.js | lili668668/lili668668.github.io | import React from 'react'
import PropTypes from 'prop-types'
import Button from '@material-ui/core/Button'
import MuiPopover from '@material-ui/core/Popover'
import compose from '../utils/compose'
import PopoverBase from '../templates/PopoverBase'
const Popover = (props) => (
<MuiPopover
onClose={props.onClose}... |
common/components/Nav.js | luanlv/minhphat | // /* global $ */
import React from 'react'
import {Link} from 'react-router'
class Nav extends React.Component {
// eslint-disable-next-line
constructor (props) {
super(props)
}
componentDidMount () {
}
render () {
const isEn = this.props.isEn
return (
<div>
<section id='heade... |
src/parser/rogue/outlaw/modules/spells/RollTheBonesCounter.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import Statistic from 'interface/statistics/Statistic';
import DonutChart from 'interface/statistics/components/DonutChart';
import STATISTIC_ORDER from 'interface/other... |
app/react-icons/fa/battery-0.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBattery0 extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m38.1 14.4q0.9 0 1.6 0.7t0.6 1.5v6.8q0 0.9-0.6 1.5t-1.6 0.7v2.8q0 1.2-0.8 2... |
src/client/containers/VRpage/VRpage.js | sisforserrgio/sisforserrgio.github.io | import React from 'react';
import { Link } from 'react-router';
import MenuButton from '../../components/MenuButton/MenuButton.js';
import './VRpage.css';
export default class VRpage extends React.Component {
render() {
return (
<div className="VRpage">
<Link to="menu">
<MenuButton id={t... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | hpdmitriy/Bjj4All | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/screens/App/screens/Listing/components/Posts/index.js | yanglinz/reddio | import _ from 'lodash';
import React from 'react';
import ListingNavigation from './ListingNavigation';
import Post from './Post';
function Posts(props) {
const { posts } = props;
return (
<div>
<ListingNavigation {...props} />
{_.map(posts, (post, i) => (
<Post key={i} {...props} post={po... |
src/Parser/Monk/Mistweaver/CombatLogParser.js | enragednuke/WoWAnalyzer | import React from 'react';
import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import Tab from 'Main/Tab';
import Mana from 'Main/Mana';
import MonkSpreadsheet from 'Main/MonkSpreadsheet';
import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing';
import HealingDone from 'Parser/Core/Modules/Heal... |
src/repository/screens/repository-file.screen.js | housseindjirdeh/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
View,
ScrollView,
Text,
StyleSheet,
Dimensions,
Image,
} from 'react-native';
import { Card, Icon } from 'react-native-elements';
import SyntaxHighlighter from 'react-native-syntax-highlighter';
import { getLanguage } ... |
src/templates/index-template.js | bodguy/bodguy.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
react/20161126/src/js/App.js | fengnovo/diary | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
class App extends React.Component {
constructor (props) {
super(props)
// let transitionName = 'page';
// if (action === 'PUSH') {
// } else if (action === 'POP') {
... |
app/admin/post/SubmitPost.js | in42/internship-portal | import React, { Component } from 'react';
import { TextArea, Form, Button, Label, Segment } from 'semantic-ui-react';
import axios from 'axios';
import PropTypes from 'prop-types';
import Auth from '../../auth/modules/Auth';
const submitPost = post =>
axios.post('/api/admin/posts', post, {
headers: {
Autho... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | lawrence-yu/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* `DatePicker` can be implemented as a controlled input,
* where `value` is handled by state in the parent component.
*/
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props)... |
lib/utils/plugins.js | MartyGentillon/hyper | import {remote} from 'electron';
import {connect as reduxConnect} from 'react-redux';
// we expose these two deps to component decorators
import React from 'react';
import Component from '../component';
import Notification from '../components/notification';
import notify from './notify';
const Module = require('modul... |
app/components/ExpandableImage/index.js | IntAlert/chatplayer | /**
*
* FlippableImage
*
*/
import React from 'react';
// import styled from 'styled-components';
import Modal from 'react-responsive-modal';
import './styles.css';
// import { FormattedMessage } from 'react-intl';
// import messages from './messages';
class ExpandableImage extends React.Component { // eslint-disa... |
client/src/components/auth/signout.js | Zsugi/react-auth | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions';
class Signout extends Component {
componentWillMount() {
this.props.signoutUser();
}
render() {
return <div>Sorry to see you go...</div>;
}
}
export default connec... |
src/svg-icons/image/exposure-plus-2.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus2 = (props) => (
<SvgIcon {...props}>
<path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-... |
src/renderer/App.js | florianorpeliere/KFE | 'use strict';
let { ipcRenderer } = require('electron');
import React from 'react';
import Router from 'react-router';
let { Route, DefaultRoute, RouteHandler, Link } = Router;
import Exercise from './js/Exercise/Exercise';
import HomePage from './js/HomePage/HomePage';
import Courses from './js/Courses/Courses';
imp... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleColored.js | koenvg/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const StatisticExampleColored = () => (
<Statistic.Group>
<Statistic color='red' value='27' label='red' />
<Statistic color='orange' value='8' label='orange' />
<Statistic color='yellow' value='28' label='yellow' />
<Statistic co... |
src/components/SearchBar/SearchBar.js | nbschool/ecommerce_web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import './SearchBar.css';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
active: false,
};
this.handleFormSubmit = t... |
node_modules/react-navigation/lib-rn/views/HeaderTitle.js | RahulDesai92/PHR | import React from 'react';
import { Platform, StyleSheet, Text } from 'react-native';
var babelPluginFlowReactPropTypes_proptype_Style = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any;
const HeaderTitle = ({ style, ...rest }) => <Text numberOfLines={1} {...rest... |
client/app/ihome/courses/index.js | jl-/r- | import React, { Component } from 'react';
import styles from './style.scss';
class Courses extends Component {
render() {
return (
<div>
Courses
</div>
);
}
}
export default Courses
|
src/app/components/team/Similarity/index.js | meedan/check-web | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import PropTypes from 'prop-types';
import SimilarityComponent from './SimilarityComponent';
const Similarity = ({ teamSlug }) => (
<QueryRenderer
environment={Relay.Store}
query={... |
app/javascript/mastodon/features/mutes/index.js | narabo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
src/components/alert/Alert.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import BaseView from '../../utils/rnw-compat/BaseView';
import { COLORS } from '../../utils/constants';
const propTypes = {
children: PropTypes.node.isRequired,
color: PropTypes.oneOf(COLORS),
dismissible: PropTypes.bool,... |
example/pages/swiper/index.js | n7best/react-weui | import React from 'react';
import {
Swiper,
CellsTitle,
Flex,
FlexItem
} from '../../../build/packages';
import Page from '../../component/page';
import imgSrc from '../article/pic_article.png';
class SwiperDemo extends React.Component {
constructor(props){
super(props);
this.stat... |
app/javascript/mastodon/components/admin/Dimension.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { roundTo10 } from 'mastodon/utils/numbers';
import Skeleton from 'mastodon/components/skeleton';
export default class Dimension extends React.PureComponent {
static pr... |
client/authentication/App.js | Haaarp/geo | import React from 'react';
import ReactDOM from 'react-dom';
import Application from 'konux/common/components/Application';
import routes from './components';
import reducers from './reducers';
import 'konux/common/styles/common.sass';
import './styles/auth.sass';
const App = (props) => {
return(
<Applic... |
app/js/client.js | JeffRisberg/RE03 | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import { createBrowserHistory } from 'history';
import AppRoot from './AppRoot';
import configureStore from './configureStore';
const history = createBrowserHistory({basename: '/'});
const store = configureStore({initi... |
src/App.js | chentsulin/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
packages/cockpit/ui/src/components/ContractsDeployment.js | iurimatias/embark-framework | import React from 'react';
import FontAwesomeIcon from 'react-fontawesome';
import {Row,
Col,
FormGroup,
Input,
Label,
UncontrolledTooltip,
Button,
Card,
CardHeader,
CardTitle,
CardBody} from 'reactstrap';
import PropTypes from "prop-types"... |
src/domain/layout/component/Sidebar.js | hellowin/kanca | import React, { Component } from 'react';
import { connect } from 'react-redux';
import NavLink from './NavLink';
import uuid from 'uuid';
import './Sidebar.css';
import loc from 'infra/service/location';
const mapStateToProps = state => ({
location: state.routing.locationBeforeTransitions,
feeds: state.group.fee... |
src/svg-icons/av/pause-circle-outline.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2... |
frontend/src/components/eois/buttons/completeCfeiButton.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
const messages = {
text: 'Finalize',
};
const EditCfeiButton = (props) => {
const { handleClick } = props;
return (
<Button
color="accent"
raised
onClick={handleClick}
>
{messa... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | webteckie/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
src/routes/error/index.js | Ozaroni/modestLifer | /**
* 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 ErrorPage from './Err... |
components/DemoLayout.js | isogon/styled-mdl-website | import React from 'react'
import styled from 'styled-components'
import { sideNavLinks } from './_navigation'
import SideNav from './SideNav'
import Layout from './Layout'
const Content = styled.div`
display: flex;
flex-grow: 1;
flex-direction: column;
min-height: 100%;
margin-top: 74px;
padding-left: 150... |
src/components/ProjectContainer.js | gabrielzzarate/portfolio-2017 | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { ActionCreators } from '../actions';
import Sidebar from './Sidebar';
import Project from './Project';
import animation from '../actions/animations';
import ProjectList from './ProjectLis... |
blueocean-material-icons/src/js/components/svg-icons/content/clear.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear.displayName = 'ContentClear';
ContentClear.muiName ... |
example/screens/TabScreen.js | travelbird/react-native-navigation | import React from 'react';
import { TabBar, Tab } from 'native-navigation';
const propTypes = {};
const defaultProps = {};
export default class TabScreen extends React.Component {
render() {
return (
<TabBar
elevation={20}
>
<Tab
route={'ScreenOne'}
title="Home"
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | qvoiriot/qvoiriot.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
RNLearning/z-day04-Estore/Profile/IMHeaderCell.js | ivanl001/ReactNative-Learning | /**
* Created by feng on 16/12/10.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var IMHeaderTopCell = require('./IMHeaderTopCell');
var IMHeaderBottomCell = require('./IMHeaderBottomCell');
var IMWindow = require('Dimensions').get(... |
packages/wix-style-react/src/Page/PageContext.js | wix/wix-style-react | import React from 'react';
export const PageContext = React.createContext();
|
lib/form/templates/flat/struct.js | bjyas/react-native-rnkit | import React from 'react'
import { View, Text } from 'react-native';
function struct(locals) {
var stylesheet = locals.stylesheet;
var fieldsetStyle = stylesheet.fieldset;
var controlLabelStyle = stylesheet.controlLabel.normal;
if (locals.hasError) {
controlLabelStyle = stylesheet.controlLabel.error;
}... |
src/pages/RegisterPage.js | LinDing/two-life | import React, { Component } from 'react';
import {
StyleSheet,
Navigator,
TouchableOpacity,
Image,
ScrollView,
Dimensions,
TextInput,
Alert,
AsyncStorage,
TouchableWithoutFeedback
} from 'react-native';
import dismissKeyboard from 'dismissKeyboard';
import * as Animatable from 'react-native-animatab... |
docs-src/js/components/options/ShouldOpen.js | gomo/react-calcpicker | import React from 'react'
import {CalcPicker, Rect, Action} from '../../../../dist/react-calcpicker'
import SyntaxHighlighter from 'react-syntax-highlighter'
import { tomorrowNightEighties } from 'react-syntax-highlighter/dist/styles'
export default class ShouldOpen extends React.Component
{
constructor(props) {
... |
examples/universal/server/server.js | roth1002/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path'
import Express from 'express'
import qs from 'qs'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import webpackConfig from '../webpack.config... |
src/common/components/App/index.js | MatthewKosloski/server-side-react | import React, { Component } from 'react';
export default class App extends Component {
render() {
return(
<div>
{this.props.children}
</div>
);
}
} |
src/containers/Asians/Published/_AppBar/LargeAppBar/BreakRoundsButtons/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
export default connect(mapStateToProps)(({
breakCategories
}) => {
return (
<div
className={'flex flex-row h-100'}
>
{breakCategories.sort((a, b) => b.default).map(breakCategory =>
<Instan... |
client/src/index.js | fmoliveira/rexql-boilerplate | /* global localStorage */
// Core
import React from 'react'
import ReactDOM from 'react-dom'
// Routing
import { AppContainer } from 'react-hot-loader'
import { Router, Route, IndexRoute, Redirect, browserHistory } from 'react-router'
if (module.hot) {
module.hot.accept()
}
// Redux
import { createStore, combineRe... |
tests/react_modules/es6class-types-callsite.js | AprilArcus/flow | /* @flow */
import React from 'react';
import Hello from './es6class-types-module';
type Props = {name: string};
class HelloLocal extends React.Component<void, Props, void> {
props: Props;
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
class Callsite extends React.Component<void, Pr... |
spec/components/card.js | react-toolbox/react-toolbox | /* eslint-disable react/prop-types */
import React from 'react';
import Button, { IconButton } from '../../components/button';
import Card, { CardActions, CardMedia, CardText, CardTitle } from '../../components/card';
import style from '../style.module.css';
const dummyText = 'Lorem Ipsum is simply dummy text of the p... |
packages/icons/src/storage.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
frontend/src/Settings/SettingsToolbarConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { toggleAdvancedSettings } from 'Store/Actions/settingsActions';
import SettingsToolbar from './SettingsToolbar';
function mapStateToProps(state) {
... |
js/jqwidgets/demos/react/app/ribbon/ribbonatthebottom/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRibbon from '../../../jqwidgets-react/react_jqxribbon.js';
class App extends React.Component {
render () {
let ribbonHTML = `
<ul>
<li style="margin-left:30px;">Browse Books</li>
<li>Shipping</li>
... |
src/config/index.js | timscott/react-devise | import React from 'react';
import defaultMessages from './defaultMessages';
import defaultRoutes from './defaultRoutes';
import viewPluginPlain from './viewPluginPlain';
import {AuthLinks} from '../views';
let instance;
class Config {
constructor({
clientResourceName = 'users',
apiResourceName = 'auth',
... |
examples/js/cell-edit/dbclick-to-edit-table.js | opensourcegeek/react-bootstrap-table | 'use strict';
import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
var products = [];
function addProducts(quantity) {
var startId = products.length;
for (var i = 0; i < quantity; i++) {
var id = startId + i;
products.push({
id: id,
name: "Item n... |
public/admin/build/SysUser.admin.chunk.js | dreamllq/koa-web-framework | webpackJsonp([4],[
/* 0 */,
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */,
/* 10 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.warning = undefined;
var _extends2 = __webpack_re... |
src/component/FileDropzone/DropzoneRenderer/index.js | dlennox24/ricro-app-template | import withStyles from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import IconFileAlert from 'mdi-material-ui/FileAlert';
import IconFileUpload from 'mdi-material-ui/FileUpload';
import IconMinusCircle from 'mdi-material-ui/MinusCirc... |
saga/seata-saga-statemachine-designer/src/components/EditorContextMenu/FlowContextMenu.js | seata/seata | import React from 'react';
import { NodeMenu, EdgeMenu, GroupMenu, MultiMenu, CanvasMenu, ContextMenu } from 'gg-editor';
import MenuItem from './MenuItem';
import styles from './index.less';
const FlowContextMenu = () => {
return (
<ContextMenu className={styles.contextMenu}>
<NodeMenu>
<MenuItem ... |
app/javascript/mastodon/features/ui/components/columns_area.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
src/containers/profile/containers/AccountInfoForm.js | dataloom/gallery | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ProfileForm from '../../../components/profile/ProfileForm';
import { getDbAccessCredential } from '../ProfileActionFactory';
class AccountInfoForm extends React.Component {
static propTypes = {
}... |
src/people/notifs/AddItemFailNotif.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import FailRetryNotif from '../../elements/FailRetryNotif';
import * as actions from '../actions';
///
// View
///
class AddItemFailNotifView extends Component {
///
// Rendering
///
renderMessage(action, userMessage) {
return (
'Adding p... |
modules/TransitionHook.js | Sirlon/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | okcoker/react-router | import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... |
src/components/utilities/Sidebar.js | jackson-/colorforcode | import React from 'react'
import PropTypes from 'prop-types'
import './Sidebar.css'
const Sidebar = ({content, header}) => (
<div className='Sidebar'>
<h3 className='Sidebar__header'>{header}</h3>
{content}
</div>
)
Sidebar.propTypes = {
header: PropTypes.string,
content: PropTypes.node
}
export defa... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/party-mode.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialPartyMode = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .35.07.69.18 1H7.1c-.06-.32-.1-.66... |
src/svg-icons/device/storage.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
client/components/Message/Attachments/components/Image.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import Retry from './Retry';
export default {
title: 'components/Image',
component: Image,
};
// export const Default = () => <Image />;
export const RetryImage = () => <Retry />;
|
src/MyComponent.js | anaplaninc/MyComponent | import React from 'react';
import Table from './components/Table';
class MyComponent {
/**
* This assumes that the labels match the key for each object in fetchRows.
*/
fetchHeaders() {
return [
{
label: 'id'
}, {
label: 'name'
}, {
label: 'email'
}, {
label: 'cit... |
lib/server/src/descriptors/example.js | honeyframework/honey-dipper-comb-documentation | import React from 'react';
export default class Example extends React.Component {
render() {
return(
<div className='content'>
<h2>Descriptor Example</h2>
<section>
Your description / demo goes here.
</section>
</div>
);
}
}
|
presentation/components/Suevalov.js | suevalov/code-splitting-in-react-apps-presentation | import React, { Component } from 'react';
import { Link } from 'spectacle';
class Suevalov extends Component {
renderMe() {
const styles = {
'margin': '10px auto',
'width': '130px',
'height': '130px',
'borderRadius': '50%'
};
return (
<div style={{ display: 'inline-block',... |
components/Layout/Layout.js | augusto-santos/webapp | import React from 'react';
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { changeSearch } from '../../actions/Layout/actions'
import Header from '../Header';
import Sidebar from '../Sidebar'
import s from './Layout.css'
/** options JSON's */... |
client/index.js | jacarval/KaraokeTube2 | import './styles/main.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { Router, Route, hashHistory } from 'react-router'
import io from 'socket.io-client'
import makeStore from './store'
import { search, setState, addSong, addSongNext, removeSong, getNext... |
indico/modules/events/editing/client/js/editing/timeline/FileManager/util.js | DirkHoffmann/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import globToRegExp from 'glob-to-regexp';
import _ from 'lodash';
import PropTypes from 'prop-types... |
renderer/components/Icon/Peace.js | LN-Zap/zap-desktop | import React from 'react'
const SvgPeace = props => (
<svg height="1em" viewBox="0 0 20 29" width="1em" {...props}>
<g
fill="none"
fillRule="evenodd"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.333}
>
<path d="M18.462 18.462a1.80... |
techCurriculum/ui/solutions/3.3/src/components/Message.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | BrysonPacocha/SportsStats | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/components/DaisyMetadata.js | shunito/daisyconv | // jshint esversion:6
import React, { Component } from 'react';
import ReactDOM, { render } from 'react-dom';
export default class DaisyMetadata extends Component {
render() {
var daisy = this.props.daisy;
var ncc, metadatas = [];
var i,l,list = [];
if( typeof daisy !== 'undefined... |
node_modules/react-bootstrap/es/Label.js | CallumRocks/ReduxSimpleStarter | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | verdan/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionGrade from 'material-ui/svg-icons/action/grade';
const IconButtonExampleTouch = () => (
<div>
<IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right">
<ActionGrade />
</IconButton>
<IconB... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.