path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
fields/types/color/ColorColumn.js | asifiqbal84/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/svg-icons/device/nfc.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
geonode/monitoring/frontend/monitoring/src/containers/main.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... |
src/components/photos.js | Mweeden36/react-app | import React, { Component } from 'react';
export default class Photos extends Component {
render() {
return (
<div>Photos</div>
);
}
} |
src/components/posts/single.js | plastical/react-theme | /* global PlasticalSettings */
// External dependencies
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { injectIntl } from 'react-intl';
import classNames from 'classnames';
// Internal dependencies
import { getTitle, getEditLink, getCon... |
packages/reactor-kitchensink/src/examples/Charts/Bar/BasicBar/BasicBar.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
Ext.require([
'Ext.chart.series.Bar',
'Ext.chart.axis.Numeric',
'Ext.chart.axis.Category'
]);
export default class Bas... |
src/components/Reel.js | tehfailsafe/portfolioReact | import React from 'react';
import {Link} from 'react-router'
const Reel = React.createClass({
render(){
return(
<div className="video reel-wrapper">
<div className="reel">
<Link to="/" ref="back" className="back">
<img src="assets/images/back.png" className="back"/>
... |
app/index.js | dothanhlam/kanbanboard | /*import React from 'react';
import ReactDOM from 'react-dom';
import KanbanBoardContainer from './KanbanBoardContainer.jsx';
import './css/main.css';
main();
function main() {
let app = document.createElement('div');
document.body.appendChild(app);
// ReactDOM.render(<KanbanBoard cards={cardsList}/>, a... |
src/react-chart-line.js | javascriptiscoolpl/react-chart-line | import React from 'react';
import ReactDOM from 'react-dom';
export default class ChartLine extends React.Component {
constructor(props) {
super(props);
this.state = { chr: "init" };
}
render() {
return (
<div className="ReactChart">
<canvas id="canvas"></canvas>
</div>
);
... |
app/containers/CommoditiesCornerContainer.js | MutatedBread/binary-academy-rn | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import CommoditiesCorner from './../components/views/videoTabs/CommoditiesCorner.js';
const mapStateToProps = state => ({
isLoading: state.video.commoditiescorner.isLoading,
videoArrayStore:... |
src/components/Feedback/Feedback.js | BankaiMikeH/HackWSU2017_AirRands | /**
* 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 withStyles from 'isom... |
react-webpack/src/index.js | hzzly/react-getting-started | import React from 'react'
import ReactDom from 'react-dom'
import CommentBox from './CommentBox'
import './assets/style.css'
//测试数据 放到 json 文件里
// let comments = [
// {author: 'hzzly', date: '5 分钟前', text: 'this is a comment'},
// {author: 'hzzly2', date: '2 分钟前', text: '哈哈哈哈'}
// ]
ReactDom.render(
... |
packages/veritone-react-common/src/components/FormBuilder/FormConfiguration/items/createTextInput.js | veritone/veritone-sdk | import React from 'react';
import { string, func, number, oneOfType } from 'prop-types';
import _ from 'lodash';
import TextField from '@material-ui/core/TextField';
export default function createTextInput({
type = 'text',
itemType,
label
}) {
function TextInputComponent({ value, onChange, className }) {
c... |
client/modules/App/components/Footer/Footer.js | eantler/google | import React from 'react';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './Footer.css';
// Import Images
export function Footer() {
return (
<div style={{ background: `transparent` }} className={styles.footer}>
<p>© 2016 · Hashnode · LinearBytes In... |
packages/icons/src/md/av/FiberDvr.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFiberDvr(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M35 21h4v2h-4v-2zM9 21h4v6H9v-6zM42 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h36zM16 27v-6c0-1.7-1.3-3-3-3H... |
src/svg-icons/action/favorite-border.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavoriteBorder = (props) => (
<SvgIcon {...props}>
<path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2... |
app/components/Slider/index.js | SakuB/Individual_website | import React, { Component } from 'react';
import {
SliderBox,
SliderBar,
SliderFullBar,
Slide,
TipNum,
DragBar,
} from './components';
class Slider extends Component {
state = {
progress: 0,
down: false,
}
componentDidMount() {
document.addEventListener('mouseup', () => {
this.hand... |
frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import MovieIndexOverviewOptionsModalContentConnector from './MovieIndexOverviewOptionsModalContentConnector';
function MovieIndexOverviewOptionsModal({ isOpen, onModalClose, ...otherProps }) {
return (
<Mo... |
src/svg-icons/image/brightness-6.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness6 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>... |
client/components/home.js | andela-ksolomon/DocumentManagementSys | import React from 'react';
/**
* @class HomePage
* @classdesc Hompage component
*/
const HomePage = () => (<hi>Hello Welcome to my HomePage</hi>);
export default HomePage;
|
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Shared/Confirm.js | dewmini/carbon-apimgt | import React from 'react'
import Dialog, {
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
class Confirm extends React.Component{
constructor(props){
super(props);
this.state(
{
open: false
}
... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | llukasxx/school-organizer-front | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
client/src/components/FormWiget/FormInput.js | Nonsoft/crdweb | import React from 'react';
import PropTypes from 'prop-types';
import {Input, Form} from 'antd';
const FormItem = Form.Item;
const FormInput = (props) => (
<FormItem label={props.label}>
{props.getFieldDecorator(props.name)(
<Input placeholder={props.label} size="default"/>
)}
</FormItem>
)
FormInpu... |
examples/passing-props-to-children/app.js | Jonekee/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
app/javascript/mastodon/features/compose/components/upload_form.js | blackle/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
export default class U... |
src/containers/pages/create-deck/after-class-selection/create-deck-mobile/deck-list/decklist-wrapper.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import DeckSidebar from '../../left-container/deck-sidebar';
const DecklistWrapper = ({deck, playerClass}) => {
return (
<div className="decklist__wrapper">
<DeckSidebar playerClass={playerClass}/>
</div>
)
};
DecklistWrapper.propT... |
src/Radar.js | shauns/react-d3-radar | // @flow
import React from 'react';
import {schemeCategory10} from 'd3-scale';
import {voronoi} from 'd3-voronoi';
import _ from 'lodash';
import {
flatMapDeepArray,
forEachArray,
radarPoints,
radiusScales,
} from './utils';
import type {RadarPoint, RadarData} from './types';
import RadarWrapper from './RadarWr... |
src/svg-icons/action/change-history.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
src/documentation/Maps/Maps-story.js | wfp/ui | /* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import Page from '../Page';
import Link from '../../components/Link';
import { List, ListItem } from '../../components/List';
storiesOf('Design|Guidelines', module)
.addParameters({ options: { showPanel: false, ... |
src/svg-icons/image/view-comfy.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
web/src/components/Bookmarks.js | blinard/better-bookmarks | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { actionCreators } from '../store/Bookmarks';
import Auth from '../services/Auth';
class Bookmarks extends Component {
auth = new Auth();
constructor(props) {
super(props);
... |
app/javascript/mastodon/features/ui/components/bundle_column_error.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import Column from './column';
import ColumnHeader from './column_header';
import ColumnBackButtonSlim from '../../../components/column_back_button_slim';
import IconButton from '../../../components/... |
components/news/NewsCard.js | BDE-ESIEE/mobile | import React, { Component } from 'react';
import {
Text,
View,
Image,
TouchableHighlight,
Linking
} from 'react-native';
import moment from 'moment';
import 'moment/locale/fr';
import { Actions } from 'react-native-router-flux';
import styles from '../styles/news.js';
import { Button, Card } from 'react-nati... |
src/AppTestContext.js | hannes-hochreiner/more-notes | import React, { Component } from 'react';
import { default as PouchDb } from "pouchdb";
import { default as PubSub } from "pubsub-js";
import { RepoMock } from "./RepoMock";
class AppContext extends Component {
constructor(props) {
super(props);
let repo = new RepoMock();
this.state = {
repo: rep... |
examples/universal/client/index.js | chicoxyzzy/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
old/cppcon-2017-web-service/example/client/strawpoll/src/index.js | Voultapher/Presentations | 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();
|
src/svg-icons/av/web.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWeb = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb = pur... |
components/illustrations/shared/emoji-block.js | skidding/illustrated-algorithms | import PropTypes from 'prop-types';
import React from 'react';
import PureLayoutComponent from '../../../utils/pure-layout-component';
import EmojiIcon from './emoji-icon';
const { round } = Math;
class EmojiBlock extends PureLayoutComponent {
render() {
const {
name,
glow,
} = this.props;
c... |
src/app/index.js | crazypulka/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import List from 'material-ui/List';
import { MenuItem } from 'material-ui/Menu';
import Typography from 'material-ui/Typogr... |
docs/src/app/components/pages/components/Dialog/ExampleModal.js | matthewoates/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
export default class DialogExampleModal extends React.Component {
sta... |
src/svg-icons/hardware/headset-mic.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadsetMic = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/>
... |
src/components/CourseEditor/NoteEditor/TextInput.js | bibleexchange/be-front-new | import React from 'react';
export default class TextInput extends React.Component {
render() {
let mainStyle = {
width: '100%',
margin: '15px'
};
let labelStyle = {
width: '33%',
display: 'inline-block',
border: 'none',
margin: '0'
};
let inputStyle = {
... |
src/app/pages/NotFound.js | skratchdot/react-github-corner | import React, { Component } from 'react';
import { Jumbotron } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
const packageInfo = require('../../../package.json');
class NotFound extends Component {
render() {
return (
<div>
<Jumbotron classN... |
pootle/static/js/auth/components/AccountActivation.js | Yelp/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';
import { PureRenderMixin } from... |
frontend/src/Components/Table/TableRow.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import styles from './TableRow.css';
function TableRow(props) {
const {
className,
children,
overlayContent,
...otherProps
} = props;
return (
<tr
className={className}
{...otherProps}
>
{children}
</tr>... |
analysis/paladinholy/src/modules/features/Overhealing.js | yajinni/WoWAnalyzer | import React from 'react';
import { Trans, t } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Healin... |
App/Components/Settings.js | bretth18/bison | import {
View,
Text,
Image } from 'react-native';
import React, { Component } from 'react';
import { Actions } from 'react-native-router-flux';
import {Container, Header, Content, Footer, Title, Button, Icon } from 'native-base';
import { Card } from 'react-native-material-design';
import SettingsList from 'rea... |
frontend/src/components/siteComponents/BreadcrumbsUI/breadcrumbs.js | webrecorder/webrecorder | import React from 'react';
import { connect } from 'react-redux';
import { truncate } from 'helpers/utils';
export const collList = ({ match }) => match.params.user;
const collDetail = ({ collection }) => { return collection.get('loaded') ? truncate(collection.get('title'), 55) : null };
export const collDetailBrea... |
js/App.js | soltrinox/MarketAuth.ReactNative |
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import CodePush from 'react-native-code-push';
import { Container, Content, Text, View } from 'native-base';
import Modal from 'react-native-modalbox';
import AppNavigator from './AppNavigator';
// import ProgressBar from './compone... |
webapp-src/src/Hutch/CoinElementUrl.js | babelouest/hutch | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class CoinElementUrl extends Component {
constructor(props) {
super(props);
this.state = {
coin: props.coin,
oidcStatus: props.oidcStatus,
element: props.ele... |
client/components/settings/bank-accesses/form.js | bnjbvr/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { get, actions } from '../../../store';
import { assert, translate as $t } from '../../../helpers';
import PasswordInput from '../../ui/password-input';
import FuzzyOrNativeSelect from '../../ui/fuzzy-or-nativ... |
src/components/NotificationDrop/NotificationDrop.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './NotificationDrop.css';
import Box from '../Box';
import Button from '../Button';
import List from '../List';
import... |
client/components/annotators/article-annotator.js | CommonActionForum/liqen-face | import React from 'react'
import TextAnnotator from './text-annotator/text-annotator'
function convertObjectToReact (obj, key) {
if (typeof obj === 'string') {
return obj
} else {
const children = obj.children.map((item, i) => convertObjectToReact(item, i))
if (children.length === 1) {
return Re... |
app/components/menu.component.js | garethnic/restle | //Libraries
import React from 'react'
class Menu extends React.Component {
render () {
return (
<form onSubmit={this.props.handleSubmit}>
<div className="form-group">
<input type="text" className="form-control"
value={this.props.feedValue}
... |
generators/advanced-base/templates/src/components/Page.js | bamlab/generator-rn-toolbox | import React, { Component } from 'react';
import { View, StyleSheet, Image, Dimensions } from 'react-native';
import theme from 'theme';
type Props = {
children: React.Element<*>,
noPadding: boolean,
noNavBar: boolean,
backgroundColor: string,
style?: any,
backgroundImage?: any,
};
type DefaultProps = {
... |
src/components/Sidebar/index.js | KNETIC-KRPF/KNETIC-CLIENT | import React from 'react';
import './sidebar.css';
const Sidebar = props => {
return(
<div className="sidebar">
</div>
);
}
export default Sidebar;
|
app/views/main/elements/stock-cell.js | 7kfpun/FinanceReactNative | import React from 'react';
import PropTypes from 'prop-types';
import {
Text,
TouchableHighlight,
View,
StyleSheet,
} from 'react-native';
// Flux
import StockActions from '../../../actions/stock-action';
import StockStore from '../../../stores/stock-store';
const ROTATE_PROPERTIES = {
Change: 'MarketCapita... |
node_modules/re-base/examples/firestore/chatapp/src/components/Container.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import Message from './Message.js';
import base from '../rebase';
class Container extends React.Component {
constructor(props) {
super(props);
this.state = {
show: null
};
}
_removeMessage(ref, e) {
e.stopPropagation();
base.removeDoc(ref);
}
_toggleView(i... |
client/modules/App/components/Footer/Footer.js | Captain-Million/Captain-Million | import React from 'react';
// Import Style
// import styles from './Footer.css';
export function Footer() {
return (
<div>
</div>
);
}
export default Footer;
|
app/javascript/mastodon/containers/account_container.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
src/packages/@ncigdc/components/Explore/SummaryPage/index.js | NCI-GDC/portal-ui | import React from 'react';
import { scaleOrdinal, schemeCategory20 } from 'd3';
import { get } from 'lodash';
import HistogramCard from '@ncigdc/components/Explore/SummaryPage/HistogramCard';
import SampleTypeCard from '@ncigdc/components/Explore/SummaryPage/SampleTypeCard';
import SummaryPageQuery from '@ncigdc/comp... |
docs/app/Examples/elements/Segment/Types/SegmentExampleSegment.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSegment = () => (
<Segment>
Pellentesque habitant morbi tristique senectus.
</Segment>
)
export default SegmentExampleSegment
|
server/handleRender.js | BostonGlobe/elections-2016 | // This module does server-side rendering.
import React from 'react'
import { Provider } from 'react-redux'
import { renderToString, renderToStaticMarkup } from 'react-dom/server'
import { match, RouterContext, createMemoryHistory } from 'react-router'
import { trigger } from 'redial'
import logger from './../common/u... |
app/javascript/mastodon/features/ui/components/media_modal.js | h-izumi/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
impor... |
src/main/internal/adaption/react/createElement.js | js-works/js-surface | // external import
import React from 'react'
// --- createElement ------------------------------------------------
const createElement = React.createElement
// --- externals ----------------------------------------------------
export default createElement
|
src/js/components/stories/CertificateListDetail.js | mosen/micromdm-ui | import React from 'react';
import moment from 'moment';
import {storiesOf, action} from '@kadira/storybook';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import CertificateListDetail from '../CertificateListDetail';
const nothing = () => null;
storiesOf('CertificateListDetail', module)
.add('... |
src/scripts/pages/NewProject.page.story.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
src/components/NewHousehold/NewHouseholdForm.js | cernanb/personal-chef-react-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Form, Segment, Checkbox } from 'semantic-ui-react';
import styled from 'styled-components';
export const StyledForm = styled.div`
ul {
max-width: 800px;
margin: 0 auto;
}
li {
display: flex;
flex-wrap:... |
client/src/js/components/Navbar.js | brandon-pineda/BasedReviews | import React from 'react';
import { Link } from 'react-router';
const Navbar = () => (
<section className="intro-container">
<h1>
<Link to='/'>
BasedReviews
</Link>
</h1>
<nav>
<ul>
<li><Link to='/reviews'
... |
app/javascript/mastodon/features/ui/components/upload_area.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
packages/benchmarks/src/app/Button.js | necolas/react-native-web | import { StyleSheet, TouchableHighlight, Text } from 'react-native';
import React, { Component } from 'react';
export default class Button extends Component<*> {
static displayName = '@app/Button';
render() {
const {
accessibilityLabel,
color,
disabled,
onPress,
style,
text... |
stories/Basic.js | zsherman/react-limitless | import React from 'react';
import random from 'random-words';
import CodeHighlight from './components/codeHighlight.js';
import { Limitless } from '../src/index';
// Generate example datum with a message and timestamp
const makeItem = () => ({
timestamp: new Date(),
message: random({min: 27, max:90}).join(" ")
});... |
client/App.js | greenfox-academy/lufthansa_project | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, hashHistory} from 'react-router';
require('./style/modules/navbar.css');
require('./style/modules/container.css');
require('./style/modules/index.css');
var routes = require('./config/routes');
var Logger = require('./front-end-... |
src/Overlay.js | sthawali/react-overlays | import React from 'react';
import Portal from './Portal';
import Position from './Position';
import RootCloseWrapper from './RootCloseWrapper';
import elementType from 'react-prop-types/lib/elementType';
/**
* Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
... |
react/dashboard_example/src/routes/dashboardPages/grid/index.js | webmaster444/webmaster444.github.io |
import React from 'react';
import Grid from './Grid';
export default {
path: '/grid',
action() {
return <Grid />;
},
};
|
frontend/src/components/overview/counters/index.js | rossnomann/playlog | import PropTypes from 'prop-types';
import React from 'react';
import './index.css';
const Counters = ({header, data, footer}) => (
<div>
<div className="overview-counters-header">{header}</div>
{
data.map((item, idx) => (
<div key={idx} className="overview-counters-ite... |
imports/ui/components/header/header.js | irvinlim/free4all | import React from 'react';
import { Navbar } from 'react-bootstrap';
import { Link, browserHistory } from 'react-router';
import AppBar from 'material-ui/AppBar';
import HeaderProfile from '../../containers/header/header-profile';
import HeaderNotifications from '../../containers/header/header-notifications';
import D... |
demos/react-redux/AnyBudget/components/BarChart.react.js | andrewimm/parse-lite | import React from 'react';
export default class BarChart extends React.Component {
constructor() {
super();
this.state = {width: 0};
}
componentWillReceiveProps(nextProps) {
let fillPercent = nextProps.value / nextProps.max * 100;
if (!isFinite(fillPercent)) {
fillPercent = 100;
}
... |
src/components/Hypertension/HypertensionB.js | lethecoa/work-order-pc | import React from 'react';
import {Form, Input, Table, Row,Checkbox,Col} from 'antd';
import styles from './HypertensionB.less';
import {config, fun} from '../../common';
import {HypertensionSymptom} from '../../components';
const CheckboxGroup = Checkbox.Group;
const FormItem = Form.Item;
const formItemLayout = {
l... |
fixtures/dom/src/components/fixtures/input-change-events/InputPlaceholderFixture.js | flipactual/react | import React from 'react';
import Fixture from '../../Fixture';
class InputPlaceholderFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
placeholder: 'A placeholder',
changeCount: 0,
};
}
handleChange = () => {
this.setState(({ c... |
react-redux-i18n-starter-kit/blueprints/dumb/files/__root__/components/__name__/__name__.js | josedab/react-examples | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/svg-icons/hardware/gamepad.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
src/common/lazyLoadComponent.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import DelayRender from 'interface/common/DelayRender';
export default function lazyLoadComponent(load, delay = 1000) {
class ComponentLazyLoader extends React.PureComponent {
static loadedComponent = null;
state = {
loaded: !!ComponentLazyLoader.loadedComponent,
};
... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/color/index.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
withHandlers,
withState,
setStatic
} from 'recompose';
import color from 'hex-and-rgba';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import Colorpicker from ... |
src/components/common/news/RecentNewsItem.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import SanitizedHTML from 'react-sanitized-html';
import { Row, Col } from 'react-flexbox-grid/lib';
import messages from '../../../resources/messages';
const RecentNewsItem = props => (
<div cla... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | yukimochi/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
ReactApp/db.ios.js | johnsiwicki/tbsrn | /**
* Global DB Functions
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
'use strict';
/* ==============================
Initialise App
=============================== */
// React
// import React, { Component } from 'react';
// 3rd Party Components
import RNDBMo... |
src/svg-icons/action/assignment-turned-in.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
public/components/wz-agent-selector/wz-agent-selector.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for build q queries.
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at you... |
app/scripts/HiGlassComponent.js | hms-dbmi/higlass | import React from 'react';
import PropTypes from 'prop-types';
import { select, clientPoint } from 'd3-selection';
import { scaleLinear } from 'd3-scale';
import slugid from 'slugid';
import * as PIXI from 'pixi.js';
import ReactDOM from 'react-dom';
import ReactGridLayout from 'react-grid-layout';
import { ResizeSenso... |
docs/app/Examples/elements/Image/Variations/ImageExampleSpaced.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment, Image } from 'semantic-ui-react'
const src = '/assets/images/wireframe/image.png'
const ImageExampleSpaced = () => (
<div>
<Segment>
<p>
Te eum doming eirmod, nominati pertinacia <Image src={src} size='mini' spaced /> argumentum ad his. Ex eam alia
... |
src/components/Page/Page.js | SgtRock91/FantasyOptimizer | /**
* 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 PropTypes from 'prop-... |
src/components/app.js | mineralmink/poke | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
fields/types/azurefile/AzureFileColumn.js | joerter/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
docs/src/app/components/pages/components/Menu/ExampleSecondary.js | pancho111203/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import Divider from 'material-ui/Divider';
import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right';
const style = {
display: 'inline-block',
flo... |
tnoodle-ui/src/index.js | cubing/tnoodle | import React from 'react';
import ReactDOM from 'react-dom';
import { App } from 'App';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
|
exercise-04/src/components/Pokedex.js | learnapollo/pokedex-react | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import styled from 'styled-components'
import PokemonPreview from '../components/PokemonPreview'
const Title = styled.div`
color: #7F7F7F;
font-size: 32px;
font-weight: 300;
`
class Pokedex extends React.Component {
... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | lindwurm/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
app/containers/Game/index.js | EugeneHlushko/game-15 | /*
*
* Game
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import styled from 'styled-components';
import debug from 'debug';
import { tryMove } from 'utils/helpers';
... |
src/svg-icons/notification/ondemand-video.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.