path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
app/Resources/js/jquery-1.9.1.min.js | dbu/dashboard | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
fixtures/packaging/systemjs-builder/prod/input.js | roth1002/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
src/views/components/MessageText.js | john-d-pelingo/tic-tac-toe | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
messageSpan: PropTypes.string.isRequired,
handleNextRoundClick: PropTypes.func.isRequired,
handleNewGameClick: PropTypes.func.isRequired
};
const MessageText = ({ handleNextRoundClick, handleNewGameClick, messageSpan }) => (
<... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/CarouselCaption.js | JamieMason/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/router.js | alxyee/berkeley-onederful-demo | /**
* 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 React from 'react';
... |
ajax/libs/video.js/4.12.9/video.dev.js | BobbieBel/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
client/src/Logo.js | panter/mykonote | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Spinner from './Spinner';
import EventHive from './EventHive';
import { ReactComponent as LogoImage } from './images/logo.svg';
class Logo extends Component {
constructor(props, context) {
super(props, context);
this.s... |
src/svg-icons/action/view-array.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewArray = (props) => (
<SvgIcon {...props}>
<path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/>
</SvgIcon>
);
ActionViewArray = pure(ActionViewArray);
ActionViewArray.displayName = 'ActionViewA... |
src/shared/components/heading/heading.js | tal87/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './heading.css';
const Heading = ({ text, headingLines, theme, ...otherProps }) => {
const classes = classNames({
[`${styles.heading}`]: true,
[`${styles[theme]}`]: true,
[`${styles.head... |
src/svg-icons/action/youtube-searched-for.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionYoutubeSearchedFor = (props) => (
<SvgIcon {...props}>
<path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.... |
src/docs/examples/EyeIcon/Example.js | coryhouse/ps-react | import React from 'react';
import EyeIcon from 'ps-react/EyeIcon';
export default function EyeIconExample() {
return <EyeIcon />;
}
|
ajax/libs/6to5/1.11.13/browser-polyfill.js | WilliamRen/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/StaticAlert/StaticAlert.js | Pearson-Higher-Ed/compounds | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import './StaticAlert.scss';
export default class StaticAlert extends Component {
static propTypes = {
type: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
message: PropTypes.stri... |
ajax/libs/js-data/0.2.0/js-data.js | rteasdale/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file js-data.js
* @version 0.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof ... |
ajax/libs/mediaelement/2.1.2/jquery.js | vdurmont/cdnjs | /*!
* jQuery JavaScript Library v1.5.1rc1
* 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 License... |
app/config/routes.js | ldd/samosa-search | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Main from '../components/Main/Main';
import Sale from '../components/Sale/Sale';
import SaleMap from '../components/MapView/MapView';
export default (
<Route path='/' component={Main}>
<Route path='sale' component={Sale} />
<... |
ajax/libs/yui/3.4.0/loader/loader-debug.js | chrillep/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
resources/assets/components/ClubsTable.js | DoSomething/rogue | import React from 'react';
import { get } from 'lodash';
import gql from 'graphql-tag';
import { useQuery } from '@apollo/react-hooks';
import Empty from './Empty';
import ErrorBlock from './utilities/ErrorBlock';
import EntityLabel from './utilities/EntityLabel';
import { updateQuery } from '../helpers';
const CLUBS... |
wp-content/plugins/wp-migrate-db/asset/js/script.min.js | baronwatts/awesomeco | var migration_complete,migration_complete_events,migrate_table_recursive,execute_next_step;!function(a){function b(a,b,c){return c=c||"0",a+="",a.length>=b?a:new Array(b-a.length+1).join(c)+a}function c(){y=0,counter_display=a(".timer"),label=wpmdb_strings.time_elapsed+" ",u=setInterval(e,1e3)}function d(){hours=Math.f... |
media/jui/js/jquery.js | cttech/Template | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
cfg/base.js | spencerHT/gallery-react-IMOOC | 'use strict';
let path = require('path');
let defaultSettings = require('./defaults');
// Additional npm or bower modules to include in builds
// Add all foreign plugins you may need into this array
// @example:
// let npmBase = path.join(__dirname, '../node_modules');
// let additionalPaths = [ path.join(npmBase, 're... |
docs/src/pages/components/chips/SmallChips.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Avatar from '@material-ui/core/Avatar';
import Chip from '@material-ui/core/Chip';
import FaceIcon from '@material-ui/icons/Face';
import DoneIcon from '@material-ui/icons/Done';
const useStyles = makeStyles((theme) => ({
root: ... |
EmitOnOff.js | konsumer/emitonoff | import React from 'react'
export default class EmitOnOff extends React.Component {
constructor (props) {
super(props)
this.update = this.update.bind(this)
}
update () {
this.forceUpdate()
}
componentDidMount () {
const { trigger = 'render' } = this.props
this.props.state.on(trigger, this.... |
src/Portal.js | andrew-d/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
let Portal = React.createClass({
displayName: 'Portal',
propTypes: {
/**
* The DOM Node that the Component will render it's children into
*/
container: CustomPropTypes.moun... |
src/class/popup/Header.js | tegon/traktflix | import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import React from 'react';
import ErrorBoundary from '../ErrorBoundary';
import Shared from '../Shared';
class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
const display = this.props.logged ?... |
app/components/Home.js | sahat/mastersofcode-web | import React from 'react';
import {Link} from 'react-router';
let socket;
class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
fundsRaised: 2067.43,
fundsGoal: 3000
}
}
componentDidMount() {
socket = io.connect();
var fundsRaisedDom = this.refs... |
examples/Toast.js | react-materialize/react-materialize | import React from 'react';
import Toast from '../src/Toast';
export default
<Toast options={{ html: 'Here you go!' }}>Toast</Toast>;
|
src/js/components/ui/Button.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
export default class Button extends Component {
shouldComponentUpdate = shouldPureComponentUpdate;
render() {
return (
<button {...this.props} ... |
ginko/src/index.js | AesaKamar/TreeApp | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import './styles/index.css'
import App from './components/App'
ReactDOM.render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root'))
|
definitions/npm/react-css-collapse_v3.x.x/flow_v0.54.1-v0.103.x/test_react-css-collapse_v3.x.x.js | flowtype/flow-typed | //@flow
import React from 'react';
import Collapse from 'react-css-collapse';
{
// $FlowExpectedError
<Collapse isOpen="a" />
}
{
// $FlowExpectedError
<Collapse onRest={1} />
}
{
// $FlowExpectedError
<Collapse onRest={() => true} />
}
{
<Collapse isOpen onRest={() => {}}><div/></Collapse>
}
|
src/index.js | jpkbeddu/keep-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/src/components/Dashboard/components/Info.js | dbroadhurst/docker-dev-dash | import React from 'react'
import PropTypes from 'prop-types'
import JsonToReact from 'json-to-react'
const infoBody = {
margin: '0px',
padding: '16px',
backgroundColor: 'rgb(0,0,0)',
color: 'rgb(255,255,255)'
}
class InfoComponent extends React.Component {
static propTypes = {
info: PropTypes.object.is... |
src/components/app/index.js | ryexley/poplar | import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import Container from "../container";
import Discovery from "../discovery";
import NoDevicesFound from "../no-devices-found";
import DeviceList from "../device-list";
import Footer from "../footer";
import actions from... |
detox/test/src/Screens/SanityScreen.js | simonracz/detox | import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity
} from 'react-native';
export default class SanityScreen extends Component {
constructor(props) {
super(props);
this.state = {
greeting: undefined,
};
console.log('SanityScreen react component constructed (co... |
ajax/libs/core-js/0.2.0/shim.js | hare1039/cdnjs | /**
* Core.js 0.2.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
src/svg-icons/action/note-add.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionNoteAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/>
</SvgIcon>
);... |
src/server/express.js | fk1blow/react-presentception | /*eslint-disable no-console */
import React from 'react';
import compression from 'compression';
import config from './config';
import express from 'express';
import favicon from 'serve-favicon';
import render from './render';
export default function() {
const app = express();
app.use(compression());
// TODO:... |
client/src/components/Footer.js | hutchgrant/react-boilerplate | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
class Footer extends Component {
render() {
const path = this.props.location.pathname;
if (
path !== '/user/login' &&
path !== '/user/signup' &&
path !== '/user/change_password' &&
path !== '/user... |
mount.js | timbur/another-systemjs-test | import React from 'react';
import ReactDOM from 'react-dom';
import App from './src/components/App';
ReactDOM.render(
<App/>,
document.getElementById('root')
);
|
src/components/remote/index.js | scholtzm/arnold | import React, { Component } from 'react';
import { Grid } from 'semantic-ui-react';
import BasicHeader from '../misc/basic-header.js';
import BasicContainer from '../misc/basic-container.js';
import Controls from './controls.js';
class Remote extends Component {
render() {
return (
<BasicContainer>
... |
extensions/amp-twitter/1.0/test/test-component.js | media-net/amphtml | import {mount} from 'enzyme';
import {serializeMessage} from '#core/3p-frame-messaging';
import {createRef} from '#preact';
import * as Preact from '#preact';
import {WithAmpContext} from '#preact/context';
import {waitFor} from '#testing/helpers/service';
import {BentoTwitter} from '../component';
describes.sandb... |
src/index.js | ummahusla/Hacker-Reader | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import { browserHistory } from 'react-router';
import Routes from './routes';
ReactDOM.render(
<Routes history={browserHistory} />,
document... |
src/components/ObjectBrowser.js | rsamec/react-designer-core | import React from 'react';
import TreeView from 'react-treeview';
import _ from 'lodash';
import cx from 'classnames';
const CONTAINER_KEYS = ["ObjectSchema","Container","Repeater","Grid","Cell","BackgroundContainer"];
export default class ObjectBrowser extends React.Component {
constructor(props) {
super(props)... |
ajax/libs/cyclejs-dom/5.0.1/cycle-dom.js | sympmarc/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()... |
src/components/dashboard/feed/item.js | cosminseceleanu/react-sb-admin-bootstrap4 | import React from 'react';
import Comment from "./comment";
import ItemActions from "./item-actions";
import {
Card,
CardImg,
CardBody,
CardFooter,
CardTitle,
CardText
} from 'reactstrap';
const Item = ({item}) => {
return (
<Card className="mb-3">
<CardImg top width="1... |
src/svg-icons/image/panorama-vertical.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
src/svg-icons/av/pause-circle-outline.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.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 8zm1-4h2... |
docs/app/Examples/views/Item/Content/ItemExampleLink.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image as ImageComponent, Item } from 'semantic-ui-react'
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const ItemExampleLink = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/... |
src/js/components/icons/base/Send.js | odedre/grommet-final | /**
* @description Send SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prope... |
vendor/jquery/jquery.min.js | samrav/Phoenix | /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu... |
src/svg-icons/action/alarm-add.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
app/containers/LanguageProvider/index.js | simon-johansson/PB-labz | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
Design and Implement Cloud Services/HOLs/HOL-ExploringStorage-VS2012/Source/Ex2-WorkingWithBlobs/Begin/RDImageGallery_WebRole/Scripts/jquery-1.7.1.js | Evilazaro/MCSDAzureTraining | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Released under the the MIT License.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT and BSD Licenses.
*
* Date: Mon Nov 21 21... |
admin/client/App/screens/Item/components/EditForm.js | jacargentina/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import assign from 'object-assign';
import {
Button,
Col,
Form,
FormField,
FormInput,
ResponsiveText,
Row,
Spinner,
} from 'elemental';
import { Fields } from 'FieldTypes';
import AlertMessages from '../../../share... |
packages/cf-component-code/test/Code.js | koddsson/cf-ui | import React from 'react';
import { felaSnapshot } from 'cf-style-provider';
import { Code } from '../../cf-component-code/src/index';
test('should render', () => {
const snapshot = felaSnapshot(<Code>Hello</Code>);
expect(snapshot.component).toMatchSnapshot();
expect(snapshot.styles).toMatchSnapshot();
});
|
src/svg-icons/action/assignment-turned-in.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-7 0c.55 0 1 .... |
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js | solojavier/cdnjs | /*!
* jQuery Mobile 1.4.1
* Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
src/svg-icons/av/new-releases.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1... |
ajax/libs/react-native-web/0.13.13/hooks/useElementLayout.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import useLayoutEffect from './useLayoutEffect';
import UIManager from '../export... |
react-flux/demo03/src/AppView.js | majunbao/xue | import React from 'react';
function Hello(props) {
return(
<div onClick={props.onTest}>Test{props.value}</div>
)
}
export default Hello; |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | verdan/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"... |
app/javascript/mastodon/features/compose/components/poll_button.js | maa123/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' },
remove_poll: { id: 'poll_button... |
src/components/Pagination/__tests__/Pagination.spec.js | dovydasvenckus/time-tracker-web | import React from 'react';
import { shallow } from 'enzyme';
import Pagination from '../Pagination';
describe('Pagination buttons component', () => {
let mockLoadPage;
beforeEach(() => {
mockLoadPage = jest.fn();
});
it('should render pagination buttons', () => {
const wrapper = shallow(
<Pagin... |
src/scenes/home/policy/policyBanner.js | hollomancer/operationcode_frontend | import React from 'react';
import styles from './policyBanner.css';
const policyPageLink = '/policy';
// replace commented out bannertext below with new text if this component is needed for reuse in the future
const PolicyBanner = () => (
<div className={styles.banner}>
<h4 className={styles.bannerText}>
... |
examples/js/style/tr-class-function-table.js | pvoznyuk/react-bootstrap-table | /* 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/components/Icons/base.js | wwwfreedom/FreeCodeCamp | import React from 'react'
class IconBase extends React.Component {
render() {
let styles = {
verticalAlign: "middle"
// display: 'inline-block'
}
var props = {
fill: "currentColor",
width: this.props.size,
height: this.props.size
}
return (
<svg {...props} {...... |
client/node_modules/uu5g03/dist-node/doc-kit/demo.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, SectionMixin, LsiMixin} from '../common/common.js';
import {Glyphicon, Footer, Section, Div, Line, Block, Iframe, Button, ButtonGroup, ButtonSwitch, Pre, FileViewer} from '../bricks/bricks.js';
impor... |
carbon-sample-v2/src/main/javascript/spa/src/error/NotFoundContainer.js | ShotaOd/Carbon | import React, { Component } from 'react';
export default class NotFoundContainer extends Component {
render() {
return (<div>
<h2>
ページが見つかりません。
</h2>
</div>);
}
}
|
app/components/Legend/__tests__/index-test.js | ModusCreateOrg/budgeting-sample-app-webpack2 | import React from 'react';
import renderer from 'react-test-renderer';
import Legend from '..';
// mock nested components
jest.mock('../LegendItem', () => 'div');
it('renders correctly', () => {
const mockData = [{ key: 1 }, { key: 2 }];
const tree = renderer
.create(<Legend data={mockData} dataValue="test" ... |
admin/client/App/components/Navigation/Secondary/NavItem.js | webteckie/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... |
examples/with-loadable-components/src/App.js | jaredpalmer/react-production-starter | import './App.css';
import React from 'react';
import loadable from 'loadable-components';
const Header = loadable(() =>
import(/* webpackChunkName: "header" */ './Header')
);
const Body = loadable(() => import(/* webpackChunkName: "body" */ './Body'));
const Footer = loadable(() =>
import(/* webpackChunkName: "fo... |
src/client/tests/entries/upload/upload_with_static_postcode_geocoder.js | mapkiwiz/sectorisation | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import * as Redux from 'redux';
import template from './upload.rt';
import {parseFile} from '../../../app/shared/components/upload/file.helper';
import {geocoder} from '../../../app/services/static.postcode.geocoder.servi... |
app/javascript/mastodon/features/report/category.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Option from './components/option';
const messages = defineMessages({
dislike: { id: 'report.reasons.dislike', defaultMessag... |
app/containers/RepoListItem/index.js | emise/hoosit | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
src/components/mana-curve/mana-curve-graph.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import Icon from "../icon";
const ManaCurveBar = ({cost, deck, icon, max, barHeight = "100%", barWidth = "1.5vh", barSpacing = ".2vh", showCount = true, showIcons = true, barColor, manaCurveObj}) => {
const costBelowSeven = (numbe... |
ajax/libs/boardgame-io/0.39.11/esm/react.js | cdnjs/cdnjs | import { d as _inherits, _ as _createClass, b as _defineProperty, a as _classCallCheck, f as _possibleConstructorReturn, h as _getPrototypeOf, k as _objectSpread2, t as _assertThisInitialized, n as _toConsumableArray } from './game-ad14dc96.js';
import 'redux';
import 'immer';
import './Debug-25a6bda8.js';
import 'flat... |
website/src/components/button.js | explosion/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Link from './link'
import Icon from './icon'
import classes from '../styles/button.module.sass'
export default function Button({
to,
variant = 'secondary',
large = false,
icon,
className,
ch... |
screens/DetailScreen.js | peysal/renatdux | import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
class DetailScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Hello Detail</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
... |
src/scripts/student-profile/js/app/components/schedule/CourseHeader.js | IronCountySchoolDistrict/student-profile | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class CourseHeader extends Component {
render() {
const panelDefault = 'card panel-course';
const termHeaderClass = 'col-md-1 col-1 term-header';
return (
<div className={panelDefault}>
<div classN... |
packages/material-ui-icons/lib/esm/SecurityUpdateGoodSharp.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M5 1v22h14V1H5zm12 17H7V6h10v12zm-1-7.95-1.41-1.41-3.54 3.54-1.41-1.41-1.41 1.41L11.05 15 16 10.05z"
}), 'SecurityUpdateGoodSharp'); |
src/index.js | Brogency/baobab-react-schemabranchmixin | import _ from 'lodash';
import React from 'react';
import { branch as BranchMixin } from 'baobab-react/mixins';
import BaobabPropTypes from 'baobab-prop-types';
/**
* SchemaCursorMixin is designed for use with baobab-react mixin `branch`.
* General purpose of mixin is tree autogeneration with schema.
*
* This mixi... |
ui/src/components/GeneralStatic.js | gimite/personfinder | import React, { Component } from 'react';
import Footer from './Footer';
/**
* General static component for rendering pages
*
* @class StaticComp
* @extends {Component}
*/
const StaticPage = ({ subtitle, children }) => (
<div className='staticpage-wrapper'>
{/* TODO(nworden): Refactor repoheader and use it ... |
client/util/react-intl-test-helper.js | Theknickerbocker/UB_Grader | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
web/components/FlatrisGame/controls/Right.js | skidding/flatris | // @flow
import React from 'react';
import PointerButton from './PointerButton';
type Props = {
onPress: Function,
};
export default function Right({ onPress, ...rest }: Props) {
return (
<PointerButton
{...rest}
bgColor="#fff"
hoverEffect={false}
onPress={onPress}
>
<svg vi... |
react/examples/Code/Router/Route_Parameters/src/About.js | jsperts/workshop_unterlagen | import React from 'react';
function About() {
return <h1>About</h1>;
}
export default About;
|
src/parser/warlock/affliction/modules/talents/DrainSoul.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import CombatLogParser from 'parser/core/CombatLogParser';
impor... |
lib/MetricsGraphics.js | cf/react-metrics-graphics | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v... |
src/Dropdown/DropdownItem.js | yurizhang/ishow | import React from 'react';
import PropTypes from 'prop-types';
import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Dropdown.css'
export default class DropdownItem extends Component {
handleClick() {
this.context.component.handleMenuItemClick(this.props.comma... |
index.ios.js | DangrMiao/House | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Navigator,
View
} from 'react-native';
import main from './project/main';
export default class App extends Component {
render() {
ret... |
antd-mobile-custom/antd-mobile/lib/picker/demo/popup.js | forwk1990/wechart-checkin | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = undefined;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/p... |
packages/cf-component-card/src/CardPropTypes.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const cardDrawer = PropTypes.shape({
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
content: PropTypes.any.isRequired
});
const cardDrawers = PropTypes.arrayOf(cardDrawer);
export default { cardDrawer, cardDrawers };
|
src/Tooltip.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
/**
* An html id attribute, necessary for accessibility
* @type {st... |
ajax/libs/react-slick/0.14.5/react-slick.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
tests/components/Header/Header.spec.js | damiangreen/mood-diary | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
website/irulez/src/components/admin_menu/fields/ActionTypeField.js | deklungel/iRulez | import React, { Component } from 'react';
import ValueService from './../ValueService';
import SelectionField from './SelectionField';
class ActionTypeField extends Component {
valueService = new ValueService();
state = { options: [] };
componentDidMount() {
this.getData();
}
getData() {
... |
__tests__/index.android.js | camilacnery/simple-calculator | 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/components/CodeBlock.js | andrew-oxenburgh/andrew-oxenburgh.github.io | import React from 'react';
import Highlight, {defaultProps} from 'prism-react-renderer';
import theme from 'prism-react-renderer/themes/okaidia';
import PropTypes from 'prop-types';
CodeBlock.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
};
function CodeBlock({children, className}) {
const l... |
src/index.js | astunov/t_weather | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import ReduxThunk from 'redux-thunk'
import App from './components/app'
import reducers from './reducers'
import { FETCH_CITY } from './actions/types'
import {... |
src/components/Item.js | YouYII/EasyReader | //@flow
'use strict';
import React from 'react';
import {TouchableHighlight,Text,View} from 'react-native';
import {Actions} from 'react-native-router-flux';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {fetchListFromDB} from '../ducks/directory';
class Item extends React.C... |
client/components/home.js | andela-ksolomon/DocumentManagementSys | import React from 'react';
/**
* @class HomePage
* @classdesc Hompage component
*/
const HomePage = () => (<hi>Hello Welcome to my HomePage</hi>);
export default HomePage;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.