path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/pages/accounts/PasswordForm.js | TimothyBom/react-redux-instagram | import React from 'react'
import validator from 'validator'
import classnames from 'classnames'
import jwt from 'jsonwebtoken'
import { isEmpty } from 'lodash'
import config from '../../utils/config'
class PasswordForm extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointingTwo.js | clemensw/stardust | import React from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'
const DropdownExamplePointingTwo = () => (
<Menu vertical>
<Menu.Item>
Home
</Menu.Item>
<Dropdown text='Messages' pointing='left' className='link item'>
<Dropdown.Menu>
<Dropdown.Item>Inbox</Dropdown.Item>
... |
ui/app/components/content/index.js | lobobabysaurus/TicTacToeOnlineUI | import React from 'react';
export default class Content extends React.Component {
render() {
return (
<div>
<p className='content-text'>Content Section</p>
</div>
);
}
}
|
ownmusicweb/react_player/src/index_old.js | Lightshadow244/OwnMusicWeb | import React from 'react';
import ReactDOM from 'react-dom';
import bootstrap from 'bootstrap';
import './bootstrap.css';
import './index.css';
import IcoPlus from 'react-icons/lib/ti/plus';
import IcoPlay from 'react-icons/lib/ti/notes';
//import PropTypes from "prop-types";
import ReactAudioPlayer from 'react-audio-... |
fields/types/location/LocationFilter.js | Adam14Four/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_O... |
packages/react-router-dom/modules/NavLink.js | d-oliveros/react-router | import React from 'react'
import PropTypes from 'prop-types'
import Route from './Route'
import Link from './Link'
/**
* A <Link> wrapper that knows if it's "active" or not.
*/
const NavLink = ({
to,
exact,
strict,
location,
activeClassName,
className,
activeStyle,
style,
isActive: getIsActive,
a... |
examples/src/index.js | ruebel/waveform-react | import 'babel-polyfill';
import './styles/global';
import React from 'react';
import { render } from 'react-dom';
import { ThemeProvider } from 'styled-components';
import App from './components/App';
import theme from './styles/theme';
const appElement = document.getElementById('root');
render(
<ThemeProvider the... |
android/source/component/hintMessage.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
View,
Text,
Dimensions
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { CommonStyles, StyleConfig } from '../style';
import PureRenderMixin from 'react-addons-pure-render-mixin';
const { height, width } = Dimensions.get('windo... |
src/renderer/components/DevTools.js | marcus-sa/Venobo | import DockMonitor from 'redux-devtools-dock-monitor'
import LogMonitor from 'redux-devtools-log-monitor'
import { createDevTools } from 'redux-devtools'
import React from 'react'
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor />
</DockM... |
src/slimReduxReact.js | aGuyNamedJonas/slim-redux-react | import React from 'react';
import { getNotifyingSelectorCreator, areArgumentsShallowlyEqual } from './selector';
function slimReduxReact(params) {
const WrappedComponent = params.component;
const changeTriggers = params.changeTriggers || {};
const subscriptions = params.subscriptions || {};
const display... |
client-web/client-web/src/components/MainSearch.js | ppsari/final | import React from 'react';
import { connect } from 'react-redux'
import { Form } from 'reactstrap';
import countries from 'countries-cities'
import { Link } from 'react-router-dom';
import $ from 'jquery';
import './MainSearch.css'
import { searchProperty } from '../actions/index.js'
import {getRentDataAction,getSellD... |
example/example.js | yzsolo/react-native-scrolltotop | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
ListView,
TouchableHighlight,
ScrollView,
StyleSheet,
Text,
View,
RefreshControl,
} from 'react-native';
import Platform from 'Platform';
//加载更多View组... |
packages/veritone-widgets/src/widgets/OAuthLoginButton/index.js | veritone/veritone-sdk | import React from 'react';
import { connect } from 'react-redux';
import { func, bool, string, oneOf } from 'prop-types';
import { modules } from 'veritone-redux-common';
const {
user: { userIsAuthenticated },
auth: { requestOAuthGrant, requestOAuthGrantImplicit },
config: { getConfig }
} = modules;
import { OAu... |
src/collections/form.js | jessy1092/react-semantify |
import React from 'react';
import filter from '../filter';
import Div from '../commons/div';
const defaultClassName = 'ui form';
const componentName = 'Form';
const Form = new filter(Div)
.classGenerator(defaultClassName)
.getComposeComponent(componentName);
export default Form;
|
src/containers/Loader/index.js | ipostol/sociometry-react | import React, { Component } from 'react';
import Loader from 'react-loader'
import ProgressBar from 'react-progress-bar-plus'
import { connect } from 'react-redux';
@connect(state => ({
load: state.loader.load
}))
export default class ReactLoader extends Component {
render() {
return (
<ProgressBar perce... |
packages/bonde-admin-canary/src/components/Tourtip/hoc.js | ourcities/rebu-client | import React from 'react'
import { connect } from 'services/redux'
import * as actions from './redux/actions'
const mapDispatchToProps = { initializeTour: actions.onStart }
const hoc = ({ init } = {}) => Component => connect(undefined, mapDispatchToProps)(
class extends React.Component {
componentDidMou... |
new-lamassu-admin/src/components/Modal.js | naconner/lamassu-server | import { makeStyles, Modal as MaterialModal, Paper } from '@material-ui/core'
import classnames from 'classnames'
import React from 'react'
import { IconButton } from 'src/components/buttons'
import { H1, H4 } from 'src/components/typography'
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/... |
src/boot.js | dfilipidisz/overwolf-hots-talents | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import * as Reducers from './reducers';
import './sass/index.scss';
import './sas... |
ui/src/js/offer/ThanksForOffer.js | Dica-Developer/weplantaforest | import counterpart from 'counterpart';
import React, { Component } from 'react';
import IconButton from '../common/components/IconButton';
require('./projectOffer.less');
export default class ProjectOfferPage extends Component {
constructor() {
super();
}
setThankYou() {
this.props.setThankYou(false);
... |
app/components/Utils/Button/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'utils/styled-components';
import colors from 'theme/color';
const StyledButton = styled.button`
cursor: pointer;
color: ${(props) => props.color};
border: 1px solid ${(props) => props.color};
transition: all 0.5s ease;
&:hover... |
src/App/index.js | findjanice/node-api-server | /*** @jsx React.DOM */
import React from 'react';
import { RouteHandler } from 'react-router';
var App = React.createClass({
render: function() {
return (
<div className="wrapper">
<header>
<h1><a href="#/">Pokemon API Server</a></h1>
</header... |
src/components/SocialIcon.js | patitonar/personal-website | import React from 'react';
const SocialIcon = ({ link, icon }) => (
<a href={link}>
<svg style={{margin: '13px'}} width="50" height="50" viewBox="0 0 512 512">
<path d={icon} />
</svg>
</a>
);
export default SocialIcon;
|
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Base/Header/ComposeHeader.js | abimarank/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
app/javascript/mastodon/containers/status_container.js | salvadorpla/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
unreblog,
unfavourite,
pin,
unpin,
}... |
src/svg-icons/image/tag-faces.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTagFaces = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.... |
src/components/App.js | masonforest/stellar.dance | import React, { Component } from 'react';
import RecentTransactions from './RecentTransactions';
import Identicon from "./Identicon";
import Balance from "./Balance";
import Address from "./Address";
import FundWithFriendbotButton from "./FundWithFriendbotButton";
export default class App extends React.Component {
c... |
src/svg-icons/action/settings-remote.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsRemote = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41... |
src/components/MemberList.js | wookiecookie87/lunch_group_creator_with_reactjs | import React from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {listMembers, deleteMember} from '../store/members/member_actions'
class MemberList extends React.Component {
constructor(props, context) {
super(props, context);
}
render () {
let members = this.props... |
src/router.js | solome/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
src/routes/home/index.js | devcharleneg/twitter-react-app | /**
* 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 Home from './Home';
i... |
src/components/app.js | ercekal/client-side-auth-react | import React, { Component } from 'react';
import Header from './header';
export default class App extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
</div>
);
}
}
|
src/routes/about/index.js | zsu13579/whatsgoinontonight | /**
* 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... |
ui/node_modules/react-bootstrap/src/CollapsableMixin.js | bpatters/eservice | import React from 'react';
import TransitionEvents from 'react/lib/ReactTransitionEvents';
const CollapsableMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
let defaultExpanded = this.props.defaultExpanded != null ?
this.props.... |
src/routes.js | DataSF/open-data-explorer | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import HomePage from './components/HomePage'
import Catalog from './containers/Catalog'
import Dataset from './containers/Dataset'
import DatasetOverview from './containers/DatasetOverview'
import FieldDefinit... |
src/svg-icons/image/filter-5.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter5 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-... |
src/Main/ItemHealingDone.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from 'common/Wrapper';
import connectParser from 'common/connectParser';
class ItemHealingDone extends React.PureComponent {
static propTypes = {
amount: PropTypes.number.isRequired,
approximate: PropTypes.bool,
greaterThan:... |
src/svg-icons/editor/functions.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFunctions = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/>
</SvgIcon>
);
EditorFunctions = pure(EditorFunctions);
EditorFunctions.displayName = 'EditorFunctions... |
examples/todo/js/components/TodoTextInput.js | tmitchel2/relay | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import React from... |
src/shared/js/components/M52Viz.js | datalocale/dataviz-finances-gironde | import React from 'react';
import Sunburst from './Sunburst';
export default function({
m52Hierarchical, M52HighlightedNodes, selectedNode,
donutWidth, outerRadius,
onSliceOvered, onSliceSelected, width, height,
}){
return React.createElement('div', {},
React.createElement(Sunburst, {
... |
src/ui/pages/_detailPageRain.js | e-Ray/web_platform | import React, { Component } from 'react';
import { DetailPage } from '../components/generic';
import { observer } from 'mobx-react';
import { observable } from 'mobx';
import { ref } from '../../api/Auth/_constants';
import { firebaseAuth } from '../../api/Auth/_constants';
@observer
class DetailPageRain extends Co... |
src/svg-icons/editor/linear-scale.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ... |
src/Parser/Hunter/BeastMastery/Modules/Items/Tier20_4p.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/H... |
docs/src/app/components/pages/components/Chip/ExampleArray.js | IsenrichO/mui-with-arrows | import React from 'react';
import Chip from 'material-ui/Chip';
/**
* An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array.
* Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth
* while clicked or touched.
*/
exp... |
src/Site.js | andreypopp/sitegen | /**
* @copyright 2016-present, Sitegen team
* @flow
*/
import React from 'react';
import Meta from 'react-helmet';
type MetaItem = {
toComponent: () => mixed;
};
type SiteProps = {
meta: {
htmlAttributes: MetaItem;
meta: MetaItem;
link: MetaItem;
title: MetaItem;
};
bundle: {js?: string, c... |
docs/app/Examples/modules/Rating/Types/RatingHeartExample.js | jamiehill/stardust | import React from 'react'
import { Rating } from 'stardust'
const RatingHeartExample = () => (
<Rating icon='heart' defaultRating={1} maxRating={3} />
)
export default RatingHeartExample
|
src/common/components/Routes.js | macropodhq/midfield | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import HomePage from '../../pages/home/page';
export default (
<Route path="/" component={App}>
<IndexRoute path="home" component={HomePage} />
</Route>
);
|
src/components/ValidationSummary.js | gearz-lab/react-metaform | import React from 'react';
import Alert from 'react-bootstrap/lib/Alert';
import Glyphicon from 'react-bootstrap/lib/Glyphicon'
const ValidationSummary = React.createClass({
propTypes: {
open: React.PropTypes.bool,
messages: React.PropTypes.array,
onDismiss: React.PropTypes.func
},
... |
packages/bonde-admin/src/components/editor-wysihtml/wysihtml-toolbar-color-picker.js | ourcities/rebu-client | import React from 'react'
import { ColorPicker } from '@/components/color-picker'
if (require('exenv').canUseDOM) require('./wysihtml-toolbar-color-picker.scss')
class WYSIHTMLToolbarColorPicker extends React.Component {
constructor () {
super()
this.state = { color: '#000000' }
}
handleChange ({ hex }... |
src/build/shared/readme-documentation.js | willowtreeapps/react-sapling | import React, { Component } from 'react';
import marked from 'marked';
const readmeMd = require('!!raw!./README.md');
const titleizeKey = (key) => {
return key.replace('.md', '').replace(/[^\w\s]/g, '')
};
let markupModules = [];
let subDocuments = [];
try {
const requireContext = require.context("!!raw!../do... |
src/svg-icons/image/crop.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
src/app/components/navLink.js | benigeri/soapee-ui | import React from 'react';
import cx from 'classnames';
import {Link, State} from 'react-router';
export default React.createClass( {
mixins: [
State
],
activeClassForTo( to ) {
return cx( { active: this.isActive( to ) } );
},
render() {
return (
<li className=... |
html.js | shumarketing/shu-marketing | import React from 'react';
import Helmet from 'react-helmet';
import { prefixLink } from 'gatsby-helpers';
import { TypographyStyle, GoogleFont } from 'react-typography';
import typography from './utils/typography';
const BUILD_TIME = new Date().getTime();
module.exports = React.createClass({
propTypes() {
ret... |
src/docs/examples/TextInputCSSModules/ExampleError.js | wsherman67/UBA | import React from 'react';
import TextInputCSSModules from 'ps-react/TextInputCSSModules';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputCSSModules
htmlId="example-optional"
label="First Name"
name="first... |
src/organisms/cards/SplitCard/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'atoms/Icon';
import LinkWrapper from 'atoms/LinkWrapper';
import Text from 'atoms/Text';
import styles from './split_card.module.scss';
function SplitCard( props ) {
const {
columnLeft,
colu... |
src/components/video_list_item.js | auldsyababua/react-tube | import React from 'react';
//passing 'video' is the same as passing props and calling props.video in the return.
//you are telling js you want only the video property instead of the entire props object.
//Same for onVideoSelect.
const VideoListItem = ({video, onVideoSelect}) => {
const imageURL = video.snippet.thu... |
src/App.js | t-hack/fx | import React, { Component } from 'react';
import Dropdown from './components/Dropdown';
require('./stylesheets/style.scss');
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
targetCurrency : 'USD',
baseCurrency : 'INR',
base: { currency : 'INR'... |
jsx/modules/App.js | NickTaporuk/webpack_starterkit_project | import React from 'react';
import { IndexLink } from 'react-router'
import NavLink from './NavLink';
import Home from './Home'
export default React.createClass({
render() {
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><NavLink to="/" onlyActiveOnIndex={true}>... |
stories/hover-img.story.js | fmakdemir/fm-story-book-react-components | import React from 'react';
import HoverImg from 'components/hover-img';
import { storiesOf, action } from '@kadira/storybook';
// import { createStore } from 'react-redux';
import { createStore } from 'redux'
function todos(state = [], action) {
switch (action.type) {
case 'ADD_TODO':
return state.concat(... |
examples/complex/src/components/simple/index.js | rocjs/roc-package-web-app-react | import React, { Component } from 'react';
import Toggle from 'react-toggle';
import 'react-toggle/style.css?modules=false';
export default class Simple extends Component {
constructor() {
super();
this.state = { enabled: false };
}
render() {
return (
<div>
... |
src/profesor/components/edit/Post.js | zeljkoX/e-learning | import React from 'react';
import {DragSource} from 'react-dnd';
import ItemTypes from './itemTypes';
const postSource = {
beginDrag(props) {
console.log('begin dragging note', props);
return {id: props.index, post: props.post};
}
};
@DragSource(ItemTypes.POST, postSource, (connect) => ({
connectDragSou... |
app/javascript/containers/public/Dashboard.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import { Provider } from 'react-redux';
import configureStore from 'store/configureStore';
import Dashboard from 'components/shared/Dashboard';
const store = configureStore();
export default props => <Provider store={store}><Dashboard {...props} /></Provider>;
|
src/components/wallet/WalletBackup.js | whphhg/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { action, computed, extendObservable } from 'mobx'
import { inject, observer } from 'mobx-react'
import { remote } from 'electron'
import { join, sep } from 'path'
import { dataPath } from '../../utilities/common.js'
/** Ant Design */
import Bu... |
packages/xo-web/src/xo-app/xosan/new-xosan.js | vatesfr/xo-web | import _ from 'intl'
import ActionButton from 'action-button'
import Component from 'base-component'
import getEventValue from 'get-event-value'
import Icon from 'icon'
import Link from 'link'
import React from 'react'
import SingleLineRow from 'single-line-row'
import SortedTable from 'sorted-table'
import Tooltip fro... |
client/budget/net-0.js | jaketrent/gratigoose | import React from 'react'
import styleable from 'react-styleable'
import css from './net-0.css'
import { formatUsd } from '../common/amt'
const { number } = React.PropTypes
function Net0(props) {
return (
<div className={props.css.root}>
<div className={props.css.part}>
<div className={props.css.... |
src/containers/NotFound/NotFound.js | rongkaixia/web-server | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
frontend/src/components/options/change-username/root.js | 1905410/Misago | import moment from 'moment';
import React from 'react';
import FormLoading from 'misago/components/options/change-username/form-loading'; // jshint ignore:line
import FormLocked from 'misago/components/options/change-username/form-locked'; // jshint ignore:line
import Form from 'misago/components/options/change-usernam... |
src/Jumbotron.js | mmarcant/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
componentClass: elementType,
};
const defaultProps = {
componentClass: 'div',
};
class Jumb... |
src/MonthBox.js | yyssc/ssc-grid | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
/**
* MonthBox 只提供给MonthPicker组件使用
*/
const MonthBox = createReactClass({
propTypes: {
value: PropTypes.string,
onClick: PropTypes.func
},
getInitialState() {
return {
value: this... |
src/svg-icons/action/system-update-alt.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
src/js/components/dialogs/dialog-confirm-button/dialog-confirm-button.js | ucev/blog | import React from 'react'
import DialogButton from '../dialog-operation-button'
export default ({ title = '', click = () => {} }) => (
<DialogButton buttonType="confirm" title={title} click={click} />
)
|
app/javascript/mastodon/features/blocks/index.js | imas/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 ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
website/modules/examples/CustomLink.js | asaf/react-router | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
const CustomLinkExample = () => (
<Router>
<div>
<OldSchoolMenuLink activeOnlyWhenExact={true} to="/" label="Home"/>
<OldSchoolMenuLink to="/about" label="About"/>
<hr/>
<Route exact pa... |
src/routes.js | tuanvt/asterixlab | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import NotFoundPage from './components/NotFoundPage.js';
import LandingPage from './components/LandingPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={LandingPage} />
... |
app/routes.js | mersocarlin/auction-app | import React from 'react';
import { Route } from 'react-router';
import App from './containers/app';
import AuctionDetail from './containers/auction-detail';
import Auctions from './containers/auctions';
import Home from './containers/home';
import NoMatch from './containers/no-match';
export default (
<Route comp... |
writeExampleReduxAsync/src/js/App.js | fengnovo/webpack-react | import React, { Component } from 'react';
import { bindActionCreators,dispatch } from 'redux';
import { connect } from 'react-redux';
import { getTest } from './actions';
import Article from './components/Article'
//让组件关联state和action
class App extends React.Component {
constructor(props) {
super(props)... |
fields/types/cloudinaryimage/CloudinaryImageField.js | asifiqbal84/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/src/components/Lightbox';
/**
* TODO:
* - Remove dependency on jQuer... |
src/modules/rideOffer/components/NewRideOffer.js | CaronaBoard/caronaboard-native | import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import { RkText } from 'react-native-ui-kitten'
import styles from './styles/YourRideOffer.style'
import { TextInput } from '../../shared/components/index'
import { LoadingSpinnerView } from '../../shared/components/Loadin... |
client/scripts/components/config/general/expand-instructions-toggle/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/routes/indexSelfSupport.js | daxiangaikafei/QBGoods | import React from 'react'
import { Route, IndexRoute, Router } from 'dva/router'
import CoreLayout from '../containers/layout'
import SelfSupport from 'views/SelfSupport/page'
export default function (ref) {
return (
<Router history={ref.history}>
<Route path='/' component={CoreLayout} name="我有好物">
... |
app/components/RowNavHidden/index.js | ko-ok/bikes | import React from 'react';
import { Button, Jumbotron, Row, Col, Image } from 'react-bootstrap';
import Img from 'components/Img';
import styles from './../../assets/styles.css';
import Instafeed from 'instafeed.js';
/* eslint-disable react/prefer-stateless-function */
export default class RowNavHidde extends React.Co... |
src/Tooltip.js | chrishoage/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
app/javascript/mastodon/features/picture_in_picture/index.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import Audio from 'mastodon/features/audio';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import Header from './components/header';
import F... |
auth/App.js | sgcharameli/ReactNativeAndReduxCourse | import React from 'react';
import { StyleSheet, View } from 'react-native';
import firebase from 'firebase';
import { Header, Button, Spinner } from './src/components/common';
import LoginForm from './src/components/LoginForm';
export default class App extends React.Component {
state = { loggedIn: null };
compon... |
docs/src/pages/components/badges/BadgeMax.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Badge from '@material-ui/core/Badge';
import MailIcon from '@material-ui/icons/Mail';
const useStyles = makeStyles((theme) => ({
root: {
'& > *': {
margin: theme.spacing(2),
},
},
}));
const defaultProps = {
c... |
patcher/src/FlashMessage.js | rsimmons/rindel3 | import React, { Component } from 'react';
import './FlashMessage.css';
export default class FlashMessage extends Component {
flash(s) {
this.elem.textContent = s;
this.elem.classList.remove('FlashMessage_fade-out');
setTimeout(() => {
this.elem.classList.add('FlashMessage_fade-out');
}, 0);
... |
src/components/Tabs/Tabs-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKno... |
js/components/taskEdit/tabAtributes.js | bsusta/HelpdeskAppTemplate |
import React, { Component } from 'react';
import { View, Card, CardItem, Body, Container, Content, Icon, Input, Item, Label, Text, Footer, FooterTab, Button, Picker } from 'native-base';
import { ActivityIndicator } from 'react-native';
import styles from './styles';
import { connect } from 'react-redux';
import { up... |
src/lib/plugins/time.js | edoren/hyperline | import React from 'react'
import Component from 'hyper/component'
import SvgIcon from '../utils/SvgIcon'
import moment from 'moment';
class PluginIcon extends Component {
styles() {
return {
'time-icon': {
fill: '#fff'
}
}
}
template(css) {
return (
<SvgIcon>
<g fill=... |
fields/components/columns/IdColumn.js | danielmahon/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
gh-page/src/Components/Social.js | metodiobetsanov/metodiobetsanov.github.io | import React from 'react';
import IconButton from '@material-ui/core/IconButton';
export default function Social(){
return(
<React.Fragment>
<IconButton aria-label="Send me a message"
onClick={()=> window.location.href = "mailto: meto.obetsanov@gmail.com"}>
<i className="fas fa-... |
examples/redirect-using-index/app.js | mozillo/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/redirect-using-index'
})
class App extends React.Component {
render() {
return (
<div>
{this.prop... |
src/svg-icons/action/input.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInput = (props) => (
<SvgIcon {...props}>
<path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/>
</... |
src/components/Speakers/Speakers.js | ksevezich/DayOfBlueprint | import React from 'react'
import classes from './Speakers.scss'
import SpeakersSection from 'components/SpeakersSection'
import alex from 'static/Alex.png'
import stephen from 'static/Stephen.png'
import jason from 'static/Jason.png'
import dan from 'static/Dan.png'
export const Speakers = () => (
<div>
<div cla... |
components/DashboardTournament.js | turntwogg/final-round | import React from 'react';
import { useTheme } from '@turntwo/react-ui';
import dayjs from 'dayjs';
import Badge from './Badge';
import Link from './Link';
import Typography from './Typography';
import TwitchStream from './TwitchStream';
import Image from './Image';
import ResponsiveImage from './ResponsiveImage';
im... |
src/parser/warlock/affliction/modules/features/DotUptimes/AgonyUptime.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import UptimeBar... |
components/animals/ustricnikVelky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/ustricnikVelky/01.... |
client/components/Navbar/Navbar.js | chenfanggm/steven-react-starter-kit | import './Navbar.scss'
import React from 'react'
import Branding from '../Branding'
import MainMenu from '../../containers/MainMenu'
const Navbar = () => (
<header className='navbar-container' >
<Branding title='Chen' />
<MainMenu />
</header>
)
export default Navbar
|
src/components/SelectLanguage.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
import { Select } from 'antd'
@translate(['wallet'], { wait: true })
@inject('gui')
@observer
class SelectLanguage extends React.Component {
constructor (props) {
super(props)
this.t = props.t
... |
app/javascript/mastodon/features/bookmarked_statuses/index.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
import Column from '../ui/components/column';
import ColumnHeader... |
docs/src/PageFooter.js | xuorig/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.