path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/svg-icons/av/replay.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/>
</SvgIcon>
);
AvReplay = pure(AvReplay);
AvReplay... |
src/components/Layout.js | RanjithNair/FeatureTracker | import React from 'react';
import Header from './common/Header';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {signOut} from '../actions/authActions';
class Layout extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
const ... |
tests/components/AttemptComponent.spec.js | theosherry/react-hangman | import React from 'react'
import skinDeep from 'skin-deep'
import TestUtils from 'react-addons-test-utils'
import Popover from 'material-ui/lib/popover/popover'
import {AttemptComponent} from 'components/AttemptComponent/AttemptComponent'
import classes from 'components/AttemptComponent/AttemptComponent.scss'
functio... |
src/containers/pages/reddit/post/content/post-comments/post-comments-header.js | vFujin/HearthLounge | import React from 'react'
import { connect } from "react-redux";
const PostCommentsHeader = ({post}) => {
return (
<div className="section__header">
<div className="line"/>
<h1>{post.num_comments} {post.num_comments === 1 ? "comment" : "comments"}</h1>
</div>
)
};
const mapStateToProps = state... |
test/AlertSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Alert from '../src/Alert';
describe('Alert', function () {
it('Should output a alert with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Alert>
<strong>Message</strong>
</Alert... |
client/src/Weather.js | t-gabor/sunshade-control | import React from 'react';
import Paper from 'material-ui/Paper';
import './Weather.css';
export default (props) => {
if(!props.weather)
return <Paper className="weather"/>
var d = new Date(0); // The 0 there is the key, which sets the date to the epoch
d.setUTCSeconds(props.weather.observationTim... |
docs/app/Examples/elements/Header/Variations/HeaderExampleColored.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleColored = () => (
<div>
<Header as='h4' color='red'>Red</Header>
<Header as='h4' color='orange'>Orange</Header>
<Header as='h4' color='yellow'>Yellow</Header>
<Header as='h4' color='olive'>Olive</Header>
<Head... |
src/containers/pageNavigatorContainer/index.js | MichaelQQ/Oyasumi | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import PageNavigator from '../../components/pageNavigator';
import { prev, next } from './action';
export const PageNavigatorContainer = ({ ...props }) => {
const { page, maxPage, onPrev, onNext } = props;
retur... |
powerauth-webflow/src/main/js/components/loginSca.js | lime-company/powerauth-webflow | /*
* PowerAuth Web Flow and related software components
* Copyright (C) 2019 Wultra s.r.o.
*
* 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 License, or
* (... |
app/components/ColorChanger/Title/index.js | cerebral/cerebral-boilerplate | import React from 'react';
import styles from './styles.css';
function Title(props) {
return (
<h1 style={{color: props.color}} className={styles.title}>
{props.children}
</h1>
);
}
Title.propTypes = {
color: React.PropTypes.string.isRequired,
children: React.PropTypes.any.isRequired
};
export ... |
client/modules/App/__tests__/Components/Header.spec.js | phumberdroz/pizzastore | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import Header from '../../components/Header/Header';
test('renders the header properly', t => {
const router = {
isActive: sinon.stub().returns(true),
};
const wrapper = shallow(
<Header toggle... |
src/svg-icons/navigation/close.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose = pure(Navig... |
src/server/Server.js | scopevale/carpers-paradise | import express from 'express';
import stormpath from 'express-stormpath';
import path from 'path';
import favicon from 'serve-favicon';
import logger from 'morgan';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
// my routes
import routes from './routes/index.js';
import booking from ... |
src/layouts/MetaContainer/metacontainer.js | aberkow/gatsby-blog | import React from 'react';
|
generators/component/templates/src/app/component.js | FountainJS/generator-fountain-react | <% if (modules === 'webpack') { -%>
const React = require('react');
export default React.createClass({
<% } -%>
<% if (modules === 'systemjs') { -%>
import React from 'react';
export default React.createClass({
<% } -%>
<% if (modules === 'inject') { -%>
window.<%- className %> = React.createClass({
<% } -%>
getDef... |
client/admin/scenes/protected/project/project-list.js | kirinami/portfolio | import React, { Component } from 'react';
import { Breadcrumb, BreadcrumbItem } from 'reactstrap';
import { Link } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
import Loading from '../../../components/loading';
@inject('alertStore', 'projectStore')
@observer
export default class ProjectList... |
internals/templates/appContainer.js | adoveil/max | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/containers/Root.js | ghartong/react_falcor | import React from 'react'
import {Provider} from 'react-redux'
import {Router} from 'react-router'
import routes from '../routes'
import createHashHistory from 'history/lib/createHashHistory'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired... |
frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Alert from 'Components/Alert';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Provider... |
src/features/ViewMenuItems/Views/TitleHeader.js | erhathaway/cellular_automata | import React from 'react';
import styled, { css } from 'react-emotion';
import PropTypes from 'prop-types';
// dock top or bottom
const ContainerHorizontal = css`
border-bottom: 1px solid rgba(72, 72, 72, 0.5);
padding-bottom: 5px;
`;
// dock left or right
const ContainerVertical = css`
`;
// has not docked
cons... |
app/scripts/components/LandingPage/__tests__/AppBar-test.js | andela-ekupara/DcManFrontEnd | 'use strict';
import React from 'react';
import {browserHistory} from 'react-router';
import sinon, {spy, stub} from 'sinon';
import expect from 'expect';
import {mount, shallow} from 'enzyme';
import NavAppBar from '../AppBar.jsx';
import AuthModal from '../../Auth/AuthModal.jsx';
import AppBar from 'material-ui/lib/... |
packages/mineral-ui-icons/src/IconSwapVert.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 IconSwapVert(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps... |
node_modules/react-bootstrap/es/NavItem.js | superKaigon/TheCave | 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 ... |
tests/layouts/CoreLayout.spec.js | rui19921122/StationTransformBrowserClient | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
examples/huge-apps/routes/Course/components/Nav.js | nhunzaker/react-router | import React from 'react'
import { Link } from 'react-router'
const styles = {}
styles.nav = {
borderBottom: '1px solid #aaa'
}
styles.link = {
display: 'inline-block',
padding: 10,
textDecoration: 'none'
}
styles.activeLink = {
...styles.link,
color: 'red'
}
class Nav extends React.Component {
rende... |
docs/app/Examples/collections/Grid/Content/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const GridContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Rows'
description='A r... |
src/desktop/components/react/current_auctions/index.js | kanaabe/force | import CurrentAuctions from './current_auctions'
import invariant from 'invariant'
import React from 'react'
import ReactDOM from 'react-dom'
import { isEmpty, isString } from 'underscore'
export { CurrentAuctions }
export default function mount(
data,
selector = '#react-mount-current-auctions'
) {
const { auct... |
test/ColSpec.js | BespokeInsights/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Col from '../src/Col';
describe('Col', function () {
it('Should set Offset of zero', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} />
);
... |
src/routes/RegisterStudent/components/RegisterForm.js | gabrielmf/SIR-EDU-2.0 | import React from 'react'
import { TextField, SelectField, MenuItem, DatePicker, Checkbox, RaisedButton } from 'material-ui'
import Dropzone from 'components/Dropzone'
import MultipleCheckboxes from './MultipleCheckboxes'
import TermOfUse from './TermOfUse'
const specialNeeds = [{name: 'Altas Habilidades/Superdotado'}... |
client/lib/js/react/components/asset_action_panel.js | enzovici/PoC-TruthChain | import React from 'react';
import { Button, DropdownButton, MenuItem } from 'react-bootstrap/lib';
import { safeInvoke } from 'js-utility-belt/es6';
const AssetActionPanel = React.createClass({
propTypes: {
accountList: React.PropTypes.array.isRequired,
activeAccount: React.PropTypes.object.isReq... |
docs/app/Examples/elements/Label/Content/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const LabelContent = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Detail'
description='A label ... |
admin/client/App/components/Navigation/Secondary/NavItem.js | brianjd/keystone | /**
* A navigation item of the secondary navigation
*/
import React from 'react';
import { Link } from 'react-router';
const SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropType... |
docs/src/app/components/pages/components/Table/Page.js | w01fgang/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
chapter-10/todo_react_motion/src/filter/views/filters.js | mocheng/react-and-redux | import React from 'react';
import Link from './link.js';
import {FilterTypes} from '../../constants.js'
import './style.css';
const Filters = () => {
return (
<p className="filters">
<Link filter={FilterTypes.ALL}> {FilterTypes.ALL} </Link>
<Link filter={FilterTypes.COMPLETED}> {FilterTypes.COMPLETE... |
packages/plugins/users-permissions/admin/src/pages/Roles/ProtectedEditPage/index.js | wistityhq/strapi | import React from 'react';
import { CheckPagePermissions } from '@strapi/helper-plugin';
import pluginPermissions from '../../../permissions';
import RolesEditPage from '../EditPage';
const ProtectedRolesEditPage = () => (
<CheckPagePermissions permissions={pluginPermissions.updateRole}>
<RolesEditPage />
</Ch... |
src/components/state-badge.component.js | Antoine38660/git-point | import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { colors, fonts, normalize } from 'config';
import { translate } from 'utils';
type Props = {
issue: Object,
isMerged: boolean,
text: string,
type: string,
style: Object,
locale: string,
};
const styles = StyleSheet.... |
src/components/icons/user.js | ipfs-shipyard/peerpad | import React from 'react'
export default ({ className, style }) => (
<svg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg' className={className} style={style}>
<g transform='translate(1.000000, 1.000000)' strokeWidth='1' fill='none'>
<circle cx='6' cy='3' r='3' />
<path d... |
app/components/Footer.js | Byte-Code/lm-digital-store-private-test | import React from 'react';
import glamorous from 'glamorous';
import { Link } from 'react-router';
import HelpIcon from 'material-ui/svg-icons/action/help-outline';
import HomeIcon from 'material-ui/svg-icons/action/home';
import ArrowIcon from 'material-ui/svg-icons/navigation/arrow-back';
import TutorialButton from ... |
lms/static/js/student_account/components/spec/PasswordResetConfirmation_spec.js | cpennington/edx-platform | /* globals setFixtures */
import ReactDOM from 'react-dom';
import React from 'react';
import sinon from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies
import { PasswordResetConfirmation } from '../PasswordResetConfirmation';
describe('PasswordResetConfirmation', () => {
beforeEach(() => {
se... |
app/server/server.js | nittmurugan/finddriver | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
frontend/src/pages/Home.js | pequalsnp/eve-isk-tracker | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Grid, Row, Col, Jumbotron } from 'react-bootstrap';
import App from '../components/App'
import Profile from '../components/Profile'
class Home extends Component {
render() {
return (
<App>
<Jumbotron>
<P... |
dispatch/static/manager/src/js/components/PollEditor/PollForm.js | ubyssey/dispatch | import React from 'react'
import { Button, Intent } from '@blueprintjs/core'
import R from 'ramda'
import { TextInput, SelectInput } from '../inputs'
import * as Form from '../Form'
import Poll from './Poll'
require('../../../styles/components/poll_form.scss')
const DEFAULT_ANSWERS = [
{
'name': '',
'vot... |
AppVilRecipe/VilRecipes/index.android.js | damdamgo/VilRecipe | /**
* 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 VilRecipes from './App';
AppRegistry.registerComponent('VilRecipes', () => VilRecipes);
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | shrynx/react-super-scripts | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
imports/Client/Components/task/Task.js | darodriguez15/booksWebDev | import React, { Component } from 'react';
import PropTypes from "prop-types";
// Task component - represents a single todo item
export default class Task extends Component {
render() {
return (
<li>{this.props.task.text}</li>
);
}
}
Task.propTypes = {
// This component gets the... |
src/icons/GlyphMap.js | ipfs/webui | import React from 'react'
const GlyphMap = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M80.45 31.79L60.58 19.4a1 1 0 0 0-.53-.15h-.23a1 1 0 0 0-.59.19c-.47.31-7.45 4.72-13.07 8.26l-6 3.79-.09.05a1.43 1.43 0 0 1-.31-.16c-6-3.74-18.45-11.88-18.95-12.24a1 1 0 0 0-1-.18 1 1 0 0 0-.65.73c-.05.2-.11.49-... |
fields/types/number/NumberFilter.js | andreufirefly/keystone | import React from 'react';
import ReactDOM 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' },
];
... |
src/navigation/auth.js | shwethadn/StarterApp | /**
* Auth Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Scenes
import Authenticate from '@containers/auth/Authen... |
docs/src/app/components/pages/components/RefreshIndicator/Page.js | barakmitz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
packages/leaflet/src/basemaps/Tile.js | wq/wq.app | import React from 'react';
import { TileLayer } from 'react-leaflet';
export default function Tile(props) {
return <TileLayer {...props} />;
}
|
src/app/components/Header.js | DavidBanksNZ/react-redux-minesweeper | import React from 'react';
const Header = props => (
<div className="app-header">
<h1>React + Redux Minesweeper</h1>
<i className="zmdi zmdi-help app-header-help-icon" onClick={props.onToggleHelp}></i>
</div>
);
export default Header; |
test/NavbarSpec.js | azmenak/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', function () {
it('Should create nav element', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = ... |
client/containers/home/index.js | ShannChiang/USzhejiang | // import React from 'react';
// import {useDeps} from 'react-simple-di';
// import {composeAll, withTracker, withLifecycle} from 'react-komposer-plus';
// import Home from '../../components/home';
// function composer({context}, onData) {
// const user = context().Meteor.user();
// if (user && Array.isArray(use... |
src/sentry/static/sentry/app/icons/icon-search.js | gencer/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconSearch(props) {
return (
<Icon viewBox="0 0 14 14" {...props}>
<g stroke="none" fill="currentColor">
<path d="M8.3099521,6.89573854 L11.7071068,10.2928932 C12.0976311,10.6834175 12.0976311,11.3165825 11.7071068,11.7071068 C... |
client/src/components/view/container/Networks.js | docker-manager/docker-manager-tool | import React from 'react'
const Networks = ({networks}) => (
<ul className="list-group">
{Object.keys(networks).map(network =>
<li key={network} className="list-group-item">
<table className="table table-striped table-condensed table-responsive text-left">
<t... |
src/components/__tests__/MetaEmail_test.js | varenya/email-client | import React from 'react';
import {shallow} from 'enzyme';
import { MetaEmail , Avatar , UserDetails} from '../MetaEmail';
describe('MetaEmail',() => {
let metaEmail = null;
beforeEach(() => {
const sampleProps = {
selected : false,
unread : false,
name : 'Test... |
step4-router/node_modules/react-router/modules/Link.js | jintoppy/react-training | import React from 'react'
import warning from './routerWarning'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
functio... |
lib/grid/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
StyleSheet,
View,
Image,
TouchableOpacity,
ListView,
Dimensions,
} from 'react-native';
import { floor, divide, take, chunk } from 'lodash';
const { width } = Dimensions.get('window');
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
const ... |
src/PhotoMessage/PhotoMessage.js | Detaysoft/react-chat-elements | import React from 'react';
import './PhotoMessage.css';
import FaCloudDownload from 'react-icons/lib/fa/cloud-download';
import FaError from 'react-icons/lib/fa/exclamation-triangle';
const ProgressBar = require('react-progress-bar.js');
const Circle = ProgressBar.Circle;
function PhotoMessage(props) {
var progre... |
src/Parser/Hunter/Marksmanship/Modules/Features/VulnerableUptime.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBox, { ST... |
src/redux/utils/createDevToolsWindow.js | felixSchl/try-neodoc | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import DevTools from '../../containers/DevToolsWindow';
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
... |
fields/types/location/LocationFilter.js | cermati/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
Grid,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
ret... |
src/tests/App.spec.js | openproblems/landingpage | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow, mount, render } from 'enzyme';
import App from '../components/App';
import Subtitle from '../components/sections/parts/Subtitle';
describe('<App />', () => {
it('renders a <Subtitle /> component', () => {
cons... |
src/collections/Form/FormRadio.js | aabustamante/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Radio from '../../addons/Radio'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Radio} />.
* @see Form
* @see Radio
*/
function FormRadio(props) {
const { contr... |
src/docs/examples/Table/ExampleSimpleTable.js | rajeshpillai/zs-react-pattern-lib | import React from 'react';
import Table from 'zs-react/Table';
/** SimpleTable */
export default class ExampleSimpleTable extends React.Component {
constructor () {
super();
this.headers = [
"Book", "Author", "Language", "Published", "Sales"
];
this.data = [
["The Lord ... |
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | andrejunges/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"
/>... |
packages/neos-ui-editors/src/Editors/PluginViews/index.js | grebaldi/PackageFactory.Guevara | import React from 'react';
import PropTypes from 'prop-types';
import backend from '@neos-project/neos-ui-backend-connector';
import {neos} from '@neos-project/neos-ui-decorators';
import {connect} from 'react-redux';
import {selectors, actions} from '@neos-project/neos-ui-redux-store';
import mergeClassNames from 'cla... |
src/popup/popup.js | mazenbesher/sub_player_chrome_extension | "use strict";
// Notes
/**
* Subtitle Custom events
* sub-activated, sub-deactivated
* dispatched when a subtitle is (de)activated
* the (de)activated subtitle index can be found as the event detail
*/
// imports
import { config } from 'lib/config';
import { getActiveTabId, parseSRT } from 'lib/utils';
import Re... |
components/ArticleReply/ArticleReply.js | cofacts/rumors-site | import React from 'react';
import { t } from 'ttag';
import gql from 'graphql-tag';
import { Box } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import { nl2br, linkify } from 'lib/text';
import getTermsString from 'lib/terms';
import { TYPE_NAME, TYPE_REFERENCE_TITLE } from 'constan... |
app/components/Settings.js | jakkra/OneAppToRuleThemAll | 'use-strict';
import React from 'react';
import {
StyleSheet,
View,
Dimensions,
Text,
TextInput,
InteractionManager,
ToastAndroid,
Clipboard,
} from 'react-native';
import { connect } from 'react-redux';
import { updateHueSettings } from '../actions/user';
import Icon from 'react-native-vector-icons... |
src/svg-icons/action/info-outline.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfoOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h... |
src/routes/contact/Contact.js | edgarallanglez/foxacademia_frontend | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/components/utils/ColSM4.js | Harrison1/several-levels | import React from 'react'
const ColSM4 = ({ children }) =>
<div className="col-sm-4 text-center">
{ children }
</div>
export default ColSM4 |
pootle/static/js/stats.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import $ from 'jquery';
import React from 'react';
import ... |
test/electron-renderer/ui/LocaleSelector_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai from 'chai';
import fs from 'fs';
import path from 'path';
import { mount } from 'enzyme';
import LocaleSelector from '../../../build/renderer/ui/components/settings/LocaleSelector';
import materialUIContext from './_materialUIContext';... |
test/helpers.js | pivotal-cf/react-bootstrap | import React from 'react';
import { cloneElement } from 'react';
export function shouldWarn(about) {
console.warn.called.should.be.true;
console.warn.calledWithMatch(about).should.be.true;
console.warn.reset();
}
/**
* Helper for rendering and updating props for plain class Components
* since `setProps` is de... |
ui/web/components/message-list.js | Sebi55/whatkindofdeveloperareyou | import React from 'react';
import ReactDOM from 'react-dom';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import TypingIndicator from './typing-indicator';
import Message from './message';
class MessageList extends React.Component {
componentDidUpdate() {
var node = this.refs.list;
... |
src/index.js | bernardAdark/myCrib-doc | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import remark from 'remark';
import slug from 'remark-slug';
import content from '../custom/content';
var ast = remark()
.use(slug)
.run(remark().parse(content));
ReactDOM.render(
<App ast={... |
js/App/Components/Device/Common/ExcludeDevice.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/helpers/app/getHead.js | expdevelop/d812 | import React from 'react'
import apple57 from 'images/favicon/apple-icon-57x57.png'
import apple60 from 'images/favicon/apple-icon-60x60.png'
import apple72 from 'images/favicon/apple-icon-72x72.png'
import apple76 from 'images/favicon/apple-icon-76x76.png'
import apple114 from 'images/favicon/apple-icon-114x114.png'
i... |
react_native_frontend/src/components/goalHelpers/indiGoal.js | CUNYTech/BudgetApp | import React, { Component } from 'react';
import {
Alert, View, Text, StyleSheet, TouchableOpacity, TextInput, LayoutAnimation, Platform, Dimensions } from 'react-native';
import { Actions } from 'react-native-router-flux';
import Icon from 'react-native-vector-icons/FontAwesome';
import * as Progress from 'react-n... |
website/src/components/EmergencyStopButton.js | DTU-R3/ArloBot | import React from 'react';
import './EmergencyStopButton.css';
const EmergencyStopButton = (props) => {
const btnClass = props.haltRobot
? 'btn btn-success btn-tight'
: 'btn btn-danger btn-tight';
const btnText = props.haltRobot ? 'Resume' : 'Emergency STOP';
const signal = props.haltRobot ? 'unHaltRobot... |
src/components/SearchField/SearchField.js | aos2006/tesDeploy | import React from 'react';
import { Input } from 'react-toolbox';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './SearchField.css';
import Clear from '-!babel-loader!svg-react-loader!./icons/clear.svg?name=Clear';
import theme from './theme.css';
export const SearchField = props => (
... |
docs/src/app/components/pages/components/DatePicker/Page.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
actor-apps/app-web/src/app/components/dialog/messages/Document.react.js | liruqi/actor-platform-v0.9 | import React from 'react';
import classnames from 'classnames';
class Document extends React.Component {
static propTypes = {
content: React.PropTypes.object.isRequired,
className: React.PropTypes.string
};
constructor(props) {
super(props);
}
render() {
const { content, className } = this.... |
test/NavDropdownSpec.js | Terminux/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import MenuItem from '../src/MenuItem';
import NavDropdown from '../src/NavDropdown';
describe('NavDropdown', () => {
it('Should render li when in nav', () => {
const instance = ReactTestUtils.re... |
services/web-client/src/routes/routes.js | andykais/telebum2 | import React from 'react'
import { Route, Switch } from 'react-router-dom'
import App from 'containers/App'
import Home from 'containers/HomePage'
import NotFound from 'containers/NotFoundPage'
const Routes = (props) =>
<App>
<Switch>
<Route path='/' exact component={Home}/>
<Route path='/test' rend... |
src/svg-icons/image/wb-iridescent.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbIridescent = (props) => (
<SvgIcon {...props}>
<path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1.... |
src/components/searchbox/searchbox.js | thinktopography/reframe | import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
class Searchbox extends React.Component {
static propTypes = {
active: PropTypes.bool,
icon: PropTypes.string,
prompt: PropTypes.string,
q: PropTypes.string,
onAbort: PropTypes.func,
onBegin: PropTypes.func,
... |
app/packs/src/components/elements/ElementField.js | ComPlat/chemotion_ELN | /* eslint-disable react/forbid-prop-types */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Popover, Col, Checkbox, Panel, Form, ButtonGroup, OverlayTrigger, FormGroup, FormControl, ControlLabel, InputGroup } from 'react-bootstrap';
import Select from 'react-select';
impo... |
src/svg-icons/image/looks-4.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks4 = (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-4 14h-2v-4H9V7h2v4h2V7h2v10z"/>
</SvgIcon>
);
ImageLooks4 = pure(ImageLoo... |
test/TableSpec.js | Sipree/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Table from '../src/Table';
describe('Table', () => {
it('Should be a table', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(ReactDOM.findD... |
news/components/BannerWide.js | HKuz/FreeCodeCamp | import React from 'react';
const propTypes = {};
function BannerWide() {
return (
<svg
version='1.0'
viewBox='0 0 1024 555'
xmlns='http://www.w3.org/2000/svg'
>
<path
d={
'M0 277.5V555h1024V0H0v277.5zm368.5-144.9c1.3.8 2.8 2.9 3.4 4.6 1.' +
'6 4.6-.6 8.3... |
server/ViewModels/PointsHistory.js | demyanenko/hutel | import React from 'react';
import PropTypes from 'prop-types';
import update from 'immutability-helper';
import $ from 'jquery';
import moment from 'moment';
import Divider from 'material-ui/Divider';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
import {List, ListItem}... |
src/ui/app.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import pathToRegexp from 'path-to-regexp'
import { connect } from 'dva'
import { Layout, Loader } from 'components'
import { classnames, config, uri } from 'utils'
import { Helmet } from 'react-helmet'
import 'themes/index.less'
import './app.less'
import NPr... |
frontend/modules/recipe/components/Ingredients.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import { Checkbox } from '../../common/components/FormComponents'
const Ingredients = ({ data, check }) => {
let ingredients = data.map((ingredient, i) => {
let quantity = ingredient.customQuantity ? ingredient.customQuantity : ingredient.quantity;
... |
js/src/components/Controls/Inline/index.js | understory-dev/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getSelectionInlineStyle } from 'draftjs-utils';
import { RichUtils, EditorState, Modifier } from 'draft-js';
import { forEach } from '../../../utils/common';
import LayoutComponent from './Component';
export default cl... |
app/routes.js | mlubovac/react-es6-starter | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import MasterPage from './components/MasterPage';
import HomePage from './components/HomePage';
import AboutPage from './components/AboutPage';
import ContactPage from './components/ContactPage';
export default (
<Route path='/' component={... |
src/renderer/components/Settings/index.js | protonmail-desktop/application | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
export default class Settings extends React.Component {
static propTypes = {
darkTheme: PropTypes.bool.isRequired,
onChangeSetting: PropTypes.func.isRequired,
useProtonMailBeta: PropTypes.bool.isRequired,
... |
docs/app/Examples/collections/Table/Variations/TableExampleFullWidth.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Checkbox, Icon, Table } from 'semantic-ui-react'
const TableExampleFullWidth = () => {
return (
<Table celled compact definition>
<Table.Header fullWidth>
<Table.Row>
<Table.HeaderCell />
<Table.HeaderCell>Name</Table.HeaderCell>
<Tab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.