path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/app/components/pages/components/Table/ExampleSimple.js | hwo411/material-ui | import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
/**
* A simple table demonstrating the hierarchy of the `Table` component and its sub-components.
*/
const TableExampleSimple = () => (
<Table>
<TableHeader>
... |
common/components/InputBox.js | ebertmi/webbox | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import uniqueId from 'lodash/uniqueId';
/**
* InputBox provides a more convinent way of creating inputs and textareas and adding events.
*/
export class InputBox extends React.Component {
componentWillMount() {
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | hgezim/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
src/components/Schools.js | michael-luk-i-man/Appli | import React, { Component } from 'react';
import testSchoolsData from '../test/testSchoolsData'
// const testSchoolsData = [
// {
// logo: 'hi',
// name: 'hi',
// program:'hi',
// progress:'hi'
// },
// {
// logo: 'hi',
// name: 'hi',
// program:'hi',
// progress:'hi'
// },
// ... |
blueprints/smart/files/__root__/containers/__name__.js | danieljwest/ExamGenerator | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
app/components/HomeQaulitySection/index.js | yagneshmodh/personalApplication | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ActionWatchLater from 'material-ui/svg-icons/action/watch-later';
import ImageStyle from 'material-ui/svg-icons/image/style';
import EditorBubbleChart from 'material-ui/... |
client/app/components/HomePage/index.js | yanhao-li/menu-plus | import React from 'react';
import styled from 'styled-components';
import SearchBar from 'components/SearchBar';
import video from './video-bg.mp4';
import videobg from './bg.jpg';
import videooverlay from './movie-overlay.png';
const JumbotronDiv = styled.div`
box-sizing: border-box;
height: calc(100% - 60px);
... |
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js | kasra-co/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import Toggle from 'material-ui/Toggle';
const optionsStyle = {
maxWidth: 255,
marginRight: 'auto',
};
/**
* This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`.
*/
export default class DatePi... |
index.android.js | ijones16/egghead-mobile | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class egghead_mobile extends Component {
render() {
return (
<View style={styles.cont... |
js/components/wiki/city.js | frequencyasia/website | import React from 'react';
import $ from 'jquery';
import fecha from 'fecha';
import i18next from 'i18next';
import Constants from './../../constants';
import EpisodeCard from './../episodeCard';
import { Link } from 'react-router-component';
module.exports = React.createClass({
propTypes: {
slug: React.PropTy... |
src/pages/posts/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { graphql } from 'gatsby'
import Layout from '../../components/structure/layout'
import PostsList from '../../components/PostsList'
import TinyLetterSignup from '../../components/TinyLetterSignUp'
const PostsPage = ({ data }) => (
<Layout>
<PostsList
showChevron="yes"
... |
server.js | sanchesking9/image_builder | import React from 'react';
var path = require('path');
var webpack = require('webpack');
var express = require('express');
var config = require('./webpack.config');
import App from './src/App';
var ReactDOMServer = require('react-dom/server');
var app = express();
var compiler = webpack(config);
app.use(require('webp... |
blueocean-material-icons/src/js/components/svg-icons/av/radio.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-8h-2v-2h... |
src/GridList/TileTitle.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
className: PropTypes.string,
};
const TileTitle = ({ className, ...otherProps }) => (
<span
className={classnames('mdc-grid-tile__title', className)}
{...otherProps}
/>
);
TileTitle.p... |
src/RectangleButton.js | jacklam718/react-native-button-component | import React from 'react';
import ButtonComponent from './ButtonComponent';
export default function RectangleButton(props) {
const progressSize = props.height / 2;
return (
<ButtonComponent
{...props}
shape="rectangle"
width={props.width}
height={props.height}
progressSize={progr... |
src/routes/Counter/components/Counter.js | ds160607/pwa_boilerplate | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
src/sentry/static/sentry/app/index.js | gencer/sentry | /* global module */
import jQuery from 'jquery';
import moment from 'moment';
import Raven from 'raven-js';
import React from 'react';
import ReactDOM from 'react-dom';
import {AppContainer} from 'react-hot-loader';
import PropTypes from 'prop-types';
import {renderToStaticMarkup} from 'react-dom/server';
import Reflux... |
src/Parser/BrewmasterMonk/Modules/Spells/BlackoutCombo.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combata... |
examples/react-native/components/drawer/DrawerContent.js | aksonov/react-native-router-flux | import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, Text, View, ViewPropTypes} from 'react-native';
import Button from 'react-native-button';
import {Actions} from 'react-native-router-flux';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
... |
pootle/static/js/shared/mixins/FormValidationMixin.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react'; // eslint-disable-line no-unus... |
src/overlayApp.js | meetfranz/franz | import { ipcRenderer, webFrame } from 'electron';
import React from 'react';
import { IntlProvider } from 'react-intl';
import { render } from 'react-dom';
import {
Router, Route, hashHistory,
} from 'react-router';
import '@babel/polyfill';
import smoothScroll from 'smoothscroll-polyfill';
import { ThemeProvider }... |
src/Card/Card.js | yurizhang/ishow | import React from 'react';
import PropTypes from 'prop-types';
import { default as Component } from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Card.css';
export default class Card extends Component {
render(){
const { header, bodyStyle, children } = this.props;
return (
<di... |
webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.js | theforeman/foreman_ansible | import React from 'react';
import PropTypes from 'prop-types';
import { ListView, LoadingState } from 'patternfly-react';
import Pagination from 'foremanReact/components/Pagination';
import AnsibleRole from './AnsibleRole';
const AvailableRolesList = ({
unassignedRoles,
pagination,
itemCount,
onListingChange... |
app/containers/Root.js | ZhydraBook/zhydrabook | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<Router history=... |
src/index.js | opsukka/fantasy-map | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/app';
import store from './store';
require('./index.scss')
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)
|
client/src/components/admin/dashboard.js | joshuaslate/mern-starter | import React, { Component } from 'react';
import { Link } from 'react-router';
class AdminDashboard extends Component {
render() {
return (
<div>
Admin navigation goes here.
</div>
);
}
}
export default AdminDashboard;
|
new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscountModal.js | naconner/lamassu-server | import { makeStyles } from '@material-ui/core/styles'
import { Form, Formik, Field } from 'formik'
import * as R from 'ramda'
import React from 'react'
import * as Yup from 'yup'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'
import { HoverableTooltip } from 'src/compon... |
src/svg-icons/device/signal-cellular-2-bar.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/>
</SvgIcon>
);
DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar);
Device... |
src/containers/ADC/SLB/Application/Application.js | armaniExchange/wizard | // React & Redux
import React, { Component } from 'react';
class Application extends Component {
render() {
return (
<section>Application</section>
);
}
}
export default Application;
|
node_modules/react-bootstrap/es/Table.js | mohammed52/door-quote-automator | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
renderer/components/Icon/LayoutCards.js | LN-Zap/zap-desktop | import React from 'react'
const SvgLayoutCards = props => (
<svg height="1em" viewBox="0 0 16 16" width="1em" {...props}>
<path
d="M.5.5h6v6h-6zm0 9h6v6h-6zm9-9h6v6h-6zm0 9h6v6h-6z"
fill="none"
fillRule="evenodd"
stroke="currentColor"
/>
</svg>
)
export default SvgLayoutCards
|
src/components/secure/Profile.js | haki-projects/mapping-feminism-v2 | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Profile extends React.Component {
render() {
return (
<div>
<h1>Profile</h1>
You are {this.props.user.email}
<br/>
<Link to='/dashboard'>Dashboard</Link>
</div>
)
}
}
export default... |
src/ui/components/views/Offline.native.js | Anup-Allamsetty/pure | /* @flow */
import React, { Component } from 'react';
import ReactNative from 'react-native';
import shallowEqual from 'shallowequal';
import Colors from '../../Colors';
import AppText from './AppText';
import Page from './Page';
const {
StyleSheet,
Image,
} = ReactNative;
const styles = StyleSheet.create({
conta... |
app/components/send-panel/index.js | cpselvis/chatroom | import React, { Component } from 'react';
import './index.scss';
class SendPanel extends Component {
constructor() {
super();
this.state = {
inputValue: ''
};
}
sendMessage() {
const { socket } = this.props;
const { inputValue } = this.state;
socket.emit('message', {
room: '... |
app/js/components/content/PageComponentActions.js | lukemarsh/tab-hq-react | 'use strict';
import React from 'react';
import ComponentActionCreators from '../../actions/ComponentActionCreators';
import ReorderMixin from '../../mixins/ReorderMixin';
import ModalMixin from '../../mixins/ModalMixin';
const PageComponentActions = React.createClass({
mixins: [ModalMixin],
delete() {
Compo... |
src/components/photo_grid_item.js | b0ts/react-redux-sweetlightstudios-website | import React from 'react';
import { LinkContainer } from 'react-router-bootstrap';
import { Col, Thumbnail } from 'react-bootstrap';
const PhotoGridItem = ({ title, link, image, altText }) => (
<Col className = "photo-grid-item" sm={6} md={3}>
<LinkContainer to={link} className="link">
<Thumbnail
sr... |
app/components/CommentForm/index.js | mclxly/react-study | /**
*
* CommentForm
*
*/
import React from 'react';
import styles from './styles.css';
class CommentForm extends React.Component {
constructor(props) {
super(props);
this.state = {
author: '',
text: ''
};
}
handleAuthorChange(e) {
this.setState({author: e.target.value});
}
hand... |
stories/radio.stories.js | isogon/styled-mdl | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Radio from '../src/components/radio/demos/Radio.js'
storiesOf('Radio', module)
.addDecorator(wrapStory)
.add('Radio', () => <Radio />)
|
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDate.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleSummaryDate = () => (
<Feed>
<Feed.Event>
<Feed.Label>
<img src='/assets/images/avatar/small/jenny.jpg' />
</Feed.Label>
<Feed.Content>
<Feed.Summary>
You added <a>Jenny Hess</a> to you... |
src/containers/pages/dashboard/left-container/details/detail-header.js | vFujin/HearthLounge | import React from 'react';
import Popover from 'antd/lib/popover';
import PropTypes from 'prop-types';
import _ from 'lodash';
const DetailHeader = ({isEditing, handleEditClick, handleSaveClick, title, hasSaveBtn, btnText, handleInputChange, popover, newPassword}) =>{
let editing = !isEditing ? 'Edit' : 'Cancel';
... |
node_modules/react-bootstrap/es/Pagination.js | cmccandless/SolRFrontEnd | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/action/flip-to-front.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToFront = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c... |
docs/src/components/state-viewer.js | bhamodi/nuclear-js | import React from 'react'
import { toJS } from 'nuclear-js'
import Code from './code'
function formatState(state) {
return JSON.stringify(toJS(state), null, ' ').replace(/\{([^{}]+)\}/g, function(match, contents, index, all) {
return match.replace(/\n\s+/g, '')
})
}
export default React.createClass({
comp... |
templates/rubix/rubix-bootstrap/src/RSplitButton.js | jeffthemaximum/jeffline | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Dropdown from 'react-bootstrap/lib/Dropdown';
import SplitToggle from 'react-bootstrap/lib/SplitToggle';
import omit from 'lodash-compat/object/omit';
import pick from 'lodash-compat/object/pick';
class SplitButton extends React.Compone... |
shared/components/signup.component.js | Mr-Antivirus/Riur | /**
* Copyright 2016-present, Dennis Norton.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule signup.component
*/
'use strict';
import React, { Component } from 'react';
import PropTypes fro... |
src/components/Charts/ShopsLineChart/ShopsLineChart.js | marinbgd/coolbeer | import React from 'react';
import PropTypes from 'prop-types';
import LineChart from '../LineChart/LineChart';
import { getBgColorByIndex } from '../../../common/colors/ColorHelper';
import { union, cloneDeep, uniqWith, isEqual } from 'lodash';
import { dateHourSortAsc } from '../../../common/DateHelper';
const chartDe... |
webapp/app/components/EditGroup/Form/GroupName/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component group name form edit group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
import styles from 'components/EditGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditGroupFormGroupName extends Rea... |
node_modules/react-bootstrap/es/Glyphicon.js | geng890518/editor-ui | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
powerauth-webflow/src/main/js/components/activationSelect.js | lime-company/powerauth-webflow | /*
* PowerAuth Web Flow and related software components
* Copyright (C) 2017 Wultra s.r.o.
*
* 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 License, or
* (... |
src/svg-icons/image/nature.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... |
src/Components/Product.js | bryandesigning/ShippingInfo | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Col } from 'react-bootstrap';
class Product extends React.Component {
render() {
const { className, picture, name, bottleCount, price } = this.props;
return (
<div className={className}>
... |
EvergreenApp/components/Weather/WidgetComponent.js | tr3v0r5/evergreen | import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, TextInput, View, Alert, Button,TouchableOpacity
} from 'react-native';
import {Icon} from 'react-native-elements';
import styles from '../../Styles/weatherStyles.js'
export class WidgetComponent extends Component
{
constructor(){
... |
src/scripts/components/Layout.js | Ash-Bash/Zen-Editor | import React from 'react';
import Editor from './Editor.js';
import InfoBar from './InfoBar.js';
export default class Layout extends React.Component {
render() {
return (
<div>
<Editor className="EditorComponent" />
<InfoBar />
</div>
);
}
}
|
src/svg-icons/av/playlist-add.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
src/plugins/local/components/TableHeadingContainer.js | GriddleGriddle/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { columnTitlesSelector, columnIdsSelector, classNamesForCompon... |
examples/webpack-modern/src/App.js | gaearon/react-hot-loader | import React from 'react';
import { hot } from 'react-hot-loader';
import Counter from './Counter';
const App = () => (
<h1>
Hello, world.<br />
<Counter />
</h1>
);
export default hot(module)(App);
|
actor-apps/app-web/src/app/components/Login.react.js | dut3062796s/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
springboot/GReact/src/main/resources/static/app/routes/ui/containers/UiGeneral.js | ezsimple/java | import React from 'react'
import {OverlayTrigger, Tooltip, Popover} from 'react-bootstrap'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import UiProgressbar from '../../../components/ui/UiProgressbar'
import {smallBox, bigBox, SmartMessageBox} from "../../../components/utils/a... |
js/src/dapps/console/Input/input.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
examples/todomvc/index.js | Surreal9/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
docs/src/app/components/pages/components/SvgIcon/Page.js | kasra-co/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 iconReadmeText from './README';
import IconExampleSimple from './ExampleS... |
src/FileUpload.js | juan-pinzon/pseudogram | import React, { Component } from 'react';
class FileUpload extends Component {
constructor() {
super();
this.state = {
uploadValue: 0,
}
}
render() {
return (
<div>
{/*<progress value={this.state.uploadValue} max="100"></progress>
... |
src/components/video_list.js | jorisknulst/React-Youtube-App | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});
return... |
src/svg-icons/action/gavel.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGavel = (props) => (
<SvgIcon {...props}>
<path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z... |
InstitutionalApp/src/components/contactScreen.js | michelmarcondes/ReactNativeStudies | import React, { Component } from 'react';
import {
StyleSheet,
View,
StatusBar,
Image,
Text
} from 'react-native';
const contactDetail = require('../assets/detalhe_contato.png');
export default class ContactScreen extends Component {
static navigationOptions = {
title: 'Contatos'
}... |
frontend/src/Album/Edit/EditAlbumModalContentConnector.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { saveAlbum, setAlbumValue } from 'Store/Actions/albumActions';
import createAlbumSelector from 'Store/Selectors/createAlbumSelec... |
client/page/site/index.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { connect } from 'react-redux';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { loadSettings, saveSettings } from 'state/settings/action';
import { STATUS_IN_PROGRESS } from 'state/settings/type';
import Place... |
Libraries/Image/Image.ios.js | disparu86/react-native | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
src/client.js | gabrielbull/react-router-server-complex-example | import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { render } from 'react-dom';
import { preload, ServerStateProvider } from 'react-router-server';
import App from './app';
preload(__INITIAL_MODULES__)
.then(() => {
render((
<ServerStateProvider state={__INITIAL_STATE__}>
... |
src/index.js | ranjanbala/react-pwa | import React from 'react'
import { render } from 'react-dom'
import { install } from 'offline-plugin/runtime'
// import './assets/css/main.css'
render(<h1>Chempifine</h1>, document.getElementById('root'))
if (process.env.NODE_ENV === 'production') {
install()
}
|
example/src/App.js | jgliner/react-universal-search | import React from 'react';
import exampleData from '../data/mappedBrews.js';
import UniversalSearch from '../../src/UniversalSearch.js';
import './App.css';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handlePress(e) {
console.info(`you just pressed ${... |
packages/watif-display/src/components/verb-bar.js | jwillesen/watif | import React from 'react'
import {arrayOf, func} from 'prop-types'
import {verbShape} from '../property-shapes'
import './verb-bar.css'
export default class VerbBar extends React.Component {
static propTypes = {
verbs: arrayOf(verbShape),
onVerbClick: func,
}
renderVerbs() {
if (!this.props.verbs) ... |
app/javascript/mastodon/features/followers/index.js | pinfort/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | mxw0417/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
client/modules/Post/__tests__/components/PostListItem.spec.js | Parinaaz/TempApplication17 | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
src/components/navbar/NavbarText.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseText from '../../utils/rnw-compat/BaseText';
const propTypes = {
children: PropTypes.node.isRequired,
};
const NavbarText = React.forwardRef((props, ref) => (
<BaseText
{...props}
ref={ref}
essentials={{
tag: 'span',
... |
src/modules/SidebarMenu/component.js | svmn/ace-rx | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation';
import FontIcon from 'material-ui/FontIcon';
export default function SidebarMenu(props) {
const { selected, select } = props;
return (
<BottomNavi... |
src/index.js | lhyzxc/gallery-by-react | 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()
|
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js | okristian1/react-info | // TODO: This module should be ElementChildren, and should use named exports.
import React from 'react';
/**
* Iterates through children that are typically specified as `props.children`,
* but only maps over children that are "valid components".
*
* The mapFunction provided index will be normalised to the compone... |
project/src/scenes/Profile/components/ProfileContent/ProfileContent.js | boldr/boldr | /* @flow */
/* eslint-disable react/no-unescaped-entities */
import React from 'react';
import Link from 'react-router-dom/Link';
import styled from 'styled-components';
import { Grid, Col, Row } from '@boldr/ui/Layout';
import { Bolt, At, MapPin, AddressCard } from '@boldr/ui/Icons';
// internal
import Button from '@b... |
client/components/Input/TextInput.js | jkettmann/universal-react-relay-starter-kit | import React from 'react'
import { compose, withProps } from 'recompose'
import InputWrapper from './InputWrapper'
import Input from './Input'
const TextInput = props => (
<InputWrapper {...props}>
<Input {...props} />
</InputWrapper>
)
const enhance = compose(
withProps(({ input, meta, ...props }) => ({
... |
src/components/dropdown/FormDropdown.js | mariusespejo/semantic-redux-form-fields | import React, { Component } from 'react';
import { connectedDropdown } from '../../hoc';
import { Form, Dropdown, Label } from 'semantic-ui-react';
export const ReduxDropdown = connectedDropdown(Dropdown);
class FormDropdown extends Component {
handleChange = (e, { value, options }) => {
const {
input: { ... |
static/scripts/components/Security.js | minhuaF/bcb-koa2 |
import "../zepto/zepto.min.js";
import "../zepto/touch.js";
import "../zepto/wap-security.js";
import styles from '../../css/security.css';
import React from 'react';
import { Link, browserHistory } from 'react-router';
const Security = React.createClass({
render: function(){
return (
<div>
... |
Realization/frontend/czechidm-core/src/components/advanced/TabPanel/TabPanelItem.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import classnames from 'classnames';
//
import * as Basic from '../../basic';
/**
* Tab panel item.
*
* @author Radek Tomiška
*/
export default function TabPanelItem(props) {
const { rendered, className, to, a... |
client/components/Admin/ConfirmRemoveUser.js | yacoma/auth-boilerplate | import React from 'react'
import { connect } from '@cerebral/react'
import { state, signal } from 'cerebral/tags'
import { Button, Modal, Icon } from 'semantic-ui-react'
export default connect(
{
nickname: state`admin.users.${state`admin.activeUid`}.nickname`,
showConfirmRemoveUser: state`admin.showConfirmRe... |
docs/app/Examples/collections/Grid/Variations/GridEqualWidthColumnExample.js | jamiehill/stardust | import React from 'react'
import { Grid, Segment } from 'stardust'
const { Column } = Grid
const GridEqualWidthColumnExample = () => (
<Grid columns='equal'>
<Column>
<Segment>1</Segment>
</Column>
<Column width={8}>
<Segment>2</Segment>
</Column>
<Column>
<Segment>3</Segment>
... |
collect-webapp/frontend/src/datamanagement/components/RecordOwnerFilter.js | openforis/collect | import React from 'react'
import MenuItem from '@mui/material/MenuItem'
import { connect } from 'react-redux'
import { DataGridSelectFilter } from 'common/components'
import Arrays from 'utils/Arrays'
import L from 'utils/Labels'
const ONLY_ME = '___ONLY_ME___'
const usersToDataSource = (users) => (users || []).map(... |
docs/src/app/components/pages/components/LinearProgress/Page.js | rscnt/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 linearProgressReadmeText from './README';
import LinearProgressExampleSim... |
src/interface/icons/WebBanner.js | sMteX/WoWAnalyzer | import React from 'react';
// Web Banner by Vectors Market from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66" className="icon" {...other}>
<path d="M58.609,40.132l-20.276-9.089c-0.256-0.115-0.555-0.077-0.775,0.099c-0.219,0.175-0.322,0.459-0.266,0.73... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | picter/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import load from 'absoluteLoad';
export default class ext... |
clients/packages/admin-client/src/ux/components/dialog/index.js | nossas/bonde-client | import React from 'react'
import { FormattedMessage } from 'react-intl'
import Button from '../button'
if (require('exenv').canUseDOM) require('./styles.scss')
const Dialog = ({ children, onConfirm, onCancel }) => (
<div className='dialog--out'>
<div className='dialog'>
<div className='content--dialog'>
... |
client/analytics/App.js | Haaarp/geo | import React from 'react';
import ReactDOM from 'react-dom';
import Application from 'konux/common/components/Application';
import route from './components';
import reducers from './reducers';
import { I18nextProvider } from 'react-i18next';
import i18n from './i18n';
import './../common/styles/common.sass';
import '... |
src/index.js | breath103/watchmen | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, browserHistory, hashHistory, IndexRedirect } from 'react-router'
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
// ====... |
src/components/Productpage/Productpage.js | jdhanesh/ftdpwa | import React from 'react'
import styles from './Productpage.css'
const Productpage = (product) => (
<div>
{console.log(product)}
<div className={styles.productdiv}>
<div className={styles.productimgdiv}>
<img className={styles.productimg} src={'https://liveordering.ftdimg.com/pics/produ... |
dev/js/uiComponents/editor/store/editor-container.js | artisnull/React-CMS | /*
Filename: editor-container.js
Author: Zach Lambert
Last Updated: 17 Apr 2017
Description: Exposes to the editor parent the props and methods needed to display
the correct controls during posEdit and parentSelect, and to hydrate the
global font array
Props: parentSelectOn, posEditOn,
PropMethods: disablePosEdit, dis... |
fields/types/name/NameField.js | developer-prosenjit/keystone | import Field from '../Field';
import React from 'react';
import { FormField, FormInput, FormRow } from 'elemental';
module.exports = Field.create({
displayName: 'NameField',
focusTargetRef: 'first',
valueChanged: function(which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
... |
Project/node_modules/react-router/es/Link.js | IhtishamShah/GamifiedLearningApp | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
packages/wix-style-react/src/MessageBox/docs/CustomModal.js | wix/wix-style-react | import React from 'react';
import TabbedView from 'wix-storybook-utils/TabbedView';
import Markdown from 'wix-storybook-utils/Markdown';
import CodeExample from 'wix-storybook-utils/CodeExample';
import Readme from '../README.md';
import ReadmeTestKit from '../README.TESTKIT.md';
import FullScreenModal from './Custom... |
app/containers/NotFoundPage/index.js | jdelatorreitrs/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
examples/src/ControlledComponent/ControlledComponent.js | mrcodemonkey/react-autosuggest | require('./ControlledComponent.less');
import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function getSuggestions(input, callback) {
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.