path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/app/components/pages/components/List/ExampleMessages.js | matthewoates/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import {grey400, darkBlack, lightBlack} from 'material-ui... |
examples/04 Sortable/Stress Test/index.js | jowcy/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class SortableStressTest extends Component {
constructor(props) {
super(props);
// Avoid rendering on server because the big data list is generated
this.state = { shouldRender: false };
}
componentDidMount(... |
index.js | UpBeet/tree-of-scheherazade | import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './src/containers/App';
import reducers from './src/reducers';
const store = createStore(reducers);
const rootElement = document.getElementById('root');
require('... |
app/containers/App/index.js | iFatansyReact/react-boilerplate-imagine | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
src/screens/transitions/sharedElementTransitions/Masonry/Item.js | nanomish/a9 | import React from 'react';
import {StyleSheet, View, Text, Image} from 'react-native';
import {SharedElementTransition} from 'react-native-navigation';
const SHOW_DURATION = 240;
const HIDE_DURATION = 200;
class Item extends React.Component {
static navigatorStyle = {
navBarHidden: true,
drawUnderNavBar: t... |
src/parser/shared/modules/items/bfa/crafted/DarkmoonDeckFathoms.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import ItemDam... |
lib/IconButton/IconButton.js | folio-org/stripes-components | /**
* Icon Button
*/
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from '../Icon';
import css from './IconButton.css';
import Badge from '../Badge';
const IconButton = React.forwardRef(({
icon,
autoFocus,
... |
webapp/app/components/EditGroup/Form/GroupRights/SaveRestoreMode/index.js | EIP-SAM/SAM-Solution-Server | //
// Component save & restore mode group rights form edit group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import styles from 'components/EditGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditGroupFormGroupRight... |
components/dataset/discussions/discussion.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
import ReplyIcon from 'react-icons/lib/fa/mail-reply'
import CheckIcon from 'react-icons/lib/fa/check'
import RequireAuth from '../../require-auth'
import Button from '../../button'
import Form from './form'
import M... |
app/components/ToggleOption/index.js | stephme/react-specly | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
docs/app/Examples/elements/Button/Types/ButtonExampleButton.js | ben174/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleButton = () => (
<Button>
Click Here
</Button>
)
export default ButtonExampleButton
|
client/components/Flass/Upload/VideoInfo/UploadOptionsBox.js | Nexters/flass | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './uploadOptionsBox.scss';
import Options from './img/options.png';
import Options2x from './img/options@2x.png';
import Options3x from './img/options@3x.png';
import Button from '~/components/FlassCommon/Button';
const propTypes = {
... |
js/graphiql.js | faassen/relaypy | import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
import 'babel/polyfill';
import 'graphiql/graphiql.css';
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
method: 'post',
headers: { ... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { changeComposeSensitivity } from 'mastodon/actions/compose';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
... |
src/SwipeView/index.js | Andruschenko/Fakesinki | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image
} from 'react-native';
import _ from 'lodash';
import SwipeCards from '../react-native-swipe-cards/SwipeCards';
import { userConfidence } from '../util/userConfidence';
import Card from './components/Card';
import NoMoreCards fr... |
components/Fonts/Fonts.js | vnglst/converter2 | //
// Copyright (c) 2016 by Koen van Gilst (@vnglst) | MIT license
//
import React from 'react';
const fontScript = { __html:
`WebFont.load({ google: { families: [` +
`'Droid+Serif:400,700,400italic'` +
`] } })`,
};
function Fonts() {
return (
<div>
<script src="https://ajax.googleapis.com/ajax/lib... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Table.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "size", "bordered", "borderless", "striped", "dark", "hover", "responsive", "tag", "responsiveTag", "innerRef"];
impo... |
www/static/src/admin/components/UserPage.js | wmk223/firekylin | import React from 'react';
import autobind from 'autobind-decorator';
import BaseComponent from './BaseComponent';
@autobind
class UserPage extends BaseComponent {
componentDidMount() {
this.subscribe(
);
}
render() {
return (
<div className="UserPage page">
<div className="tit... |
src/components/Content.js | PatrickHai/react-client-changers | import React from 'react';
import Textblocks from './Textblocks';
import Desc from './Desc';
class Content extends React.Component{
render(){
let notes = this.props.data.use_note;
return (
<section className="desc content">
{
notes.map((note) => {
if(note.title == '权益亮点'){
... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/DropdownButton.js | Akkuma/npm-cache-benchmark | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
RNApp/node_modules/eslint-config-airbnb/test/test-react-order.js | abhaytalreja/react-native-telescope | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
expense-manager-app/src/components/NotFoundPage.js | VeeShostak/Expense-Manager | import React from 'react';
import { Link } from 'react-router-dom';
const NotFoundPage = () => (
<div>
404 - <Link to="/">home</Link>
</div>
);
export default NotFoundPage;
|
examples/server/server.js | reactjs/react-router-redux | /*eslint-disable no-console */
import express from 'express'
import serialize from 'serialize-javascript'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackConfig from './webpack.config'
import React from 'react'
import { renderToString } from 'react-dom/server'
imp... |
app/components/ProgressBar/index.js | darrellesh/redux-react-boilerplate | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
writeExampleWebpack2Middleware/src/js/containers/Header.js | fengnovo/webpack-react | import React from 'react'
import { ADD } from '../actions'
import { dispatch } from 'redux'
import { connect } from 'react-redux'
//todo输入框
class Header extends React.Component {
constructor (props) {
console.log(props)
super(props)
this.handlePush = this.handlePush.bind(this)
}
... |
src/popup/components/subtitle/SubtitleSyncControls.js | mazenbesher/sub_player_chrome_extension | import React from 'react';
import ReactDOM from 'react-dom';
export class SubtitleSyncControls extends React.Component {
render() {
const { subId } = this.props;
return (
<div id={`subtitle_sync_controls_${subId}`}>
<div id={`subtitle_controls_${subId}`}>
... |
examples/official-storybook/stories/addon-viewport/default.stories.js | storybooks/react-storybook | import React from 'react';
import { styled } from '@storybook/theming';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
const Panel = styled.div();
export default {
title: 'Addons/Viewport',
parameters: {
viewport: {
viewports: INITIAL_VIEWPORTS,
},
},
};
export const DefaultFn = ()... |
SpriteExampleSwift3/index.android.js | williamngan/react-native-sprite | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class SpriteExample extends Component {
render() {
return (
<View style={styles.container}>
... |
js/containers/Transaction.js | andrepcg/budgety-native | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Transaction from '~/components/screens/Transaction';
const mapStateToProps = state => ({});
const mapDispatchToProps = dispatch => ({});
export default connect(mapStateToProps, mapDispatchToPr... |
admin/client/App/screens/Home/components/Section.js | andrewlinfoot/keystone | import React from 'react';
import getRelatedIconClass from '../utils/getRelatedIconClass';
class Section extends React.Component {
render () {
const iconClass = this.props.icon || getRelatedIconClass(this.props.id);
return (
<div className="dashboard-group" data-section-label={this.props.label}>
<div class... |
website/components/Navigation.js | Pop-Code/keystone | import React from 'react';
import Link from 'gatsby-link';
import { rhythm, scale } from '../utils/typography';
import MenuIcon from 'react-icons/lib/md/menu';
import gray from 'gray-percentage';
import Headroom from 'react-headroom';
import theme from '../theme';
import invertedLogo from '../images/logo-inverted.svg'... |
src/assets/js/top.js | task-k/react_prototype | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
// import App from './App'
render(
// <Provider>
// <App/>
// </Provider>
<div className="wraps">
<h2>webpack-dev-serverでビルドが走らない問題、検証中</h2>
なぜか<br />
hello, world 2!!<br />
ここは今hotでうごかしていうr
react + redux ... |
packages/icons/src/md/image/Gradient.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdGradient(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M22 18h4v4h-4v-4zm-4 4h4v4h-4v-4zm8 0h4v4h-4v-4zm4-4h4v4h-4v-4zm-16 0h4v4h-4v-4zM38 6c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H10c-2.2 0-4-1.8-4-4V10c0-2.... |
ajax/libs/react-instantsearch/4.3.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.3.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/components/Votes.js | Bynno/politicheck-app | import React from 'react';
function truncate(str) {
if (str.length > 40) {
let i = 0;
while(str[i].match(/[a-zA-Z]/) || i < 40) {
i++;
}
return str.substr(0, i)+'...';
} else {
return str;
}
}
function ifShow(obj, no) {
return (obj ? obj : no);
}
export default React.createClass({
... |
client/share_trader/js/app.js | enzovici/PoC-TruthChain | // Install necessary polyfills (see supported browsers) into global
import 'core-js/es6';
import 'core-js/stage/4';
import 'isomorphic-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import ShareTrader from './components/share_trader';
import '../../lib/css/scss/main.scss';
const App = () => (... |
src/native.js | davidkpiano/react-redux-form | /* eslint-disable react/prop-types */
import React from 'react';
import {
MapView,
Picker,
DatePickerIOS,
DatePickerAndroid as RNDatePickerAndroid,
Switch,
TextInput,
SegmentedControlIOS,
Slider,
Text,
View,
} from 'react-native';
import SegmentedControlAndroid from 'react-native-segmented-control-t... |
src/svg-icons/content/unarchive.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
client/packages/core-dashboard-worona/src/dashboard/router-dashboard-extension-worona/routes/index.js | worona/worona | /* eslint-disable react/prefer-stateless-function, react/no-multi-comp, react/prop-types */
/* eslint-disable prefer-template, react/prefer-es6-class, react/jsx-filename-extension */
import React from 'react';
import Helmet from 'react-helmet';
import { dep } from 'worona-deps';
import { connect } from 'react-redux';
i... |
src/client.js | sammosampson/relay-todomvc | import createHashHistory from 'history/lib/createHashHistory';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import {Router} from 'react-router';
import ReactRouterRelay from 'react-router-relay';
import RelayLocalSchema from 'relay-local-schema';
import routes from './r... |
server/sonar-web/src/main/js/apps/account/components/ProjectNotifications.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... |
src/svg-icons/editor/border-inner.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderInner = (props) => (
<SvgIcon {...props}>
<path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ... |
src/app/routes/dashboard/components/Revenue.js | backpackcoder/world-in-flames | import React from 'react'
import FlotChart from '../../../components/graphs/flot/FlotChart'
export default class Revenue extends React.Component {
state = {
targetsShow: true,
actualsShow: true,
signupsShow: true
};
getData() {
let data = [];
if (this.state.targetsShow) data.push(this.getTa... |
src/routes/app/routes/forms/routes/steppers/components/Steppers.js | ahthamrin/kbri-admin2 | import React from 'react';
import QueueAnim from 'rc-queue-anim';
import HorizontalLinear from './HorizontalLinear';
import VerticalLinear from './VerticalLinear';
import HonrizontalNonLinear from './HonrizontalNonLinear';
import VerticalNonLinear from './VerticalNonLinear';
const Stepper = () => (
<div className="... |
src/app/App.js | petersn-github/nicolas | import React from 'react';
import axios from 'axios';
import './App.css';
// es6 的类和继承是语法糖,js的继承还是基于原型的继承
// 统一 js 驼峰命名方式
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
docs:[] // 查询结果
};
this.handleKeyDown = this.handleKeyDown.bind(this);
}
handl... |
lib/blocks/ol.js | pairyo/kattappa | import React from 'react';
import Action from '../utils/action';
import LI from '../components/listitem';
import BlockControl from '../components/blockcontrol';
import {uuid} from '../utils';
class BlockOL extends React.Component {
constructor(props) {
super(props);
this.onContentChanged = this.onContentC... |
examples/todo/js/components/TodoList.js | michaelchum/relay | /**
* 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/components/Navigation/Navigation.js | Capgemini/mesos-ui | import React from 'react';
import { Menu } from 'material-ui';
class Navigation extends React.Component {
static propTypes = {
menuItems: React.PropTypes.array
};
static contextTypes = {
router: React.PropTypes.func,
muiTheme: React.PropTypes.object
};
constructor() {
super();
this.get... |
src/svg-icons/maps/local-post-office.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
core/src/plugins/gui.ajax/res/js/ui/HOCs/resolution/resolution.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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... |
examples/src/components/Creatable.js | mcls/react-select | import React from 'react';
import Select from 'react-select';
var CreatableDemo = React.createClass({
displayName: 'CreatableDemo',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string
},
getInitialState () {
return {
multi: true,
multiValue: [],
options: [
{ value: 'R', labe... |
src/svg-icons/hardware/tv.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
web/static/app/containers/AddChore.js | jochakovsky/chores | import React from 'react';
import { connect } from 'react-redux';
import { addChore } from '../actions';
let AddChore = ({ dispatch }) => {
let name, date;
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!name.value.trim() || !date.value.trim()) {
return;
}... |
src/components/CustomTooltip.js | allsportster023/imageViewer | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import '../styles/main.css';
class CustomTooltip extends React.Component {
render() {
const {active} = this.props;
if (active) {
const {payload, label} = this.props;
return (
... |
webapp-src/src/hutch.js | babelouest/hutch | /**
*
* Hutch front-end application
*
* Copyright 2021 Nicolas Mora <mail@babelouest.org>
*
* License AGPL
*
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18next from 'i18next';
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetec... |
packages/wix-style-react/src/MessageBox/docs/index.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Alert from './Alert';
import DestructiveAlert from './DestructiveAlert';
import Announcement from './Announcement';
import { storySettings } from './storySettings';
import PremiumModal from './PremiumModal';
import CustomModal from './Custo... |
src/esm/components/navigation/header-nav/components/right.js | KissKissBankBank/kitten | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
export var Right = function Right(_ref) {
var children = _ref.children,
className = _ref.className,
padded = _ref.padded;
return /*#__PURE__*/React.createElement("div", {
className: classNames('k-Head... |
src/navigation/index.js | visa-innovation-sf/ldn-retail-demo | /**
* App Navigation
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import {
Text
} from 'react-native';
import { Actions, Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Com... |
src/List.js | lzcmaro/react-ratchet | import React from 'react';
import classNames from 'classnames';
import ratchetUtils from './utils/ratchetUtils';
import ListItem from './ListItem';
let List = React.createClass({
getDefaultProps(){
return {
ratClass: 'table-view'
}
},
render(){
return (
<ul... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | musashino205/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
app/components/Toggle/index.js | shaggyshelar/CLA | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
app/components/common/NewSelect.js | klpdotorg/tada-frontend | import React from 'react';
import Select from 'react-select';
class NewSelect extends React.Component {
state = {
selectedOption: 'one',
selectedOption1: 'two',
selectedOption2: 'one',
};
handleChange = (selectedOption) => {
this.setState({ selectedOption });
// selectedOption can be null whe... |
MobileApp/node_modules/react-native-elements/src/buttons/Button.js | VowelWeb/CoinTradePros.com | import PropTypes from 'prop-types';
import React from 'react';
import {
TouchableNativeFeedback,
TouchableHighlight,
StyleSheet,
View,
Platform,
ActivityIndicator,
Text as NativeText,
} from 'react-native';
import colors from '../config/colors';
import Text from '../text/Text';
import MaterialIcon from 'r... |
docs/app/Examples/modules/Sidebar/SlideOut/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SidebarVariationsExamples = () => (
<ExampleSection title='Slide Out'>
<ComponentExample
title='Left Slide Out'
... |
src/components/NewProductPhotoPicker.js | thrifty-p2p/thrifty-client | import React, { Component } from 'react';
import {StyleSheet, Text, View, Platform} from 'react-native';
import CameraRollPicker from 'react-native-camera-roll-picker';
import {addNewProductImages} from '../actions/product.actions';
import {Header, CardSection, Button} from './common';
class NewProduct extends Compon... |
src/PageItem.js | adampickeral/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/components/TabLink.js | patrik-piskay/react-tabs-redux | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export const defaultActiveStyle = {
fontWeight: 'bold',
};
class TabLink extends Component {
static displayName = 'TabLink';
handleClick = e => {
this.props.handleSelect(this.props.to, this.pr... |
src/svg-icons/communication/call-split.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... |
src/components/Counter/Counter.js | 38Slava/redux-webrtc | 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/components/ReplOutputHTML.js | princejwesley/Mancy | import React from 'react';
import _ from 'lodash';
import ReplConstants from '../constants/ReplConstants';
import md5 from 'md5';
export default class ReplOutputHTML extends React.Component {
constructor(props) {
super(props);
this.state = {
html: false
};
this.onToggleHTMLView = this.onToggleH... |
src/components/History/HistoryFooter.js | spartan082189/eCartCloud | import React from 'react';
import {StyleSheet, css} from 'aphrodite';
import RaisedButton from 'material-ui/RaisedButton';
import FontIcon from 'material-ui/FontIcon';
import classNames from 'classNames';
import colors from '~/utils/colors';
import {Link} from 'react-router';
const HistoryFooter = () => {
return (
... |
app/index.js | hotosm/osm-analytics | import polyfill from './polyfill'
import { Router, Route, IndexRoute, useRouterHistory } from 'react-router'
import { createHashHistory } from 'history'
import { syncHistoryWithStore } from 'react-router-redux'
import { Provider } from 'react-redux'
import ReactDOM from 'react-dom'
import React from 'react'
import Ap... |
src/svg-icons/device/signal-wifi-0-bar.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi... |
src/routes/privacy/index.js | medevelopment/updatemeadmin | /**
* 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... |
web/index.js | boundlessgeo/spatialconnect-server | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { Router, Route, IndexRoute, browserHistory } from 'react-router'... |
src/components/Home.js | bernatixer/ConnectedCars | import React, { Component } from 'react';
import { Link, Redirect } from 'react-router-dom';
import PlacesAutocomplete, {
geocodeByAddress,
getLatLng,
} from 'react-places-autocomplete';
import axios from 'axios';
const Home = props => (
<div className="home">
<SetUp handleGeo={props.handleGeo} />
... |
react16-feature/src/index.js | wefine/reactjs-guide | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
app/components/importAppDialog.js | JustinBeckwith/trebuchet | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
import * as AppEvents from './..... |
src/svg-icons/file/cloud-off.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
client/app/scripts/components/node-details/node-details-table-headers.js | alban/scope | import React from 'react';
import { defaultSortDesc, getTableColumnsStyles } from '../../utils/node-details-utils';
import { NODE_DETAILS_TABLE_CW, NODE_DETAILS_TABLE_XS_LABEL } from '../../constants/styles';
export default class NodeDetailsTableHeaders extends React.Component {
handleClick(ev, headerId, currentSor... |
src/svg-icons/device/brightness-low.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
packages/slate-html-serializer/test/serialize/inline-with-data.js | AlbertHilb/slate |
/** @jsx h */
import React from 'react'
import h from '../helpers/h'
export const rules = [
{
serialize(obj, children) {
if (obj.kind == 'block' && obj.type == 'paragraph') {
return React.createElement('p', {}, children)
}
if (obj.kind == 'inline' && obj.type == 'link') {
ret... |
routes.js | mattdennewitz/react-helmet-example | import React from 'react';
import Router from 'react-router';
import App from './components/App';
import Home from './components/Home';
import About from './components/About';
import Content from './components/Content';
import BlogPosts from './components/BlogPosts';
/* create a group of routes with nesting */
let ro... |
src/index.js | enapupe/know-your-bundle | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Provider } from 'react-redux'
import './bootstrap'
import configureStore from './store/configure-store'
import routes from './routes'
co... |
app/scripts/ConfigViewMenu.js | hms-dbmi/higlass | import React from 'react';
import PropTypes from 'prop-types';
import ContextMenuContainer from './ContextMenuContainer';
import ContextMenuItem from './ContextMenuItem';
import NestedContextMenu from './NestedContextMenu';
// Styles
import '../styles/ContextMenu.module.scss';
import { OPTIONS_INFO, THEME_DARK } fro... |
src/components/form/slider.js | woshisbb43/coinMessageWechat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classNames from '../../utils/classnames';
/**
* A Slider is an element used to set a value, good choice when users think it as relative quantity rather than value
*
*/
class Slider extends Compone... |
client/modules/User/pages/UserListPage.js | svolkov92/TextStreams | /**
* Created by Volkov on 30.10.2016.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import UserListItem from '../components/UserListItem/UserListItem';
import { Table } from 'react-bootstrap';
import styles from './UserStyles.css';
import { updateUserRequest } from '../UserActio... |
src/server/middleware/render.js | abramz/champion-select | import React from 'react';
import ReactDOM from 'react-dom/server';
import UniversalRouter from 'universal-router';
import routes from '../../routes';
import configureStore from '../../store/configureStore';
import { setRuntimeVariable } from '../../actions/runtime';
import assets from './assets'; // eslint-disable-lin... |
client/src/containers/ResultErrors.js | Bekzod13/DrawSketch | import React from 'react';
import { UncontrolledAlert } from 'reactstrap';
class ResultErrors extends React.Component {
render() {
const errors = this.props.errors;
if (errors) {
return (
<div className="error-messages">
{
Object.keys(errors).map(key => {
re... |
client/src/components/todolist/todo_list.js | pierrekraemer/modular-react-node-app | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ListGroup } from 'reactstrap';
import TodoListItem from 'components/todolist/todo_list_item';
import { removeTodo, updateTodo } from 'actions/todolist';
const TodoList = (props) => (
<ListGroup>
{ props.... |
components/webrtc/Translations.js | slidewiki/slidewiki-platform | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'semantic-ui-react';
import ISO6391 from 'iso-639-1';
import { Microservices } from '../../configs/microservices';
import { isEmpty } from '../../common';
class Translations extends React.Component {
constructor(props) {
... |
source/client/index.js | sylvainlap/es6-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
class HelloWorld extends React.Component {
render() {
return <h1>Hello World!</h1>;
}
}
ReactDOM.render(
<HelloWorld />,
document.getElementById('root')
);
|
src/utils/childrenValueInputValidation.js | jakubsikora/react-bootstrap | import React from 'react';
import { singlePropFrom } from './CustomPropTypes';
const propList = ['children', 'value'];
const typeList = [React.PropTypes.number, React.PropTypes.string];
export default function valueValidation(props, propName, componentName) {
let error = singlePropFrom(propList)(props, propName, co... |
sample/components/loading-bar.js | LINKIWI/react-elemental | import React from 'react';
import { LoadingBar, Spacing, Text, colors } from 'react-elemental';
const SampleLoadingBar = () => (
<div>
<Spacing size="huge" bottom>
<Text size="gamma" color="primary" uppercase>
Loading bar
</Text>
<Text>
Component to indicate indeterminate progre... |
packages/wix-style-react/src/AnnouncementModalLayout/docs/examples/FootnoteExample.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
class FootnoteExample extends React.Component {
render() {
return (
<AnnouncementModalLayout
illustration={'generic_post.svg'}
primaryButtonText="Start Now"
linkText="Learn More"
title="Import Posts From WordPress"
onCl... |
app/javascript/mastodon/features/standalone/compose/index.js | lindwurm/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
wrappers/yaml.js | umbchackers/club-site-2016 | import React from 'react'
import yaml from 'js-yaml'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
old/src/components/Canvas.js | MattMcFarland/react-darkroom | import React from 'react';
import { Transform, CropBox } from '../utils';
export default class Canvas extends React.Component {
constructor(props) {
super(props);
this.getBitmapData = this.getBitmapData.bind(this);
this.renderCanvas = this.renderCanvas.bind(this);
// private properties
this._prev... |
src/svg-icons/action/assessment.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssessment = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
ActionA... |
src/views/Statistic/StatisticGroup.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useWidthProp,
} from '../../lib'
import Statistic from './Statistic'
/**
* A group of statistics.
*/
funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.