path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
assets/search-view/components/SearchBar.js | janta-devs/nyumbani | import React, { Component } from 'react';
class SearchBar extends Component{
handleClickAction( e ){
e.preventDefault();
e.stopPropagation();
this.props.searchAction( this.refs.search.value );
}
submitHandler( e ){
e.preventDefault();
e.stopPropagation();
this.props.searchAction( this.refs.search.value ... |
public/js/cat_source/es6/components/segments/SimpleEditor.js | riccio82/MateCat | import React from 'react'
import TagUtils from '../../utils/tagUtils'
import SegmentUtils from '../../utils/segmentUtils'
class SimpleEditor extends React.Component {
constructor(props) {
super(props)
}
render() {
const {isTarget, sid, text, segment} = this.props
let htmlText = SegmentUtils.checkCu... |
docs/src/app/components/pages/components/FloatingActionButton/Page.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import floatingButtonReadmeText from './README';
import floatingButtonExampleSim... |
fields/types/textarea/TextareaField.js | asifiqbal84/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged... |
examples/js/utils.js | prajapati-parth/react-bootstrap-table | import React from 'react';
function renderLinks(examplePath) {
const gitHubBase = 'https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js';
return (
<h5>Source in
<a href={ `${gitHubBase}/${examplePath}` } target='_blank'> /examples/js/{ examplePath }</a>
</h5>
);
}
export defa... |
wrappers/html.js | kepatopoc/gatsby-starter-clean | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div dangerouslySetInnerHTML={{ __... |
src/common/components/App.js | annxingyuan/chatscan | import React from 'react';
export default ({children}) => {
return (
<div id="container">
{children}
</div>
);
}
|
src/components/atoms/nav-item/index.js | clucasalcantara/clucasalcantara.github.io | import React from 'react'
import styled from '@emotion/styled'
// UI Elements
import Link from '../link'
const NavItem = styled.li({
padding: '.5rem',
listStyle: 'none'
})
export default ({ text, path }) => (
<NavItem>
<Link href={path} text={text} />
</NavItem>
)
|
src/components/Header/Header.js | joshawnard/css-sandbox | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import withStyle... |
js/react/generics/off_canvas.js | nCoda/julius | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/react/generics/off_canvas.js
// Purpose: ... |
app/javascript/mastodon/features/ui/components/column_subheading.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
src/components/Appointments/AppointmentModal.js | kesean/Dashboard-Frontend | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import TimePicker from 'material-ui/TimePicker'
import DatePicker from 'material-ui/DatePicker';
const customContentStyle = {
width: '75%',
maxWidth: ... |
ext/lib/site/banner-foro-vecinal/component.js | DemocraciaEnRed/vicentelopez | import React from 'react'
import config from 'lib/config'
export default function BannerForoVecinal (props) {
let { adminTexts } = config.store
let random = Math.random(1) > 0.5 ? "1":"2";
let source = `home-video${random}`;
//DRY: dont repeat yourself
return (
<section className='container-flu... |
node_modules/react-scripts/template/src/index.js | kishigo/recipes-react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
docs/src/ComponentsPage.js | xuorig/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import getOffset from 'dom-helpers/query/offset';
import css from 'dom-helpers/style';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import N... |
assets/react/src/components/task/mailbox_trash.js | khoa-le/crontask | import React, { Component } from 'react';
import MailBoxItem from './task_item.js';
import ReactPaginate from 'react-paginate';
export default class MailBoxTrash extends Component{
constructor(props){
super(props);
this.state = {
data: [],
offset: 0,
loading:fal... |
docs/app/Components/ComponentDoc/ComponentDocLinks.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import { List } from 'shengnian-ui-react'
import { pure } from 'docs/app/HOC'
const linkListStyle = {
background: '#f7f7f7',
boxShadow: '0 0 1em 0.5em #f7f7f7',
margin: '0.5em',
padding: '0.5em',
position: 'absolute',
right: '0',
top: '0',
}
... |
examples/flux-utils-todomvc/js/app.js | rstefek/flux | /**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
r/sua-mensagem/src/editor/modificadores/Escrita.js | HigorSantos/sua-mensagem | import React, { Component } from 'react';
import './Escrita.css';
import Conf from './Conf';
class Escrita extends Component {
constructor(props){
super(props);
this.state = {
value:'escrita',
opcoes:[
{ nome:'MAIÚSCULO',
value:'escrita_maiuscula',
defaultChecked:true,
enabled:true,
... |
src/EndorseContentLayout/EndorseContentLayout.driver.js | skyiea/wix-style-react | import React from 'react';
import {shallow} from 'enzyme';
import EndorseContentLayout from './';
import styles from './styles.scss';
export default class EndorseContentLayoutDriver {
component;
when = {
created: props => this.component = shallow(<EndorseContentLayout {...props}/>)
}
get = {
root: ()... |
examples/huge-apps/app.js | egobrightan/react-router | /*eslint-disable no-unused-vars */
import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router } from 'react-router'
import stubbedCourses from './stubs/COURSES'
const history = useBasename(createHistory)({
basename: '/huge-apps'
})
const rootRoute = {
component: 'div',
childR... |
src/main.js | alxyee/berkeley-onederful-demo | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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 'babel-polyfill';
im... |
src/components/HSDS/Provider.js | helpscout/blue | /* istanbul ignore file */
import React from 'react'
import ScopeProvider from '../ScopeProvider'
import GlobalStyle from './GlobalStyle'
export const GlobalContext = React.createContext()
const Provider = props => {
const { scope = 'hsds-react' } = props
const contextValue = {
getCurrentScope: () => scope,
... |
src/svg-icons/action/perm-device-information.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
src/app/SideLeft.js | FrameWareIO/frameware.io | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import classNames from 'classnames';
const styles = {
container: {
textAlign: 'center',
paddingTop: 200,
paddingBottom: 200,
backgroundColor: '#FFFFFF'
},
logo: {
height: 200,
width: 20... |
frontend/src/components/UserPhoto.js | OpenCollective/opencollective-website | import React from 'react';
import { pushState } from 'redux-router';
import getAvatarByNumber from '../lib/avatar_by_number';
import ImagePicker from '../components/ImagePicker';
import { resizeImage } from '../lib/utils';
export default class UserPhoto extends React.Component {
componentDidMount() {
const { us... |
Test_ReactNative_NativeModules/js/App.js | ksti/Test_react-native-nativeModules | /**
* Created by GJS on 2017/3/30.
*/
import React from 'react';
import AppRoot from './AppRoot'
export default AppRoot |
app/components/dashboard/settings/DeleteModal.js | mchlltt/mementoes | // Import dependencies, components, and services.
import React from 'react';
import {browserHistory} from 'react-router';
import {Button, FormControl, Modal} from 'react-bootstrap';
import DeleteService from '../../../utils/deleteService';
import GetService from '../../../utils/getService';
// Construct services.
let ... |
src/server.js | bertho-zero/react-redux-universal-hot-example | import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import morgan from 'morgan';
import favicon from 'serve-favicon';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import httpProxy from 'http-proxy';
import Pretty... |
src/routes/Home/components/Banner/Banner.js | lf2941270/react-zhihu-daily | import React from 'react'
import { IndexLink, Link } from 'react-router'
import Slider from 'react-slick'
import 'slick-carousel/slick/slick.scss'
import 'slick-carousel/slick/slick-theme.scss'
import './banner.scss'
import proxy from 'utils/proxy'
export class Banner extends React.Component {
componentDidMount(){
... |
client/scripts/components/size-aware-component/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/components/BasicClickable.js | thomas-p-wilson/react-form | import React from 'react'; // eslint-disable-line no-unused-var
/**
* The BasicClickable component defines the basic functionality that is common
* to all buttons or other-wise clickable elements.
*/
export default class BasicClickable extends React.Component {
static displayName = 'BasicClickable';
static... |
examples/auth-with-shared-root/components/App.js | zipongo/react-router | import React from 'react'
import { Link } from 'react-router'
import auth from '../utils/auth'
const App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
}
},
updateAuth(loggedIn) {
this.setState({
loggedIn: !!loggedIn
})
},
componentWillMount() {
... |
src/routes/contact/index.js | yvanwangl/UniversalBlog | /**
* 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... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | opichals/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
src/app/js/components/ControlMixin.react.js | fcurella/redux-boilerplate | import React from 'react'
const ControlMixin = {
propTypes: {
model: React.PropTypes.object.isRequired,
name: React.PropTypes.string.isRequired,
type: React.PropTypes.string,
action: React.PropTypes.func.isRequired,
onChange: React.PropTypes.func
}
}
export default ControlMixin
|
components/App.js | mattbajorek/Cash-Cache | import React, { Component } from 'react';
import { Button } from 'react-toolbox/lib/button'; // Bundled component import
export default class App extends Component {
render() {
return (
<Button label='Primary Button' primary />
)
}
} |
src/svg-icons/action/label-outline.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | shenhzou654321/actor-platform | import _ from 'lodash';
import React from 'react';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import InviteUserActions from 'actions/InviteUserActions';
import ContactStore from 'stores/ContactStore';
import InviteUserStore from 'stores/InviteUserStore';
im... |
app/screens/settings/notification_settings_email/notification_settings_email.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {intlShape} from 'react-intl';
import {
Modal,
ScrollView,
TouchableOpacity,
View,
} from 'react-native';
import FormattedText from '@components/formatted_t... |
web/timer/main.js | nalantianyi/mobx-starter | import React from 'react';
import {observer} from 'mobx-react';
const TimerDisplay = ({timer, text}) => {
return (
<div style={{borderBottom: '1px solid #d9dae0', display: 'flex'}}>
<div style={{
fontSize: 30, fontFamily: 'HelveticaNeue-UltraLight',
color: '#7f8... |
src/components/common/SimpleEditor/index.js | anztrax/simple-image-server-frontend | import React from 'react';
import { Editor, Plain } from 'slate';
import DefaultToolbar from './Component/Toolbar/DefaultToolbar';
import Schema from './Schema/Schema';
import editorPlugin from './editorPlugin';
const emptyState = '';
export default class SimpleEditor extends React.Component{
constructor(props){
... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/scrollbar/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScrollBar from '../../../jqwidgets-react/react_jqxscrollbar.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScrollBar.on('valueChanged', function (event) {
document.getElementById('HorizontalDiv')... |
example/index.js | dok/react-workspace | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(
<App />,
document.getElementById('root')
);
|
pages/404.js | peterqiu1997/btc | import React from 'react';
const IndexComponent = () => (
<div className="not-found">
<h1>
The page you were looking for was not found.
</h1>
</div>
);
export default IndexComponent;
|
src/Well.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
frontend/shop/src/index.js | aDistortion/microservice-sample | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App.jsx';
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createLogger } from 'redux-logger';
import shopApp from './components/reducer/root.jsx';
import { initCart } from... |
src/VirtualizedCheckbox.example.js | emilebres/react-virtualized-checkbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal, Position } from 'react-overlays';
import VirtualizedCheckbox from './VirtualizedCheckbox';
import styles from './VirtualizedCheckbox.example.css';
import { ResizableBox } from 'react-resizable';
import 'react-resizable/css/sty... |
src/modules/users/containers/ProfilePageContainer/ProfilePageContainer.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'react-apollo';
import { connect } from 'react-redux';
// graphql
import settingsQuery from '../../../settings/graphql/queries/list';
import profileQuery from '../../graphql/queries/profile';
// components
import ProfilePage from '... |
src/html/HtmlNodeText.js | nashvail/zulip-mobile | /* @flow */
import React from 'react';
import entities from 'entities';
import type { StyleObj } from '../types';
import { RawLabel } from '../common';
type Props = {
data: string,
cascadingTextStyle?: StyleObj,
};
export default ({ data, cascadingTextStyle }: Props) => (
<RawLabel style={cascadingTextStyle} t... |
src/components/textInput/TextInput.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import FormItem from '../formItem';
import InputLabel from '../inputLabel';
/**
* TextInput component. Is used when you need to insert 1 form input and an accompanying
* label—the label is always required, there is an option to hide the label in an accessible way.
*/
const TextInput = ({... |
src/icon/svg.js | devonChurch/cheese-burger | import React from 'react';
const
cart = () => (
<path d="M14.312 9c0.695 0 1.299-0.478 1.459-1.154l1.181-4.982c0.237-0.947-0.479-1.864-1.455-1.864h-13.494c-0.552 0-0.999 0.448-0.999 1s0.448 1 0.999 1h1v8.5c0 0.829 0.671 1.5 1.499 1.5h10.496c0.552 0 0.999-0.448 0.999-1s-0.447-1-0.999-1h-9.996v-2h9.31zM5.0... |
frontend/src/pages/configurator/CreatePackageBeerPage.js | jirkae/BeerCheese | import React, { Component } from 'react';
import {
Row,
Col,
Button,
Nav,
NavItem,
NavLink,
NavbarBrand,
} from 'reactstrap';
import ProductList from '../../components/product/ProductList';
import localizedTexts from '../../text_localization/LocalizedStrings';
const mockBeerCategories = ['black', 'lager'... |
components/animals/paovceHrivnata.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/paovceHrivnata/01.... |
client/src/components/Header.js | JetRunner/epictodo | import React, { Component } from 'react';
import Cookies from 'js-cookie';
import jQuery from 'jquery';
import { Link } from 'react-router';
import { hashHistory } from 'react-router';
class LogBox extends Component {
logOut() {
jQuery.ajax({
url: '/api/user/logout',
type: 'post',
data: {
... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | hardikamal/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
docs/app/Examples/elements/Step/States/StepExampleActive.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Icon, Step } from 'semantic-ui-react'
const StepExampleActive = () => (
<Step.Group>
<Step active>
<Icon name='credit card' />
<Step.Content>
<Step.Title>Billing</Step.Title>
<Step.Description>Enter billing information</Step.Description>
</Step... |
example/src/client/rest/index.js | pcwinters/adrenaline | /* @flow */
import React from 'react';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import routes from './routes';
import { Adrenaline } from '../../../../src';
import schema from 'shared/schema';
import Loader from './components/Loader';
import Adaptor from './adap... |
docs/app/Examples/elements/Header/Types/HeaderExampleSubheaders.js | shengnian/shengnian-ui-react | import React from 'react'
import { Header } from 'shengnian-ui-react'
const HeaderExampleSubheaders = () => (
<div>
<Header sub>Price</Header>
<span>$10.99</span>
</div>
)
export default HeaderExampleSubheaders
|
src/components/SimplePager/Pager.js | steem/qwp-antd | import React from 'react'
import layout from 'utils/layout'
import { Icon, Input, InputNumber, Button, message } from 'antd'
import styles from './Pager.less'
import { classnames } from 'utils'
import { l } from 'utils/localization'
class SimplePager extends React.Component {
constructor (props) {
super(props)
... |
modules/Redirect.js | axross/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
docs/app/Examples/views/Statistic/Variations/Horizontal.js | jamiehill/stardust | import React from 'react'
import { Statistic } from 'stardust'
const Horizontal = () => <Statistic horizontal value='2,204' label='Views' />
export default Horizontal
|
source/containers/Chat/LeftMenu/Channels.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import { Color } from 'constants/css';
import { css } from 'emotion';
Channels.propTypes = {
userId: PropTypes.number.isRequired,
currentChannel: PropTypes.object.isRequired,
channels: PropTypes.arrayOf(
PropTypes.shape({
lastMessageSender:... |
src/components/guess.js | RichardDorn/mastermind-clone | import React, { Component } from 'react';
import { reduxForm, Field, reset } from 'redux-form';
import { guessEvaluated, submitGuess, startNewGame, setDifficulty, setGameType, evaluateScore, gameOver } from '../actions';
import MenuItem from 'material-ui/MenuItem';
import { SelectField } from 'redux-form-material-ui';
... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
import SettingText from '../../../components/se... |
fields/types/cloudinaryimage/CloudinaryImageColumn.js | Pop-Code/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var CloudinaryImageColumn = React.createClass({
displayName: 'CloudinaryImageCo... |
src/containers/Root.prd.js | moqada/toggline | /* @flow */
import React from 'react';
import {Provider} from 'react-redux';
import App from './App';
import configureStore from '../stores/configureStore';
const store = configureStore();
/**
* Root Container for Production
*
* @return {ReactElement}
*/
export default function Root() {
return (
<Provider ... |
src/containers/Home.js | hiyangguo/react-netease-cloud-music | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Home from '../components/Home';
import * as actionsCreators from '../actions/topPlayList';
import * as personalizedActionsCreators from '../actions/personalized';
import * as selector from '../reducers/p... |
src/app/src/assets/utils/functions/FnScroll.js | istreight/eggbeatr | /**
* FILENAME: FnScroll.js
* AUTHOR: Isaac Streight
* START DATE: May 31th, 2018
*
* This file contains the FnScroll class, a utility class for
* auto-scrolling in the application.
*/
import React from 'react';
import Animator from 'functions/Animator';
class FnScroll extends React.Component {
... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-10/Card.js | Brandon-J-Campbell/codemash | import React from 'react';
export default function Card({ children }) {
return <div className="card">{children}</div>;
} |
src/components/Deck/Deck.js | GKotsovos/WebPoker | import React from 'react';
import classnames from 'classnames';
import Styles from 'styles/Cards/cards.css'
import FaceDownCard from 'components/FaceDownCard';
export const Deck = () => (
<div className={`${Styles.playingCards} ${Styles.simpleCards}`}>
<ul className={Styles.deck}>
<li><FaceDownCard /></li>... |
app/NewsHeader.js | ikopcc/ikop-frontend | import React from 'react';
export default class NewsHeader extends React.Component {
render() {
return (
<div className = "newsHeader" >
I am NewsHeader.
</div>
);
}
getLogo() {
return (
<div className="newsHeader-logo">
... |
spec/components/progress.js | VACO-GitHub/vaco-components-library | import React from 'react';
import ProgressBar from '../../components/progress_bar';
import style from '../style';
const initialState = {
progress: 0,
buffer: 10
};
class ProgressBarTest extends React.Component {
state = initialState;
componentWillMount () {
this.simulateProgress();
}
simulateProgres... |
src/js/index.js | FBDevCLagos/fb-group-stat | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import routes from './routes';
import '../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../css/main.scss';
import 'font-a... |
src/pages/quebela.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Quebela' />
)
|
docs/src/examples/collections/Breadcrumb/Content/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const BreadcrumbContentExamples = () => (
<div>
... |
packages/expo-image/build/ExpoImage.js | exponentjs/exponent | import React from 'react';
import { Image, requireNativeComponent, NativeModules, StyleSheet, Platform, processColor, } from 'react-native';
const NativeExpoImage = requireNativeComponent('ExpoImage');
const ExpoImageModule = NativeModules.ExpoImageModule;
export { ExpoImageModule };
export default function ExpoImage({... |
src/index.js | shierby/storehome | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router'
import Main from './Main'
import Catalog from './components/Menu/Catalog';
import Home from './components/Menu/Home';
import News from './components/Menu/News';
import About from '... |
src/components/Navbar.js | yahorzhylinski/zhylinski-me-cliend-side | 'use strict';
import React from 'react';
import {
Link
} from 'react-router';
export default class Navbar extends React.Component {
closeNavbar(event) {
// if bar is open
if($('.navbar-collapse.collapse.in').length > 0) {
$('.navbar-toggle').click()
}
}
render() {
return (
<nav cl... |
examples/auth-with-shared-root/components/Login.js | aaron-goshine/react-router | import React from 'react'
import { withRouter } from 'react-router'
import auth from '../utils/auth.js'
const Login = React.createClass({
getInitialState() {
return {
error: false
}
},
handleSubmit(event) {
event.preventDefault()
const email = this.refs.email.value
const pass = this.r... |
app/containers/SceneContainer.js | live106/todo-for-react-native | import React, { Component } from 'react';
import {
Image,
} from 'react-native';
import { themable } from '../themes';
import TodoList from './TodoListScene';
import {
Navigator,
} from 'react-native-deprecated-custom-components'
class Navigation extends Component {
configureScene() {
return {
...Navig... |
web-frontend/src/logs/components.js | croservices/cro | import React from 'react';
var App = props => (
<div>
<h3>Logs and Traces</h3>
<select className="form-control" value={props.logsReducer.current} onChange={e => props.onSelectChannel(e.target.options[e.target.selectedIndex].value)}>
{Array.from(props.logsReducer.channels).map(c => (
... |
app/javascript/mastodon/components/common_counter.js | maa123/mastodon | // @ts-check
import React from 'react';
import { FormattedMessage } from 'react-intl';
/**
* Returns custom renderer for one of the common counter types
*
* @param {"statuses" | "following" | "followers"} counterType
* Type of the counter
* @param {boolean} isBold Whether display number must be displayed in bold
... |
src/svg-icons/hardware/phone-android.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneAndroid = (props) => (
<SvgIcon {...props}>
<path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/>
</SvgIcon>
... |
app/components/Table/index.js | pauleonardo/demo-trans | /**
*
* Table
*
*/
import React from 'react';
import uuid from 'uuid';
import { map } from 'lodash/collection';
import PropTypes from 'prop-types';
import {
Table,
} from 'bloomer';
import {
styles,
} from './StyledComponents';
import Item from './ItemTable';
function TableCustom({
headerClick,
itemElemen... |
docs/app/Examples/collections/Grid/Variations/GridPaddedVerticallyExample.js | jcarbo/stardust | import React from 'react'
import { Image, Grid } from 'stardust'
const { Column } = Grid
const image = <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
const GridPaddedVerticallyExample = () => (
<div>
<p>The following grid has vertical gutters</p>
<Grid columns={2} padded='vertically'... |
test/common/components/App-test.js | gravitron07/brentayersV6 | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import App from '../../../src/common/components/App';
test('render with container div', t => {
const wrapper = shallow(React.createElement(App));
t.is(wrapper.find('#container').length, 1);
});
|
src/components/common/svg-icons/image/crop.js | abzfarah/Pearson.NAPLAN.GnomeH | 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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/places/rv-hookup.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm7-6h-4v-3h4v3zM17 2v2H9v2h8... |
ui/src/components/group/GroupList.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
src/js/components/icons/Clear.js | samogami/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
export default class Clear extends Component {
componentDidMount () {
console.warn('This icon has been deprecated. Please check http://www.grommet.io/docs/develop/icon for the new set of icons.');
}
... |
client/src/Components/UserProfile/ClientDisabilityEdit.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import ClientDisabilityForm from './ClientEditForms/ClientDisabilityForm';
class ClientDisabilityEdit extends React.Component {
constructor(props){
super(props);
this.sendPatch = this.sendPatch.bind(this);
};
sendPatch... |
src/components/Group.js | ericyd/surfplotjs | /**
* Group is a relatively simple container with an optional title
* that collapses the group when clicked. It will render the title
* if this.props.title exists.
*/
'use strict';
import React, { Component } from 'react';
import Arrow from '../icons/Arrow';
// used for adding hover effect to group__header
import... |
src/common/components/InfoList/InfoList.js | aarmour/my-denver | import React, { Component } from 'react';
export default class InfoList extends Component {
render() {
return (
<div className="info-list">
{this.props.children}
</div>
);
}
}
|
front_end/src/components/App/Navigation/TopBar.js | oyiptong/splice | import React, { Component } from 'react';
import { Link } from 'react-router';
window.$ = require('jquery');
import SideBar from 'components/App/Navigation/SideBar.js';
import AccountNavigation from 'components/App/Navigation/AccountNavigation.js';
import BreadCrumbs from 'components/App/Navigation/BreadCrumbs.js';
i... |
src/components/PostSummary.js | jasongforbes/dorian-js | import React from 'react';
import { Link } from 'react-router-dom';
import BackgroundImage from './BackgroundImage';
import PostHeader from './PostHeader';
const PostSummary = function render(props) {
return (
<div className="post-summary content-card">
{props.banner &&
<div className="banner">
... |
src/NavBar/NavBarTitle.js | kmees/react-fabric | import React from 'react'
import fabricComponent from '../fabricComponent'
import style from './NavBar.scss'
const NavBarTitle = ({ children, ...props }) => (
<div {...props} styleName="ms-NavBar-title">
{ children }
</div>
)
NavBarTitle.propTypes = {
children: React.PropTypes.node
}
export default fabric... |
app/components/PaymentForm.js | cqlanus/bons | import React from 'react'
import { connect } from 'react-redux'
import { postPayment } from '../reducers/orders'
import { browserHistory, Link } from 'react-router'
// import { putPayment } from '../reducers/payment' /// correct this
const mapStateToProps = (state) => ({
payment: state.payment,
cart: state.cart
})... |
ui/changepasswordnew.js | namalkanishka/Uranus | import React, { Component } from 'react';
import { Text, View, StyleSheet, Button, TextInput,TouchableOpacity,Icon } from 'react-native';
import { Constants } from 'expo';
export default class App extends Component {
state = {
inputValue1: "New Password",
inputValue: "Confirm Password"
};
_handleTe... |
examples/counter/containers/App.js | xgrommx/redux | import React from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App {
render() {
return (
<Provider redux={redux}>
{() => <Cou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.