path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/yui/3.9.0/datatable-body/datatable-body.js | jakubfiala/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
docs/client.js | AlexKVal/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/components/Dotnav/Dotnav-orig.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
export default class Dotnav extends React.Component {
render() {
const { withArrows, count, index, classes, handleChange } = this.props;
if (count < 2) return null;
return (
<nav className = { classes.root }>
{ withArrows && <... |
static/programming-tutorials-backup/src/projects/frontend/lessons/JQSelectors.js | EdwardRees/EdwardRees.github.io | import React from 'react';
const JQSelectors = () => (
<div>
<h2>jQuery Selectors</h2>
</div>
)
export { JQSelectors }; |
src/components/Icon/Icon.js | amoseui/blog | // @flow strict
import React from 'react';
import styles from './Icon.module.scss';
type Props = {
name: string,
icon: {
viewBox?: string,
path?: string
}
};
const Icon = ({ name, icon }: Props) => (
<svg className={styles['icon']} viewBox={icon.viewBox}>
<title>{name}</title>
<path d={icon.pa... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core.js | Blueprint-Marketing/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
ajax/libs/react-instantsearch/4.0.0-beta.1/Dom.js | him2him2/cdnjs | /*! ReactInstantSearch 4.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof ... |
assets/jquery.js | ppmon/zui | /*! jQuery v1.11.0 | (c) 2005, 2014 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... |
src/svg-icons/editor/border-color.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
example/examples/DefaultMarkers.js | lelandrichardson/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { Marker, ProviderPropType } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const L... |
packages/material-ui-icons/src/FormatLineSpacing.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'FormatLineSpacing');
|
actor-apps/app-web/src/app/components/SidebarSection.react.js | Jaeandroid/actor-platform | import React from 'react';
import { Styles, Tabs, Tab } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
import ContactsSection from 'components/sidebar/ContactsSec... |
src/components/CommentsForm/CommentsForm/CommentsForm.js | easingthemes/easingthemes.github.io | import React from 'react';
/**
* React component implementation.
*
* @author dfilipovic
* @namespace ReactApp
* @class CommentsForm
* @extends ReactApp
*/
export class CommentsForm extends React.Component {
//-----------------------------------------------------------------------------------------------------... |
src/components/App.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.array.isRequired
}
shouldComponentUpdat... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.js | arjunkumar786/Maxhealthcare-Nigeria | /*!
* jQuery JavaScript Library v1.5.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.
... |
node_modules/react-native-svg/elements/Use.js | weatherfordmat/YorViewReactNative | import {PropTypes} from 'react';
import {pathProps, numberProp} from '../lib/props';
import {UseAttributes} from '../lib/attributes';
import Shape from './Shape';
import React from 'react';
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'... |
src/components/topic/wizard/CreateTopicContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { push } from 'react-router-redux';
import { Grid } from 'react-flexbox-grid/lib';
import { injectIntl, FormattedHTMLMessage } from 'react-intl';
import { connect } from 'react-redux';
import { reset, reduxForm } from 'redux-form';
import withAsyncDa... |
js/BaseComponents/EditBox.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
*... |
index.js | javivelasco/scaffolding-react-apps-slides | import React from 'react';
import ReactDOM from 'react-dom';
import bespoke from './bespoke';
import slides from './slides/index';
const Presentation = () => {
const Slides = Object.keys(slides).map(key => (
typeof slides[key] === 'function'
? React.createElement(slides[key], { key })
: null
));
... |
actor-apps/app-web/src/app/components/ToolbarSection.react.js | JamesWatling/actor-platform | import React from 'react';
import DialogStore from '../stores/DialogStore';
import ActivityActionCreators from '../actions/ActivityActionCreators';
//import AvatarItem from './common/AvatarItem.react';
var getStateFromStores = () => {
return {dialogInfo: null};
};
class ToolbarSection extends React.Component {
... |
test/test_helper.js | jessicamvs/blog | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
test/PageItemSpec.js | nickuraltsev/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageItem from '../src/PageItem';
describe('PageItem', () => {
it('Should output a "list item" as root element, and an "anchor" as a child item', () => {
let instance = ReactTestUtils.renderIntoDocument(
<PageItem href=... |
frontend/src/components/AuthenticatedComponent.js | Svjard/flightpath | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';
export function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
componentWillMount() {
console.log('AuthenticatedComponent', this.props);
... |
src/plot/xy-plot.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
app/components/toolbar/Title.js | cmilfont/zonaextrema | import React from 'react';
import { Link } from 'react-router';
export default class Title extends React.Component {
render() {
return (
<div className="zx-toolbar-title">
<Link className="zx-toolbar-logo" to="/">
<img src="/assets/images/biologo.png" alt="B... |
deeplearning4j-ui-parent/deeplearning4j-ui-resources/src/main/resources/ui/renders/node_modules/react/dist/JSXTransformer.js | xuzhongxing/deeplearning4j | /*
*
* * Copyright 2015 Skymind,Inc.
* *
* * 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/LICENSE-2.0
* *
* * U... |
src/svg-icons/editor/format-indent-increase.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
scripts/utils/WatchMissingNodeModulesPlugin.js | pierlo-upitup/polyrhythmical | // This Webpack plugin ensures `npm install <library>` forces a project rebuild.
// We’re not sure why this isn't Webpack's default behavior.
// See https://github.com/facebookincubator/create-react-app/issues/186.
function WatchMissingNodeModulesPlugin(nodeModulesPath) {
this.nodeModulesPath = nodeModulesPath;
}
W... |
ajax/libs/engine.io-client/3.1.0/engine.io.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["eio"] = factory();
else
root["eio"] = f... |
packages/mineral-ui-icons/src/IconPanTool.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 IconPanTool(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
t3-assets/js/js-641f3.js | back1992/cr |
/*===============================
/bt_education30/media/kunena/js/mediaboxAdv.js
================================================================================*/;
var Mediabox;(function(){var options,mediaArray,activeMedia,prevMedia,nextMedia,top,mTop,left,mLeft,winWidth,winHeight,fx,preload,preloadPrev=new Image()... |
src/svg-icons/maps/train.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/components/PageDropdown.js | GriddleGriddle/Griddle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import isFinite from 'lodash.isfinite';
/** Gets a range from a single value.
* TODO: Could probably make this take a predicate to avoid running through the loop twice */
const getRange = (number) => {
if (!isFinite(number)) { return [0] }... |
ajax/libs/rxjs/2.3.8/rx.lite.js | calvinf/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
ajax/libs/react-native-web/0.13.0/cjs/exports/createElement/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _AccessibilityUtil=_interopRequireDefault(require("../../modules/AccessibilityUtil")),_createDOMProps=_interopRequireDefault(require("../../modules/createDOMProps")),_react=_interopRequireDefault(require("react"));function _interopRequireDefault(e){return e&... |
test/components/Todo/Task.spec.js | elemus/react-redux-todo-example | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Task from '../../../src/components/Todo/Task';
const setup = (props) => {
const defaultProps = {
id: 0,
description: '',
isDone: false,
onToggle() {},
onDelete() {},
};
... |
lib/vis/lib/graph3d/Graph3d.js | infernix/librenms | var Emitter = require('emitter-component');
var DataSet = require('../DataSet');
var DataView = require('../DataView');
var util = require('../util');
var Point3d = require('./Point3d');
var Point2d = require('./Point2d');
var Camera = require('./Camera');
var Filter = require('./Filter');
var Slider = require('./Slide... |
app/javascript/mastodon/features/mutes/index.js | kibousoft/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... |
app/containers/Add.js | 7kfpun/AudienceNetworkReactNative | import React, { Component } from 'react';
import {
BackHandler,
Image,
Linking,
ListView,
StyleSheet,
Text,
TouchableOpacity,
Platform,
View,
} from 'react-native';
import { bindActionCreators } from 'redux';
import { Button, FormInput } from 'react-native-elements';
import { connect } from 'react-re... |
wp-content/themes/dofe/js/lib/jquery.min.js | parsonsc/dofe | /*! 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 win... |
ajax/libs/firebase/7.19.0-202071902151/firebase.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).firebase=e()}(this,function(){"use strict";function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))... |
node_modules/babel-preset-react/node_modules/babel-plugin-syntax-jsx/node_modules/babel-runtime/helpers/jsx.js | sathrall/magic-mirror | "use strict";
exports.__esModule = true;
var _for = require("../core-js/symbol/for");
var _for2 = _interopRequireDefault(_for);
var _symbol = require("../core-js/symbol");
var _symbol2 = _interopRequireDefault(_symbol);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ... |
ajax/libs/material-ui/5.0.0-beta.0/Paper/Paper.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["className", "component", "elevation", "square", "variant"];
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx ... |
src/js/ui/cell-icon.js | SpaceHexagon/pylon | import React from 'react';
export default class CellIcon extends React.Component {
constructor() {
super();
this.state = {filterText: ''}
}
render () {
var cellClass = "cell-icon " + this.props.offset;
return (
<div className={cellClass}>
</div>
);
}
}
CellIcon.defaultProps = {
offset... |
public/components/MyAppHistory.js | supportivesantas/project-ipsum | import React from 'react';
import ReactDom from 'react-dom';
import actions from '../actions/ipsumActions.js';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import request from '../util/restHelpers';
import _ from 'underscore';
import { Panel, Grid, Row, Col, Clearfix, PageHeader, ListGrou... |
src/index.js | Syferpan/adams | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
import Root from "./components/root/Root"
import reducers from './reducers'
import {... |
src/routes/notFound/index.js | uptive/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
src/js/components/nsis/details.js | UNECE/Model-Explorer | import React from 'react'
import { sparqlConnect } from 'sparql-connect'
import ServicesByNSI from './services-by-nsi'
/**
* Builds the query that retrieves the details on a given NSI.
*/
const queryBuilder = nsi => `
SELECT ?name ?shortName ?address ?geo
WHERE {
<${nsi}> skos:prefLabel ?name .
OPTIONAL {... |
src/components/Search/List.js | DarwinSmith/tentara-pelajar-client | import React, { Component } from 'react';
import './List.css'
class List extends Component {
render() {
return (
<div className="list column is-9">
<div className="box">
<article className="media">
<div className="media-left">
<figure className="image is-64x64">
... |
components/maps/SimpleMap.js | caTUstrophy/frontend | import React, {Component, PropTypes} from 'react';
import { Map, Marker, Polygon, TileLayer, ScaleControl } from 'react-leaflet';
import LocationHelpers from '../../helpers/Location';
class SimpleMap extends Component {
static propTypes = {
zoom: PropTypes.number,
style: PropTypes.object,
center: Locat... |
dapp/src/routes/user/components/main/main.js | airalab/DAO-IPCI | import React from 'react'
import { Dao } from '../../../../shared/dao'
const Main = props => (
(<div>
<Dao address={props.dao_address} role={props.role} />
</div>)
)
export default Main
|
src/components/Main/VideoListItem.js | neyko5/BalistosNative | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { likeVideo, deleteVideo } from '../../actions';
import {Image, View, Text, StyleSheet } from 'react-native';
const mapStateToProps = (state, ownProps) => ({
...ownProps,
userId: state.auth.userId,
});
con... |
react-frontend/src/PrintsFeed.js | aabmass/print-web | import React, { Component } from 'react';
import { Card, Feed, Image } from 'semantic-ui-react'
import avatar from './img/elliot.jpg';
import { isImageFile, computeFileName } from './utils';
import ClickableFeedEvent from './ClickableFeedEvent'
class PrintsFeed extends Component {
/* given the print object from the... |
src/spa/dev/js/components/workflow-state.js | MoimHossain/netcore-microservice-tutorial |
import React from 'react';
const WorkflowState = (props) => (
<div className="ui ordered steps">
<div className="completed step">
<div className="content">
<div className="title">SO</div>
<div className="description">Schets ontwerp</div>
</div>
... |
admin/client/App/components/Navigation/Secondary/index.js | benkroeger/keystone | /**
* The secondary navigation links to inidvidual lists of a section
*/
import React from 'react';
import { connect } from 'react-redux';
import { Container } from '../../../elemental';
import {
setActiveList,
} from '../../../screens/List/actions/active';
import SecondaryNavItem from './NavItem';
var SecondaryN... |
src/Parser/Shaman/Restoration/Modules/Items/T20_4Set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'... |
src/routes/add/index.js | ynu/res-track-wxe | import React from 'react';
import Add from './Add';
import { addResource } from '../../actions/add';
export default {
path: '/add',
async action({ store }) {
const add = async values => {
try {
const data = await store.dispatch(addResource(values));
window.location = `/detail/${data}`;
... |
examples/01 Dustbin/Multiple Targets/index.js | zetkin/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinMultipleTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b>
</p>
... |
src/components/ControlSidebar/TabPane.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import TabPane from '../NavTab/TabPane'
const ControlSidebarTabPane = ({children, active}) => {
return (
<TabPane active={active}>
{children}
</TabPane>
)
}
ControlSidebarTabPane.propTypes = {
active: PropTypes.bool,
children: PropTyp... |
ajax/libs/react/0.14.0-alpha1/react.min.js | pvnr0082t/cdnjs | /**
* React v0.14.0-alpha1
*
* 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 direct... |
examples/with-redux-saga/pages/other.js | arunoda/next.js | import React from 'react'
import {increment, startClock} from '../actions'
import {withReduxSaga} from '../store'
import Page from '../components/page'
class Counter extends React.Component {
static async getInitialProps ({store}) {
store.dispatch(increment())
}
componentDidMount () {
this.props.dispat... |
pkg/interface/link/src/js/components/lib/comments.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { CommentItem } from './comment-item';
import { CommentsPagination } from './comments-pagination';
import { getContactDetails } from '../../lib/util';
import { api } from '../../api';
export class Comments extends Component {
constructor(props) {
super(props);
... |
app/containers/SearchContainer.js | zhanghaj00/shop-reactnative | /**
* Created by ljunb on 16/6/5.
*/
import React from 'react';
import {connect} from 'react-redux';
import Search from '../pages/Search';
//import NewSearch from '../pages/NewSearch';
class SearchContainer extends React.Component {
render() {
return (
<Search {...this.props} />
)
... |
app/containers/LanguageProvider/index.js | PokerGuy/react-boilerplate | /*
*
* 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... |
app/assets/scripts/components/connect-fold.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
var ConnectFold = React.createClass({
displayName: 'ConnectFold',
render: function () {
return (
<section className='connect-fold'>
<div className='inner'>
<header className='connect-fold__header'>
<h1 className='connect-fold__title'... |
site/src/CustomChip.js | gregchamberlain/react-chips | import React, { Component } from 'react';
import Radium from 'radium';
class CustomChip extends Component {
render() {
return (
<div style={this.props.selected ? {...styles.container, ...styles.selected} : styles.container}>
<img style={styles.image} src={this.props.image} />
<div style={st... |
components/Label/index.js | insane-ux/rebulma | // @flow
import React from 'react'
import cn from 'classnames'
const Label = ({
htmlFor,
className,
children,
}: {
htmlFor?: string,
className?: string,
children?: Element,
}) => (
<label htmlFor={htmlFor} className={cn('label', className)}>
{children}
</label>
)
Label.defaultProps = {
htmlFor:... |
src/index.js | himadriganguly/reactjs-form-practice | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import BookStore from './BookStore';
ReactDOM.render(<BookStore />, document.getElementById('root'));
|
vendor/js/jquery-1.11.3.min.js | mmonkey/hearthstone-toolbox | /*! 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... |
src/components/DBTable/InnerForm.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {
Icon,
Row,
Col,
Button,
message,
Upload,
notification
} from 'antd';
import globalConfig from 'config.js';
import moment from 'moment'; // antd@2.0之后, 日期相关的都变成moment对象了, 以前是Date对象
import FormSchemaUtils from './InnerFormSchemaUtils';
import Utils from '../../utils';
im... |
components/CPPInsightsButton.js | FredTingaud/quick-bench-front-end | import React from 'react';
import InteropHelper from 'components/InteropHelper';
import { Button, Tooltip, OverlayTrigger } from 'react-bootstrap';
import svg from 'components/resources/ico/cppinsights.svg';
class CPPInsightsButton extends React.Component {
versionCPPI(opt) {
switch (opt.cppVersion) {
... |
es/catalog/properties/property-hidden.js | dearkaran/react-planner | import React from 'react';
import PropTypes from 'prop-types';
export default function PropertyHidden(_ref) {
var value = _ref.value,
onUpdate = _ref.onUpdate,
configs = _ref.configs,
sourceElement = _ref.sourceElement,
internalState = _ref.internalState,
state = _ref.state;
return n... |
src/index.js | FredBoat/fredboat.com | import React from 'react';
import ReactDOM from 'react-dom';
import Docs from './docs/Docs';
import {BrowserRouter, Route, Redirect, Switch} from 'react-router-dom'
import './docs/css/index.css';
import IndexPage from "./index/IndexPage";
import './common/css/layout.css';
import Callback from "./callback/Callback";
imp... |
app/components/containers/tablesContainer.js | allecsro/dynotool | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Tables from '../elements/tables';
import Empty from '../elements/empty';
import { filterTables } from '../../actions/dynamodb.action';
import { switchProfile } from '../../actions/application.action';
class Tab... |
v8/development/node_modules/react-hot-loader/dist/webpackTagCommonJSExports.js | BigBoss424/portfolio | 'use strict';
/* eslint-disable global-require, import/no-unresolved, no-var, camelcase, func-names, no-void */
/* global __FILENAME__, reactHotLoaderGlobal */
void function register() {
// eslint-disable-line no-extra-semi
/* react-hot-loader/webpack */
var reactHotLoader = typeof reactHotLoaderGlobal !== 'und... |
packages/ringcentral-widgets/components/ActiveCallButton/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CircleButton from '../CircleButton';
import styles from './styles.scss';
export default function ActiveCallButton(props) {
const className = classnames(styles.btnSvg, props.className);
const buttonClassName ... |
app/jsx/assignments_2/teacher/components/Overrides/OverrideDates.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
ajax/libs/rxjs/2.3.7/rx.all.compat.js | jonathantneal/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
ajax/libs/vue-smart-table/2.6.0-beta4/vue-smart-table.js | tonytomov/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("Vue"));
else if(typeof define === 'function' && define.amd)
define(["Vue"], factory);
else if(typeof exports === 'object')
exports["SmartTable"] = factory(... |
apps/marketplace/components/Brief/Edit/AddSellerListItems.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
const AddSellerListItems = props => {
const { onSellerClick, sellers } = props
return sellers.map(seller => (
<li key={seller.code}>
<a
href={`#${seller.code}`}
onClick={e => {
e.preventDefault()
onSellerCli... |
assets/grocery_crud/js/jquery-1.11.1.js | omarsepulveda/aiesec | /*!
* 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 ... |
ajax/libs/yasr/2.4.15/yasr.bundled.min.js | chinakids/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/index.js | benuchadnezzar/subway-checker | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
docs/src/app/components/pages/components/Stepper/HorizontalLinearStepper.js | skarnecki/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Horizontal steppers are ideal when the contents of one step depend on an earlier step.
* Avoid using long step ... |
src/components/workview.js | karynntran/karynnanimated | import React, { Component } from 'react';
const WorkView = (props) => {
return (
<section className="content work-content">
<div className="inner-content">
<ul className="positions-ul">
<li className="positions-li quartz">
<div className="work-logo"></div>
<div className="work-details">
... |
src/components/submitpost/PostForm.js | expressmatch/expressmatch | import React from 'react';
import { Field, reduxForm } from 'redux-form';
const required = value => (value ? undefined : 'Required field')
const maxLength = max => value =>
value && value.length > max ? `Must be ${max} characters or less` : undefined
const maxLength15 = maxLength(15)
export const minLength = min => ... |
node_modules/react-icons/io/trash-a.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoTrashA = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.4 10h7.1v2.5h-0.7s-0.4 0.1-0.6 0.3-0.3 0.7-0.3 0.7l-1.5 18.8c-0.2 2.3-0.2 2.7-2.8 2.7h-15.7c-2.6 0-2.6-0.4-2.8-2.7l-1.5-18.9s0-0.4-0.3-0.7-0.6-0.2-0.6-0.2h-0.7v-2.... |
src/js/components/register/password-inputs.js | daniel-madera/pijs | import React from 'react'
import { inject, observer } from 'mobx-react'
import { FormGroup, FormLabel, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap'
@inject('userStore')
@observer
export default class PasswordInputs extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
test/navigation-test.js | chrisclarke1977/tech-stack | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import {renderIntoDocument} from 'react-addons-test-utils';
import { expect} from 'chai';
import { Navigation } from 'components';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
describe('Navigation', ()... |
src/setupTests.js | anom0ly/WoWAnalyzer | /* eslint-disable react/display-name */
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import 'jest-enzyme'; // better matchers
import 'jest-canvas-mock';
Enzyme.configure({
adapter: new Adapter(),
});
if (process.env.CI) {
// Hide all console output
conso... |
modules/__tests__/Redirect-test.js | bs1180/react-router | import expect from 'expect'
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from 'history/lib/createMemoryHistory'
import Redirect from '../Redirect'
import Router from '../Router'
import Route from '../Route'
describe('A <Redirect>', function () {
let node
... |
packages/material-ui-icons/src/NavigationTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7.72 17.7l3.47-1.53.81-.36.81.36 3.47 1.53L12 7.27z" opacity=".3" /><path d="M4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2 4.5 20.29zm8.31-4.12l-.81-.36-.81.36-3.47 1.53L12 7.27l4.28 10... |
docs/app/Examples/elements/Input/index.js | koenvg/Semantic-UI-React | import React from 'react'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const InputExamples = () => (
<div>
<Types />
<States />
<Variations />
</div>
)
export default InputExamples
|
src/components/Heading.stories.js | dlindahl/stemcell | import CssReset from './CssReset'
import { number, select, text, withKnobs } from '@kadira/storybook-addon-knobs'
import Heading from './Heading'
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import VerticalRhythm from './VerticalRhythm'
storiesOf('Heading', module)
.addDecorator(withKnobs)... |
client/components/nota/SocialShare.js | EstebanFuentealba/biobiochile-mobile-spa | import React from 'react';
export default class SocialShare extends React.Component{
render() {
return (<div>
<ul className="barra-social">
<li className="s-fb">
<a href={`https://www.facebook.com/sharer.php?u=${this.props.nota.post_URL}`} className="fa fa-facebook"></a>
</li>
... |
src/components/button.js | peteruithoven/cssmodules-react-jspm-experiment | import React from 'react';
import styles from './button.css!css-modules'
export default class Button extends React.Component {
render () {
const {mode} = this.props;
var className = styles.normal;
switch(mode) {
case 'disabled':
className = styles.disabled;
}
return (
<butto... |
js/components/Container.js | js-mi/so | import React from 'react';
import List from './List';
import Message from './Message';
import emitter from '../emitter';
import reqwest from 'reqwest';
import { getMedia } from '../utils';
let msg = {
start: {
headerMsg: '朋友您好!~~',
iconColor: 'black',
icon: 'help',
bodyMsg: '输入你想找的关键词按下回车即可搜索!'
},
... |
src/components/footer.js | dtjv/dtjv.github.io | import React from 'react'
import { Container } from './Container'
import { EmailIcon } from './icons/Email'
export const Footer = () => {
return (
<Container>
<div className="flex items-center justify-center">
<a href="mailto:davidtjvalles@gmail.com">
<EmailIcon className="w-6 h-6 ml-3 t... |
packages/material-ui-icons/src/ThumbDownAlt.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 24H0V0h24v24z" /><path d="M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.8... |
docs/src/app/pages/components/Breadcrumb/ExampleBreadcrumbMultipleSubpages.js | GetAmbassador/react-ions | import React from 'react'
import Breadcrumb from 'react-ions/lib/components/Breadcrumb'
const routes = [
{
path: 'page',
title: 'Page'
},
{
path: 'subpage',
title: 'Subpage'
},
{
path: 'subpage',
title: 'Second Subpage'
},
{
path: 'subpage',
title: 'Third Subpage'
}
]
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.