target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
ajax/libs/forerunnerdb/1.3.909/fdb-core+views.js | kiwi89/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/icons/TransformIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TransformIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 36v-4H16V8h4l-6-6-6 6h4v4H4v4h8v16c0 2.21 1.79 4 4 4h16v4h-4l6 6 6-6h-4v-4h8zM20 16h12v12h4V16c0-2.2... |
src/svg-icons/editor/vertical-align-top.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
src/components/LoginForm.js | cernanb/personal-chef-react-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Form, Segment } from 'semantic-ui-react';
class LoginForm extends Component {
state = {
email: '',
password: '',
};
onChange = e => {
this.setState({ [e.target.name]: e.target.value });
};
render() {
... |
src/Badge/Badge.spec.js | lawrence-yu/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Badge from './Badge';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Badge />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
ajax/libs/reactive-coffee/0.0.2/reactive-coffee.js | stomita/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, lagBind, mkMap, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, specialAttrs, tag, tags, _fn, _i, _len, _ref, _ref1, _ref2, _ref3,
__hasProp... |
frontend/src/components/partners/profile/overview/partnerVerificationExpanded.js | unicef/un-partner-portal | import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, formValueSelector } from 'redux-form';
import PropTypes from 'prop-types';
import Divider from 'material-ui/Divider';
import { visibleIfYes } from '../../../../helpers/formHelper';
import GridColumn from '../../../common/grid/gridColu... |
grid-packages/ag-grid-docs/documentation/src/components/example-runner/index-html-helper.js | ceolter/ag-grid | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { withPrefix } from 'gatsby';
import VanillaTemplate from './VanillaTemplate';
import AngularTemplate from './AngularTemplate';
import ReactTemplate from './ReactTemplate';
import VueTemplate from './VueTemplate';
import { getEntryFile } f... |
app/common/containers/dev-tools.js | jaketrent/photo-surf | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
>
<LogMonitor />
</Do... |
packages/material-ui/src/TableBody/TableBody.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType } from '@material-ui/utils';
import withStyles from '../styles/withStyles';
import Tablelvl2Context from '../Table/Tablelvl2Context';
export const styles = {
/* Styles applied to the root el... |
desktop-application/node_modules/material-ui/src/muiThemeable.js | santosh-surya/pcb-cnc-machine | import React from 'react';
import getMuiTheme from './styles/getMuiTheme';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function muiThemeable(WrappedComponent) {
const MuiComponent = (props, {muiTheme = getMuiTheme()}) =>... |
docs/app/Examples/elements/List/ContentVariations/ListExampleFloatedHorizontal.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleFloatedHorizontal = () => (
<div>
<List floated='right' horizontal>
<List.Item disabled href='#'>© GitHub, Inc.</List.Item>
<List.Item href='#'>Terms</List.Item>
<List.Item href='#'>Privacy</List.Item>
<Li... |
test/utils/bootstrapUtilsSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import tbsUtils, { bsStyles, bsSizes, _curry } from '../../src/utils/bootstrapUtils';
import { render, shouldWarn } from '../helpers';
describe('bootstrapUtils', ()=> {
function validatePropType(propTypes, prop, value, match) {
let result = propTypes[prop]({ [prop]: value }, prop, 'Co... |
src/routes.js | TackleboxBeta/betabox-seed | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { routerActions } from 'react-router-redux';
import { UserAuthWrapper } from 'redux-auth-wrapper';
import { App, Home, NotFound } from 'containers';
import getRoutesUtils from 'utils/routes';
// eslint-disable-next-line import/no-dynam... |
front-end/src/component/skills/react_icon.js | axelmichael11/website | // import './skills.scss'
import React from 'react'
export default React.createClass({
render(){
return(
<svg viewBox="0 0 128 128" className="skills-icons">
<path d="M64 81.7c7.3 7.1 14.5 11.3 20.3 11.3 1.9 0 3.7-.4 5.2-1.3 5.2-3 7.1-10.5 5.3-21.2-.3-1.9-.7-3.8-1.2-5.8 2-.6 3.8-1.2 5.6-1.8 10.1-3.9 15.7... |
node_modules/material-ui/svg-icons/places/golf-course.js | meetdheeraj/NewsAggregator | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
springboot/GReact/src/main/resources/static/app/routes/graphs/containers/FlotCharts.js | ezsimple/java | import React from 'react'
import FlotChart from '../../../components/graphs/flot/FlotChart'
import request from 'then-request'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
export default class FlotCharts extends React.Component {
state = {};
componentWillMount() {
... |
lib/jquery-1.7.2.min.js | sdepold/jquery.google-search | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
packages/material-ui-icons/templateSvgIcon.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment>{{{paths}}}</React.Fragment>
, '{{componentName}}');
|
src/components/NavBar.js | nitrog7/nl-fluid | import React from 'react';
import { Link } from 'react-router';
export default class NavBar extends React.Component {
static get propTypes() {
return {
active: React.PropTypes.string,
items: React.PropTypes.array,
router: React.PropTypes.object,
user: React.PropTypes.object
};
}
... |
ajax/libs/ionic/0.9.24/js/ionic.js | BitsyCode/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.24
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
window.ioni... |
docs/src/pages/premium-themes/tweeper/components/atoms/Avatar.js | Kagami/material-ui | import React from 'react';
import cx from 'classnames';
import MuiAvatar from '@material-ui/core/Avatar';
import { AVATAR } from '../../theme/core';
const Avatar = ({ className, bordered, link, small, medium, ultraLarge, ...props }) => (
<MuiAvatar
className={cx(
AVATAR.root,
className,
bordere... |
packages/material-ui-icons/src/InsertDriveFileSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4.01 2L4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z" />
, 'InsertDriveFileSharp');
|
stories/MultiSelect/ExampleStandard.js | nirhart/wix-style-react | import React from 'react';
import MultiSelect from 'wix-style-react/MultiSelect';
import styles from './ExampleStandard.scss';
import isstring from 'lodash.isstring';
const options = [
{value: 'Alabama', id: 'Alabama', tag: {label: 'Alabama'}},
{value: 'Alaska', id: 'Alaska'},
{value: <div className={styles.opti... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base-debug.js | CosmicWebServices/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/apps/dynamicUI/component/checkbox.js | ziaochina/reactMonkey | import React from 'react'
import ReactDOM from 'react-dom'
import classNames from 'classnames'
import assign from 'object-assign'
import {Map} from 'immutable'
import {Checkbox} from 'xComponent'
export default class CheckboxComponent extends React.Component {
static defaultProps = {
prefixCls: 'z-checkbox'
... |
ajax/libs/yui/3.9.0pr3/scrollview-base/scrollview-base-debug.js | upgle/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
src/components/game/board/game-piece.js | aautem/aa | import React from 'react';
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import { Text, Dimensions } from 'react-native';
const { width: viewportWidth, height: viewportHeight } = Dimensions.get('window');
// USE VIEWPORT DIMENSIONS IN ANIMATION SETTINGS
const animateDrop =... |
examples/js/selection/select-bgcolor-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 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;
products.push({
id: id,
... |
ajax/libs/6to5/1.12.6/browser.js | gereon/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
demo/src/examples/Advanced.js | effektif/react-mentions | import React from 'react'
import { compose, withHandlers } from 'recompose'
import { MentionsInput, Mention } from '../../../src'
import { provideExampleValue } from './higher-order'
import defaultStyle from './defaultStyle'
import defaultMentionStyle from './defaultMentionStyle'
import { merge } from '../../../src... |
src/Input.js | BespokeInsights/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
core/dslmcode/shared/drupal-7.x/libraries/jmol/jsmol/j2s/J/adapter/smarter/Resolver.js | heyMP/elmsln | Clazz.declarePackage ("J.adapter.smarter");
Clazz.load (null, "J.adapter.smarter.Resolver", ["java.lang.Float", "java.util.StringTokenizer", "javajs.api.GenericBinaryDocument", "JU.LimitedLineReader", "$.PT", "J.adapter.smarter.AtomSetCollectionReader", "$.SmarterJmolAdapter", "J.api.Interface", "JU.Logger", "JV.JC"], ... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | mjasinski5/dashboardWookiees | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
admin/client/components/ItemsTable/ItemsTableCell.js | tony2cssc/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
getDefaultProps () {
return {
className: '',
};
},
render () {
const className = `ItemList__col ${this.props.className}`;
return (
<td {...this.pro... |
ajax/libs/react-virtualized/6.3.0/react-virtualized.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("react"),require("react-dom")):e.ReactVirtualized=t(e.React,e.ReactDO... |
ajax/libs/video.js/4.10.2/video.dev.js | FaiblUG/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.
*
... |
src/components/views/elements/MemberEventListSummary.js | aperezdc/matrix-react-sdk | /*
Copyright 2016 OpenMarket Ltd
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
Unless required by applicable law or agreed to in writing, software
... |
examples/basic-usage-guide/MyForm.js | mkatanski/strap-forms | import React from 'react'
import Form from './components/Form'
import Input from './components/Input'
import SubmitButton from './components/SubmitButton'
const apiSimulate = ms => new Promise(resolve => setTimeout(resolve, ms))
class MyForm extends React.Component {
handleSubmit = ({ values }) => {
// eslint-... |
ajax/libs/zxcvbn/1.0/zxcvbn.js | hristozov/cdnjs | (function(){var w,p,q,x,J,K,L,M,N,O,P,Q,y,s,z,R,S,T,U,V,W;P=function(b){var a,d;d=[];for(a in b)d.push(a);return 0===d.length};y=function(b,a){return b.push.apply(b,a)};V=function(b,a){var d,c,e,f,g;f=b.split("");g=[];c=0;for(e=f.length;c<e;c++)d=f[c],g.push(a[d]||d);return g.join("")};R=function(b){var a,d,c,e;d=[];c=... |
src/components/nonuse/matchAgentPanelTemp.js | gordongordon/hom | import React from 'react'
import { NoticeBar, List, Card, Stepper, Icon, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl } from 'antd-mobile';
import { createForm } from 'rc-form';
// import moment from 'moment';
// import 'moment/locale/zh-cn';
import { agentModel } from '... |
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js | sashberd/cdnjs | /*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
elcri.men/src/pages/acerca.js | diegovalle/new.crimenmexico | import React from 'react';
import Helmet from 'react-helmet';
import Layout from '../components/layout';
import Footer from '../components/Footer';
import SEO from '../components/SEO';
import TextColumn from '../components/TextColumn';
import {useIntl, FormattedHTMLMessage} from 'react-intl';
import {FaFileDownload} f... |
src/components/video_list.js | Pochwar/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = props => {
const videoItems = props.videos.map(video => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}
/>
)
});
return (
<ul c... |
src/containers/unit/ModeLine/TopBar/MobileView/ArticleBar/index.js | mydearxym/mastani | import React from 'react'
import ImgFallback from '@/widgets/ImgFallback'
import {
Wrapper,
InnerWrapper,
BaseInfo,
Title,
Avatar,
} from '../../../styles/top_bar/mobile_view/article_bar'
const ArticleBar = ({ visible, viewingArticle }) => {
const { author, title } = viewingArticle
return (
<Wrapp... |
src/components/registration/TitleBar.js | Vasyl1989/Opus.ua | import React from 'react';
import { Link } from 'react-router';
const TitleBar = () => {
return (
<div id="titlebar" className="single">
<div className="container">
<div className="sixteen columns">
<h2>Мій акаунт</h2>
<nav id="breadcrumbs">
<ul>
<li>В... |
src/js/components/icons/base/LinkTop.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/NavItem.js | react-materialize/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
const NavItem = ({ divider, ...props }) => {
if (divider) return <li className="divider" />;
return <a {...props} />;
};
NavItem.propTypes = {
/**
* children can be a string value or a node
*/
children: PropTypes.oneOfType([PropTypes.string,... |
pyxis/views/beacon/new.js | gtkatakura/furb-desenvolvimento-plataformas-moveis |
import React from 'react';
import { Alert, Text, View, Button, StyleSheet, ScrollView } from 'react-native';
import Components from './../../components';
const styles = StyleSheet.create({
base: {
padding: 24,
flex: 1
},
header: {
marginBottom: 16
},
title: {
fontSize: 24
}
});
class NewB... |
webapp/client/scripts/main.js | tfink419/southeast-fl-jews | 'use strict';
import React from 'react';
import { Router, Route, Link } from 'react-router';
import history from './utils/History.js';
//location: process.env.NODE_ENV === 'production' ? HashLocation : HistoryLocation,
//var router = require('./router'),
var routes = require('./routes'),
UIActions = require('./a... |
5.1.0/src/examples/ObjectSelect.js | erikras/redux-form-docs | import React, { Component, PropTypes } from 'react'
/**
* Serializes and deserializes complex values to and from JSON
*
* Disclaimer: For demo purposes only!! Using <select multiple> is very awkward.
*/
class ObjectSelect extends Component {
render() {
const { multiple, onBlur, onChange, options, value, ...r... |
lib/component-library-slides/slideList.js | waynecraig/encoding-present | import React from 'react';
import Intro from './Intro';
import Why from './Why';
import What from './What';
import Characteristics from './Characteristics';
import DevEnvironment from './DevEnvironment';
import StatefulApi from './StatefulApi';
import StatelessApi from './StatelessApi';
import StrictProps from './Stri... |
techCurriculum/ui/solutions/4.7/src/index.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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
*
* Unless required by applicable law or agreed to in writ... |
app/javascript/mastodon/features/ui/components/video_modal.js | Ryanaka/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleHeader.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleHeader = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Item... |
Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js | xiayz/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examp... |
src/Parser/Rogue/Subtlety/Modules/Talents/DarkShadow/DarkShadowEvis.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import DarkShadow from './DarkShadow';
class DarkShadowEvis exte... |
app-new-ui/app.js | Orientsoft/borgnix-cloud-ide | import React from 'react'
import ThemeManager from './theme'
import ProjectManager from './project-manager'
import Toolbar from './toolbar'
import Editor from './editor'
import Terminals from './terminals'
class App extends React.Component {
constructor(props) {
super(props)
this.state = {
}
}
com... |
src/ui/form/button/button.js | josmardias/frontend-boilerplate | import React from 'react'
import FlatButton from 'material-ui/FlatButton'
import RaisedButton from 'material-ui/RaisedButton'
const Button = ({
label,
primary = false,
}) => {
if (!primary) {
return (
<FlatButton
label={label}
/>
)
}
return (
<RaisedButton
label={label}... |
front/js/components/app.component.js | austinbourdier/react-rails-blog | import Navbar from '../containers/navbar.container';
/**
* @fileOverview The App component.
*/
import React from 'react';
export default class App extends React.Component {
render() {
const pathname = window.location.pathname;
const loginOrRegister = pathname.includes('login') || pathname.includes('regist... |
ajax/libs/yasqe/2.2.6/yasqe.bundled.min.js | js-data/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
ajax/libs/highmaps/1.1.3/highcharts.src.js | terrymun/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.3 (2015-02-27)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
src/index.js | varatep/anax-ui | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRedirect, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
import * as actions from './actions';
import mainStore from './stor... |
src/index.js | Jehsee/reduxBlog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from './c... |
__tests__/index.ios.js | gziny/windsurf-community-mobile | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/aui/7.0.0-beta-3/aui/js/aui-experimental.js | tholu/cdnjs | /*!
* @atlassian/aui - Atlassian User Interface Framework
* @version v7.0.0-beta-3
* @link https://docs.atlassian.com/aui/latest/
* @license SEE LICENSE IN LICENSE.md
* @author Atlassian Pty Ltd.
*/
// src/js/aui/polyfills/placeholder.js
(typeof window === 'undefined' ? global : window).__f152229d596ee70258ea6251... |
challenge6/start/node_modules/browserify/node_modules/syntax-error/node_modules/esprima-six/assets/codemirror/codemirror.js | tashoecraft/node-workshop | // CodeMirror version 2.32
//
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
// This is the function that produce... |
client/src/app/components/graphs/morris/MorrisGraph.js | zraees/sms-project | import React from 'react'
import _ from 'lodash'
import 'script-loader!raphael'
import 'morris.js/morris.js'
export default class MorrisGraph extends React.Component {
componentDidMount() {
this.renderChart(this.props.data)
}
componentWillReceiveProps(nextProps) {
this.renderChart(nextProps.data)
}
... |
src/media/js/addon/components/addon.js | diox/marketplace-content-tools | import moment from 'moment';
import React from 'react';
import {ReverseLink} from 'react-router-reverse';
import urlJoin from 'url-join';
import * as constants from '../constants';
import {PageSection} from '../../site/components/page';
/*
* Add-on component to extend from.
*/
export class Addon extends React.Com... |
client/src/screens/new-group.screen.js | srtucker22/chatty | import { _ } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
ActivityIndicator,
Button,
Image,
StyleSheet,
Text,
View,
} from 'react-native';
import { graphql, compose } from 'react-apollo';
import AlphabetListView from 'react-native-alpha-listview';
imp... |
src/containers/App/App.spec.js | CyberKronos/social-trading-web-app | import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import App from './App'
import styles from './styles.module.css'
describe('<App />', () => {
let wrapper;
let history = {};
beforeEach(() => {
wrapper =
shallow(<App history={history}/>)
})
it('has a Router c... |
Examples/Movies/SearchBar.ios.js | hydraulic/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,
... |
admin/client/App/shared/Portal.js | dryna/keystone-twoje-urodziny | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
src/svg-icons/communication/stay-current-portrait.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
src/svg-icons/image/panorama-wide-angle.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaWideAngle = (props) => (
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12... |
src/ui/GanttItemName.js | TalesM/taskblob | import React from 'react';
import './GanttItemName.css'
export default function(props) {
let name;
const submit = (ev) => {
if(props.onSubmit){
props.onSubmit(ev);
}
}
const reset = (ev) => {
if(props.onReset){
props.onReset(ev);
}
}
const keydown = (ev) => {
switch (ev.key)... |
ajax/libs/forerunnerdb/1.3.615/fdb-core.min.js | tonytomov/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... |
packages/generator-electron/template/src/renderer/containers/Login.js | abouthiroppy/dish | // @flow
import * as Redux from 'redux';
import { connect } from 'react-redux';
import * as actions from '../actions/auth';
import Login from '../components/pages/Login';
import type { State } from '../types/states';
type StateProps = {
mail: string;
};
type DispatchProps = {
login: (string) => {};
};
const ma... |
src/snowflake.js | bartonhammond/snowflake | 'use strict'
/**
* # snowflake
* Snowflake 
*/
/**
* ## imports
*
*/
/**
* ### React
*
* Necessary components from ReactNative
*/
import React from 'react'
import {
AppRegistry,
StyleSh... |
websrc/cacti-user/src/components/MapGroup.js | howardjones/network-weathermap | import React from 'react';
import {connect} from 'react-redux';
import GroupTabs from './GroupTabs';
import MapCollection from './MapCollection';
import LinksFooter from './LinksFooter';
import ModeSelector from './ModeSelector';
const MapGroup = ({match}) => {
return (
<div className="MapGroup layoutbo... |
example/src/views/modal/components/status/status.js | UgnisSoftware/react-subrouter | import React from 'react';
export default class extends React.Component{
render() {
return (
<div className="content">
Status Content
</div>
);
}
}
|
ajax/libs/react-data-grid/0.14.12/react-data-grid-with-addons.js | dada0423/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... |
webroot/rsrc/js/application/uiexample/ReactorSendPropertiesExample.js | AceMood/phabricator | /**
* @provides phabricator-uiexample-reactor-sendproperties
* @requires javelin-install
* javelin-dom
* javelin-reactor-dom
*/
JX.install('ReactorSendPropertiesExample', {
extend: 'View',
members: {
render: function() {
var color = JX.$N('input', {value: '#fff000'});
var t... |
src/components/VoteInput.spec.js | Abdelmageed/voter | import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import {FormControl, Button, HelpBlock} from 'react-bootstrap';
import VoteInput from './VoteInput';
let wrapper,
sandbox = sinon.sandbox.create(),
spyMakeNewOption,
spyGetOptionNameValidatio... |
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... |
website/src/pages/index.js | rackt/react-redux | import React, { useEffect } from 'react'
import classnames from 'classnames'
import Layout from '@theme/Layout'
import Link from '@docusaurus/Link'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
import useBaseUrl from '@docusaurus/useBaseUrl'
import useThemeContext from '@theme/hooks/useThemeContex... |
react-redux-i18n-starter-kit/src/containers/DevToolsWindow.js | josedab/react-examples | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
fiddles/react/fiddle-0008-ListComponent/src/App.js | bradyhouse/house | import React, { Component } from 'react';
import './App.css';
import Blog from './blog/Blog';
class App extends Component {
render() {
const posts = [
{id: 1, title: 'Hello World', content: 'Welcome to learning React!'},
{id: 2, title: 'Installation', content: 'You can install React from npm.'}
... |
app/javascript/mastodon/components/check.js | koba-lab/mastodon | import React from 'react';
const Check = () => (
<svg width='14' height='11' viewBox='0 0 14 11'>
<path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='currentColor' fillRule='evenodd' />
</svg>
);
export default Check;
|
src/static/utils/requireAuthentication.js | CRUDNS/CRUDNS | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
export default function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
static propTypes = {
isAuthenticated: React.PropTypes.bool.isRequired,
... |
src/pages/DayOf/Announcements.js | BoilerMake/frontend | import React, { Component } from 'react';
import moment from 'moment';
class Announcements extends Component {
componentDidMount() {
this.props.fetchAnnouncements();
setInterval(() => {
this.props.fetchAnnouncements();
}, 5 * 60 * 1000);
}
render() {
return (
<div className="col-9">... |
src/components/app.js | Full-Metal-JS/reserver-space | import React, { Component } from 'react';
import DevTools from './devTools';
class App extends Component {
render() {
let devTools = process.env.NODE_ENV === 'development' ? <DevTools/> : '';
return (
<div>
{this.props.children}
{devTools}
</div>
);
}
}
export default... |
examples/js/column-filter/text-filter.js | AllenFang/react-bootstrap-table | /* eslint max-len: 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;
products.push({
id: id,
... |
App/views/CaretakerRolesMenu/CaretakerRolesMenu.spec.js | araneforseti/caretaker-app | import React from 'react';
import CaretakerRolesMenu from './CaretakerRolesMenu';
import UserGateway, { Permissions } from '../../data/UserGateway';
import CaretakerRolesGateway from '../../data/CaretakerRoles/CaretakerRoles.gateway';
import CaretakerRolesFixture from '../../data/CaretakerRoles/CaretakerRoles.fixture';... |
test/indexSpec.js | Sententiaregum/sententiaregum-flux-react | /*
* This file is part of the Sententiaregum project.
*
* (c) Maximilian Bosch <maximilian.bosch.27@gmail.com>
* (c) Ben Bieler <benjaminbieler2014@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
import ... |
docs/app/Examples/elements/Step/States/index.js | jamiehill/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const States = () => (
<ExampleSection title='Groups'>
<ExampleSection title='States'>
<ComponentExample
title='Act... |
src/scenes/SearchResults/components/Pagination/index.js | galsen0/hair-dv-front | /**
* Created by diop on 06/05/2017.
*/
import React from 'react';
import { Menu, Icon } from 'semantic-ui-react';
const BottomPagination = () => {
return(
<Menu floated='right' pagination>
<Menu.Item as='a' icon>
<Icon name='left chevron' />
</Menu.Item>
... |
ajax/libs/rxjs/2.3.21/rx.compat.js | underyx/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
};
... |
app/shared/routes.react.js | kkworden/node-iso | import React from 'react';
import Router from 'react-router';
import {App} from '../client/app.react';
import {Faq} from '../client/home/faq.react';
import {Home} from '../client/home/home.react';
var DefaultRoute = Router.DefaultRoute;
var Route = Router.Route;
///--------------///
var routes = (
<Route name="app... |
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | rhaedes/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
const DatePickerExampleSimple = () => (
<div>
<DatePicker hintText="Portrait Dialog" />
<DatePicker hintText="Landscape Dialog" mode="landscape" />
<DatePicker hintText="Dialog Disabled" disabled={true} />
</div>
);
export def... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.