path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/components/alert.js | JMwill/wiki | import React from 'react'
import modal from './modal'
function withAlert({message, ok = function() { }, label = '知道了'}) {
return function({close}) {
return (
<div className='pepe-modal-table'>
<div className='bd'>{message}</div>
<div className='ft'>
<button
className='... |
__tests__/index.android.js | sunilgautam/ReduxTodo | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/pages/ProfilePage.js | ramimuurimaki/stormpath-express-react-example | import React from 'react';
import DocumentTitle from 'react-document-title';
import { UserProfileForm } from 'react-stormpath';
export default class ProfilePage extends React.Component {
render() {
return (
<DocumentTitle title={`My Profile`}>
<div className="container">
<div className="r... |
docs/src/app/components/pages/components/Slider/Page.js | kittyjumbalaya/material-components-web | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import sliderReadmeText from './README';
import SliderExampleSimple from './Exam... |
src/components/Avatar/index.js | mother/oio | import PropTypes from 'prop-types'
import React from 'react'
import classNames from 'classnames'
import styles from './styles.less'
const Avatar = ({ className, src, style }) => {
const classes = [styles.avatar, className]
const avatarStyle = { ...style }
if (!src) {
classes.push(styles.defaultAvatar)
... |
src/clincoded/static/components/disease/interpretation.js | ClinGen/clincoded | "use strict";
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { FormMixin, Input } from '../../libs/bootstrap/form';
import { external_url_map } from '../globals';
import { DiseaseModal } from './m... |
ajax/libs/forerunnerdb/1.3.119/fdb-core+views.min.js | jonathantneal/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/main.js | ExtraGains/XLBS | import React from 'react'
import ReactDOM from 'react-dom'
import store from './store/createStore'
import AppContainer from './containers/AppContainer'
import 'normalize.css/normalize.css'
import './static/style/core.less'
import './index.css'
ReactDOM.render(
<AppContainer store={store} />,
document.getElementByI... |
imports/Dashboard.js | naustudio/nau-jukebox | /* © 2017
* @author Eric
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Container } from 'flux/utils';
import { withTracker } from 'meteor/react-meteor-data';
import { Link } from 'react-router-dom';
import ReactGA from 'react-ga';
import blockWords from './helpers/block-w... |
src/components/TooltipUser/TooltipUser.js | labzero/lunch | import PropTypes from 'prop-types';
import React from 'react';
const TooltipUser = ({ vote, user }) => {
if (user !== undefined) {
return <div key={`restaurantVote_${vote.id}`}>{user.name}</div>;
}
return null;
};
TooltipUser.propTypes = {
vote: PropTypes.object.isRequired,
user: PropTypes.object.isRequ... |
app/components/atoms/Link/Link.js | altiore/webpack_config_example | import React from 'react'
import PropTypes from 'prop-types'
import { Link as BaseLink } from 'react-router-dom'
import CSSModules from 'react-css-modules'
import s from './styles.scss2'
const Link = props => (
<BaseLink
{...props}
className={props.styles.link + (props.className ? (' ' + props.className) : ... |
node_modules/gulp-react/node_modules/react-tools/src/classic/class/ReactClass.js | atseng3/profile-page-full | /**
* Copyright 2013-2015, 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.
*
* @providesModule ... |
client/components/ui/external-link.js | bnjbvr/kresus | import React from 'react';
export default props => (
<a href={props.href} rel="noopener noreferrer" target="_blank">
{props.children}
</a>
);
|
app/javascript/mastodon/features/explore/tags.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { fetc... |
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | ngbrown/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleDisabled = () => (
<div>
<TextField
disabled={true}
hintText="Disabled Hint Text"
/><br />
<TextField
disabled={true}
id="text-field-disabled"
defaultValue="Disabled Value"
/>... |
app/scripts/main.js | dburdick/react-f7-starterkit | import React from 'react';
import Router from 'react-router';
import routes from './routes';
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
Rout... |
ajax/libs/material-ui/5.0.0-alpha.26/legacy/Container/Container.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{deepmerge}f... |
docs/client/components/shared/Code/index.js | dagopert/draft-js-plugins | /* eslint-disable react/no-danger */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { shouldComponentUpdate } from 'react-addons-pure-render-mixin';
import unionClassNames from 'union-class-names';
import 'prismjs/themes/prism.css';
import styles from './styles.css';
export defau... |
front-end/src/components/MainPage/BodyList.js | iankhor/medrefr | import React from 'react'
// body components
import Hero from './Hero'
import AboutPage from './AboutPage'
import Emergency from './Emergency'
import ParallaxTwo from './ParallaxTwo'
import ParallaxThree from './ParallaxThree'
import Contact from './Contact'
const BodyList = (props) => {
return(
... |
src/client/utils/AuthService.js | codefortulsa/courtbook | // From https://github.com/auth0-samples/auth0-react-sample/blob/master/01-Login/src/utils/AuthService.js
import {EventEmitter} from "events";
import {isTokenExpired} from "./jwtHelper";
import Auth0Lock from "auth0-lock";
import {browserHistory} from "react-router";
export default class AuthService extends EventEmit... |
app/components/LynksVault.js | lynks-p2p/lynks-client | // @flow
/* eslint-disable */
import React, { Component } from 'react';
import FileReaderInput from 'react-file-reader-input';
import { Line } from 'rc-progress';
import {Grid, Row, Column} from 'react-cellblock';
// import { ListGroup, ListGroupItem } from 'react-bootstrap';
import styles from './LynksVault.css';
impo... |
htdocs/includes/jquery/plugins/jQplot/jquery.min.js | danbraik/speedealing | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe... |
src/layers/SymbolInstance.js | FourwingsY/react-sketch-viewer | import React from 'react'
import PropTypes from 'prop-types'
import SymbolStore from '../globals/SymbolStore'
import {getPositionStyle} from '../utils/layerUtils'
class SymbolInstance extends React.Component {
static propTypes = {
layer: PropTypes.object,
}
static contextTypes = {
renderLayer: PropTypes.fun... |
packages/starter-scripts/fixtures/kitchensink/template/src/features/env/ShellEnvVariables.js | chungchiehlun/create-starter-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
packages/wix-style-react/src/EmptyState/EmptyState.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { classes, st } from './EmptyState.st.css';
import Heading from '../Heading';
import Text from '../Text';
import { FontUpgradeContext } from '../FontUpgrade/context';
/**
* Representing a state of an empty page, section, table, etc.
*/
const Empt... |
app/javascript/components/collections/list/ButtonCollectionListShowAll.js | avalonmediasystem/avalon | /*
* Copyright 2011-2022, The Trustees of Indiana University and Northwestern
* University. 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/LICENS... |
src/__tests__/components/VoicePlayer.js | isuruAb/chat.susi.ai | import React from 'react';
import VoicePlayer from '../../components/ChatApp/MessageListItem/VoicePlayer';
import { shallow } from 'enzyme';
it('render VoicePlayer without crashing',()=>{
shallow(<VoicePlayer />);
});
|
ajax/libs/jquery/1.6.2/jquery.min.js | linagee/cdnjs | /*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
test/specs/views/Stastistic/Statistic-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import _ from 'lodash'
import React from 'react'
import { SUI } from 'src/lib'
import Statistic from 'src/views/Statistic/Statistic'
import StatisticGroup from 'src/views/Statistic/StatisticGroup'
import StatisticLabel from 'src/views/Statistic/StatisticLabel'
import StatisticValue from 'src/... |
src/svg-icons/action/perm-phone-msg.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
packages/material-ui-icons/src/ArrowForward.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" /></g>
, 'ArrowForward');
|
src/layouts/components/Icons.js | ArghTeam/argh.team | import React from 'react'
export const Skype = (props) =>
<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24.08 24.08' {...props}><path d='M23.03 13.5c.34.47.6 1 .78 1.57.2.57.28 1.16.28 1.77 0 .88-.18 1.7-.53 2.47-.35.77-.83 1.45-1.45 2.04-.6.58-1.33 1.04-2.15 1.37s-1.7.5-2.62.5c-1.3 0-2... |
src/containers/NotFound/NotFound.js | thomastanhb/ericras | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
packages/bonde-admin/src/pages/admin/bot/components/summary.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
var styles = require('exenv').canUseDOM ? require('./summary.scss') : {}
const Summary = ({ value }) => (
<div className={styles.summary}>
<span className={styles.summaryHighlight}>{value}</span>
<span>pessoas serão notificadas</span>
</div>
)
... |
scripts/build_impress.js | GeorgioWan/react-impressjs | // Do this as the first thing so that any code reading it knows the right env.
process.env.NODE_ENV = 'production';
// Load environment variables from .env file. Suppress warnings using silent
// if this file is missing. dotenv will never modify any environment variables
// that have already been set.
// https://githu... |
src/client/react/pages/NotFound.js | bwyap/ptc-amazing-g-race | import React from 'react';
import Page from './Page';
class NotFound extends Page {
renderPage() {
return (
<main id='not-found' style={{paddingTop: '20vh'}}>
<div className='pt-non-ideal-state not-found'>
<div className='pt-non-ideal-state-visual pt-non-ideal-state-icon'>
<span className='pt-ico... |
ajax/libs/forerunnerdb/1.3.302/fdb-core.min.js | CyrusSUEN/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/page-placeholder.js | Clip-sub/CSClient-RN | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import { View, Image, Text, Dimensions } from 'react-native';
export default class PagePlaceholder extends Component {
render() {
const { width, height } = Dimensions.get('window');
return (
<View
style={{
flex... |
packages/material-ui-icons/src/Filter1TwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7 17h14V3H7v14zm5-12h4v10h-2V7h-2V5z" opacity=".3" /><path d="M14 15h2V5h-4v2h2z" /><path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1... |
ajax/libs/react-localstorage/0.2.7/react-localstorage.js | brix/cdnjs | 'use strict';
var React = require('react');
var warn = require('./lib/warning');
var hasLocalStorage = 'localStorage' in global;
var ls, testKey;
if (hasLocalStorage) {
testKey = 'react-localstorage.mixin.test-key';
try {
// Access to global `localStorage` property must be guarded as it
// fails under iOS ... |
theme/src/components/orderSummary.js | cezerin/cezerin | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { themeSettings, text } from '../lib/settings';
import * as helper from '../lib/helper';
const SummaryItem = ({ settings, item, updateCartItemQuantiry }) => {
const thumbnail = helper.getThumbnailUrl(
i... |
assets/js/components/Avatar.js | artivilla/Winds | import React from 'react'
import md5 from 'md5'
export default props => {
if (!props.children) return null
return <img src={`https://www.gravatar.com/avatar/${md5(props.children)}`} className="img-circle" />
}
|
src/components/table/demo/index.js | quark-ui/quark-ui | import React, { Component } from 'react';
import Reactable from '../index';
import Button from '../../button';
const { Table } = Reactable;
export default class TableDemo extends Component {
state= {
selectedRowKeys: [1, 2],
dataSource: [
{
key: '1',
name: 'John Brown',
age: '24... |
app/jsx/components/ActivitiesByCategory.js | instructure/analytics | import React from 'react'
import ReactBootstrapTable from '../../../public/javascripts/react-bootstrap-table'
import { useScope as useI18nScope } from '@canvas/i18n';
import helpers from '../helpers'
const I18n = useI18nScope('analytics');
const {BootstrapTable, TableHeaderColumn} = ReactBootstrapTable
const tableOp... |
lib/components/report/__tests__/distance.js | conveyal/scenario-editor | // @flow
import renderer from 'react-test-renderer'
import React from 'react'
import Distance from '../distance'
describe('Report > Distance', () => {
it('renders correctly', () => {
const props = {
km: 2
}
// mount component
const tree = renderer.create(<Distance {...props} />).toJSON()
... |
lib/kn_accordion_body.js | kanna-lab/kanna-lib-components | /**
* @constructor KnAccordionBody
*/
"use strict";
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; };
const... |
frontend/test/app/components/ExperimentDisableDialog-test.js | clouserw/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import ExperimentDisableDialog from '../../../src/app/components/ExperimentDisableDialog';
describe('app/components/ExperimentDisableDialog', () => {
const experiment = { title: 'foobar', survey_ur... |
node_modules/react-icons/io/university.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoUniversity = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 5l17.5 8.7-7.2 4.7-10.3 6.6-12.5-8v15.5l-2.5-1.2v-15.9l-2.5-1.6z m10.5 15l0.8 6.4c-1.3 0.9-8.8 6.1-11.3 8.6-2.5-2.5-10-7.7-11.2-8.6l0.7-6.4 10.5 6.9z"/></g>
... |
src/routes/dashboard/components/recentSales.js | mapengze/Antd-Backstage | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './recentSales.less'
import { color } from '../../../utils'
const status = {
1: {
color: color.green,
text: 'SALE',
},
2: {
color: color.yellow,
text: 'REJECT',
},
3: {
color:... |
example/example.js | netbeast/react-native-dial | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View
} from 'react-native';
import { Dial } from './Dial';
export default class Example extends Component {
render() {
const borderRadius = Dim... |
src/views/WidgetList/widgets/Measures/Measures.js | GovReady/GovReady-Agent-Client | import React, { Component } from 'react';
import { PropTypes as PT } from 'prop-types';
import { default as config } from 'config';
import Widget from '../Widget';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import objectAssign from 'object-assign';
import { Link } from 'react-rou... |
definitions/npm/react-select_v1.x.x/flow_v0.104.x-/test_react-select_v1.x.x.js | flowtype/flow-typed | // @flow
import { describe, it } from 'flow-typed-test';
import React from 'react';
import Select from 'react-select';
let ArrowRenderer = () => <span />;
let ClearRenderer = () => <span />;
let filterOption = (option: {...}, filterString: string) => true;
let InputRenderer = (props: {...}) => <span />;
let MenuRende... |
client/src/entrypoints/admin/wagtailadmin.js | zerolab/wagtail | import React from 'react';
import ReactDOM from 'react-dom';
import { Icon, Portal, initUpgradeNotification } from '../..';
if (process.env.NODE_ENV === 'development') {
// Run react-axe in development only, so it does not affect performance
// in production, and does not break unit tests either.
// eslint-disab... |
src/AbstractComponent.js | sanjay1909/WeaveReact | import React from 'react';
import ComponentManager from "./ComponentManager";
class AbstractComponent extends React.Component {
constructor(props,type){
super(props);
ComponentManager.initialize(this,type);
}
componentWillUnmount(){
ComponentManager.componentWillUnmount(this);
... |
src/svg-icons/maps/add-location.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
packages/cf-component-checkbox/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { Checkbox, CheckboxGroup } from 'cf-component-checkbox';
class CheckboxComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
checkbox1: true,
checkbox2: false,
checkboxValues: ['option1']
};
this.onCheckboxGroupChang... |
pootle/static/js/shared/components/Tabs.js | translate/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 React from 'react';
import { PureRenderMixin } from... |
demo/src/components/Permalink.js | nafitzgerald/allennlp | import React from 'react';
// from https://stackoverflow.com/a/33928558/1076346
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
// IE specific code path to prevent textarea being shown while dialog is visible.
return window.clipboardData.setData("Text", ... |
14/notes/src/index.js | nanohop/hop_into_react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/library/Flex/__tests__/Flex.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { shallow, mount } from 'enzyme';
import { ThemeProvider } from '../../themes';
import Flex, { FlexItem } from '../../Flex';
import testDemoExamples from '../../../../utils/testDemoExamples';
import examples from '../../../website/app/demos/Flex/Flex/examples';
function sh... |
lib/ui/components/common/Frame.js | 500tech/mimic | import React from 'react';
import styled from 'styled-components';
import { DropTarget } from 'react-dnd';
import API from 'api';
import UIState from 'ui/states/UIState';
import { connectToState } from 'ui/states/connector';
import MainControls from 'ui/components/BottomBar/MainControls';
import ResizeHandle from 'ui/c... |
UI/Buttons/ButtonRecord.js | Datasilk/Dedicate | import React from 'react';
import { View, TouchableOpacity} from 'react-native';
import {G, Circle, Path} from 'react-native-svg';
import SvgIcon from 'ui/SvgIcon';
import AppStyles from 'dedicate/AppStyles';
export default class ButtonRecord extends React.Component {
constructor(props){
super(props);
... |
src/mixins/StoreWatchMixin.js | tylergraf/react-twitter | import React from 'react';
import AppStore from '../stores/app-store.js';
export default ( InnerComponent, stateCallback ) => class extends React.Component {
constructor( props ) {
super( props );
this.state = stateCallback( props );
this._onChange = this._onChange.bind( this );
}
... |
app/components/blog/Actions.js | Atamas1llya/Flerse | import React from 'react';
import { ButtonGroup, Button } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
const Actions = ({ own, subscribed, showEditor, subscribe }) => {
if (own) {
return(
<article className="blog-actions">
<ButtonGroup>
<Button onClick... |
node_modules/react-router/es/Redirect.js | ProjectSunday/rooibus | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.st... |
app/components/EarningsTableFooter/index.js | seanng/web-server | /**
*
* EarningsTableFooter
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
const Table = styled.table`
background-color: grey;
color: white;
height: 40px;
margin: 5px;
margin-bottom: 20px;
width: 100%;
... |
ajax/libs/6to5/1.11.4/browser.js | ZDroid/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
public/javascript/components/pictures.js | fireaxil/anglican-wny | import React from 'react'
import { withStyles } from 'material-ui/styles'
import PropTypes from 'prop-types'
import Typography from 'material-ui/Typography'
const styles = theme => ({
pictureRoot: {
textAlign: 'center'
},
picture: {
width: '100%',
minHeight: '60vh',
// backgroundImage: 'url(' + v... |
ajax/libs/material-ui/5.0.0-alpha.15/styles/ThemeProvider.js | cdnjs/cdnjs | import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider as MuiThemeProvider } from '@material-ui/styles';
import { exactProp } from '@material-ui/utils';
import { ThemeContext as StyledEngineThemeContext } from '@material-ui/styled-engine';
import useTheme from './useTheme';
function Inne... |
src/svg-icons/editor/mode-edit.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"... |
src/layouts/PageLayout/PageLayout.js | davezuko/react-redux-starter-kit | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
specs/Client/ComponentSpec.js | derektliu/Picky-Notes | import React from 'react';
import {Provider} from 'react-redux';
import {createStore} from 'redux';
import mockedSocket from 'socket-io-mock';
import { mount, shallow, render } from 'enzyme';
import {expect, assert} from 'chai';
import sinon from 'sinon';
// import store from '../../client/src/store.js';
import {Navb... |
test/Col.spec.js | react-materialize/react-materialize | import React from 'react';
import { render } from '@testing-library/react';
import Col from '../src/Col';
describe('<Col />', () => {
test('renders', () => {
const { container } = render(
<Col>
<p>hello</p>
</Col>
);
expect(container).toMatchSnapshot();
});
test('accepts sizes as... |
definitions/npm/why-did-you-update_v0.x.x/flow_v0.41.x-v0.103.x/why-did-you-update_v0.x.x.js | flowtype/flow-typed | import * as React from "react";
declare module "why-did-you-update" {
declare export function whyDidYouUpdate(
React: {
Component: typeof React$Component
},
options?: Object
): void;
}
|
node_modules/material-ui/svg-icons/av/subtitles.js | tempestaddepvc/proyecto-electron | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ajax/libs/jQRangeSlider/5.7.0/jQRangeSlider.min.js | melvinsembrano/cdnjs | (function(a,b){a.widget("ui.rangeSlider",{options:{bounds:{min:0,max:100},defaultValues:{min:20,max:50},wheelMode:null,wheelSpeed:4,arrows:true,valueLabels:"show",formatter:null,durationIn:0,durationOut:400,delayOut:200,range:{min:false,max:false},step:false,scales:false,enabled:true,symmetricPositionning:false},_value... |
src/js/pages/config/index.js | zacyu/bilibili-helper | /**
* Author: Ruo
* Create: 2018-06-12
* Description: 设置页面
*/
import _ from 'lodash';
import React from 'react';
import ReactDOM from 'react-dom';
import styled, {createGlobalStyle} from 'styled-components';
import {consoleLogo, createTab, version} from 'Utils';
import {Button, Icon, CheckBoxButton, Modal} from 'C... |
ajax/libs/thorax/2.1.3/thorax-combined-mobile.js | tmorin/cdnjs | /* Zepto v1.0 - polyfill zepto detect event ajax form fx - zeptojs.com/license */
;(function(undefined){
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, '') }
// For iOS 3.x
// from https://developer.mozilla.org/en/JavaScript/... |
ajax/libs/mediaelement/2.0.1/jquery.js | x112358/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/js/components/content/DropFileComponent.js | lukemarsh/tab-hq-react | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import GoogleDriveMixin from '../../mixins/GoogleDriveMixin';
const DropFileComponent = React.createClass({
mixins: [GoogleDriveMixin],
uploadFile(e) {
// console.log(e);
},
addLinkFromDrive(elem, params) {
this.props.addLink... |
docs/basic/index.js | sk1981/react-header | import React from 'react';
import {render} from 'react-dom';
import {Logo, NavigationList, NavigationItem, Header} from "react-header";
const header = (
<Header>
<Logo title="React Header" link="https://github.com/sk1981/react-header" />
<NavigationList>
<NavigationItem link="#home" text="Home"/>
... |
src/scripts/views/createGamePage.js | TayLang/IronPong | import React from 'react'
import ACTIONS from '../actions.js'
import STORE from '../store.js'
import NavBar from './components/navBar'
var CreateGamePage = React.createClass({
render: function(){
return(
<div className = 'create-game-page-wrapper'>
<NavBar />
<NewGame />
</div>
)
}
})
var NewGa... |
demo/client/index.js | oneteam-dev/draft-js-oneteam-rte-plugin | import React from 'react';
import ReactDOM from 'react-dom';
import 'normalize.css/normalize.css';
import './base.css';
import App from './containers/App';
// Import your routes so that you can pass them to the <Router /> component
// eslint-disable-next-line import/no-named-as-default
// Only render in the browser
i... |
fields/types/datearray/DateArrayField.js | benkroeger/keystone | import ArrayFieldMixin from '../../mixins/ArrayField';
import DateInput from '../../components/DateInput';
import Field from '../Field';
import React from 'react';
import moment from 'moment';
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD';
const DEFAULT_FORMAT_STRING = 'Do MMM YYYY';
module.exports = Field.create({
dis... |
src/components/Search/Search.js | benbs/Office-Player | /**
* Created by Ben on 2/22/2016.
*/
import React, {Component} from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import {canUseDOM} from 'fbjs/lib/ExecutionEnvironment';
import cx from 'classnames';
import _ from 'lodash';
import {fromJS, List} from 'immutable';
import qs from 'qs';
imp... |
app/components/App.js | xdrt81y/newedenfaces-react | import React from 'react';
import Navbar from './Navbar';
import Footer from './Footer';
class App extends React.Component {
render() {
return (
<div>
<Navbar history={this.props.history} />
{this.props.children}
<Footer />
</div>
);
}
}
export default App; |
fields/types/location/LocationField.js | vokal/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
src/svg-icons/hardware/keyboard.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboard = (props) => (
<SvgIcon {...props}>
<path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v... |
app/javascript/mastodon/features/account/components/action_bar.js | ambition-vietnam/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { Link } from 'react-router-dom';
import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } fr... |
pages/work/index.js | jkupcho/eri-blog | import React from 'react'
import Gallery from '../../components/Gallery'
import Thumb from '../../components/Thumb'
import ExteriorThumb from '../../images/exterior_thumb.jpg'
import DecksThumb from '../../images/deck_thumb.jpg'
import GarageThumb from '../../images/garage_thumb.jpg'
import WoodworkThumb from '../../i... |
ajax/libs/rxjs-dom/7.0.1/rx.dom.compat.js | sashberd/cdnjs | // Copyright (c) Microsoft, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExp... |
ajax/libs/aui/5.2-m6/js/aui-all.js | sajochiu/cdnjs | /*! AUI Flat Pack - version 5.2-m6 - generated 2013-05-29 03:12:37 -0400 */
/*
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* D... |
ajax/libs/yasgui/1.0.4/yasgui.bundled.min.js | sitic/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
ajax/libs/brain/0.6.3/jquery.min.js | CyrusSUEN/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/routes/login/index.js | zhy6421867/dwp-dva | import React from 'react';
import { Link } from 'dva/router';
import { connect } from 'dva';
import { logo } from 'utils/config';
import { isPhone, isUserName, isEmail, isPassword } from 'utils/judge';
import styles from './index.less';
import { Form, Icon, Input, Button } from 'antd';
const FormItem = Form.Item;
func... |
src/svg-icons/action/donut-large.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.... |
packages/material-ui-icons/src/Queue.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<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" />
, 'Queue');
|
examples/parcel/src/index.js | gaearon/react-hot-loader | import React from 'react';
import { render } from 'react-dom';
import App from './App';
function renderApp() {
render(<App />, root);
}
renderApp();
module.hot.accept();
|
03. AMD and SystemJS/demos/2. loopgifs-demo/jspm_packages/npm/babel-core@5.8.22/lib/transformation/transformers/other/react-compat.js | baretata/JavaScript-Applications | /* */
"format cjs";
"use strict";
exports.__esModule = true;
exports.manipulateOptions = manipulateOptions;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.... |
template/default/js/jq.min.js | Bacra/node-d2server | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.ini... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.