path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
_experiment/react-fetch-github-repo/v3-stable/src/Repo.js | David-JC/react-testing | import React from 'react';
import {render} from 'react-dom';
// Single element
const Repo = ({repo, item}) => (
<article>
<div className='article-content'>
{item}
<a href={repo.svn_url}>
<h3 className='title'>{repo.name}</h3>
</a>
<p className='description'>{repo.description}</p>
<span className=... |
src/app.js | PetrBuslyuk/_______________ | import React from 'react';
import ReactDOM from 'react-dom';
import './css/main.css';
import { Header, Footer, Content } from './components';
ReactDOM.render(
<div className="main">
<Header />
<Content />
<Footer />
</div>,
document.getElementById('root')
); |
src/svg-icons/editor/format-indent-increase.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
contento/js-source/node_modules/react-sortable/example-real-world/js/App.js | inmagik/contento | import React from 'react';
import ReactDOM from 'react-dom';
import SortableListItem from './SortableListItem';
import SortableGridItem from './SortableGridItem';
import StateView from './StateView';
var App = React.createClass({
getInitialState: function() {
return {
items: [
"Gold",
"Cri... |
app/routes.js | liveyourheart/woke-electron | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
import PomodoroPage from './containers/PomodoroPage';
import StopWatchPage from './containers/StopWatchPage';... |
DeleteBar.js | alangpierce/LambdaCalculusPlayground | /**
* The "Delete bar" is the area at the top of the screen where you can drag
* expressions to remove them.
*
* @flow
*/
import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {
Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
imp... |
src/modules/editor/components/popovers/tooltip/TooltipItem/TooltipItem.js | CtrHellenicStudies/Commentary | import React from 'react';
import autoBind from 'react-autobind';
import { connect } from 'react-redux';
import {
RichUtils,
} from 'draft-js';
// redux
import editorActions from '../../../../actions';
// components
import TooltipItemButton from '../TooltipItemButton';
class TooltipItem extends React.Component {
... |
src/client/components/Page.js | EdgeJay/web-starterkit | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const Container = styled.div`
padding: 0 1rem;
max-width: 100%;
height: 100%;
`;
const Row = styled.div`
height: 100%;
`;
const Page = props => (
<Container className="container">
<Row className="row"... |
src/index.js | ibsukru/pizzaStore | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import registerServiceWorker from './registerServiceWorker'
ReactDOM.render(<App />, document.getElementById('root'))
registerServiceWorker()
|
tests/Rules-isLength-spec.js | meraki/mki-formsy-react | import React from 'react';
import TestUtils from 'react-dom/test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
class TestForm extends React.Component {
render() {
r... |
src/common/notificator/create/list/CreateNotificationsList.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'react-bootstrap';
import moment from 'moment';
const CreateNotificationsList = (props) => {
const { notifications, onClick } = props;
return (
<div className="notification-list">
<h4>Notifications list</h4>
<Table... |
admin/client/App/screens/List/components/ListColumnsForm.js | creynders/keystone | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { FormField, FormInput } from 'elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../actions';
v... |
src/svg-icons/image/image-aspect-ratio.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImageAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H... |
src/components/examples/constructorFunc.js | Jguardado/HiRproject | import React, { Component } from 'react';
/**
* Class respresenting a Constructor Function
* @constructor
*/
export default class Contructor extends Component {
constructor(props) {
super(props);
/** intializing the state of the component
*/
this.state = {
/** Anything assigned in the state obj... |
shared/components/SubComponents/Question/Upload.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import Dropzone from 'react-dropzone';
import { connect } from 'react-redux';
import { saveFileQuestion, deleteFileQuestion } from '../../../actions/questionActions';
import { getFile } from '../../../actions/userFileActions';
import Validation from '../../../utils/validation/V... |
node_modules/react-router/es/Route.js | together-web-pj/together-web-pj | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
src/ListItem/__tests__/ListItem_test.js | kmees/react-fabric | import React from 'react'
import { render, mount } from 'enzyme'
import test from 'tape'
import ListItem from '..'
import ListItemAction from '../ListItemAction.js'
test('ListItem', t => {
t.ok(ListItem, 'export')
t.equal(ListItem.Action, ListItemAction, '.Action export')
t.equal(ListItem.displayName, 'FabricCo... |
js/common/Toolbar.android.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
StyleSheet,
ToolbarAndroid,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
const Toolbar = (props) => {
const border = props.border ? <View style={styles.border}/> : <View />;
const content = props.backIcon ? (
... |
docs-site/src/components/FunctionDocumentation.js | brightinteractive/bright-js-framework | import React from 'react'
import { Card, CardHeader, CardText } from 'material-ui'
import { Subheader } from './Headers'
import { Comment, FunctionSignature, ParameterListDoc, Type } from './api-documentation-components'
/**
* Render documentation for each signature of a free function
*/
const FunctionDocumentation ... |
docs/server.js | yickli/react-bootstrap | import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development = process.env.NODE_ENV !== 'p... |
src/Survey/Complex/Default/Samples/Edit.js | NERC-CEH/irecord-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { IonPage, IonList } from '@ionic/react';
import AppHeader from 'Components/Header';
import Footer from 'Components/PhotoPickerFooter';
import AppMain from 'Components/Main';
import DynamicMenuAttrs from 'Components/DynamicMenuAttrs';
... |
packages/react/src/components/InlineCheckbox/InlineCheckbox.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import { settings } from 'carbon-components';
import mergeRefs from '../../too... |
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'flavours/glitch/components/status_content';
import AttachmentList from 'flavours/glitch/components/at... |
featuring-react-gui/src/login/LogoutButton.js | ccortezia/featuring | import React from 'react';
import {destroySessionToken} from '../remote';
export function LogoutButton({onLogout}) {
return (
<button className="btn btn-default" onClick={onClickHandler}>Logout</button>
);
function onClickHandler() {
destroySessionToken();
onLogout();
}
}
|
UmbracoReactStarterKit/app/src/ServerApp.js | systempioneer/ReactUmbracoExample | import React, { Component } from 'react';
import './App.css';
import {
StaticRouter as Router,
Route
} from 'react-router';
import ContentPage from './ContentPage';
class App extends Component {
constructor(props) {
super(props)
}
render() {
const { initialState } = this.props
const RoutedConte... |
public/app/src/components/run.js | bikesharehawaii/hibikeshare | import React from 'react';
import App from './Main';
// Render the main component into the dom
React.render(<App />, document.getElementById('app'));
|
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Jumbotron.js | Akkuma/npm-cache-benchmark | 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/popup/components/Either/index.js | fluany/fluany | /**
* @fileOverview A helper component to handler conditions
* @name index.js<Either>
* @license GNU General Public License v3.0
*/
import React from 'react'
import PropTypes from 'prop-types'
const Either = props => (props.when ? props.right : props.left)
const { element, bool } = PropTypes
/**
* PropTypes
*... |
fields/types/numberarray/NumberArrayFilter.js | michaelerobertsjr/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between'... |
library_js/src/index.js | HoldYourBreath/Library | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import registerServiceWorker from './registerServiceWorker';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/bootstrap-theme... |
frontend/app/js/components/notifications/list.js | serverboards/serverboards | import React from 'react'
import Loading from 'app/components/loading'
import NotificationItem from './item'
import {months} from 'app/utils'
import {i18n} from 'app/utils/i18n'
import {SectionMenu} from 'app/components'
require('sass/table.sass')
function Menu(props){
return (
<div className="ui secondary top ... |
packages/react-interactions/events/src/dom/Scroll.js | flarnie/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
PointerType,
} from 'shared/ReactDOMTypes';
impo... |
pages/404.js | InnoD-WebTier/irc | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class NotFound extends Component {
render () {
return (
<div className="page page--not-found">
... |
client/components/LoginForm.js | homanbromand/node-react-bootstrap | import React from 'react'
import { Link } from 'react-router'
import { login } from 'client/actions/sessionActions'
export default class Login extends React.Component {
constructor() {
super()
this.handleLogin = this.handleLogin.bind(this)
}
handleLogin(e) {
e.preventDefault()
const email = this.emailIn... |
src/components/MainContent/index.js | f74981743/f74981743.github.io | import React, { Component } from 'react';
export default class MainContent extends Component {
render() {
return (
<div className="main-content">
main page
</div>
)
}
} |
react/exercises/part_07/src/components/App.js | jsperts/workshop_unterlagen | import React from 'react';
import PropTypes from 'prop-types';
import './App.css';
import Header from './Header';
import NavBar from './NavBar';
import AddContactContainer from '../containers/AddContact';
import ContactsListContainer from '../containers/ContactsList';
function App({ showAddContact, onShowAddContact }... |
lib/Routes.js | davidbecker6081/ConnectME | import React, { Component } from 'react';
import { Route } from 'react-router';
// import firebase from 'firebase';
// import { signIn } from './firebase';
import FacebookContainer from './containers/FacebookContainer';
import MessageContainer from './containers/MessageContainer';
import NavHeaderContainer from './cont... |
examples/js/style/inline-style-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
src/shared/components/login/login.js | alexspence/operationcode_frontend | import Section from 'shared/components/section/section';
import React, { Component } from 'react';
import Form from 'shared/components/form/form';
import { Redirect } from 'react-router-dom';
import axios from 'axios';
import PropTypes from 'prop-types';
import config from 'config/environment';
import _ from 'lodash';
... |
src/components/List/ListItemText.js | sk-iv/iva-app | import React from 'react';
import type { Node } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
// import Typography from '../Typography';
export type Props = {
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
cl... |
src/components/Cta/Cta.js | FCCColumbus/F3C_Website | import React from 'react';
import styles from './styles.module.scss';
const Cta = () => (
<div className={styles.cta}>
<div className={styles.wrap}>
<div className={styles.title}>
<h2>Here‘s why you should join our open source community right now:</h2>
</div>
<div className={styles.list... |
firstProject/index.android.js | gergob/reactNativeSamples | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class firstProject extends Component {
render() {
return (
<View style={styles.contai... |
webpack/move_to_foreman/components/common/table/formatters/ellipsisCellFormatter.js | mccun934/katello | import React from 'react';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
import cellFormatter from './cellFormatter';
export default value => cellFormatter(<EllipsisWithTooltip>{value}</EllipsisWithTooltip>);
|
docs/app/Examples/elements/Button/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Groups from './Groups'
import GroupVariations from './GroupVariations'
import States from './States'
import Types from './Types'
import Variations from './Variations'
import Usage from './Usage'
const ButtonExamples = () => (
<div>
<Types />
<... |
docs/pages/components/text-fields.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/text-fields';
const requireDemo = require.context('docs/src/pages/components/text-fields', false, /\.(js|tsx)$/);
cons... |
frontend/src/Settings/Profiles/Delay/DelayProfilesConnector.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteDelayProfile, fetchDelayProfiles, reorderDelayProfile } from 'Store/Actions/settingsActions';
import createTagsSelector f... |
src/components/add-book-pages.js | KoushikKumar/trade-a-book-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { BOOK_TITLE,
AUTHOR,
IMAGE_URL,
NO_OF_PAGES,
PRICE,
PUBLICATION_YEAR,
DESCRIPTION } from '../constants/placeholder-constants';
import { ADD } from '../constants/content-const... |
v2/src/App.js | nosnickid/orthogonal-automatons | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
src/utils/index.js | ericsonmichaelj/fear-the-repo | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import DevTools from 'containers/DevToolsWindow';
export function createConstants (...constants) {
return constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
}
export functi... |
main.js | bbailey-cando/agent11 | import 'babel-polyfill';
import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import FastClick from 'fastclick';
import { Provider } from 'react-redux';
import store from './core/store';
import router from './core/router';
import history from './core/history';
let routes = require('.... |
examples/react-router/src/App.js | joshblack/carbon-components-react | import React, { Component } from 'react';
import { Breadcrumb, BreadcrumbItem, Tabs, Tab } from 'carbon-components-react';
import { Switch, Route, Link, Redirect, withRouter } from 'react-router-dom';
import './App.scss';
const LandingPage = ({ children }) => (
<div>
<h1>React Router & Carbon React Components</h... |
fields/types/embedly/EmbedlyField.js | tanbo800/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'EmbedlyField',
// always defers to renderValue; there is no form UI for this field
renderField () {
return this.renderValue();
},
renderValue (path, label, ... |
pages/api/bottom-navigation-button.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './bottom-navigation-button.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);... |
src/containers/shared-assets/filters/redux-input-filter.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import Select from 'antd/lib/select';
import 'antd/lib/select/style/css';
const InputFilter = ({attribute, filter, multiple, handleSelect, value}) => {
const Option = Select.Option;
const options = attribute.map(a=> (
<Option instancePrefix={a} ... |
src/components/mediabox/mediabox_body.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Content of Mediabox
*
*/
export default class PanelBody extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
'weui-media-box__bd': true
... |
src/Alert.js | mxc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
docs/app/Examples/modules/Dropdown/index.js | jcarbo/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'stardust'
const DropdownExamples = () => (
<div>
<ExampleSection title='Types'>
<ComponentExample... |
server/configs.js | MxMcG/malachi | import React from 'react';
import database from './database/index.js';
// import gutil from 'gulp-util';
import content from '../projects/wwf/content/content.json'
import prodContent from '../projects/wwf/content/productionContent.json'
export const setupConfigs = (env, activeProject, callback) => {
const config = {... |
client/src/components/appmenu/AppMenu.js | OpenSecTre/sword | import React, { Component } from 'react';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import Divider from 'material-ui/Divider';
import classes from './_style.scss';
import IconSettings from 'material-ui/svg-icons/action/settings';
import IconScan from 'material-ui/svg-icons/actio... |
src/components/containers/shen-wen-suo-board-market-container.js | HuangXingBin/goldenEast | import React from 'react';
import { Button, AutoComplete ,DatePicker } from 'antd';
import './user-list-container.css';
import UserListTable from '../views/user-details-board-market-table';
import { connect } from 'react-redux';
import SearchInput from '../views/SearchInput';
import store from '../../store';
import { u... |
components/nav.js | kentcdodds/glamorous-website | import preval from 'preval.macro'
import React from 'react'
import glamorous from 'glamorous'
import {algoliaSettings} from '../components/algolia-config'
import {Anchor} from '../components/styled-links'
import LipstickIcon from './lipstick-icon'
import Separator from './separator'
import LocaleChooser from './locale-... |
react/src/components/App.js | rumbleyam/morty-api | import React from 'react';
import Switcher from './Switcher';
import {withTheme, withStyles} from 'material-ui/styles';
import Paper from 'material-ui/Paper';
import Tabs, {Tab} from 'material-ui/Tabs';
import Typography from 'material-ui/Typography';
import AppBar from 'material-ui/AppBar';
import {connect} from 'r... |
src/js/components/Editor/ImageBlock.react.js | planetarylink/planetary-link | 'use strict';
import React from 'react';
import {Entity} from 'draft-js';
export default ({ block }) => {
console.log(block)
console.log(block.getEntityAt(0))
const file = Entity.get(block.getEntityAt(0)).getData()['file'];
const source = URL.createObjectURL(file);
return <img src={source} />;
};
|
source/component/listview/searchRow.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Text,
TouchableHighlight
} from 'react-native';
import moment from 'moment';
import _ from 'lodash';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import { decodeHTML } from '../../common';
import { CommonStyles, ComponentStyles, StyleConfig ... |
src/index.js | alexb14/alexanderbyrne.com | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Layout from './components/Layout';
import About from './pages/About';
import Contact from './pages/Contact';
import Home from './pages/Home';
import Work from './pages/Work';
import A... |
src/containers/Asians/_components/PublishedBreakRound/Ballots/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Responsive from 'react-responsive'
import LargeBallots from './LargeBallots'
import SmallBallots from './SmallBallots'
export default ({
breakRound
}) => {
return (
<div>
<Responsive
minWidth={961}
>
<LargeBallots
breakRound={breakRound}
... |
src/components/App/App.js | dryror/javascript-boilerplate | import React from 'react';
import styles from './App.css';
import CounterButton from '../../containers/CounterButton';
import GreetingText from '../../containers/GreetingText';
const App = () =>
<div className={styles.root}>
<GreetingText />
<CounterButton />
</div>;
export default App;
|
packages/material-ui-icons/legacy/Battery50Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v9h10V4z" /><path d="M7 13v9h10v-9H7z" /></React.Fragment>
, 'Battery50Sharp');
|
main.js | The-Chanman/Parker | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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 'babel-polyfill'
imp... |
src/Radio/Radio.js | dimik/react-material-web-components | import React from 'react'
import PropTypes from 'prop-types'
import {MDCComponent} from '../MDCComponent'
import {MDCRadio} from '@material/radio/dist/mdc.radio'
import classNames from 'classnames'
class Radio extends MDCComponent {
static displayName = 'Radio'
static propTypes = {
children: PropTypes.node,
... |
src/svg-icons/av/radio.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3... |
src/index.js | JCampbell371/React-Videos | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_Key = 'AIzaSyCNs... |
my-app/src/components/pages/projectpages/stars/starmaker.js | sThig/jabbascrypt | import React from 'react';
import Stars from './star';
import styled from 'styled-components';
import { Row, Col } from 'react-flexbox-grid';
const Copy = styled.p`
color: #F86195;
margin-top: 0;
margin-bottom: 2em;
`
const ProjectTitle = styled.h1`
color: white;
margin-top: 1em;
margin-bottom: 0;
`
const ... |
src/index.js | RolandJansen/basemod | import React from 'react'
import { render } from 'react-dom'
import thunkMiddleware from 'redux-thunk'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import { initialState } from './model/initialState'
import reducer from './model/reducers'
import App from './components/App'... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | yangchaogit/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import GroupMember from 'components/activity/GroupMember.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(... |
React Native/Demos/nearby/Nearby/views/toilet.js | AngryLi/note | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
export default class Toilet extends React.Component {
render() {
return (
<View></View>
)
}
}
const styles= StyleSheet.create({
}) |
src/components/ColorPicker.js | ctlusto/gifsmos | import React, { Component } from 'react';
import { SketchPicker } from 'react-color';
class ColorPicker extends Component {
constructor(props) {
super(props);
this.handleInputUpdate = this.handleInputUpdate.bind(this);
}
handleInputUpdate(color) {
this.props.updateTextColor(color.hex);
}
render... |
src/routes/vendor/index.js | AaronHartigan/DudeTruck | import React from 'react';
import Layout from '../../components/Layout';
import Vendor from '../../components/Vendor';
import isLoggedIn from '../../core/authorization';
import { loggedOutRedirect } from '../../constants';
async function action({ params, store, fetch }) {
const user = store && store.getState().user;... |
website/src/pages/404.js | atomiks/tippyjs | import React from 'react';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
function NotFoundPage({pageContext}) {
const context = {...pageContext, frontmatter: {title: '404: Not Found'}};
return (
<Layout pageContext={context}>
<SEO title="404: Not found" pageContext={cont... |
src/index.js | 1-on-1conversations/rotations | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/leadersboard/leadersboard-item.component.js | YGO/compe-frontend | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
import style from './leadersboard.styles'
import { alignLeft } from '../../routes/common.styles'
import { colors } from './leadersboard.colors'
import { calcTHRU, hasScore } from './leadersboard.service'
const scoreToStr = score =... |
fields/types/select/SelectFilter.js | joerter/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return... |
node_modules/react-bootstrap/es/Accordion.js | geng890518/editor-ui | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PanelGroup from '... |
index/components/AboutVenomseq.js | JDRomano2/VenomKB | import React from 'react';
const AboutVenomseq = () =>
<div className="jumbotron">
<div className="container">
<h2>VenomSeq</h2>
<p>
VenomSeq is a new biotechnology platform that enables affordable and high-throughput screening of the effects that venoms exert on gene expression in human cell... |
src/Option.js | serkanozer/react-select | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Option extends React.Component {
constructor(props) {
super(props);
this.handleMouseDown = this.handleMouseDown.bind(this);
this.handleMouseEnter = this.handleMouseEnter.bind(this);
this.handleMouseMove... |
components/animals/zirafaSitovana.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/zirafaSitovana/01.... |
src/components/Carousel.js | allenzhong/simple-carousel | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { CSSTransitionGroup } from 'react-transition-group';
import CarouselIndicator from "./CarouselIndicator";
import "./Carousel.css";
export const Position = {
CENTER: 'carousel--indicators__centered',
LEFT: 'carousel--indicators__l... |
src/ModalTitle.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
logspace-frontend/src/main/routes.react.js | Indoqa/logspace | // @flow
import React from 'react'
import {IndexRoute, Route} from 'react-router'
import Module1Page from './modules/module1/components/Module1Page.react'
import Module2Page from './modules/module2/components/Module2Page.react'
import AgentsPage from './modules/agents/components/AgentsPage.redux'
import DashboardsPag... |
src/Typography/Display2.js | kradio3/react-mdc-web | import React from 'react';
import TypographyElement from './TypographyElement';
const defaultProps = {
component: 'h1',
};
const Display2 = props => (
<TypographyElement
modificator="display2"
{...props}
/>
);
Display2.defaultProps = defaultProps;
export default Display2;
|
src/routes/admin/index.js | joaquingatica/git-demo | /**
* 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 Layout from '../../co... |
src/svg-icons/action/today.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
ee/app/engagement-dashboard/client/components/ChannelsTab/index.stories.js | iiet/iiet-chat | import { Margins } from '@rocket.chat/fuselage';
import React from 'react';
import { ChannelsTab } from '.';
export default {
title: 'admin/enterprise/engagement/ChannelsTab',
component: ChannelsTab,
decorators: [
(fn) => <Margins children={fn()} all='x24' />,
],
};
export const _default = () => <ChannelsTab /... |
app/ToolBar/ToolBar.js | RyanWangGit/poi | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import FlatButton from 'material-ui/FlatButton';
import Toggle from 'material-ui/Toggle';
import styles from './ToolBar.css';
export default class T... |
modules/RoutingContext.js | yongxu/react-router | import React from 'react';
import invariant from 'invariant';
import getRouteParams from './getRouteParams';
var { array, func, object } = React.PropTypes;
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the router object and the current location in context.
*/
var RoutingCo... |
lib/components/Tempalink.js | codevlabs/filepizza | import React from 'react'
export default class Tempalink extends React.Component {
onClick() {
this.refs.input.getDOMNode().setSelectionRange(0, 9999)
}
render() {
var url = window.location.origin + '/' + this.props.token
return <input
className="tempalink"
onClick={this.onClick.bind(th... |
src/svg-icons/av/playlist-add.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Badge.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import { createBootstrapC... |
src/svg-icons/action/theaters.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
newclient/scripts/components/admin/list-view/table-heading/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.