path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/av/volume-mute.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeMute = (props) => (
<SvgIcon {...props}>
<path d="M7 9v6h4l5 5V4l-5 5H7z"/>
</SvgIcon>
);
AvVolumeMute = pure(AvVolumeMute);
AvVolumeMute.displayName = 'AvVolumeMute';
AvVolumeMute.muiName = 'SvgIcon'... |
src/pages/index.js | bretafinley/site |
import React from 'react';
import Link from 'gatsby-link';
import BlogCard from '../components/cards/blog-card';
import ProjectCard from '../components/cards/project-card';
import * as constants from '../util/constants';
const IndexPage = ({data}) => {
const pages = data.allMarkdownRemark.edges.map((d) => {
co... |
src/common/ToolBar2.js | ScorpionJay/ONE | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Alert,
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome'
export default class ToolBar extends Component {
constructor(props) {
super(props);
this.state = {};
}
handle(){
... |
app/components/layout.js | tachyons-css/tachyons-generator | import React from 'react'
import Head from './head'
export default ({ config, children }) => (
<div className='pa4'>
<Head config={config} />
{children}
</div>
)
|
src/components/JsonLoader/JsonCard.js | fedebertolini/json-editor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Card, Form, Message } from 'semantic-ui-react';
import { loadData } from '../../store/actions/saved';
class JsonCard extends Component {
componentWillMount() {
this.state = {
json: '',
error: '... |
markbin/client/components/accounts.js | tpechacek/learn-react-native | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Template } from 'meteor/templating';
import { Blaze } from 'meteor/blaze';
class Accounts extends Component {
componentDidMount() {
// Render the Blaze accounts form then find the div
// we just rendered in the 'render' meth... |
app/javascript/mastodon/features/status/index.js | MastodonCloud/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '..... |
examples/with-next-routes/pages/blog.js | kevmannn/next.js | import React from 'react'
const posts = [
{ slug: 'hello-world', title: 'Hello world' },
{ slug: 'another-blog-post', title: 'Another blog post' }
]
export default class extends React.Component {
static async getInitialProps ({ query, res }) {
const post = posts.find(post => post.slug === query.slug)
i... |
src/DomainSelector.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import axios from 'axios';
import server from './helpers/Server';
import {DropdownButton, MenuItem} from 'react-bootstrap';
class DomainSelector extends React.Component {
constructor(props) {
super(props);
this.state = {
serverNotCalled: tr... |
frontend/src/InteractiveImport/Interactive/InteractiveImportModalContent.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SelectInput from 'Components/Form/SelectInput';
import Icon from 'Components/Icon';
import Button from 'Components/Link/Button';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import Menu fr... |
docs/src/ComponentsPage.js | PeterDaveHello/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PropTable from '... |
server/sonar-web/src/main/js/apps/overview/components/legend.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
demo/src/components/App/components/Features/Features.js | CoreFiling/react-autosuggest | import styles from './Features.less';
import React from 'react';
import Link from 'Link/Link';
const Features = () => (
<div className={styles.container}>
<h2 className={styles.header}>
Features
</h2>
<div className={styles.content}>
<div className={styles.feature}>
<div className={s... |
frontend/jqwidgets/jqwidgets-react/react_jqxtree.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTree extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
src/js/components/NameValueList/stories/CustomValue.js | grommet/grommet | import React from 'react';
import { Box, NameValueList, NameValuePair, Text } from 'grommet';
import {
Language,
StatusCriticalSmall,
StatusGoodSmall,
System,
} from 'grommet-icons';
import { languageData, statusData } from './data';
export const CustomValue = () => (
// Uncomment <Grommet> lines when using ... |
fields/types/password/PasswordColumn.js | ligson/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
js/screens/About/About.container.js | remypar5/mtg-lifecounter | import React from 'react';
import { StyleSheet } from 'react-native';
import HeaderButtons from 'react-navigation-header-buttons';
import FeatherIcon from 'react-native-vector-icons/Feather';
import About from './About';
import { COLOR_FOREGROUND } from '../../utils/constants';
const styles = StyleSheet.create({
... |
src/svg-icons/action/bookmark.js | ichiohta/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... |
shared/components/Main/SideMenu/index.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import Link from 'react-router-dom/Link';
import { connect } from 'react-redux';
import './sideMenu.scss';
import { userRole } from '../../../utils/enums/userRole';
import logo from '../../../images/logo.png';
@connect(store => ({
isLoggedIn: store.user.isLoggedIn,
role: s... |
springboot/GReact/src/main/resources/static/app/components/chat/components/Chat.js | ezsimple/java | import React from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as ChatActions from '../ChatActions'
import ChatUsers from './ChatUsers'
import ChatBody from './ChatBody'
import ChatForm from './ChatForm'
class Chat extends React.Component {
render() {
return (
... |
src/components/routes/Home/index.js | RichardTianke/react-ant-design-demo-blog | import React from 'react';
import Breadcrumb from "../../Main/Breadcrumb";
import {Calendar} from 'antd';
class Home extends React.Component {
constructor(props){
super(props);
this.state = {
breadcrumbs: [
{href: '', type: 'home', name: 'Home'},
],
... |
src/fun/components/rabbit/Rabbit.js | tscok/home | import React from 'react';
import ReactDOM from 'react-dom';
import purebem from 'purebem';
import './Rabbit.less';
let delay = 2000;
const colors = [
'aqua', 'deeppink', 'deepskyblue', 'ghostwhite',
'mediumspringgreen', 'orangered'
];
const block = purebem.of('rabbit');
const Rabbit = React.createClass({... |
src/App.js | mkoennecke/radieschenjs | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
generators/component/templates/ClassNoStyles.js | msaglietto/generator-picantes-react | import React from 'react';
import PropTypes from 'prop-types';
/**
* Component - Description
*
* @extends Component
*/
class Component extends React.Component {
/**
* @type {string}
*/
static displayName = '<%= componentName %>';
/**
* @type {object}
*/
static propTypes = {
};
/**
* @... |
file-browser-ui/dev/js/components/drawer/drawer.js | CloudBoost/cloudboost | import React from 'react';
import {connect} from 'react-redux';
import {toggleDrawer} from '../../actions';
//ui items
import {IconButton} from 'material-ui';
import NavigationClose from 'material-ui/svg-icons/navigation/close';
import FlatButton from 'material-ui/FlatButton';
import {Card, CardHeader, CardText} from... |
js/components/pages/NotFound.react.js | techaware/biometric-auth | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return(
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
app/jsx/assignments_2/student/components/StepContainer.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/route/dashboard/StationProfitRank.js | simors/yjbAdmin | /**
* Created by yangyang on 2017/11/3.
*/
import React from 'react'
import {connect} from 'react-redux'
import {Row, Col, Card} from 'antd'
import {dashboardAction, dashboardSelector} from './redux'
import moment from 'moment'
class StationProfitRank extends React.PureComponent {
constructor(props) {
super(pr... |
client/components.js | dralletje/Tonlist | import React from 'react'
import {mobilebutton} from './style.css'
import {RaisedButton} from 'material-ui'
export let View = 'div'
export let Text = 'span'
// Maybe make this use material ui textfield? @Jelmar
export let TextInput = ({onSubmit, onTextChange, ...props}) =>
<input
{...props}
type="text"
... |
src/pages/related-tools.js | carloscuesta/gitmoji | import React from 'react'
import Link from 'next/link'
import CarbonAd from 'src/components/CarbonAd'
import Button from 'src/components/Button'
import SEO from 'src/components/SEO'
const tools: Array<{ name: string, description: string, link: string }> = [
{
name: 'gitmoji-changelog',
description: 'A chang... |
app/components/Home.js | Ruin0x11/fleet | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
import FleetView from './FleetView';
export default class Home extends Component {
render() {
return (
<div className={styles.parent}>
<FleetView />
</div>
... |
analysis/warlockdemonology/src/modules/talents/GrimoireFelguard.js | anom0ly/WoWAnalyzer | import { formatThousands } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import ItemDamageDone from 'parser/ui/ItemDamageDone';
i... |
src/js/components/ui/reduxForm/HorizontalTextarea.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* 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... |
src/routes/profile/index.js | kuao775/mandragora | import React from 'react';
import Profile from './Profile';
import Layout from '../../components/Layout';
async function action() {
return {
chunks: ['profile'],
title: 'Meu Perfil',
needLogin: true,
component: (
<Layout>
<Profile />
</Layout>
),
};
}
export default action;... |
src/modules/textNodes/components/EditSubworkDialog/EditSubworkDialog.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import _ from 'underscore';
class EditSubworkDialog extends React.Component {
constructor(props) {
super(props);
... |
react/react-offical-case/src/App.js | huxinmin/PracticeMakesPerfect | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/routes/Templates/components/Templates/Templates.js | KyperTech/devshare-site | import React from 'react'
import classes from './Templates.scss'
export const Templates = () => (
<div className={classes['Templates']}>
<h4>Templates</h4>
</div>
)
export default Templates
|
js/components/layouts/map/Cities.js | Celsius273/Plague.io | import Immutable from 'immutable'
import React from 'react'
import {CITY_SIZE} from '../../../constants/MapConstants'
import PlayerActions from '../../../actions/PlayerActions'
import MapStore from '../../../stores/MapStore'
// global for svg overlay
let drawLayer
const coordinatesToPoint = ((map, city) => {
co... |
src/svg-icons/action/http.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttp = (props) => (
<SvgIcon {...props}>
<path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-... |
app/components/AddNewSupplier/index.js | medevelopment/UMA | import React, { Component } from 'react';
import * as toastify from '../../functions/Toastify';
import { browserHistory } from 'react-router';
import styled from 'styled-components';
import axios from 'axios';
import Drawer from 'material-ui/Drawer';
import TextField from 'material-ui/TextField';
import RaisedButton fr... |
js/KindAnalysisPanelContainer.react.js | Sable/McLab-Web | import {Container} from 'flux/utils';
import KindAnalysisPanel from './KindAnalysisPanel.react';
import KindAnalysisResultStore from './stores/KindAnalysisResultStore';
import OpenFileStore from './stores/OpenFileStore';
import React from 'react';
const { Component } = React;
class KindAnalysisPanelContainer extends ... |
app/javascript/mastodon/features/ui/components/link_footer.js | yi0713/mastodon | import { connect } from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import { invitesEnabled, limitedFederationMode, version, repository, source_url } from 'mastodon/initi... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
app/javascript/mastodon/features/account_gallery/index.js | rekif/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '../... |
packages/docs/components/Examples/drag-n-drop/gettingStarted.js | draft-js-plugins/draft-js-plugins | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createImagePlugin from '@draft-js-plugins/image';
import React from 'react';
const imagePlugin = createImagePlugin();
// The Editor accepts an array of plugins. In this case, only the imagePlugin
// ... |
src/components/app.js | YiTingLee/ImplementGoogleMap | import React, { Component } from 'react';
import SimpleMapExample from '../containers/google_map';
import SelectBar from '../containers/select_bar';
import {fetchUsersData} from '../actions/index';
import {fetchTaxiLocation} from '../actions/index';
import {connect} from 'react-redux';
class App extends Component {
... |
src/parser/druid/feral/modules/bleeds/RipSnapshot.js | FaideWW/WoWAnalyzer | import React from 'react';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import { STATISTIC_ORDER } from 'interfa... |
src/Parser/Monk/Brewmaster/Modules/Core/BrewCDR.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBo... |
src/js/admin/article-edit/choose-photo-dialog/upload-image-div/upload-image-div.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import OperationButton from '$components/buttons/operation-button'
import { photoUpload } from '$actions/article-edit'
import './upload-image-div.style.scss'
class UploadImageDiv extends React.Component {
constructor (props) {
super(props)
th... |
src/sections/finalSection/FinalSection.js | shot-me/photobooth | import React from 'react';
import { withRouter } from 'react-router-dom';
import Div from '../shared/div/Div';
import BigHeader from '../shared/headers/bigHeader/BigHeader';
class FinalSection extends React.Component {
componentDidMount() {
setTimeout(() => {
this.props.history.push('/');
}, 4 * 1000)... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js | pbogdan/react-flux-mui | import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
const style = {
marginRight: 20,
};
/**
* Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors.
*/
const FloatingActionButton... |
src/svg-icons/navigation/fullscreen-exit.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit = pure(NavigationF... |
test/regressions/tests/RadioGroup/RadioGroupWithLabelRequired.js | cherniavskii/material-ui | // @flow
import React from 'react';
import { FormLabel, FormControl, FormControlLabel } from 'material-ui/Form';
import Radio, { RadioGroup } from 'material-ui/Radio';
export default function RadioGroupWithLabelRequired() {
return (
<FormControl style={{ width: 100 }} required>
<FormLabel>Location</FormLa... |
src/components/Deadlines/Deadlines.js | ShevaDas/exhibitor-management | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table } from 'react-bootstrap';
import { fetchDeadlines } from '../../actions/deadlineActions';
import Loading from '../Loading/Loading';
import './Deadlines.css';
class Deadlines extends Compo... |
src/components/Form.js | Kryten0807/cacofonix | // npm dependencies
//
import React from 'react';
import PropTypes from 'prop-types';
import update from 'react-addons-update';
import uniqueId from 'lodash/uniqueId';
import classnames from 'classnames';
// local dependencies
//
import Alert from './Alert';
import Button from './form/Button';
import CheckboxGroup fro... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-file.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js';
import InputWrapper from './internal/input-wrapper.js';
import ItemsInput from './internal/items-input.js';
import ChoiceMixin from './mixins/choice-mixin.js'
import InputMixin from './mixins/input-mixin.js'
im... |
src/Pages/Home.js | AnnaSu/todolist-pwa-demo-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Main from '../Container/Main.jsx';
class Home extends Component {
render() {
return (
<div>
<Main />
</div>
);
}
}
export default (Home);
|
client/routes.js | shastajs/boilerplate | /* eslint react/forbid-prop-types: 0 */
import React from 'react'
import { Route, IndexRoute } from 'shasta-router'
import HomeView from 'views/Home'
import AboutView from 'views/About'
import LoginView from 'views/Login'
import NotFoundView from 'views/NotFound'
const routes = (
<Route path="/">
<IndexRoute co... |
src/common/components/Popover/index.js | micahroberson/node-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import {css} from 'aphrodite/no-important';
import shouldComponentUpdatePure from '../../lib/shouldComponentUpdatePure';
import styles from './styles';
class Popover extends React.Component {
static propTypes = {
body: React.PropTypes.node.isRequired,
... |
react-twitter-save-data-loading(client-hint)/src/components/Twitter/Header.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
packages/material-ui-icons/legacy/SignalWifi1Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49v.01l.01-.01 5.33-6.63C17.06 14.65 15.03 13... |
pathfinder/vtables/appmap2cim/src/common/LinkList.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Link from './Link';
class LinkList extends Component {
constructor(props) {
super(props);
}
render() {
if (this.props.links.length < 1) {
return null;
}
const delimiter = !this.props.delimiter ? '<br/>' : this.props.de... |
client/components/admin/layout/aside.js | ShannChiang/meteor-react-redux-base | import React from 'react';
import {Link} from 'react-router';
export default (props) => (
<aside id="menu">
<div id="navigation">
<ul className="nav" id="side-menu">
{
_.values(props.context.configs).map((config, index) => (
<li key={index}>
<Link to={config.admi... |
src/components/Chart/index.js | tombatossals/energy | import React from 'react'
import moment from 'moment'
import { AsyncStatus, Intervals } from '../../lib/constants'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'
import Spinner from '../../components/Spinner'
import './styles.css'
const xformatter = {
[Intervals... |
src/svg-icons/editor/pie-chart.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
client/src/research/InteractionsView.js | mit-teaching-systems-lab/swipe-right-for-cs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DownloadCsvLinks from '../components/DownloadCsvLinks';
import WorkshopsAnalysis from './WorkshopsAnalysis';
import BiasAnalysis from './BiasAnalysis';
import RawInteractionsTable from './RawInteractionsTable';
import './InteractionsVi... |
packages/node_modules/@ciscospark/react-component-chip-base/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {ICON_TYPE_DELETE} from '@ciscospark/react-component-icon';
import Button from '@ciscospark/react-component-button';
import styles from './styles.css';
export default function ChipBase(props) {
const {
ch... |
app/components/navbarpatientcard/navbarpatientcard.js | tidepool-org/blip |
/**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
js/controls/KendoPager.js | wingspan/wingspan-forms | import kendo from 'kendo'
import React from 'react'
import { findWidget, noop } from '../ReactCommon'
const PropTypes = React.PropTypes;
/*
Kendo messages defaults:
http://docs.telerik.com/kendo-ui/api/web/pager#configuration-messages
messages: {
display: '{0} - {1} of {2} items',
empty: ... |
src/common/components/UserList/index.js | MatthewKosloski/server-side-react | import React, { Component } from 'react';
import s from './userList.scss';
export default class UserList extends Component {
render() {
return(
<div>
<h1 className={s.redText}>A user list!!</h1>
<ul>
{this.props.users.map((user, i) => {
return <li key={i}>{user.name}</li>
})}
</ul>
... |
js/customer/HaircutHistory.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
StyleSheet,
ListView,
RecyclerViewBackedScrollView,
ActivityIndicator,
Text,
RefreshControl,
ScrollView
} from 'react-native';
import { connect } from 'react-redux';
import HaircutHistoryItem from './HaircutHistoryItem';
import { listAppointment... |
imports/ui/pages/Photo.js | lizihan021/SAA-Website |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Lightbox from 'react-images';
var itermclass = "item";
class Gallery extends Component {
constructor () {
super();
this.state = {
lightboxIsOpen: false,
... |
src/components/DataTable/AnimTableBody.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { TweenOneGroup } from 'rc-tween-one'
const enterAnim = [
{
opacity: 0,
x: 30,
backgroundColor: '#fffeee',
duration: 0,
}, {
height: 0,
duration: 200,
type: 'from',
delay: 250,
ease: 'easeOutQuad',
onComplet... |
client/router/index.js | 01laky/isomorphic-go-react-sandbox | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import toString from './toString';
import { Promise } from 'when';
import createRoutes from './routes';
import { createStore, setAsCurrentStore } from '../store';... |
entry_types/scrolled/package/src/frontend/ContentElements.js | tf/pageflow | import React from 'react';
import {ContentElement} from './ContentElement';
export function ContentElements(props) {
return (
<>
{props.items.map((item, index) =>
props.children(item,
<MemoizedContentElement key={item.id}
id={it... |
test/test-cases/react-css-modules/app/src/client.js | seek-oss/sku | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
export default () => {
hydrate(<App />, document.getElementById('app'));
};
|
tukangs/src/screens/Setting/index.js | BriefNight/tukangs | import React from 'react';
import {
View, Text
} from 'react-native';
import styles from './style';
const Setting = () => {
return (
<View style={styles.container}>
<Text>Setting</Text>
</View>
);
}
export default Setting;
|
services/ui/src/components/Breadcrumbs/index.js | amazeeio/lagoon | import React from 'react';
import { color } from 'lib/variables';
/**
* Displays the Project and, optionally, the Environment breadcrumbs.
*/
const Breadcrumbs = ({ children }) => (
<div className="breadcrumbs-wrapper">
<div className="breadcrumbs">{children}</div>
<style jsx>{`
.breadcrumbs-wrapper ... |
src/components/TextInput.js | drakang4/creative-project-manager | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Text from './Text';
import { secondary, white, blackLessLight, blackLight } from '../styles/color';
const Wrapper = styled.div`
`;
const Input = styled.input`
display: block;
width: 100%;
box-sizing: b... |
packages/material-ui-icons/src/Queue.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Queue = props =>
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z" />
</SvgIc... |
app/components/ArticleList.js | daiyingheng/dayinhen | /**
* Created by daiyingheng on 16/9/6.
*/
import React from 'react';
import {Link} from 'react-router';
import ArticleListActions from '../actions/ArticleListActions';
import ArticleListStore from '../stores/ArticleListStore';
import IndexActions from '../actions/IndexActions';
class ArticleList extends React.Comp... |
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/ServiceAttachWizardScene/ServiceAttachWizardSceneContent.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import WizardPersonalise from './WizardPersonalise'
import { userStore } from 'stores/user'
import { accountActions } from 'stores/account'
import WizardConfigure from './WizardConfigure'
import Wizard... |
docs/examples/FormGroup/Example3.js | romagny13/react-form-validation | import React from 'react';
import { FormGroup, Input, Label } from 'romagny13-react-form-validation';
/** Success state*/
const Example3 = () => {
return (
<FormGroup renderSuccess canChangeValidationState>
<Label htmlFor="my-field">Field</Label>
<Input id="my-field"... |
playground/topic/react/redux/counter/src/containers/DevTools.js | chenyakun/bone | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q'>
<LogMonitor /... |
src/components/exercises/find-letter.component.js | serlo-org/serlo-abc | import { addIndex, map } from 'ramda';
import React, { Component } from 'react';
import { TouchableOpacity, View, Text } from 'react-native';
import { playAll } from '../../helpers/audio';
import {
BLACK_TRANSPARENT,
PRIMARY_WEAK,
PRIMARY_STRONG,
GREEN,
RED
} from '../../styles/colors';
import { DEFAULT } fr... |
app/containers/MyPlaylistsContainer.js | AlienStream/experimental-frontend | import React from 'react';
class MyPlaylistsContainer extends React.Component {
render() {
return (
<div>
MyPlaylistsContainer
</div>
);
}
}
export default MyPlaylistsContainer |
src/Media.js | lzcmaro/react-ratchet | import React from 'react';
import Icon from './Icon';
import classNames from 'classnames';
let Media = React.createClass ({
propTypes:{
src: React.PropTypes.string,
alt: React.PropTypes.string,
icon: React.PropTypes.string
},
render() {
let Component = this.props.eleType ||... |
src/generated_ipsum.js | kylefdoherty/ipsum-generator | import React, { Component } from 'react';
import Clipboard from 'clipboard';
class GeneratedIpsum extends Component {
constructor(props) {
super(props);
this.state = {
buttonText: 'Click to Copy'
}
}
render() {
const { speech, paragraphs} = this.props;
const ipsumChunks = [];
const ... |
web/app/components/notes/DeadNoteView.js | sandro-heitz/mynotes |
import React, { Component } from 'react';
import Velocity from 'velocity-animate';
import { I18n } from 'react-i18nify';
class NoteView extends Component {
componentDidMount() {
Velocity(this.noteView,
{ opacity: 1, backgroundColorGreen: 255, backgroundColorRed: 255, backgroundColorBlue: 255 ... |
src/main/resources/assets/javascripts/app.js | mersal-svds/airpal | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
|
node_modules/react-router/es/IndexRedirect.js | Rabbit884/reactapp | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
imports/ui/components/reading/ReadingTextNode/ReadingTextNode.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import { createContainer } from 'meteor/react-meteor-data';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import TextMetaOptions from ... |
src/svg-icons/action/launch.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
Ac... |
examples/homepage/src/PancakePage.js | taskworld/legendary-pancake | import React from 'react'
export default function PancakePage () {
return (
<div>
<h1>Pancake</h1>
<p>It’s a React pancake.</p>
<img src={require('./pancake.jpg')} />
<p>This page is loaded asynchronously.</p>
</div>
)
}
|
node_modules/react-bootstrap/es/Popover.js | mohammed52/door-quote-automator | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/action/perm-contact-calendar.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermContactCalendar = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-... |
packages/node_modules/@webex/widget-meetings/src/components/ActiveMeeting.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Video from '@webex/react-component-video';
import ButtonControls from '@webex/react-component-button-controls';
import styles from './ActiveMeeting.css';
const propTypes = {
localVideoStream: PropTypes.object... |
src/svg-icons/content/markunread.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (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-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
src/components/typography/h6.js | awaseem/Jam | import React from 'react';
import styles from '../../css/skeleton.css';
function H6(props) {
return (
<h6 className={styles.h6} style={{ textAlign: props.align }}>{props.children}</h6>
);
}
H6.propTypes = {
children: React.PropTypes.any.isRequired,
align: React.PropTypes.string,
};
export default H6;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.