path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/components/healthList.js | CodeWriterWriter/vidi-dashboard | 'use strict'
import React from 'react'
import {Link} from 'react-router'
import {Menu} from './index'
export default React.createClass({
render () {
const {count} = this.props
return (
<ul className="list-unstyled list-inline cf">
<li><strong>Total:</strong> {count}</li>
<li><span cla... |
fields/types/boolean/BooleanField.js | lastjune/keystone | import React from 'react';
import Field from '../Field';
import Checkbox from '../../../admin/src/components/Checkbox';
import { FormField, FormNote } from 'elemental';
module.exports = Field.create({
displayName: 'BooleanField',
propTypes: {
indent: React.PropTypes.bool,
label: React.PropTypes.string,
note:... |
nCoda-win32-x64/resources/app/js/ncoda-init.js | nCoda/Windows | // -*- coding: utf-8 -*-
//-------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/ncoda-init.js
// Purpose: Initiali... |
app/modals/LoginModal/SelectGroupView.js | arnef/ligatool-hamburg | import React from 'react';
import { NavigationActions } from 'react-navigation';
import { connect } from 'react-redux';
import { sortBy } from 'lodash';
import * as LeaguesActions from '../../redux/modules/leagues';
import { Container, ListItem, Text, Separator } from '../../components';
import { sortCompetition } from... |
app/react/demo/src/stories/index.js | shilman/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo(... |
js/react-components/components/TaskDetail.js | JACooper/Forge-client | import React from 'react';
import DateInput from './dateinput/DateInput.js';
import LogDetail from './LogDetail.js';
import LogForm from './LogForm.js';
import Rating from './Rating.js';
class TaskDetail extends React.Component {
constructor(props) {
super(props);
this.updateTask = this.updateTask.bind(this... |
src/client/auth/changePassword.js | r3dDoX/geekplanet | import Button from '@material-ui/core/Button';
import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Field, reduxForm } from 'redux-form';
import styled from 'styled-components';
import TextField from '../formHelpers/textField';
import AuthService from '.... |
src/containers/pages/create-deck/after-class-selection/right-container/topbar-assets/filters.js | vFujin/HearthLounge | import React from 'react';
import MapFunctionlessIcons from './map-functionless-icons';
import IconFilter from '../../../../../shared-assets/filters/redux-icon-filter';
import {connect} from 'react-redux';
import {toggleSelectedIcon} from "../../../../../../utils/filter/toggle-selected-icon";
import {updateDeckCreation... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | Rogerlin2013/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
billing-ui/src/pages/Login/Login.js | CancerCollaboratory/billing | /*
* Copyright 2016(c) The Ontario Institute for Cancer Research. All rights reserved.
*
* This program and the accompanying materials are made available under the terms of the GNU Public
* License v3.0. You should have received a copy of the GNU General Public License along with this
* program. If not, see <http:... |
examples/auth-with-shared-root/components/Dashboard.js | malte-wessel/react-router | import React from 'react'
import auth from '../utils/auth'
const Dashboard = React.createClass({
render() {
const token = auth.getToken()
return (
<div>
<h1>Dashboard</h1>
<p>You made it!</p>
<p>{token}</p>
{this.props.children}
</div>
)
}
})
export default... |
src/App.js | chenzejiang/web-response | import React from 'react';
import Header from './components/header'; // 头部
import Body from './components/body'; // 身体
import Box from './components/box'; // iframe
export default class App extends React.Component {
render() {
return (
<div>
{/* 头部 */}
<Header></Header>
{/* 搜索界面 ... |
js/components/home/index.js | allanrabanillo/Usave |
import React, { Component } from 'react';
import { TouchableOpacity,Alert,ListView,View,Text } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, InputGroup, Input, Picker... |
src/radio-list/index.js | twilson63/t63 | import React from 'react'
import R from 'ramda'
import MdRadioChecked from 'react-icons/lib/md/radio-button-checked'
import MdRadio from 'react-icons/lib/md/radio-button-unchecked'
import randomId from 'random-id'
const { map, isNil } = R
const RadioList = ({
className,
value,
onChange,
color,
checkedColor,... |
client/src/views/LetterLink.js | MissUchiha/CANX | import React from 'react'
import {Link} from 'react-router'
function LetterLink(props) {
return (
<div className="letter-col col-xs-3">
<Link className='letter-link' to={"/categories/"+props.args.title.toLowerCase()+"/letters/"+props.args.letter} >
<div className="letter-container">
... |
dialogtest.js | Murad-Awad/PingIt | import React, { Component } from 'react';
import {
AppRegistry,
Text,
View,
BackHandler
} from 'react-native';
import LocationServicesDialogBox from "react-native-android-location-services-dialog-box";
class SampleApp extends Component {
state = {
initialPosition: 'unknown',
};
co... |
src/pages/lab/scroll-animations.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { graphql } from 'gatsby';
import { RootContainer, SEOContainer } from '~containers';
import { Main, Section, Ul... |
l3/index.android.js | huang6349/rn | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { Button } from 'antd-mobile';
export default class l3 extends Component {
render() {
return (
... |
examples/customised/styleguide/components/Logo.js | sapegin/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
import logo from './logo.svg';
const styles = ({ fontFamily, color }) => ({
logo: {
display: 'flex',
alignItems: 'center',
margin: 0,
fontFamily: fontFamily.base,
fontSize: 18,
fontWeight: 'normal',
... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Header/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
blueocean-material-icons/src/js/components/svg-icons/av/featured-video.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvFeaturedVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/>
</SvgIcon>
);
AvFeaturedVideo.displayName = 'AvFeaturedVideo';
AvFeaturedVideo.muiName... |
examples/huge-apps/routes/Course/components/Course.js | hgezim/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
packages/reactor-kitchensink/src/examples/Charts/Column/ColumnWithRenderer/ColumnWithRenderer.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
import { seriesG1Renderer, seriesG2Renderer } from './renderer';
export default class Column... |
packages/icons/src/md/device/NetworkCell.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdNetworkCell(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<g>
<polygon fillOpacity=".3" points="4 44 44 44 44 4" />
<polygon points="34 14 4 44 34 44" />
</g>
</IconBase>
);
}
export ... |
src/svg-icons/hardware/toys.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
src/index.js | zperrault/react-slides | import React from 'react'
import App from 'App'
React.render(<App />, document.getElementById('root'))
|
clients/packages/admin-client/src/storybook/settings/layout/settings-page-layout.js | nossas/bonde-client | import React from 'react'
const style = {
backgroundColor: 'rgb(247, 247, 247)',
display: 'flex',
flexBasis: 'auto',
flexDirection: 'column',
flexGrow: '1',
flexShrink: '1',
fontFamily: '"Source Sans Pro", "Proxima Nova", sans-serif',
lineHeight: '24px',
minHeight: '0px',
minWidth: '0px',
positio... |
assets/frontpage/events/containers/EventsContainer.js | dotKom/onlineweb4 | import React, { Component } from 'react';
import moment from 'moment';
import Events from '../components/Events';
import { setEventsForEventTypeId, toggleEventTypeDisplay } from '../utils';
const mergeEventImages = (eventImage, companyEvent) => {
const eventImages = [];
// Event images
if (eventImage) {
even... |
lib/react-component-preview-view.js | theTechie/react-component-preview | 'use babel'
import React from 'react'
import ReactDOM from 'react-dom'
import Preview from './preview.js'
export default class ReactComponentPreviewView {
constructor(serializedState) {
// Create root element
this.element = document.createElement('div')
this.element.getTitle = function() {
return 'Preview'
... |
src/components/external-link.js | siddharthkp/siddharthkp.github.io | import React from 'react'
const ExternalLink = ({ href, children, ...props }) => {
return (
<a href={href} rel="noopener noreferrer" target="_blank" {...props}>
{children}
</a>
)
}
export default ExternalLink
|
src/components/TextField.js | ryanwade/react-foundation-components | import React from 'react';
import { TextField as featureSet } from '../utils/componentFeatures';
import InputField from './InputField';
const TextField = ({...props}) => (
<InputField className={featureSet.getClassNames(props)} input={props}>
<input className={featureSet.getInnerClassNames(props)}
... |
app/client/src/routes/forgotPassword/index.js | uprisecampaigns/uprise-app |
import React from 'react';
import Layout from 'components/Layout';
import ForgotPassword from 'scenes/ForgotPassword';
export default {
path: '/forgot-password',
action(context) {
return {
title: 'Forgot Password',
component: <Layout><ForgotPassword /></Layout>,
};
},
};
|
src/indexLogin.js | avshalomh/display-server | import {render} from 'react-dom';
import {Router, Route, browserHistory}from 'react-router';
import React from 'react';
import Login from './components/login/Login';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
/... |
packages/mineral-ui-icons/src/IconFlare.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFlare(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
imports/components/SearchBox.js | tampham47/nau-jukebox | /* eslint-disable react/no-danger */
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import he from 'he';
import ReactGA from 'react-ga';
import AppStore from '../events/AppStore';
import { focusSearchBox, errorSignIn, setToaster } from '../events/AppActions';
class SearchBox extends... |
packages/material-ui-icons/src/WebAsset.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let WebAsset = props =>
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z" />
</SvgIcon>;
WebAsset = pure(WebAsset);
WebAsset.mui... |
app/components/Header/wrapper.js | ledminh/ledminh-home | import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 70px;
background-color: #212e42;
z-index: 1000;
`;
export default Wrapper;
|
client/src/components/streamButtons.js | kat09kat09/GigRTC | import React from 'react';
const StreamButtons = (props) => {
return (
<div className="streamButtons">
{(props.currentPrivelege && !props.watchMode) ? <button onClick={props.startBroadcast} className="startBroadcast fa fa-youtube-play">Start Stream</button> : ""}
{props.watchMode ? <button onClick={... |
src/index.js | jpuri/html-to-draftjs | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Editor } from 'react-draft-wysiwyg';
import { convertToRaw, ContentState, EditorState } from 'draft-js';
import draftToHtml from 'draftjs-to-html';
import htmlToDraft from './library';
import '../node_modules/react-draft-wysiwyg/dist/r... |
client/views/omnichannel/triggers/TriggersTable.js | VoiSmart/Rocket.Chat | import React from 'react';
import GenericTable from '../../../components/GenericTable';
import { useTranslation } from '../../../contexts/TranslationContext';
import { useResizeInlineBreakpoint } from '../../../hooks/useResizeInlineBreakpoint';
import TriggersRow from './TriggersRow';
function TriggersTable({ trigger... |
docs/lib/Components/LoadingSpinnerPage.js | video-react/video-react | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import { Button } from 'reactstrap';
import Helmet from 'react-helmet';
import LoadingSpinnerExample from '../examples/LoadingSpinner';
const LoadingSpinnerExampleSource = require('!!raw-loader!.... |
src/components/UTTTGame/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Button } from 'semantic-ui-react';
import UTTT from '@socialgorithm/ultimate-ttt';
import Slider from 'rc-slider';
import Board from './Board';
import './style.scss';
import 'rc-slider/assets/index.css';
class UTTTGame extends React.Compone... |
src/svg-icons/action/settings-bluetooth.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/molecules/talk/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import any from '@travi/any';
import {talkContent} from '../../../.storybook/data/html-content';
import Talk from '.';
const talk = {
title: any.sentence(),
speaker: {
frontmatter: {name: `${any.word... |
features/taskboard/components/executorsContainer.js | zymokey/mission-park | import React from 'react';
import { connect } from 'react-redux';
import InfoLabel from './infoLabel';
import DropdownInput from '../../common/components/dropdown/dropdownInput';
import { openUsersDropdown, closeUsersDropdown, addExecutor, removeExecutor } from '../actions/taskActions';
import { fetchUsers, findUsersBy... |
examples/bootstrap/src/App.js | react-tools/react-table | import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import BTable from 'react-bootstrap/Table';
import { useTable } from 'react-table'
import makeData from './makeData'
function Table({ columns, data }) {
// Use the state and functions returned from useTable to build your UI
const { getTab... |
examples/with-redux/components/clock.js | BlancheXu/test | import React from 'react'
import { useSelector, shallowEqual } from 'react-redux'
const useClock = () => {
return useSelector(
state => ({
lastUpdate: state.lastUpdate,
light: state.light
}),
shallowEqual
)
}
const formatTime = time => {
// cut off except hh:mm:ss
return new Date(time)... |
src/components/Header.react.js | rudionrails/signup-widget-react-mobx | import React from 'react';
const Header = ({
onClose,
}) => (
<div className="jsw-header">
<nav className="navbar navbar flex-items-xs-center">
<div className="pull-xs-right">
<button
className="jsw-header__btn-close"
type="button"
onClick={onClose}
>
... |
fixtures/nesting/src/modern/AboutPage.js | acdlite/react | import React from 'react';
import {useContext} from 'react';
import {connect} from 'react-redux';
import ThemeContext from './shared/ThemeContext';
import lazyLegacyRoot from './lazyLegacyRoot';
// Lazy-load a component from the bundle using legacy React.
const Greeting = lazyLegacyRoot(() => import('../legacy/Greeti... |
blueprints/smart/files/__root__/containers/__name__/__name__.js | SHBailey/echo-mvp | 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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/airline-seat-recline-extra.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationAirlineSeatReclineExtra = (props) => (
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0-2.74-1.08-2.96-2.54L4 7H2l1.99 9... |
src/screen/ContactMe.js | nahuelhds/react-native-hello-world | // @flow
import React from 'react';
import { Alert, StyleSheet } from 'react-native'
import {
Button,
Container,
Content,
Text,
H1,
Icon,
Form,
Item,
Label,
Input,
Toast,
View,
} from 'native-base';
import Theme from 'theme/variables/platform'
import DrawerHeader from 'component/DrawerHeader'
i... |
techCurriculum/ui/solutions/2.7/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
webpack/ForemanTemplates.js | mmoll/foreman_templates | import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import PropTypes from 'prop-types';
import Routes from './Routes';
const ForemanTemplates = ({ data }) => (
<Router>
<Routes
apiUrls={data.apiUrls}
validationData={data.validationData}
editPaths={data.editPa... |
src/components/DOMComponent.js | GuoYongfeng/react-fundamental | 'use strict';
import React, { Component } from 'react';
class HandleEvent extends Component {
state = { liked: false }
handleClick = (event) => {
console.log( event );
this.setState({liked: !this.state.liked});
}
render() {
let text = this.state.liked ? '喜欢' : '不喜欢';
return (
<p onC... |
src/StyleButton.js | ship-components/ship-components-texteditor | /**
* @file Text Editor StyleButton
* @author Isaac Suttell <isaac@isaacsuttell.com>
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
// CSS Module
import css from './StyleButton.css';
export default function StyleButton(props) {
return (
<div
clas... |
app/index.js | lightningboss/dispos.io | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import './app.global.css';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>,
doc... |
common/routes/Posts/containers/Posts.js | luanlv/minhphat | // /* global $ */
import { provideHooks } from 'redial'
import React from 'react'
import { connect } from 'react-redux'
import { loadData } from '../actions'
import Helmet from 'react-helmet'
import { Link } from 'react-router'
const redial = {
fetch: ({ dispatch }) => dispatch(loadData())
}
const mapStateToProps =... |
plugin/exo/Resources/modules/docimology/index.js | remytms/Distribution | import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import {createStore} from './store'
import {registerDefaultItemTypes} from './../items/item-types'
import Docimology from './components/docimology.jsx'
import './style.css'
registerDefaultItemTypes()
const exerciseRaw = J... |
src/App.js | OlehHappy/oleh_006-DnD_Native_Boxes | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/templates/new/src/store/router.js | forstaathletics/rj | import React from 'react'
import { Route } from 'react-router'
import App from '../containers/App'
import About from '../containers/About'
const routes = (
<Route path='/' component={App}>
<Route path='/about' component={About} />
</Route>
)
export default routes
|
node_modules/react-router/es6/IndexRoute.js | thuannh1027/react-todo-app | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
geonode/monitoring/frontend/monitoring/src/components/cels/response-table/index.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
# ... |
docs/src/examples/elements/Label/Variations/LabelExampleCircularEmpty.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const colors = [
'red',
'orange',
'yellow',
'olive',
'green',
'teal',
'blue',
'violet',
'purple',
'pink',
'brown',
'grey',
'black',
]
const LabelExampleCircularEmpty = () => (
<div>
{colors.map((color) => (
<Labe... |
server/boot/a-react.js | mubassirhayat/freecodecamp | import React from 'react';
import Router from 'react-router';
import Fetchr from 'fetchr';
import Location from 'react-router/lib/Location';
import debugFactory from 'debug';
import { app$ } from '../../common/app';
import { RenderToString } from 'thundercats-react';
const debug = debugFactory('freecc:react-server');
... |
docs/src/examples/modules/Sidebar/Examples/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const SidebarExamplesExamples = () => (
<ExampleSection title='Examples'>
<Compo... |
src/pages/contact.js | braidn/Nesta-Cloudbacon-Blog | /* eslint jsx-a11y/label-has-for:0 */
import React from 'react'
import Helmet from 'react-helmet'
import { Link } from 'gatsby'
import styled from 'styled-components'
import { Layout, Wrapper, Header, Button } from '../components'
import config from '../../config'
const Content = styled.div`
grid-column: 2;
box-... |
wail-ui/components/twitter/archiveConfig/ArchiveTwitterForm/OptionalSearchTerms.js | N0taN3rd/wail | import React from 'react'
import pure from 'recompose/pure'
import { FieldArray } from 'redux-form/immutable'
import SearchTermList from './SearchTermList'
function OptionalSearchTerms () {
return (
<FieldArray name='searchT' component={SearchTermList} />
)
}
export default pure(OptionalSearchTerms)
|
src/client/pages/Home.js | jmhill/justinmhill-site | import React from 'react';
import ContentBlock from '../components/ContentBlock.js';
import PostSummaryList from '../components/PostSummaryList.js';
import axios from 'axios';
export default class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
posts: []
};
}
c... |
src/components/Footer.js | streamr-app/streamr-web | import React from 'react'
export default () => (
<footer role='main'>
<div className='container'>
<p>© {(new Date()).getYear() + 1900} Streamr</p>
<p>Designed and built by Tyler Petresky, Steven Petryk, Greg White, and Maxcell Wilson.</p>
<p>Streamr is free and <a target='_blank' href='https://... |
packages/material-ui-icons/src/FileDownload.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FileDownload = props =>
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
</SvgIcon>;
FileDownload = pure(FileDownload);
FileDownload.muiName = 'SvgIcon';
export default File... |
src/main.js | cvetanov/EventsClient | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './store/createStore'
import AppContainer from './containers/Ap... |
src/components/Alert.js | ZachGawlik/print-to-resist | import PropTypes from 'prop-types';
import React from 'react';
import '../styles/Alert.css';
const Alert = ({ children, type }) =>
<div className={`Alert Alert--${type}`}>
{children}
</div>;
Alert.propTypes = {
children: PropTypes.node.isRequired,
type: PropTypes.string.isRequired
};
export default Alert... |
views/blocks/CommentForm/CommentForm.js | AlSoEdit/team5 | import React from 'react';
import './CommentForm.css';
import b from 'b_';
import './../Input.css';
import {CommentFormStrings} from './../../constants/strings';
import {CommentFormConstants} from './../../constants/constants';
import Button from './../Button/Button';
const commentForm = b.lock('comment-form');
expor... |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | pradel/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slider defaultValue={1} />
</div>
);
export default SliderExampleSimple;
|
app/javascript/mastodon/features/ui/components/embed_modal.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage, injectIntl } from 'react-intl';
import axios from 'axios';
@injectIntl
export default class EmbedModal extends ImmutablePureComponent {
static propTypes = {
... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/complex/empty-notice.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { withHandlers } from 'recompose';
/**
* The internal dependencies.
*/
import { preventDefault } from 'lib/helpers';
/**
* Render a small notice when the complex field doesn't ha... |
Js/Core/Lib/Router/Route.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import $ from 'jquery';
import Webiny from 'webiny';
import Router from './Router';
class Route {
constructor(name, pattern, components, title = '') {
this.name = name;
this.pattern = pattern;
this.components = Route.normalizeComponents(com... |
frontend/app/components/ui/text-field.js | LINKIWI/linkr | import React from 'react';
/**
* A styled text input entry field.
*/
export default class TextField extends React.Component {
static propTypes = {
className: React.PropTypes.string,
icon: React.PropTypes.element,
iconSpacing: React.PropTypes.string
};
static defaultProps = {
className: ''
};
... |
src/DatePicker/components/Calendar.js | ambitioninc/react-ui | import React from 'react';
import {getClassName, chunk} from '../../utils';
class Calendar extends React.Component {
render() {
const className = getClassName(
'react-ui-date-picker-calendar',
this.props.calendarClassName
);
const subHeaderClassName = getClassName(... |
viewer/core/static/js/app/components/views/logout-button.js | openjck/distribution-viewer | import React from 'react';
export default function(props) {
return (
<div className="sign-out-wrapper">
<span className="email">{props.email}</span>
<span className="button" onClick={props.signOut}>Sign Out</span>
</div>
);
}
|
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | kasra-co/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleDisabled = () => (
<div>
<TextField
disabled={true}
hintText="Disabled Hint Text"
/><br />
<TextField
disabled={true}
id="text-field-disabled"
defaultValue="Disabled Value"
/>... |
app/client/src/components/Layout/components/HeaderContainer/components/Header/Header.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React from 'react';
import ClassNames from 'classnames';
import ArrowDropUp from 'material-ui/svg-icons/navigation/arrow-drop-up';
import AccountCircle from 'material-ui/svg-icons/action/account-circle';
import Avatar from 'material-ui/Avatar';
import Link from 'components/Li... |
src/containers/Weather.js | ncaron/local-weather | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { fetchWeather } from '../actions/weatherAction';
import WeatherInfo from '../components/WeatherInfo';
import Loading from '../components/Loading';
class Weather extends Component {
constructor... |
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/near-me.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName = 'SvgIcon';
export default MapsNearMe;
|
src/svg-icons/toggle/indeterminate-check-box.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleIndeterminateCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-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-2 10H7v-2h10v2z"/>
</SvgIcon>
);
ToggleIndeterminateCheck... |
js/FortranCompilePanelContainer.react.js | Sable/McLab-Web | import {Container} from 'flux/utils';
import FortranCompilePanel from './FortranCompilePanel.react';
import FortranCompileConfigStore from './stores/FortranCompileConfigStore';
import React from 'react';
const { Component } = React;
class FortranCompilePanelContainer extends Component {
static getStores() {
ret... |
src/views/sandbox/SandboxView.js | kallaspriit/react-base | import React from 'react';
import { Link, Route } from 'react-router-dom';
import { RouterMatchShape } from '../../constants/shapes';
import StatefulView from './children/stateful/StatefulView';
import ReduxView from './children/redux/ReduxView';
import SvgView from './children/svg/SvgView';
import GraphqlView from '.... |
src/js/components/icons/base/PlatformVmware.js | odedre/grommet-final | /**
* @description PlatformVmware 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.... |
react/src/components/dashboard/loginSettingsModal/loginSettingsModal.js | pbca26/EasyDEX-GUI | import React from 'react';
import { connect } from 'react-redux';
import translate from '../../../translate/translate';
import { toggleLoginSettingsModal } from '../../../actions/actionCreators';
import Store from '../../../store';
import { LoginSettingsModalRender } from './loginSettingsModal.render';
class LoginSet... |
app/javascript/mastodon/features/ui/components/boost_modal.js | NS-Kazuki/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
docs/app/Examples/elements/Flag/Types/FlagTableExample.js | jcarbo/stardust | import React from 'react'
import { Table, Flag } from 'stardust'
const countries = [
{ name: 'Afghanistan', countryCode: 'af' },
{ name: 'Aland Islands', countryCode: 'ax' },
{ name: 'Albania', countryCode: 'al' },
{ name: 'Algeria', countryCode: 'dz' },
{ name: 'American Samoa', countryCode: 'as' },
{ nam... |
app/components/booking/RatesTablesXL/index.js | vkurzweg/aloha | /**
*
* RatesTables
*
*/
import React from 'react';
// import styled from 'styled-components';
import Header from './Header';
import Subhead from './Subhead';
import TD from './TD';
import { Link } from 'react-router';
import { Image } from 'cloudinary-react';
function RatesTables() {
return (
<div className=... |
src/components/View.js | jossmac/react-images | // @flow
// @jsx glam
import React from 'react'
import glam from 'glam'
import { Div, Img } from '../primitives'
import { type PropsWithStyles } from '../types'
import { className } from '../utils'
import { getSource } from './component-helpers'
import componentBaseClassNames from './componentBaseClassNames'
type Pro... |
src/inputs/upload.js | crodas/reforms | import Global from '../events';
import React from 'react';
import InputBase from './base';
import 'whatwg-fetch';
class FileUpload extends FileBase {
render() {
return <input {...this.props}
type="file"
onChange={event => this._setValue(event.target.value)}
/>
}
}
Globa... |
example/src/Link.js | jedirandy/redux-url | import React from 'react';
import { connect } from 'react-redux';
import { navigate } from 'redux-url';
const Link = ({
to,
replace = false,
navigate,
children
}) => (
<a href={to} onClick={ e => {
e.preventDefault();
navigate(to, replace);
}}>{children}</a>
)
const actions = d... |
src/lib/components/appBar/AppBar.js | lighter-cd/ezui_react_one | import React from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import classNames from 'classnames';
import { Icon } from '../icon';
const styles = {
root: {
height: props => props.height,
width: '100%',
background: props => props.background,
lineHeight: props => p... |
frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import EditDownloadClientModalContentConnector from './EditDownloadClientModalContentConnector';
function EditDownloadClientModal({ isOpen, onModalClose, ...otherProps }) {
... |
app/packs/src/components/contextActions/ModalReactionExport.js | ComPlat/chemotion_ELN | import React from 'react';
import {Button, ButtonToolbar, Radio, FormGroup} from 'react-bootstrap';
import PropTypes from 'prop-types';
import UIStore from './../stores/UIStore';
import UserStore from './../stores/UserStore';
import ReportsFetcher from './../fetchers/ReportsFetcher';
export default class ModalReaction... |
src/components/FooterBar/Responses/Upvote.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import UpvoteIcon from '@material-ui/icons/ThumbUp';
import Button from './Button';
const enhance = translate();
const Upvote = ({
t,
disabled,
active,
count,
onUpvote,
}) => (
<Button
disabled={d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.