path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
test/index.js | gcedo/component-sections-card | import 'babel-polyfill';
import React from 'react';
import SectionsCard from '../src/index';
import chai from 'chai';
import context from '../src/context';
chai.should();
/* eslint-disable newline-after-var */
describe('A SectionsCard', () => {
describe('it\'s a React component', () => {
it('is compatible with R... |
app/js/todo/form.js | pengux/electron-react-starter | import React from 'react';
import TodoActions from './actions';
export default React.createClass({
create(e) {
e.preventDefault();
var task = this.refs.newTask.value;
TodoActions.create({"name": task});
},
render() {
return (
<form onSubmit={this.create}>
<label>
Add task
<input type="te... |
src/components/ResizableChart.js | cesine/rickshaw-react-sample | /* globals window */
import React, { Component } from 'react';
import ReactDom from 'react-dom';
import PropTypes from 'prop-types';
import './ResizableChart.css';
const defaultState = { height: 300, width: 500 };
class ResizableChart extends Component {
constructor(props) {
super(props);
this.createChart =... |
app/javascript/mastodon/features/ui/components/list_panel.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { fetchLists } from 'mastodon/actions/lists';
import { connect } from 'react-redux';
import { createSelector } from 'rese... |
client/scripts/components/user/sidebar-step/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
core/src/plugins/gui.ajax/res/js/dist/export.js | ChuckDaniels87/pydio-core | window.React = require('react');
window.ReactDOM = require('react-dom');
window.PureRenderMixin = require('react-addons-pure-render-mixin');
window.ReactCSSTransitionGroup = require('react-addons-css-transition-group');
window.ReactMUI = require('material-ui-legacy');
window.MaterialUI = require('material-ui');
window.... |
frontend/components/markdown/NegativeText.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import styles from './NegativeText.less';
const NegativeText = ({text}) => <span className={styles.main}>{text}</span>;
NegativeText.propTypes = {
text: PropTypes.string.isRequired,
};
export default NegativeText;
|
packages/material-ui-icons/src/Contacts.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" /><path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24... |
docs/src/app/components/pages/components/Subheader/Page.js | owencm/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 subheaderReadmeText from './README';
import listExampleChatCode from '!ra... |
site/pages/APIPage.js | pairyo/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import SideBar from '../components/SideBar';
import StaticHTMLBlock from '../components/StaticHTMLBlock';
import { APIPages } from '../Constants';
export default class APIPage {
render() {
return ... |
app/client/surflag/src/containers/App.js | TachibanaYuji/surflag | import React, { Component } from 'react';
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import Home from './Home';
import Login from './Login';
import logo from '../assets/logo.svg';
import './App.css';
import ... |
src/routes.js | rdenadai/mockingbird | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import LandingPage from './containers/landing_page';
import AddPodcast from './containers/add_podcast';
import ShowPodcast from './containers/show_podcast';
export default (
<Route path="/" component=... |
src/components/Overlay/stories.js | Secullum/secullum-react-ui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Overlay from './index';
storiesOf('Overlay', module)
.add('default', () => (
<Overlay />
))
.add('custom styles', () => (
<Overlay style={{ backgroundColor: 'red' }} />
));
|
examples/with-mobx/components/Page.js | kevmannn/next.js | import React from 'react'
import Link from 'next/link'
import { inject, observer } from 'mobx-react'
import Clock from './Clock'
@inject('store') @observer
class Page extends React.Component {
componentDidMount () {
this.props.store.start()
}
componentWillUnmount () {
this.props.store.stop()
}
rend... |
src/components/CourseListItem.js | Youjingyu/react-study163-home-page | import React, { Component } from 'react';
export default class ListItem extends Component {
render() {
const itemData = this.props.itemData;
return (
<li className='course_list_item'>
<a href='#'>
<img className='course_img' src={itemData.middlePhotoU... |
ajax/libs/material-ui/5.0.0-alpha.16/node/Popover/Popover.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getOffsetTop=getOffsetTop,exports.getOffsetLeft=getOffsetLeft,exports.default=ex... |
app/javascript/mastodon/components/column_back_button_slim.js | summoners-riftodon/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
<div role='button' tabIndex='0' onClic... |
test/components/ExpenseList.spec.js | rjbernaldo/expensetracker-react-redux | import { List, Map } from 'immutable';
import { expect } from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import ExpenseList from '../../src/components/ExpenseList';
const { renderIntoDocument, scryRenderedDOMComponentsWithTag } = TestUtils;
describe('ExpenseList', () => {
it... |
vendor/bower-asset/bootstrap/js/tests/vendor/jquery.min.js | udamuri/app_muribudiman | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | 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 wind... |
part1/ShuttleTracking/_js/jquery-1.11.3.min.js | bensusman/uno-shuttle-tracking | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | 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 wind... |
node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Marina-Gurrieri/montheme | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/react-cookie/src/__tests__/withCookies-test.js | reactivestack/cookies | import React from 'react';
import { object } from 'prop-types';
import { instanceOf } from 'prop-types';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import { CookiesProvider, withCookies, Cookies } from '../';
import { cleanCookies } from 'universal-cookie/lib/utils';
function Test... |
client/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Jmoreno1988/2mean | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/library/Dialog/__tests__/DialogTitle.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import { ThemeProvider } from '../../themes';
import DialogTitle from '../DialogTitle';
import examples from '../../../website/app/demos/Dialog/DialogTitle/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function sha... |
src/modules/components/icons/Pause.js | ruebel/synth-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import Icon from './Icon';
const Pause = ({
height = '24',
styleName,
width = '24',
fill = '#4682b4'
}) => {
return (
<svg
width={width}
height={height}
className={styleName}
viewBox="0 0 300 300"
xmlns="http://w... |
ajax/libs/reactive-coffee/0.0.0/reactive-coffee.js | zauguin/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, lagBind, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, tag, tags, _ref, _ref1, _ref2, _ref3,
__hasProp = {}.hasOwnProperty,
__extends = function(c... |
ajax/libs/forerunnerdb/1.4.3/fdb-core+views.min.js | redmunds/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... |
client/app/components/RestaurantPage/Common/RestaurantImgs.js | maekks/menu-plus | import React from 'react';
import { Card, CardMedia, CardTitle } from 'material-ui/Card';
class RestaurantImgs extends React.PureComponent {
render() {
return (
<Card style={{ height: 250, width: 250, float: 'right', margin: 30 }}>
<CardMedia
overlay={<CardTitle title="more images"> </Car... |
fields/types/datearray/DateArrayFilter.js | dryna/keystone-twoje-urodziny | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import {
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No e... |
ajax/libs/analytics.js/2.3.14/analytics.js | tambien/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
packages/react-router-redux/examples/AuthExample.js | asaf/react-router | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import createHistory from 'history/createBrowserHistory';
import { routerReducer, routerMid... |
src/js/components/List/stories/Action.js | HewlettPackard/grommet | import React from 'react';
import { Box, List, Menu } from 'grommet';
import { More } from 'grommet-icons';
const data = [];
for (let i = 0; i < 40; i += 1) {
data.push({
entry: `entry-${i + 1}`,
});
}
export const Action = () => (
<Box pad="large">
<List
data={data.slice(0, 10)}
pad={{ le... |
src/components/sidebar/sidebar.js | beehive-spg/beehive-frontend | import React from 'react'
import { Tabs, TabLink, TabContent } from 'react-tabs-redux'
import RouteInfo from './routeInfo/routeInfo'
import HiveInfo from './hiveInfo/hiveInfo'
import './sidebar.css'
export default class Sidebar extends React.Component {
render() {
return (
<div className="sidebar">
<Tabs c... |
server/game/cards/characters/03/eddardstark.js | cavnak/throneteki | const DrawCard = require('../../../drawcard.js');
class EddardStark extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onRenown: (event, challenge, card) => card === this
},
handler: () => {
this.game.promptForSelect(this.co... |
ajax/libs/backbone-react-component/0.6.2/backbone-react-component-min.js | kitcambridge/cdnjs | "use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ... |
wp-content/plugins/verkkomuikku-fb-plugin/includes/jq-fb-wall/jquery-1.6.1.min.js | oikeusministerio/blogi.otakantaa.fi | /*!
* jQuery JavaScript Library v1.6.1
* 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.
... |
src/containers/GameOver.js | LaunchAcademy/name-game | import React from 'react'
import { resetGame } from '../modules/Guess'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
export class GameOver extends React.Component {
constructor () {
super()
this.resetGame = this.resetGame.bind(this)
}
resetGame (e) {
e.preventDefa... |
src/decorators/withViewport.js | ashlynbaum/react-test | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
node_modules/react-icons/fa/american-sign-language-interpreting.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaAmericanSignLanguageInterpreting = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m18.1 21.1q-1.1 0-1.5-0.9-0.3-0.6-0.8-1t-1.2-0.3q-1 0-1.6 0.6t-0.7 1.6q0 1 0.7 1.6l0.1 0.1q0.6 0.6 1.5 0.6 0.6 0 1.2-0.4t0.8-0.9q0.4-0.9 1.5-... |
src/common/ReplOutput.js | boneskull/Mancy | import _ from 'lodash';
import ReplConstants from '../constants/ReplConstants';
import ReplCommon from './ReplCommon';
import util from 'util';
import ReplEntryOutputError from '../components/ReplEntryOutputError';
import {EOL} from 'os';
import React from 'react';
import ReplDOM from '../common/ReplDOM';
import ReplCo... |
client/modules/Resource/components/List/List.js | b3j0f/lechangement | import './List.css';
import React, { Component } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Theme from '../Item/Theme';
class List extends Component {
constructor(props) {
super(props);
this.state = {
resources... |
vertex_ui/src/components/ProgressBar/ProgressBar.js | zapcoop/vertex | import React from 'react';
import { PropTypes } from 'prop-types';
import { ProgressBar as ReactBootstrapProgressBar } from 'react-bootstrap';
import bsStyleToColor from './../utils/bsStyleToColor';
import { Colors } from 'consts';
const ProgressBar = props => {
const { bsStyle, customColor, style, children, ...ot... |
ajax/libs/video.js/6.5.1/alt/video.novtt.js | wout/cdnjs | /**
* @license
* Video.js 6.5.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ... |
ajax/libs/forerunnerdb/1.3.647/fdb-all.js | menuka94/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/components/container/Row.js | TonyYang9527/my-app | import React from 'react';
import PropTypes from 'prop-types';
import {observer} from 'mobx-react';
class Row extends React.Component{
static propTypes = {
rowClassName: PropTypes.string,
};
static defaultProps = {
rowClassName : ''
};
render =() =>{
return(
<... |
docs/src/app/components/pages/components/SelectField/ExampleError.js | andrejunges/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [
<MenuItem key={1} value={1} primaryText="Never" />,
<MenuItem key={2} value={2} primaryText="Every Night" />,
<MenuItem key={3} value={3} primaryText="Weeknights" />,
<Menu... |
tools/deploy.js | rdanieldesign/MemoryApp-ReactStarter | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 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 GitRepo from 'git-repository';
import run from './ru... |
src/common/ZulipStatusBar.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { Platform, StatusBar } from 'react-native';
import { foregroundColorFromBackground } from '../utils/color';
export default (props: Object) => {
const backgroundColor = props.backgroundColor || 'white';
const textColor = foregroundColorFromBackground(backgroundColor);... |
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"
/>... |
src/client/redux/modules/user.js | eliasmeire/hz-pictionary | import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/concat';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/concatMap';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/mergeMapTo';
import Horizon from '@horiz... |
src/React/Widgets/LayoutsWidget/OneByTwo.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss';
export default function render(props) {
return (
<table
className={props.active === '1x2' ? style.activeTable : style.table}
name="1x2"
onClick={props.onClick}
>
... |
test/components/Counter.spec.js | nickrfer/code-sentinel | import { spy } from 'sinon';
import React from 'react';
import { shallow } from 'enzyme';
import { BrowserRouter as Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import Counter from '../../app/components/Counter';
function setup() {
const actions = {
increment: spy(),
incremen... |
docs/close/index.js | hainuo/amazeui-react | 'use strict';
var fs = require('fs');
var React = require('react');
var ReactBin = require('../ReactBin');
var Markdown = require('../utils').Markdown;
var Doc = require('../utils').Doc;
var examples = {
basic: fs.readFileSync(__dirname + '/01-basic.js', 'utf-8'),
alt: fs.readFileSync(__dirname + '/02-alt.js', 'u... |
ajax/libs/rxjs/2.2.21/rx.lite.extras.js | andrepiske/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
src/components/forms/Select.js | iamraphson/mernmap | /**
* Created by Raphson on 9/27/16.
*/
import React from 'react';
import Formsy from 'formsy-react';
const MySelect = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
this.setValue(event.currentTarget.value);
},
render() {
const className = (this.props.className || ... |
ajax/libs/react-dropzone/4.2.2/index.min.js | extend1994/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.Dropzone=t(require("react"),require("prop-types")):e.Dropzone=t(e.react,e["prop-types"])}(this... |
ajax/libs/react-router/1.0.0-beta4/ReactRouter.js | sajochiu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
public/components/tehtPage/tabsComponents/someuutiset/Uutiset.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import Basic from '../reusables/templates/Basic';
import ShareButton from './ShareButton';
import { showAllNews, showPrioNews } from '../../../../reducer/news/actions';
const Uutiset = (props) =>
<div className="uutiset">
<p><b>Uutiset:</b></p... |
vendor/jam/jquery/dist/jquery.js | gigo6000/backbone-boilerplate | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-17
*/
(function( window, undefined ) {
// Can't do ... |
app/javascript/components/shared/DashboardMapView/dashboard-map-view.component.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
import format from 'date-fns/format';
class DashboardMapView extends React.Component {
componentDidMount() {
if (this.mapEl) {
this.createMap();
if (this.props.layerUrl) this.addGeometryLayer();
}
}
componentDidUpdate(prevProps) ... |
src/common/components/Paragraph.js | redcom/doctori-romani-in-berlin | // @flow
import type { TextProps } from './Text';
import type { Theme } from '../themes/types';
import Text from './Text';
import React from 'react';
type ParagraphContext = {
theme: Theme,
};
const Paragraph = (props: TextProps, { theme }: ParagraphContext) => {
const {
marginBottom = theme.paragraph.marginB... |
src/client/story_list.js | Viktour19/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
test/Pager.spec.js | pietraszekl/slideshow-react | import mocha from 'mocha'
import chai, {expect} from 'chai'
import chaiEnzyme from 'chai-enzyme'
import { mount, shallow } from 'enzyme'
import React from 'react'
import Pager from '../components/Slideshow/Pager'
chai.use(chaiEnzyme())
describe('<Pager />',() => {
const pager = shallow(<Pager active={true} id="1"/... |
app/javascript/mastodon/components/button.js | Arukas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
ajax/libs/yui/3.9.0/datatable-core/datatable-core-coverage.js | ducin/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
js/vendor/jquery-1.10.2.min.js | theqikone/husker-site-clone | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(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.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/__test__/custom-compare.spec.js | oklas/react-breadcrumbs-dynamic | import React from 'react'
import PropTypes from 'prop-types'
import enzyme, { shallow, mount, render } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import { expect } from 'chai'
import {
BreadcrumbsProvider,
Breadcrumbs,
BreadcrumbsItem,
} from '../index'
enzyme.configure({ adapter: new Adapter(... |
Examples/UIExplorer/Navigator/JumpingNavSample.js | liubko/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/svg-icons/action/info.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfo = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
</SvgIcon>
);
ActionInfo = pure(ActionInfo);
ActionI... |
src/svg-icons/hardware/sim-card.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
app/demos/customView.js | asantebuil/room-reservation | import React from 'react';
import BigCalendar from '../../src/index';
import events from '../events';
import { navigate } from 'react-big-calendar/utils/constants';
import Week from 'react-big-calendar/Week';
import dates from 'react-big-calendar/utils/dates';
import localizer from 'react-big-calendar/localizer';
impor... |
js/App/Components/Device/Common/FadeSetting.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
*... |
lib/component.js | reslaurentii/hyper | import React from 'react';
import {StyleSheet, css} from 'aphrodite-simple';
export default class Component extends React.PureComponent {
constructor() {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelper.bind(this);
}
createStyleSheet() {
if (!this.styles) {
... |
plugins/af.scroller.js | beian/appframework | /**
* af.scroller
* created by appMobi with modifications by Carlos Ouro @ Badoo and Intel
* Supports iOS native touch scrolling
* Optimizations and bug improvements by Intel
* @copyright Intel
*/ (function ($) {
var HIDE_REFRESH_TIME = 75; // hide animation of pull2ref duration in ms
var cache = [];
... |
packages/mineral-ui-icons/src/IconLocalCarWash.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 IconLocalCarWash(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
ReactCsv/components/Cell.js | davidtimmons/react-csv | /**
* React CSV Spreadsheet v1.1.0
* David Timmons (github@timmons.io)
* http://david.timmons.io
* MIT License
*
* @summary A component controlling the table cells.
* @module ReactCsv
*/
import React from 'react';
import ReactCsvActions from '../flux/ReactCsvActions';
/**
* Spreadsheet cells comprised of ti... |
lib/transform.js | mfellner/react-down | import React from 'react'
import MarkdownIt from 'markdown-it'
import camelCase from 'camel-case'
function parseStyle(string) {
const style = {}
const pairs = string.split(';')
for (let pair of pairs) {
const [key, value] = pair.split(':')
style[camelCase(key)] = value
}
return style
}
function pars... |
docs/client.js | HorizonXP/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
src/index.js | suitcasemedia/my-reads | import React from 'react'
import ReactDOM from 'react-dom'
import BooksApp from './BooksApp'
import './index.css'
import { BrowserRouter } from 'react-router-dom'
ReactDOM.render((
<BrowserRouter>
<BooksApp />
</BrowserRouter>
), document.getElementById('root'))
|
js/routes.js | xuorig/form-check-app | /* @flow */
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import ViewerQueries from './queries/ViewerQueries';
import FormCheckQueries from './queries/FormCheckQueries';
import App from './components/App';
import FormCheckPage from './components/FormCheckPage/FormCheckPage';
import For... |
src/clincoded/static/components/testing.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import { panel_views } from './globals';
export default class TestingRenderErrorPanel extends Component {
render() {
console.log('log');
console.warn('warn');
this.method_does_not_exist();
}
}
panel_views.register(TestingRenderErr... |
ajax/libs/material-ui/4.10.1/internal/svg-icons/RadioButtonChecked.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
packages/rnkit/pages/ButtonPage.js | ZhonganTechENG/zarm | import React, { PureComponent } from 'react';
import { ScrollView, View } from 'react-native';
import { Button, Panel } from '../zarm';
const styles = {
box: {
padding: 10,
paddingBottom: 0,
},
bg_dark: {
backgroundColor: '#000',
},
mb: {
marginBottom: 10,
},
mr: {
marginRight: 10,
... |
__tests__/js/scenes/Item.js | gmarty/journey | import 'react-native';
import React from 'react';
import Item from '../../../js/scenes/Item';
import renderer from 'react-test-renderer';
import createStore from '../../../js/store/create-store';
jest.mock('../../../js/components/Header', () => 'Header');
it('renders correctly', () => {
const tree = renderer.create... |
utils/typography.js | caryfuk/architektka | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import { GoogleFont } from 'react-typography'
import githubTheme from 'typography-theme-github'
const typography = new Typography(githubTheme)
// Hot reload typography in development.
if (process.env.NODE_ENV !== 'pr... |
packages/jQuery.1.9.0/Content/Scripts/jquery-1.9.0.js | Valermus/BigO-Git | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function( window, undefined ) {
"use strict"... |
src/app/keyring/components/NameAddrInput.js | mailvelope/mailvelope | /**
* Copyright (C) 2016-2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import * as l10n from '../../../lib/l10n';
import React from 'react';
import PropTypes from 'prop-types';
import {KeyringOptions} from '../KeyringOptions';
l10n.register([
'keygrid_user_name',
'key... |
src/pages/paginate/exemploDePaginateComOpcoes.js | Synchro-TEC/site-apollo-11 | import React from 'react';
import { Paginate } from 'syntec-apollo-11';
const dados = [
{tarefa: 'Tarefa 1', prioridade: 'Crítica'},
{tarefa: 'Tarefa 2', prioridade: 'Crítica'},
{tarefa: 'Tarefa 3', prioridade: 'Baixa'},
{tarefa: 'Tarefa 4', prioridade: 'Alta'},
{tarefa: 'Tarefa 5', prioridade: 'Média'}... |
admin/client/components/Footer.js | efernandesng/keystone | import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
User: React.PropTypes.object,
user: React.PropTypes.object,
version: R... |
frontend/component/NewTopic.js | ivernaloo/practice-node-project | import React from 'react';
import jQuery from 'jquery';
import {addTopic} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class NewTopic extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleChange(name, e) {
this.state[name] = e.target... |
frontend-new/src/js/components/common/sidebar/AdminSideBar.js | leapfrogtechnology/vyaguta-resource | import React from 'react';
import { IndexLink, Link } from 'react-router';
import * as urlConstants from '../../../constants/urlConstants';
const AdminSidebar = () => (
<ul className="nav navbar-nav-custom navbar-right">
<li>
<IndexLink to='/' activeClassName="active" title="Dashboard">
{/*<i class... |
ajax/libs/video.js/5.0.0-rc.50/video.js | wil93/cdnjs | /**
* @license
* Video.js 5.0.0-rc.50 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
demo/components/input/InputDemo.js | ctco/rosemary-ui | import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet';
import {IconInput, Input} from '../../../src';
import React from 'react';
export default class InputDemo extends React.Component {
render() {
return (
<DemoWithSnippet>
<Input placeholder="small input" size="sm... |
ajax/libs/material-ui/5.0.0-alpha.29/legacy/SvgIcon/SvgIcon.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import{deepm... |
stalkerweb/static/js/jquery.min.js | thrawn01/stalker | /*! 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... |
node_modules/socketstream/node_modules/engine.io/node_modules/engine.io-client/test/support/jquery.js | pwldp/rodzice-na-czasie-pl | /*!
* jQuery JavaScript Library v1.7.1
* 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.
... |
src/index.js | codyloyd/teamup | import React from 'react'
import ReactDOM from 'react-dom'
import Root from './components/root'
import './index.css'
import configureFirebase from './configureFirebase'
import configureStore from './configureStore'
import appReducer from './reducer'
// these imports are useful for testing.. but I keep them commented
... |
src/js/components/Markdown/stories/Override.js | grommet/grommet | import React from 'react';
import styled from 'styled-components';
import { Box, Markdown } from 'grommet';
const CONTENT = `
# Out of Breath
You know, sometimes in life it seems like there's no way out. Like
a sheep trapped in a maze designed by wolves. See all the
options [here](https://github.com/probably... |
example/hoc/useNavigation.js | DavidLazic/react-augment | import React, { Component } from 'react';
/**
* @description
* Higher order component
* Component wrapper used for navigation
*
* @param {Function} WrappedComponent
* @return {Object}
* @public
*/
export const useNavigation = (WrappedComponent = () => null) =>
class UseNavigation extends Component {
... |
App/Components/AlertMessage.js | oreofish/v2exClient | // @flow
import React from 'react'
import { View, Text } from 'react-native'
import styles from './Styles/AlertMessageStyle'
import * as Animatable from 'react-native-animatable'
import { Metrics } from '../Themes/'
import Icon from 'react-native-vector-icons/Ionicons'
/*
import ExamplesRegistry from '../Services/Exam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.