path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/elements/List/Types/ListExampleOrderedValue.js | ben174/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleOrderedValue = () => (
<List as='ol'>
<List.Item as='li' value='*'>Signing Up</List.Item>
<List.Item as='li' value='*'>User Benefits</List.Item>
<List.Item as='li' value='*'>
User Types
<List.Item as='ol'>
... |
definitions/npm/hoist-non-react-statics_v2.x.x/test_hoist-non-react-statics_v2.x.x.js | orlandoc01/flow-typed | // @flow
import React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
// $ExpectError
hoistNonReactStatics(1);
// $ExpectError
hoistNonReactStatics(1, 2);
// $ExpectError
hoistNonReactStatics(1, 2, 3);
let C1 = (props: {
a: number,
b: string
}) =>
<div>
{props.a} {props.b}
</div... |
src/svg-icons/image/photo-library.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>... |
examples/cke.js | kaunio/react-ckeditor-wrapper | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import CKEditor from 'react-ckeditor-wrapper';
class App extends Component {
constructor(props) {
super();
}
componentDidMount() {
}
render() {
return (<div><CKEditor></CKEditor></div>);
}
}
ReactDOM.render(<App />, do... |
app/scripts/components/sendEmail.js | kroupaTomass/Rondo-kuchyne | import React from 'react';
import { Link } from 'react-router';
import Mail from 'nodemailer';
class SendEmail extends React.Component{
constructor(props, context) {
super(props);
}
sendEmail() {
// create reusable transporter object using the default SMTP transport
var transporter = Mail.createTra... |
app/config/routes.js | danielwrobert/github-file-browser | /**
* External Dependencies
*/
import React from 'react';
import { Route, IndexRoute } from 'react-router';
/**
* Internal Dependencies
*/
import Layout from '../layout/layout';
import HomePage from '../pages/home';
import ComponentsPage from '../pages/components';
export default (
<Route path="/" component={ La... |
demo/index.js | solid/solid-auth-client | // @flow
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './components/App'
import auth from '../src'
// for demo/debug purposes
window.solid = { auth }
console.log('Welcome to the solid-auth-client demo!')
console.log(
'Check out window.solid.auth to explore the in... |
app/javascript/mastodon/features/status/components/action_bar.js | mstdn-jp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
src/components/row.js | cereigido/react-native-ez-layouts | import React from 'react';
import { TouchableOpacity, View } from 'react-native';
const Row = ({ children, highlight, onPress }) => {
const gstyles = global.ezstyles || {};
const containerStyle = {
alignItems: 'center',
flex: 1,
flexDirection: 'row',
justifyContent: 'space-betwe... |
source/client.js | jchavezjs/platzi-react | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import Page from './pages/containers/Page.jsx';
import store from './store';
render(
<Provider store={store}>
<BrowserRouter>
<Page />
... |
shared/app/Tms/components/Icons/Close.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
/**
* Close icon
*
* @return {jsx}
*/
const Close = ({ svgClass, pathClass }) =>
(<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 48 48"
className={svgClass}
tabIndex="0"
role="img"
aria-labelledby="title desc"
>
<t... |
src/components/Tasks/TaskForm.js | Angular-Toast/habitat | import React, { Component } from 'react';
import { StyleSheet, View, TextInput, Picker, Button, TouchableHighlight, Text } from 'react-native';
import TaskDatePicker from './DatePicker.js';
import LocationPicker from './LocationPicker.js';
import CategoryPicker from './CategoryPicker.js';
class TaskForm extends Compon... |
src/components/Image.js | mikebarkmin/gestyled | import React from 'react';
import styled from 'styled-components';
import withStyle from './Base';
import Paper from './Paper';
const StyledImage = styled.img`
vertical-align: top;
margin: 0;
`;
const Image = props => {
return (
<Paper level={props.level} width={props.width}>
<StyledImage {...props} /... |
src/components/AppBarComponent.js | durw4rd/curve-fever | import React from 'react';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-button';
import FlatButton from 'material-ui/lib/flat-button';
import RulesComponent from './RulesComponent';
const iconStyle = {
fontFamily: "Material Icons",
fontSize: "24px",
color: "#FFFFFF",... |
src/public/home/components/container4-component.js | msherer95/tastir |
import React from 'react'; // eslint-disable-line
// // fourth container on homepage
export const Container4 = () => {
return (
<div className="container-fluid container4">
<div className="row container4-heading-row">
<h1>About Tastir</h1>
</div>
<div c... |
src/components/lists/agencies_list.js | hisarkaya/polinsur | import React from 'react';
import localization from '../../helpers/localization';
import _ from 'lodash';
import { insuranceCompanies as companyArray } from '../../helpers/select_options';
const renderInsuranceCompanies = arr => {
return arr.map(company =>
<span className="badge badge-pill badge-info" key={compa... |
app/PikkaListItem.js | macypa/pikka | import React, { Component } from 'react';
import { View, Text, Image, TouchableHighlight, StyleSheet } from 'react-native';
import * as SnmpService from './services/snmp';
var toggleImages = [
require('./assets/off.png'),
require('./assets/on.png')
];
export default class PikkaListItem extends Component {
... |
Example/src/page/TransPxToDp/index.js | dragonwong/rnx-ui | import React from 'react';
import {
StyleSheet,
ScrollView,
View,
} from 'react-native';
import {
Article,
NavBar,
} from 'BizComponent';
import Router from 'BizRouter';
import All from 'rnx-ui/All';
import transPxToDp from 'rnx-ui/util/transPxToDp';
const styles = StyleSheet.create({
scrollView: {
pad... |
src/components/common/svg-icons/hardware/phonelink-off.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelinkOff = (props) => (
<SvgIcon {...props}>
<path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6... |
src/client/index.js | ThinkingInReact/ThinkingInReact | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory'
import App from 'containers//App';
import routes from 'routes//';
import configureStore from './store';
const... |
app/javascript/mastodon/features/introduction/index.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
packages/material-ui-icons/src/Publish.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Publish = props =>
<SvgIcon {...props}>
<path d="M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z" />
</SvgIcon>;
Publish = pure(Publish);
Publish.muiName = 'SvgIcon';
export default Publish;
|
app/javascript/mastodon/components/autosuggest_emoji.js | MastodonCloud/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
src/routes/UIElement/editor/index.js | yunqiangwu/kmadmin | import React from 'react'
import { Editor } from 'components'
import { convertToRaw } from 'draft-js'
import { Row, Col, Card } from 'antd'
import draftToHtml from 'draftjs-to-html'
import draftToMarkdown from 'draftjs-to-markdown'
// https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components/Demo/ind... |
app/components/ScatterPlot.js | experimentalDataAesthetics/play-splom | import React from 'react';
import PropTypes from 'prop-types';
import LAxis from '../components/LAxis';
import Points from '../components/Points';
import Box from './Box';
/**
* Renders a single scatter plot on a parent svg g
*/
export default class ScatterPlot extends React.Component {
static propTypes = {
xO... |
src/member-channels.js | FederationOfFathers/ui | import React, { Component } from 'react';
import JoinPart from './channels-joinp-part'
class Channels extends Component {
componentWillMount = () => {
this.setState({
open: false,
})
}
list = () => {
if ( this.state.open === false ) {
return
}
var id = this.props.member.Name
var rval = []
for ( ... |
js/components/loaders/ProgressBar.ios.js | Learnone/ShanghaiTechAPP | /* @flow */
import React from 'react';
import { ProgressViewIOS } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class ProgressBarNB extends NativeBaseComponent {
render() {
ret... |
src/svg-icons/notification/sim-card-alert.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSimCardAlert = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z"/>
</SvgIcon>
);
NotificationSimCard... |
app/app.js | MaoCzedun/testReact | import React from 'react';
import RegisterForm from './components/RegisterForm';
import './styles/style.scss';
React.render(
<RegisterForm />,
document.querySelector('#root')
);
|
src/workshops/presentation/step.js | GrayTurtle/rocket-workshop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import draftToHtml from 'draftjs-to-html';
import sanitizeHtml from 'sanitize-html';
import { ContentState } from 'draft-js';
import './assets/css/step.css';
class Step extends Component {
static propTypes = {
};
render() {
... |
web/src/js/components/Search/SearchAuthRedirect.js | gladly-team/tab | import React from 'react'
import { replaceUrl, loginURL } from 'js/navigation/navigation'
import { SEARCH_APP } from 'js/constants'
// A convenience route to redirect /search/auth/ to
// /newtab/auth/?app=search.
class SearchAuthRedirect extends React.Component {
componentDidMount() {
replaceUrl(loginURL, { app:... |
node_modules/react-bootstrap/es/Image.js | NathanBWaters/jb_club | 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 ... |
common/components/notebook/Notebook.js | ebertmi/webbox | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import MarkdownCell from './MarkdownCell';
import CodeEmbedCell from './CodeEmbedCell';
import RawCell from './RawCell';
import CodeCell from './CodeCell';
import NewCell from './NewCell'; // add new cell type here
im... |
docs/components/common/Code.js | casesandberg/reactcss | 'use strict';
import React from 'react';
import reactCSS from 'reactcss';
import markdown from '../../helpers/markdown';
import { Raised, Tabs, Tile } from 'react-material-design';
export class Code extends React.Component {
static contextTypes = {
mobile: React.PropTypes.bool,
}
static propTypes = {
... |
src/parser/rogue/assassination/modules/features/Checklist/Module.js | fyruna/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation... |
docs/app/Examples/modules/Popup/Variations/PopupExamplePosition.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Icon, Popup, Grid } from 'semantic-ui-react'
const PopupExamplePosition = () => (
<Grid columns={3} style={{ width: '600px' }}>
<Grid.Row>
<Grid.Column>
<Popup
trigger={<Icon name='heart' color='red' size='large' circular />}
content='I am posi... |
src/index.js | Winkeltje84/ReduxWeatherApp | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromiseMiddleware from 'redux-promise'; // https://www.npmjs.com/package/redux-promise
import App from './components/app';
import reducers from './reduc... |
sc/src/main/javascript/bundles/experiment-page/src/ExperimentPageRouter.js | gxa/atlas | import React from 'react'
import PropTypes from 'prop-types'
import { BrowserRouter, Route, Redirect, Switch, NavLink, withRouter } from 'react-router-dom'
import URI from 'urijs'
import TSnePlotViewRoute from './TSnePlotViewRoute'
import ExperimentDesignRoute from './ExperimentDesignRoute'
import SupplementaryInform... |
src/components/pages/StaticContent/StoresPage.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
// Required components
import Heading from '../../common/typography/Heading';
/**
* Component
*/
class StoresPage extends React.Component {
//*** Page Title and Snippets ***//
static pageTitleAndSnippets = function (context, params, query) {
return {
... |
app/javascript/mastodon/features/directory/components/account_card.js | MitarashiDango/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/compone... |
src/interface/icons/Logout.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=logout&i=688195
// logout by i cons from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className="icon" {...other}>
<path d="M354.11,165.61H319V38H90.65c29.56,17.25,53.19,32.29,78,... |
src/svg-icons/device/signal-wifi-4-bar-lock.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
UiLibrary/TabBar/test/index.js | im-js/im.js | /**
* <plusmancn@gmail.com> created at 2017
*
* Copyright (c) 2017 plusmancn, all rights
* reserved.
*
* @flow
*
* TabBar 示例页面
*/
import React from 'react';
import {
StyleSheet,
TextInput,
Text,
View
} from 'react-native';
import {
Color,
TabBar,
} from '../../index.js';
class TabDemo... |
source/client/components/sub-components/MovieCommentsPanel.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import CommentForm from './CommentsForm';
export default class MovieCommentsPanel extends React.Component {
render() {
console.log('[MovieCommentsPanel]', this.props);
let comments = this.props.comments.map(comment => {
return (
<div ... |
frontend/src/scripts/pages/FrontPage.js | bilalbarki/jenkins_test | import React from 'react';
import CounterValue from '../components/CounterValue';
import CounterControls from '../components/CounterControls';
class FrontPage extends React.Component {
render() {
return (
<div className="front-page">
FrontPage
<CounterValue />
<CounterControls />
... |
src/components/util/util.js | folio-org/ui-users | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { every } from 'lodash';
import { NoValue } from '@folio/stripes/components';
import {
requestStatuses,
sortTypes,
} from '../../constants';
/**
* getFullName
* return "last, first middle", derived from user.personal
* preferred f... |
examples/huge-apps/components/App.js | rdjpalmer/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
app/routes.js | ADI-Labs/calendar-web | import React from 'react'
import { Route, Redirect, IndexRoute } from 'react-router'
/* Pages */
import Home from 'pages/Home'
import NotFound from 'pages/NotFound'
// Needs to be reactified in order to be used as a prop for othe things.
export default (
<Route path="/">
<IndexRoute component={ Home } />
<R... |
examples/shared-root/app.js | ThibWeb/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
node_modules/react-router/es6/IndexRoute.js | geng890518/editor-ui | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/components/Loader.js | rcdexta/react-trello | import React from 'react'
import {LoaderDiv, LoadingBar} from 'rt/styles/Loader'
const Loader = () => (
<LoaderDiv>
<LoadingBar />
<LoadingBar />
<LoadingBar />
<LoadingBar />
</LoaderDiv>
)
export default Loader
|
examples/todos-with-undo/index.js | Surreal9/redux | import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
React.render(
// The child must be wrapped in a funct... |
app/javascript/mastodon/features/compose/components/search.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/components/ControllerUnit.js | xl87-git/gallery-by-react |
require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
//控制组件
class ControllerUnit extends React.Component{
constructor(props){
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e){
e.stopPropagation();
e.preventDefault();
//如果选中图片是居中的,则... |
packages/core/admin/admin/src/content-manager/components/DynamicTable/CellContent/Media/FileWrapper.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
const Wrapper = styled(Flex)`
position: relative;
border-radius: 50%;
width: 26px;
height: 26p... |
src/routes/searchTable/SearchForm.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import { searchForm } from '../../utils'
import {
Modal, Form, Input, Row, Col, Button, DatePicker, Checkbox, Icon,
Select, InputNumber, Switch, Radio,Slider, Upload,
Table, Breadcrumb,
} from 'antd'
import moment fr... |
react-vr/Asteriods/v2/components/Asteroid02.js | nikgraf/webvr-experiments | import React from 'react';
import {Animated, asset, Mesh, View} from 'react-vr';
import Easing from 'Easing';
export default class Asteroid02 extends React.Component {
constructor(props) {
super(props);
this.state = {
rotationX: new Animated.Value(0),
rotationZ: new Animated.Value(0),
};
}
... |
client/src/Assistant/Presentation/MietspiegelTable.js | ciex/mietlimbo | // @flow
import React from 'react'
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'
import { constructionDateOptionsTranslations } from '../GenericTranslations'
import { officialDescriptions } from '../GenericInputs/BaseFeaturesInput'
import type { Data } from '../Assistant'
const messages =... |
app/counter/index.js | littlethree/DemoProject | /**
* Redux Demo 01
* 应用中所有的 state 都以一个对象树的形式储存在一个单一的 store 中。
* 惟一改变 state 的办法是触发 action,一个描述发生什么的对象。
* 为了描述 action 如何改变 state 树,你需要编写 reducers。
*/
import React, { Component } from 'react';
//import DevToolsApp from 'remotedev-app';
import configureStore from './store/configureStore';
import Router from './rout... |
src/containers/pages/home/decks/filters/class-selection.js | vFujin/HearthLounge | import React from 'react';
import { icon_filters } from '../../../../../globals/filters';
import Icon from "../../../../../components/icon";
const ClassSelection = ({handleFilterClick, activePlayerClassFilter}) => {
return (
<ul className="class-selection">
{icon_filters.playerClass.filter(icon => icon... |
packages/react/src/components/atoms/contact/Address/Address.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import Address from './index';
export default {
title: 'atoms/contact/Address',
component: Address,
parameters: {
docs: {
page: () => <StoryPage />
}
}
};
export const AddressExample = (args) => <Address {...args} /... |
components/day/MyDay.js | headwinds/bellwoods |
/* eslint-disable */
import React from 'react';
export default class MyDay extends React.Component {
render() {
return (
<div>
<p></p>
</div>
);
}
}
|
js/Player.js | olegk101/test | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import ReactPlayer from 'react-player'
// import { setSearchTerm } from './actionCreators'
import io from 'socket.io-client'
import Radium, { StyleRoot } from 'radium'
import Helmet from "react-helmet"
// import axios fr... |
ui/app/main.js | leapcode/bitmask-dev | //
// main entry point for app execution
//
// This is determined by the 'entry' option in webpack.config.js
//
import React from 'react'
import ReactDOM from 'react-dom'
import PanelSwitcher from 'components/panel_switcher'
import App from 'app'
class Main extends React.Component {
render() {
return React.cre... |
react/features/conference/components/web/Notice.js | gpolitis/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
declare var config: Object;
type Props = {
_message?: string,
};
/**
* Notice react component.
*
* @class Notice
*/
class Notice extends Component<Props> {
... |
src/components/member/receipt/MemberReceiptTable.js | katima-g33k/blu-react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Copy } from '../../../lib/models';
import { formatShortDate } from '../../../lib/dateHelper';
import i18n from '../../../lib/i18n';
import { sortString } from '../../../lib/sort';
import { Table } from '../../general';
export defau... |
app/scripts/modules/index.js | TuxujPes/fe-seed | import React from 'react';
import {RouteHandler} from 'react-router';
class IndexPage extends React.Component {
render() {
return (
<div className="index-wrapper">
<p>Main wrapper</p>
<RouteHandler/>
</div>
);
}
}
export default IndexPage;
|
src/components/MiniStats/MiniStats.js | fechy/retropie-web-gui | import React, { Component } from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import mathjs from 'mathjs';
import * as statsAction from '../../actions/stats';
import s from './MiniStats.css';
const mapStateToProp... |
lib/components/MapUrlTile.js | phantomlds/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The url template of the tile server. The patt... |
src/challenges/react/React_42.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-shapes.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatShapes = (props) => (
<SvgIcon {...props}>
<path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-5.27 9h-3.49l-.73 2H7.89l3.4-9h1.... |
src/svg-icons/image/photo-size-select-large.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectLarge = (props) => (
<SvgIcon {...props}>
<path d="M21 15h2v2h-2v-2zm0-4h2v2h-2v-2zm2 8h-2v2c1 0 2-1 2-2zM13 3h2v2h-2V3zm8 4h2v2h-2V7zm0-4v2h2c0-1-1-2-2-2zM1 7h2v2H1V7zm16-4h2v2h-2V3zm0 16h2... |
src/components/pages/Account/RegisterConfirm.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import IntlStore from '../../../stores/Application/IntlStore';
import RegisterStore fr... |
src/components/Counter/Counter.js | LidaDimitriadi/Poker-React | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
src/js/components/About.react.js | jonkr/windlogger-frontend | import React from 'react';
import _ from 'lodash';
const About = React.createClass({
render() {
const sensors = this.props.sensors.items;
const cntViva = _.filter(sensors, function (s) {
return s.type == 'viva'}).length;
const cntSMHI = _.filter(sensors, function (s) {
return s.type == '... |
lib/head.js | giacomorebonato/next.js | import React from 'react'
import PropTypes from 'prop-types'
import sideEffect from './side-effect'
class Head extends React.Component {
static contextTypes = {
headManager: PropTypes.object
}
render () {
return null
}
}
export function defaultHead () {
return [<meta charSet='utf-8' className='next... |
components/panelled/timeline/settings/index.js | marrus-sh/mastodon-go | // <PanelledTimelineSettings>
// ==========================
// Our timeline settings are just a list of toggles and inputs,
// broken up into sections.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'r... |
src/Block/Block.stories.js | boldr/boldr-ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import Block from './Block';
storiesOf('Block', module).add('default', () =>
<Block>This is a block. Literally just a padded white area.</Block>,
);
|
assets/jqwidgets/demos/react/app/treegrid/validation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.expandRow(1);
this.refs.myTreeGrid.expandRow(2);
this.refs.myTreeGrid.expandR... |
laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | LuisLedger/datacar | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
examples/js/remote/remote-alternative.js | AllenFang/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteAlternative extends React.Component {
constructor(props) {
super(props);
}
remote(remoteObj) {
// Only cell editing, insert and delete row will be handled by remote store
... |
app/components/post_textbox/components/paper_clip_icon.js | csduarte/mattermost-mobile | // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import Svg, {G, Path} from 'react-native-svg';
export default class PaperClipIcon extends React.Component {
static propTypes = {
width: React.PropTypes.number.isRequir... |
packages/material-ui-icons/src/Loupe.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /></g>
, 'Loupe');
|
src/index.js | whphhg/vcash-electron | /**
* Vcash Electron GUI
* Copyright (C) 2015-2018, whphhg
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... |
packages/material-ui-icons/src/AirlineSeatReclineExtra.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AirlineSeatReclineExtra = props =>
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0-2.74-1.08... |
components/LibraryListItemColumnThree.js | react-community/native-directory | import React from 'react';
import * as SVG from '../common/svg';
import { getTimeSinceToday } from '../common/datetime';
import { StyleSheet, css } from 'glamor/aphrodite';
import Link from '../components/Link';
import LibraryListColumn from '../components/LibraryListColumn';
const renderListItem = (data, index) =>... |
components/common/button/index.js | marrus-sh/mastodon-go | // <CommonButton>
// ==============
// This is a simple button. It may also be used to create links with
// a button-like appearance or function. There are a lot of props
// to cover a vast number of use-cases, but each one is optional. That
// said, you should always at least provide a `title` for the button.... |
src/interface/icons/Plus.js | yajinni/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/plus/674201/
// Plus by Galaxicon from the Noun Project
const Icon = ({ ...other }) => (
<svg viewBox="9 9 81 81" xmlns="http://www.w3.org/2000/svg" className="icon" {...other}>
<g transform="translate(0,-952.36218)">
<path d="m 36,964.36216 0,2... |
src/svg-icons/action/done.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDone = (props) => (
<SvgIcon {...props}>
<path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>
</SvgIcon>
);
ActionDone = pure(ActionDone);
ActionDone.displayName = 'ActionDone';
ActionDone.mui... |
src/app/routes.js | diegoangel/erp-frontend | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from 'app/AppContainer';
import Dashboard from 'modules/dashboard/DashboardContainer';
import Inventory from 'modules/inventory/InventoryContainer'
import KitList from 'modules/inventory/KitListContainer'
import KitShow from 'module... |
react-router-tutorial/lessons/09-index-links/index.js | zerotung/practices-and-notes | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
import Home from './modules/Home'
render((
<Rout... |
src/containers/layout/Ugc/Ugc.js | max-gram/react-saga-universal | import React from 'react'
import PropTypes from 'prop-types'
import { Grid, Row, Col } from 'react-flexbox-grid'
import css from './Ugc.css'
const Ugc = ({data, className, ugcStyles}) => {
return (
<section className={className ? className : css.section}>
<Grid fluid>
{
<Row center="xs" ... |
admin/src/components/PopoutListItem.js | ligson/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTypes.bool,
label: React.PropTypes.str... |
app/containers/app.js | conroywhitney/react-native-todo | import React from 'react'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import appReducer from '../reducers'
import TodoApp from './todoApp'
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore)
const store = createStoreWith... |
packages/wix-style-react/src/Checkbox/Checkbox.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import CheckboxChecked from 'wix-ui-icons-common/system/CheckboxChecked';
import CheckboxIndeterminate from 'wix-ui-icons-common/system/CheckboxIndeterminate';
import { st, classes } from './Checkbox.st.css';
import Text from '../Text';
import { withFocusab... |
app/javascript/flavours/glitch/features/notifications/components/filter_bar.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'flavours/glitch/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: ... |
src/components/font-list/index.js | carvallegro/font-comparator | import React from 'react'
import ListItem from './list-item'
import { Wrapper } from './style'
const FontListJSX = () => <Wrapper>
<ListItem />
<ListItem />
</Wrapper>
export default FontListJSX
|
fields/types/location/LocationFilter.js | dryna/keystone-twoje-urodziny | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
Grid,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
ret... |
examples/js/selection/demo.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import SingleSelectTable from './single-select-table';
import MultiSelectTable from './multi-select-table';
import ClickToSelectTable from './click-to-select-table';
import DefaultSelectTable from './default-select-table';
import SelectBgColorTable from './select-bgcol... |
src/svg-icons/device/battery-90.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.