path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/components/shared/LoadingIndicator.android.js | kort/kort-reloaded | import React from 'react';
import { ProgressBarAndroid, View, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
overlayContainer: {
flex: 1,
justifyContent: 'center',
position: 'absolute',
top: 0,
bottom: 0,
left: 0,
right: 0,
backgroundColor: 'rgba(255,255,255,0)',... |
ignite/DevScreens/APITestingScreen.js | littletimo/beer-counter | import React from 'react'
import { ScrollView, View, Text, TouchableOpacity, Image } from 'react-native'
import { Metrics, Images } from './DevTheme'
import FullButton from '../../App/Components/FullButton'
// For API
import API from '../../App/Services/Api'
import FJSON from 'format-json'
// Styles
import styles fro... |
src/js/components/MenuLink.js | gogrademe/WebApp | import React from 'react';
import { NavLink } from 'react-router-dom';
import { Menu } from 'semantic-ui-react'
export default (props) => <Menu.Item as={NavLink} activeClassName='active' {...props} />;
|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | ChrisHIPPO/Mockstock | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
docs/app/Examples/elements/Label/Groups/LabelExampleGroupColored.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Icon, Label } from 'semantic-ui-react'
const LabelExampleGroupSize = () => (
<Label.Group color='blue'>
<Label as='a'>
Fun
<Icon name='close' />
</Label>
<Label as='a'>
Happy
<Label.Detail>22</Label.Detail>
</Label>
<Label as='a'>Smart</L... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/keyboard-capslock.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardCapslock = (props) => (
<SvgIcon {...props}>
<path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/>
</SvgIcon>
);
HardwareKeyboardCapslock = pure(HardwareKeyboardCaps... |
frontend/src/components/shared/select-field/index.js | Kilte/cindy | import React from 'react';
import FocusLost from '../focus-lost';
import TextField from '../text-field';
import './index.css';
class SelectField extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
this.hide = this.hide.bind(this);
this.switch = ... |
src/components/Sections/SectionNumber.js | demisto/sane-reports | import './SectionNumber.less';
import React from 'react';
import PropTypes from 'prop-types';
import values from 'lodash/values';
import classNames from 'classnames';
import { CHART_LAYOUT_TYPE, WIDGET_VALUES_FORMAT } from '../../constants/Constants';
import { capitalizeFirstLetter, formatNumberValue } from '../../util... |
components/form/Checkbox.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'components/ui/icon';
import FormElement from './FormElement';
export default class Checkbox extends FormElement {
/**
* UI EVENTS
* - triggerChange
*/
triggerChange(evt) {
const { valu... |
client/src/modules/registration/registration.view.js | euqen/spreadsheet-core | 'use strict';
import React from 'react';
import {Link} from 'react-router';
import ErrorCollector from './../../components/error-collector';
import dispatcher from './../../infrastructure/dispatcher';
import bind from './../../infrastructure/store-connector';
import store from './registration.store';
import counterpar... |
app/weather.js | wvicioso/dapr | import React, { Component } from 'react';
import {
Navigator,
StyleSheet,
Text,
TextInput,
ScrollView,
TouchableOpacity,
View,
Image,
ListView
} from 'react-native';
const Carousel = require('react-native-carousel');
const SideMenu = require('react-native-side-menu');
export default class Weather ex... |
src/svg-icons/action/list.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionList = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
ActionList = pure(ActionList);
ActionList.displa... |
imports/ui/pages/Miscellaneous/Login/Login.js | haraneesh/mydev | import React from 'react';
import {
Col, FormGroup, Button, Panel,
} from 'react-bootstrap';
import { Link } from 'react-router-dom';
import { Meteor } from 'meteor/meteor';
import { toast } from 'react-toastify';
// import OAuthLoginButtons from '../../../components/OAuthLoginButtons/OAuthLoginButtons';
import Acco... |
src/server.js | Padelas649/moralgram | // src/server.js
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
... |
src/components/PageHeader.js | ChicagoJS/chicagojs.org | import React from 'react'
import './PageHeader.css'
import PropType from 'prop-types'
import { isValidUrl } from '../utils'
const PageHeader = ({ background, title, titleColor, gradient }) => {
const generateBackground = background => ({
background: isValidUrl(background)
? `linear-gradient(to right bottom... |
src/components/serpListItem.js | joeterrell/SerpMonsterReactApp | import React, { Component } from 'react';
class SerpListItem extends Component {
constructor(props) {
super(props);
};
render() {
return (
<li
className="list-group-item"
data-active={this.props.active}
onClick={() => {
this.props.onResultSelect(this.props.resultK... |
share/components/LogIn/index.js | caojs/password-manager-server | import React from 'react';
import { connect } from 'react-redux';
import { createAction } from 'redux-actions';
import { reduxForm } from 'redux-form/immutable'
import Immutable from 'immutable';
import LogIn from './LogIn';
import redirectTo from '../redirectTo';
import { post } from '../../api';
@connect(state => {... |
src/svg-icons/action/bookmark.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmark = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionBookmark = pure(ActionBookmark);
ActionBookmark.displayName = 'Ac... |
examples/forms-material-ui/src/components/_common/CodeExample/CodeBlockTitle.js | lore/lore-forms | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'material-ui/IconButton';
import CodeIcon from 'material-ui/svg-icons/action/code';
import {Toolbar, ToolbarGroup, ToolbarTitle} from 'material-ui/Toolbar';
const CodeBlockTitle = (props) => (
<Toolbar>
<ToolbarGroup>
<To... |
src/esm/components/graphics/icons/rocket-circle-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "bgColor", "circleColor", "circleWidth", "circleWidthMobile", "rocketWidth", "rocketWidthMobile", "rocketHeight", "rocketHeightMobile", "rocke... |
public/js/cat_source/es6/components/analyze/JobAnalyze.js | matecat/MateCat | import React from 'react'
import _ from 'lodash'
import JobAnalyzeHeader from './JobAnalyzeHeader'
import JobTableHeader from './JobTableHeader'
import ChunkAnalyze from './ChunkAnalyze'
import AnalyzeConstants from '../../constants/AnalyzeConstants'
import AnalyzeStore from '../../stores/AnalyzeStore'
class JobAnaly... |
src/containers/PlaceListPage.js | nickeblewis/walkapp | /**
* Component that lists all Posts
*/
import React from 'react'
import { Link } from 'react-router'
import Place from '../components/Place'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import { Map, Marker, Popup, TileLayer } from 'react-leaflet'
class PlaceListPage extends React.Component ... |
src/svg-icons/editor/merge-type.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMergeType = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
EditorMergeType = pure(Editor... |
src/webapp/config/routes.js | nus-mtp/cubist | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import {
AppContainer,
AdminContainer,
AdminModelsContainer,
AdminUsersContainer,
AdminLoginContainer,
AuthorisationContainer,
HomeContainer,
LoginContainer,
RegisterContainer,
ResetPasswordContainer,
ModelContainer,
M... |
app/views/Template/Login/Login.js | RcKeller/STF-Refresh | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { endSession } from '../../../services/authentication'
import { environment } from '../../../services/'
const { ENV } = environment
/*
LOGIN COMPONENT
A brand... |
dispatch/static/manager/src/js/components/inputs/selects/PollSelectInput.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import ItemSelectInput from './ItemSelectInput'
import pollsActions from '../../../actions/PollsActions'
class PollSelectInputComponent extends React.Component {
listPolls(query) {
let queryObj = {}
if (query) {
queryObj['q'] = query
... |
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/index.js | David-Desmaisons/MVVM.CEF.Glue | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { ready } from './mobxManager';
import 'bootstrap/dist/css/bootstrap.css';
ready.then(res => {
ReactDOM.render(<App viewModel={res.vm.ViewModel}/>, document.getElementById('root'), res.ready);
})
|
src/library/Table/TableSelectableCell.js | mineral-ui/mineral-ui | /* @flow */
import React, { Component } from 'react';
import TableCell from './TableCell';
import TableHeaderCell from './TableHeaderCell';
import TableContext from './TableContext';
import { PaddedCheckbox } from './styled';
import type { TableSelectableCellProps } from './types';
export default class TableSelectabl... |
client/framework-webclient/src/routes/Knowledge/subviews/StandardList/components/StandardEditView.js | DimitriZhao/sinosteel | import React from 'react';
import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button, DatePicker, InputNumber, Card } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;
import EditView from 'common/basic/components/EditView';
import moment from 'moment';
import FormUpload f... |
webapp/pages/all_projects_page.js | bowlofstew/changes | import React from 'react';
import moment from 'moment';
import APINotLoaded from 'es6!display/not_loaded';
import ChangesPage from 'es6!display/page_chrome';
import DisplayUtils from 'es6!display/changes/utils';
import SectionHeader from 'es6!display/section_header';
import { BuildWidget } from 'es6!display/changes/bu... |
frontend/app/components/StatusBar/index.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import Snackbar from '@material-ui/core/Snackbar'
export default class StatusBar extends React.Component {
constructor(props) {
super(props)
this.state = {
open: true,
}
}
handleRequestClose = () => {
this.setState({
open: false,
})
}
// componentDi... |
resources/js/components/FormInput/FileUploadInput.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
/**
* Base file upload input.
*/
const FileUploadInput = ({
accept,
className,
clearErrors,
id,
name,
refs,
setData,
}) => {
function handleChange(event) {
clearErrors(event.target.name);
setData(event.target.name, event.target.f... |
src/Tab/Item.js | szchenghuang/react-mdui | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
class Item extends React.Component {
render() {
return null;
}
}
Item.propTypes = {
children: PropTypes.node,
id: PropTypes.string,
icon: PropTypes.node,
label: PropTypes.string,
ripple: PropTypes.any,
active: PropTypes.... |
imports/ui/components/Loading/Loading.js | lazygalaxy/lazybat-seed-meteorjs | import React from 'react';
const Loading = () => (
<div className="Loading">
<svg width="44" height="44" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#4285F4">
<g fill="none" fillRule="evenodd" strokeWidth="2">
<circle cx="22" cy="22" r="1">
<animate
attribut... |
src/components/Header/Header.js | rameshrr/dicomviewer | /**
* 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... |
components/BackendWidgetComponent.js | ExtPoint/yii2-frontend | import React from 'react';
import {Provider} from 'react-redux';
import domready from 'domready';
import loadJs from 'load-js';
import ReactDOM from 'react-dom';
import _trimStart from 'lodash-es/trimStart';
export default class BackendWidgetComponent {
constructor(store) {
this.store = store || null;
... |
app/components/Report/BizList.js | Bullseyed/Bullseye | import React from 'react'
import { Row, Col, Collection, CollectionItem, Modal, Icon } from 'react-materialize'
import { connect } from 'react-redux'
const BizList = (props) => {
return (
<Row>
<Row> <b> Nearby Businesses: </b> </Row>
<Row style={{ paddingTop: 0, paddingBottom: 0 }}>
<Col s={6}>
<b> ... |
components/PackageRepoBranchName.js | loggur/branches | import React, { Component } from 'react';
import provide from 'react-redux-provide';
import onClickToggle from '../common/onClickToggle.js';
import {
getRepoTree, getDirtyMap, tree, dirty, toggle, open, theme,
repoApi, repoKey, repoName, branchName, fullPath, children
} from '../common/propTypes.js';
import Limbs f... |
src/assets/js/pages/carousel_sample.js | task-k/react_prototype | import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import App from '../component/carousel'
render(
<Provider>
<App/>
</Provider>, document.getElementById("root")
)
|
indico/web/client/js/jquery/widgets/jinja/permissions_widget.js | indico/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {GroupSearch, UserSearch} from ... |
index.js | ranveerching/react-native-custom-snackbar | import React, { Component } from 'react';
import { View, Text, Animated, Image, TouchableOpacity, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
class SnackBar extends Component
{
constructor()
{
super();
this.animatedValue = new Animated.Value(60);
this.s... |
src/shared/components/idme/idme.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import config from 'config/environment';
import troopImage from 'images/Troop.png';
import styles from './idme.css';
class Idme extends Component {
openIDME = () => {
window.open(`${config.idmeOAuthUrl}?client_id=${config.idmeClientId}&redirect_uri=${
config.host
... |
src/icons/IosPaper.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosPaper extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M112,64v16v32v288H96V112H64v305.143C64,434.157,77.843,448,94.857,448h322.285C434.157,448,448,434.157,448,417.143V64H112
... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/complete/theme/Provider.js | Brandon-J-Campbell/codemash | import React from 'react';
import ThemeContext from './context';
export default class ThemeProvider extends React.Component {
state = {
theme: 'purple',
};
handleThemeChange = () => {
this.setState(prevState => ({
theme: prevState.theme === 'green' ? 'purple' : 'green',
}));
};
render() ... |
src/mixins/style-propable.js | SBP07/frontend | import React from 'react';
import ImmutabilityHelper from '../utils/immutability-helper';
import Styles from '../utils/styles';
// This mixin isn't necessary and will be removed in v0.11
/**
* @params:
* styles = Current styles.
* props = New style properties that will override the current style.
*/
export defau... |
src/heavyweightcomponents/propmonger.js | bhuvanmalik007/mission-admission | /* eslint-disable react/prop-types */
import React from 'react'
const propMonger = ({ swallowProps = [] } = {}) => WrappedComponent => {
const Wrapper = ({ children, ...props }) => {
swallowProps.forEach(propName => {
delete props[propName]
})
return <WrappedComponent {...props}>{children}</Wrapped... |
src/routes.js | sallen450/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/native/me/MePage.js | reedlaw/read-it | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import SignOut from '../auth/SignOut';
import getUserPhotoUrl from '../../common/users/getUserPhotoUrl';
import { Box, Text } from '../../common/components';
import { Image } from 'react-native';
import { Redirect } from 'react-r... |
site/src/pages/vue/Home.js | appbaseio/reactivesearch | import React from 'react';
import config from './../../constants/config/home/vue';
import Home from './../../components/Home';
import theme from './../../constants/theme/vue';
export default () => <Home config={config} theme={theme} />;
|
react-flux-mui/js/material-ui/src/svg-icons/av/forward-30.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward30 = (props) => (
<SvgIcon {...props}>
<path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4... |
src/parser/warlock/destruction/CONFIG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Chizu } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time mainta... |
src/app/src/components/InstructorPreferences.js | istreight/eggbeatr | /**
* FILENAME: Instructors.js
* AUTHOR: Isaac Streight
* START DATE: October 25th, 2016
*
* This file contains the Intructors class for
* the collection of instructors for the lesson
* calendar web application.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'p... |
app/component/quiz/SideMenuMoradores.js | vagnerpraia/ipeasurvey | import React, { Component } from 'react';
import { ScrollView, ToastAndroid } from 'react-native';
import { List, ListItem, Text } from 'native-base';
let admin;
let quiz;
export default class SideMenuMoradores extends Component {
constructor(props) {
super(props);
admin = this.props.admin;
... |
src/renderer/components/Frame/FrameLayouts.js | MovieCast/moviecast-desktop | import React, { Component } from 'react';
import { BrowserRouter } from 'react-router-dom';
import { withStyles } from '@material-ui/core/styles';
import NavLayout from '@/components/Layouts/NavLayout';
import FlexLayout from '@/components/Layouts/FlexLayout';
const styles = theme => ({
root: {
display: 'flex'... |
admin/client/App/components/Navigation/Mobile/index.js | giovanniRodighiero/cms | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
Realization/frontend/czechidm-core/src/content/scheduler/LongRunningTaskQueue.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { LongRunningTaskItemManager, LongRunningTaskManager } from '../..... |
src/pages/delight.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Delight' />
)
|
node_modules/react-router/es6/withRouter.js | lzm854676408/big-demo | 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; };
import React from 'react';
import hoistStatics from 'hoist-no... |
app/app.js | akash6190/apollo-starter | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { ApolloProvider } from 'react-apollo'... |
app/Home.js | danbruder/cyclegram | import React from 'react'
import api from './api'
import { Redirect } from 'react-router-dom'
import { Button, Checkbox, Form } from 'semantic-ui-react'
export default class extends React.Component{
render() {
return (
<div className="container">
Home
</div>
)
}
}
|
app/components/ConnectDapp/VerifyOrSignMessage.js | CityOfZion/neon-wallet | // @flow
import React from 'react'
import classNames from 'classnames'
import { isEmpty } from 'lodash-es'
import { JsonRpcRequest } from '@json-rpc-tools/utils'
import { useWalletConnect } from '../../context/WalletConnect/WalletConnectContext'
import { ROUTES } from '../../core/constants'
import CloseButton from '.... |
frontend/component/Profile.js | auronzhong/pratice-node-project | /**
* Created by zhongwei on 16/7/23.
*/
import React from 'react';
import jQuery from 'jquery';
import {loginUser, updateProfile} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Profile extends React.Component {
constructor(props) {
super(props);
this.state ... |
src/components/Header/Header.js | treeforever/voice-recognition-photo-gallary | import React from 'react'
// import { IndexLink, Link } from 'react-router'
import { Router, Route, Link, browserHistory } from 'react-router'
import OwlImage from '../../routes/Home/assets/owl.jpg'
import HomeView from '../../routes/Home'
import TagView from '../../routes/Tag'
import './Header.scss'
export const Head... |
src/static/containers/NotFound/index.js | spiskommg/mm-v2 | import React from 'react';
export default class NotFoundView extends React.Component {
componentWillMount() {
console.log(this.props.location.pathname);
}
render() {
return (
<div>
<h1>NOT FOUND</h1>
</div>
);
}
}
|
app/components/List/index.js | Ennovar/clock_it | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
src/client/athrun/apps/demo/screens/home/components/ControlPanel.js | cnfi/laboratory | import React, { Component } from 'react';
import shallowCompare from 'react-addons-shallow-compare'
import { Input } from 'antd';
import TestBox from './TestBox'
class ControlPanel extends React.Component{
shouldComponentUpdate(nextProps) {
return shallowCompare(this.props.home.text, nextProps.home.text);
... |
packages/@vega/components/src/views/CommentBlockEditor/CommentBlockEditor.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import {BlockEditor} from 'part:@lyra/form-builder'
export default class CommentBlockEditor extends React.Component {
static propTypes = {
type: PropTypes.shape({
title: PropTypes.string
}).isRequired,
level: PropTypes.number,
value: ... |
src/js/components/icons/base/BottomCorner.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
website/src/components/title.js | spacy-io/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Button from './button'
import Tag from './tag'
import { OptionalLink } from './link'
import { InlineCode } from './code'
import { H1, Label, InlineList, Help } from './typography'
import Icon from './icon'
import c... |
src/widgets/arrow_nav2/index.js | HelloQingGuo/HelloQingGuo.github.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { Icon } from 'antd';
import { links as navItems } from '../constants/links';
import { navigate } from '../../actions/action_ui';
import './index.css';
co... |
src/svg-icons/navigation/arrow-drop-down.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
components/Form/Checkbox/Checkbox.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import uniqueId from 'lodash/fp/uniqueId';
import css from './Checkbox.css';
import noop from '../../../utils/noop';
import Icon from '../../Icon/Icon';
import ScreenReadable from '../../ScreenReadable/ScreenRead... |
src/nav-team.js | FederationOfFathers/ui | import React, { Component } from 'react';
class TeamNav extends Component {
constructor(props) {
super(props)
this.state = {
subNavSelected: false,
}
}
subNavClick = () => {
if ( this.state.subNavSelected === true ) {
this.setState({subNavSelected: false})
} else {
this.setState({subNavSelected: ... |
docs/app/Examples/elements/List/Variations/ListExampleInverted.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { List, Segment } from 'semantic-ui-react'
const ListExampleInverted = () => (
<Segment inverted>
<List divided inverted relaxed>
<List.Item>
<List.Content>
<List.Header>Snickerdoodle</List.Header>
An excellent companion
</List.Content>
... |
src/js/pages/Proposals/Experience/FeaturesPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import TopNavBar from '../../../components/TopNavBar/TopNavBar.js';
import '../../../../scss/pages/proposals/experience/features.scss';
import StepsBar from "../../../components/ui/StepsBar/Ste... |
threeforce/node_modules/react-bootstrap/es/NavItem.js | wolfiex/VisACC | 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 ... |
src/index.js | cleancodegame/clean-code-game | import React from 'react'
import ReactDOM from 'react-dom'
import AppContainer from './view/App'
import Scoreboard from './view/Scoreboard'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, combineReducers, compose } from 'redux'
import createSagaMiddleware from 'redux-saga'
import authReduc... |
app/react-icons/fa/search-plus.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSearchPlus extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m24.4 17.9v1.4q0 0.3-0.3 0.5t-0.5 0.2h-5v5q0 0.3-0.2 0.5t-0.5 0.2h-1.4q-0... |
lib/codemod/src/transforms/__testfixtures__/update-addon-info/update-addon-info.input.js | rhalff/storybook | /* eslint-disable */
import React from 'react'
import Button from './Button'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
storiesOf(
'Button'
).addWithInfo(
'simple usage',
'This is the basic usage with the button with providing a label to show the text.',
() ... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisColoredInverted.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasisColoredInverted = () => (
<div>
<Segment inverted color='red'>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment inverted color='red' secondary>
I am pretty... |
src/components/Spinner.js | pshrmn/cryptonite | import React from 'react';
const Spinner = () => (
<svg
width='32px'
height='32px'
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
className="uil-ripple">
<rect
x="0"
y="0"
width="100"
height="100"
fill="none"
cla... |
src/containers/Root/Root.js | jinglemansweep/webpack-boilerplate | import React from 'react'; // eslint-disable-line no-unused-vars
import PropTypes from 'prop-types';
import { Provider } from 'react-redux'; // eslint-disable-line no-unused-vars
import { Route } from 'react-router'; // eslint-disable-line no-unused-vars
import { ConnectedRouter } from 'react-router-redux'; // eslint-d... |
src/components/Bulk/BulkCreateView/SearchTerms/SearchTerms.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, slice } from 'lodash';
import { BULK_UPDATE_SEARCH_TERM_DEFAULT } from '../../../../constants';
import SearchTerm from './SearchTerm';
import './SearchTerms.scss';
export class SearchTerms extends React.Component {
constructor (props)... |
src/svg-icons/device/access-alarms.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9... |
src/packages/@ncigdc/modern_components/AffectedCasesBarChart/AffectedCasesBarChart.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import Relay from 'react-relay/classic';
import { parse } from 'query-string';
import { compose } from 'recompose';
import withRouter from '@ncigdc/utils/withRouter';
import { viewerQuery } from '@ncigdc/routes/queries';
import { parseFilterParam } from '@ncigdc/utils/uri';
import {... |
src/js/components/icons/base/FormFilter.js | odedre/grommet-final | /**
* @description FormFilter SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* ... |
RNApp/app/index.js | spencercarli/react-native-meteor-boilerplate | import React from 'react';
import Meteor, { createContainer } from 'react-native-meteor';
import { AuthStack, Tabs } from './config/routes';
import Loading from './components/Loading';
import settings from './config/settings';
Meteor.connect(settings.METEOR_URL);
const RNApp = (props) => {
const { status, user, lo... |
src/entypo/FolderImages.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--FolderImages';
let EntypoFolderImages = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.405,2.799C18.293,2.359,17.749,2,17.195,2H2.805c-0.555,0-1.099,0.359-1.21,0.799L1.394,... |
js/components/sideBar/index.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { Image, ScrollView, AsyncStorage } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Content, Text, List, View, ListItem, Card, CardItem, Thumbnail, Button, Icon, Badge } from 'native-b... |
client/src/components/Loading.js | hutchgrant/react-boilerplate | import React from 'react';
export default({isLoading, error}) => {
// Handle the loading state
if (isLoading) {
return <div>Loading...</div>;
}
// Handle the error state
else if (error) {
return (
<div className="text-center">
<h1>Error 404</h1>
<h3>Pag... |
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/laptop-chromebook.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook.displayName = 'HardwareLaptopChromebook';
HardwareLaptopChromebook.mui... |
src/react.js | TribeMedia/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
src/index.js | jlhall/D3Rand_Builder | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/components/Logout.js | ikafire/OpenObjectMarker | import React from 'react';
import cookie from 'react-cookie';
class Logout extends React.Component {
render() {
cookie.save('username', '', { path: '/' });
console.log(cookie.load('username'));
return (
<div className='container'>
<h1> Open Object Marker </h1>
<ul>
... |
src/components/foodItemTable.js | ColdForge/icebox | import React, { Component } from 'react';
import { Table, TableBody } from 'material-ui/Table';
import FoodItemTableEntry from './foodItemTableEntry';
// import { v4 } from 'node-uuid';
// const tableData = [
// {
// name: 'Pizza',
// },
// {
// name: 'Milk',
// },
// {
// name: 'Steak',
// },
// {
// n... |
react/src/base/inputs/SprkRevealInput/SprkRevealInput.js | sparkdesignsystem/spark-design-system | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import uniqueId from 'lodash/uniqueId';
import classNames from 'classnames';
import SprkTextInput from '../SprkTextInput/SprkTextInput';
/**
* TODO: Remove this component as part of Issue #3780.
*/
class SprkRevealInput extends Component {... |
packages/ui-toolkit/src/form/label.js | yldio/joyent-portal | import React from 'react';
import { Subscriber } from 'joy-react-broadcast';
import is from 'styled-is';
import remcalc from 'remcalc';
import styled from 'styled-components';
import Label from '../label';
const StyledLabel = styled(Label)`
font-weight: ${props => props.theme.font.weight.semibold};
white-space: p... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Base/Header/Header.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
react/features/settings/components/web/video/VideoSettingsContent.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { translate } from '../../../../base/i18n';
import Video from '../../../../base/media/components/Video';
import { equals } from '../../../../base/redux';
import { createLocalVideoTracks } from '../../../functions';
const videoClassName = 'video-preview-video... |
fixtures/fiber-debugger/src/Fibers.js | jordanpapaleo/react | import React from 'react';
import { Motion, spring } from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.