target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
ajax/libs/yui/3.7.2/event-custom-base/event-custom-base-coverage.js | ripple0328/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... |
ajax/libs/angular-google-maps/2.0.22/angular-google-maps_dev_mapped.js | holtkamp/cdnjs | /*! angular-google-maps 2.0.22 2015-06-10
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
node_modules/browserify/node_modules/syntax-error/node_modules/acorn/test/compare/traceur.js | jcheron/angular-samples | (function(global) {
'use strict';
if (global.$traceurRuntime) {
return;
}
var $Object = Object;
var $TypeError = TypeError;
var $create = $Object.create;
var $defineProperties = $Object.defineProperties;
var $defineProperty = $Object.defineProperty;
var $freeze = $Object.freeze;
var $getOwnPrope... |
packages/bonde-styleguide/src/assets/BrazilMap/BrazilMap.js | ourcities/rebu-client | import React from 'react'
const applyMargin = (margin) => ({
marginLeft: margin.left || margin.x || 0,
marginRight: margin.right || margin.x || 0,
marginTop: margin.top || margin.y || 0,
marginBottom: margin.bottom || margin.y || 0
})
const BrazilMap = ({ size, width, height, margin }) => (
<svg
xmlns='... |
ajax/libs/ionic/0.9.16-alpha/js/ionic.js | perdona/cdnjs | /*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.14
* 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.ionic... |
ajax/libs/yui/3.3.0pr4/event/event-focus.js | menuka94/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
ajax/libs/foundation/4.0.8/js/vendor/jquery.min.js | deanmalmgren/cdnjs | (function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan... |
components/com_hoso/js/jquery/jquery-1.4.2.min.js | phucnhdnict/cbcc_050515 | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/d3components/Point.js | nbuechler/friendly-finder | import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
import _ from 'underscore';
export default class Point extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
_handleOver(d) {
if(d.isLineChart == 1) {
ReactDOM.findDOMNode(this).parentE... |
src/components/Group.js | ericyd/surfplot-ui | /**
* Group is a relatively simple container with an optional title
* that collapses the group when clicked. It will render the title
* if this.props.title exists.
*/
'use strict';
import React, { Component } from 'react';
import Arrow from '../icons/Arrow';
// used for adding hover effect to group__header
import... |
client/src/index.js | 2DV603NordVisaProject/nordvisa_calendar | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
|
src/ModalHeader.js | yuche/react-bootstrap |
import React from 'react';
import classnames from 'classnames';
class ModalHeader extends React.Component {
render() {
return (
<div
{...this.props}
className={classnames(this.props.className, this.props.modalClassName)}
>
{ this.props.closeButton &&
<button
... |
packages/next/shared/lib/loadable.js | JeromeFitz/next.js | /**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
MIT License
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, c... |
ajax/libs/react-data-grid/1.0.53/react-data-grid.ui-plugins.js | him2him2/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... |
ajax/libs/react-data-grid/0.12.10/react-data-grid-with-addons.js | him2him2/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["ReactDataGrid"] = f... |
src/components/search_bar.js | jeffshen18/React-Course | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {term: ''};
}
render() {
// console.log(this.state);
return (
<div className="search-bar">
<input
value = {this.state.term}
onChange ... |
src/encoded/static/components/fetched.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import * as globals from './globals';
export class Param extends React.Component {
constructor() {
super();
this.state = {
fetchedRequest: undefined,
};
this.receive = this.receiv... |
ajax/libs/react/0.13.0-beta.1/JSXTransformer.js | redmunds/cdnjs | /**
* JSXTransformer v0.13.0-beta.1
*/
!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.JSXTransform... |
src/Navigation/Navigation.js | brz0/chart-suite | import React from 'react';
import ReactTooltip from 'react-tooltip';
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
export default class Navigation extends React.Component {
componentDidMo... |
packages/material-ui-icons/src/Delete.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Delete');
|
src/components/Home/Ticker/Ticker.js | franciskim722/crypy | import React from 'react';
import PropTypes from 'prop-types';
import TickerClock from './TickerClock';
import './Ticker.scss';
export default class Ticker extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render(){
return (
<div className="crypy-home-to... |
internals/templates/containers/HomePage/index.js | svangordon/latrones-cli | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
assets/plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.js | suman-cn/school | /*! X-editable - v1.4.5
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag... |
src/components/ContentDropdown/spec.js | quran/quran.com-frontend | import React from 'react';
import { mountWithIntl } from '../../../tests/helpers/intl-enzyme-test-helper.js';
import ContentDropdown, { slugs } from './index';
let wrapper;
let onOptionChange = sinon.stub();
const defaultOption = 19;
describe('<ContentDropdown />', () => {
beforeEach(() => {
onOptionChange = s... |
src/icons/font/WebIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Web Icon button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const WebIcon = (props, context) => {
let theme =
... |
react-components/src/library/components/assign-to-class/assign-to-class.js | concord-consortium/rigse | import React from 'react'
import ReactDOM from 'react-dom'
import Modal from '../../helpers/modal'
import AssignModal from './assign-modal'
import css from './style.scss'
const openModal = (type, properties = {}, closeFunc) => {
const modalContainerSelector = '#' + css.assignModal
let modalContainer = jQuery(moda... |
ajax/libs/rxjs/2.2.20/rx.lite.compat.js | itvsai/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
};
v... |
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
es2015/exercises/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-object-super/node_modules/babel-runtime/node_modules/core-js/client/core.js | sabustamante/frontend-training | /**
* core-js 1.2.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
public/pages/StepsPage.js | dynamicform/dynamicform-react-client | /**
* Created by KangYe on 2017/4/26.
*/
import React from 'react';
import {connect} from 'react-redux';
import {Steps, Button, message } from 'antd';
const Step = Steps.Step;
import '../css/Steps.css';
import DynamicForm from '../../src/components/DynamicForm';
function mapStateToProps(store) {
return {
... |
app/App.js | basask/react-router-material-ui-seed | import React from 'react';
import ReactDom from 'react-dom';
import Routes from './components/Routes';
import './stylesheet/index.scss';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
ReactDom.render(
<Routes />,
document.getElementById('app')
);
|
ajax/libs/react-select/1.0.0-beta2/react-select.js | dada0423/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}... |
src/icons/RowingIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class RowingIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M17 29l-9 9 3 3 7-7h4l-5-5zM30 2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm12 40.02L36 48l-5.98-6.02V... |
src/Components/video_list.js | JoshHarris85/React-Video-Player | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
// mapping every video to its own li
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
... |
ajax/libs/vis/0.6.0/vis.js | calebmer/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 0.6.0
* @date 2014-03-05
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
src/components/ListItem.js | aaroncraigongithub/jsla-talk | import React from 'react';
import PropTypes from 'prop-types';
import {
Checkbox,
ListItem as UIListItem,
} from 'material-ui';
import Star from 'material-ui/svg-icons/toggle/star';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
import { yellow500 } from 'material-ui/styles/colors';
import { ite... |
docs/_build/html/_static/jquery.js | materialsvirtuallab/pyhull | /*! jQuery v1.11.1 | (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/routes/Oppgave1Fasit/components/Oppgave1View.js | andreasnc/summer-project-tasks-2017 | import React from 'react';
import StarWarsCharacter from './StarWarsCharacter';
import Oppgave1Text from './Oppgave1Text';
const character = require('../data.json');
const Oppgave1View = () => (
<div>
<h4>Oppgave 1</h4>
<Oppgave1Text />
<StarWarsCharacter
{...character}
/>
</div>
);
export d... |
src/svg-icons/maps/local-grocery-store.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGroceryStore = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-... |
test/CollapsableMixinSpec.js | Azerothian/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CollapsableMixin from '../src/CollapsableMixin';
import classNames from 'classnames';
import {shouldWarn} from './helpers';
describe('CollapsableMixin', function () {
let Component, instance;
beforeEach(function(){
Compo... |
ajax/libs/yui/3.3.0pr2/event/event-focus-debug.js | 2947721120/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
icons/device/battery-20.js | jinzhubaofu/melon-material-icons | 'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var DeviceBattery20 = React.createClass({
displayName: 'DeviceBattery20',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M... |
ajax/libs/F2/1.3.0/f2.no-bootstrap.min.js | hanbyul-here/cdnjs | /*! F2 - v1.3.0 - 09-16-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
src/icons/Filter8Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Filter8Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 10H2v32c0 2.21 1.79 4 4 4h32v-4H6V10zm36-8H14c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 ... |
examples/with-redux-persist/store.js | zeit/next.js | import { useMemo } from 'react'
import { createStore, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import { persistReducer } from 'redux-persist'
import storage from 'redux-persist/lib/storage'
let store
const exampleInitialState = {
lastUpdate: 0,
light: false,
... |
examples/with-react-esi/src/components/Weather.js | BlancheXu/test | import React from 'react'
/**
* Return the weather. This component is not loaded on the homepage, to test that getInitialProps works client-side too.
*/
export default class Weather extends React.Component {
static async getInitialProps ({ props, req, res }) {
// Fetch the weather from a remote API, it may tak... |
src/components/form/InputPath.js | ashmaroli/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TextareaAutosize from 'react-textarea-autosize';
import moment from 'moment';
export default class InputFilename extends Component {
handleChange(e){
const { onChange } = this.props;
onChange(e.target.value);
}
render(... |
packages/material-ui-icons/src/CameraRearTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 16h10V2H7v14zm4.99-13c1.1 0 2 .9 2 2C14 6.1 13.1 7 12 7c-1.11 0-2-.9-2-2s.89-2 1.99-2z" opacity=".3" /><path d="M5 20v2h5v2l3-3-3-3v2zm9 0h5v2h-5zm5-18c0-1.1-.9-2-2-2H7C5.9 0 5 .9 5... |
src/components/DateIntervalPicker/DateIntervalPicker.js | denimar/denibudget | const moment = require('moment');
import React from 'react'
import { Glyphicon, Button } from 'react-bootstrap';
const DateRangePicker = require('react-bootstrap-daterangepicker/lib');
import './daterangepicker.css';
import FaCalendarMinusO from 'react-icons/lib/fa/calendar';
import './DateIntervalPicker.scss';
import ... |
web/src/routes/not-found/index.js | kriasoft/Web-App-Boilerplate | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/app/modules/components/AppBar.js | lili668668/lili668668.github.io | import React from 'react'
import PropTypes from 'prop-types'
import { compose } from 'recompose'
import { withRouter } from "react-router"
import { useTranslation } from 'react-i18next/hooks'
import { withStyles } from '@material-ui/core/styles'
import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import AccountCir... |
ajax/libs/clappr/0.0.23/clappr.js | dada0423/cdnjs | require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
site/src/components/list.js | ajfisher/ajfisher.me | import { Link, useStaticQuery, graphql} from 'gatsby';
import React from 'react';
import styled from 'styled-components';
import humanize from 'humanize-plus';
import moment from 'moment';
import Img from 'gatsby-image';
import { device } from './devices';
import { pathDate } from '../lib/utils';
export const ListI... |
packages/insights-web/src/scenes/explorer/sidebar/models/index.js | mariusandra/insights | import React from 'react'
import { useActions, useValues } from 'kea'
import { Empty, Icon, Tree } from 'antd'
import HighlightText from 'lib/utils/highlight-text'
import connectionLogic from '../../connection/logic'
import explorerLogic from '../../logic'
import logic from './logic'
const { TreeNode } = Tree;
exp... |
src/svg-icons/av/surround-sound.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSurroundSound = (props) => (
<SvgIcon {...props}>
<path d="M20 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-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4... |
ajax/libs/react-instantsearch/5.7.0/Dom.js | sufuf3/cdnjs | /*! React InstantSearch 5.7.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
ajax/libs/jquery-mobile/1.4.4/jquery.mobile.js | owcc/cdnjs | /*!
* jQuery Mobile 1.4.4
* Git HEAD hash: b4150fb1c561b614da796c210877fb25e74cf622 <> Date: Fri Sep 12 2014 16:43:26 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and othercontributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory )... |
src/main/resources/src/js/App.js | OSBI/meteorite-core-ui | /**
* Copyright 2016 OSBI 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 ... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Listing/ApiThumb.js | abimarank/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/pages/places/MeetingPoint.js | ayltai/fishing-club | // @flow
'use strict';
import React from 'react';
import muiThemeable from 'material-ui/styles/muiThemeable';
import { Card, CardMedia, CardTitle, CardText } from 'material-ui/Card';
import LazyLoad from 'react-lazy-load';
import ReactGA from 'react-ga';
import './MeetingPoint.css';
import RaftEveningImage from '../..... |
ajax/libs/Hyphenator/4.0.0/patterns/en-gb.min.js | BenjaminVanRyseghem/cdnjs | Hyphenator.languages["en-gb"]={leftmin:2,rightmin:3,specialChars:"",patterns:{3:"sw2s2ym1p2chck1cl2cn2st24sss1rzz21moc1qcr2m5q2ct2byb1vcz2z5sd3bs1jbr4m3rs2hd2gbo2t3gd1jb1j1dosc2d1pdr2dt4m1v1dum3w2myd1vea2r2zr1we1bb2e2edn1az1irt2e1fe1j4aya4xr1q2av2tlzd4r2kr1jer1m1frh2r1fr2er1bqu44qft3ptr22ffy3wyv4y3ufl21fo1po2pn2ft3fut1... |
packages/mineral-ui-icons/src/IconFullscreen.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 IconFullscreen(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
packages/material-ui-icons/src/ZoomOutOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5... |
src/utils/rnw-compat/BaseText.js | ProAI/react-essentials | /**
* Forked from: https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Text/index.js
*
* We had to fork this file from react-native-web because of the following reasons:
* - Check for blockOnly
* - Usage of custom tags
* - Internally usage of deprecated className prop for... |
src/common/containers/Account.js | strekmann/samklang | import React from 'react';
import Immutable from 'immutable';
import moment from 'moment';
import translator from '../../server/lib/translator';
import { connect } from 'react-redux';
import { saveUser } from '../actions/user';
import { Grid, Row, Col, Button, Input, Alert, FormControls } from 'react-bootstrap';
class... |
8-css-inline/src/App.js | mariusz-malinowski/tutorial-react | import React, { Component } from 'react';
import initialState from './data';
import TodoList from './TodoList';
import TodoDetails from './TodoDetails';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import reducer from './reducer';
import createHistory from 'history/createBrowserHistory';... |
src/components/ListItem/index.js | ultimagriever/manager | import React, { Component } from 'react';
import { Text, TouchableWithoutFeedback, View, Image } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { CardSection } from '../';
import styles from './styles';
export default class ListItem extends Component {
onRowPress() {
Actions.empl... |
packages/material-ui-icons/src/FormatShapes.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-5.27 9h-3.49l-.73 2H7.89l3.4-9h1.4l3.4... |
src/svg-icons/communication/voicemail.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
app/javascript/mastodon/features/account_timeline/components/moved_note.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
ajax/libs/graphiql/0.4.0/graphiql.min.js | sympmarc/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(... |
src/components/Pill/Pill.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Pill from 'components/Pill/Pill.react';
export const component = Pill;
export const d... |
stories/containers/channels/node-card-list.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { NodeCardList } from 'components/Channels'
import { Provider } from '../../Provider'
const nodeClicked = action('onClick')
storiesOf('Containers.Channels', module)
.addDecorator(story => ... |
test/DropdownButtonSpec.js | deerawan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
describe('DropdownButton', function() {
const simpleD... |
examples/src/app.js | snowkeeper/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
packages/docs/components/Examples/video/SimpleVideoEditor/index.js | nikgraf/draft-js-plugin-editor | import React, { Component } from 'react';
import { EditorState, convertFromRaw } from 'draft-js';
import Editor from '@draft-js-plugins/editor';
import createVideoPlugin from '@draft-js-plugins/video';
import editorStyles from './editorStyles.module.css';
const videoPlugin = createVideoPlugin();
const { types } = vide... |
src/sheetElems/textAnswer/ApprovedInput.js | lukaszmakuch/quiz | import React from 'react';
import TextField from 'material-ui/TextField';
export default ({corrected: {value}}) => <span> - <TextField
className="answerUI"
data-answer-type="textAnswer"
value={value}
disabled
/></span> |
src/views/Bundle.js | STMU1320/dedao-demo | import React from 'react'
class Bundle extends React.Component {
state = {
// short for "module" but that's a keyword in js, so "mod"
mod: null,
};
componentWillMount () {
this.load(this.props)
}
componentWillReceiveProps (nextProps) {
if (nextProps.load !== this.props.load) {
this.lo... |
src/components/NostroAgreements.js | coeniebeyers/QuorumNostroDemo | import React from 'react'
import AddNostroAgreement from '../containers/AddNostroAgreement'
import NostroAgreementList from '../containers/NostroAgreementList'
import NavBar from '../components/NavBar'
const NostroAgreements = () => (
<div>
<NavBar />
<AddNostroAgreement />
<NostroAgreementList />
</di... |
Libraries/Text/Text.js | brentvatne/react-native | /**
* Copyright (c) 2015-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.
*
* @provides... |
ajax/libs/draft-js/0.8.1/Draft.js | iwdmb/cdnjs | /**
* Draft v0.8.1
*
* 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 directo... |
test/ListGroupItemSpec.js | glenjamin/react-bootstrap | import React from 'react';
import { mount } from 'enzyme';
import ListGroupItem from '../src/ListGroupItem';
describe('<ListGroupItem>', () => {
it('should output a div', () => {
mount(<ListGroupItem />).assertSingle('div.list-group-item');
});
it('accepts variants', () => {
mount(<ListGroupItem varian... |
src/AddMod.js | jschirrmacher/cosmoteer-mod-editor | import React from 'react'
class AddMod extends React.Component {
constructor(props) {
super(props)
this.data = {}
}
postNewMod(data, success, error) {
if (!data.id || !data.name || !data.author || !data.version) {
this.setState({error: 'Please fill in all fields!'})
... |
webpack/rules/javascript.js | avloss/reactGo | const PATHS = require('../paths');
module.exports = ({ production = false, browser = false } = {}) => {
const enableHotModuleReplacement = !production && browser;
const createPresets = enableHotModuleReplacement => {
const presets = ['es2015', 'react', 'stage-0'];
return enableHotModuleReplacement ? ['reac... |
map/src/containers/Details/components/InitiativeDescription.js | teikei/teikei | import React from 'react'
import PropTypes from 'prop-types'
import i18n from '../../../i18n'
import BadgesList from './BadgesList'
const GoalItem = (goal) => <li key={goal}>{goal}</li>
const InitiativeDescription = ({ feature }) => {
const {
properties: { goals },
} = feature
return (
<div>
<ul>... |
public/plugins/bower_components/Magnific-Popup-master/website/third-party-libs/jquery.js | pistoolero/KFSE-Training-Service | /*!
* 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-4
*/
(function( window, undefined ) {
// Can't do t... |
scenes/change-account.js | APU-Flow/FlowApp | // change-account.js
// Flow
'use strict';
import React, { Component } from 'react';
import { StyleSheet, Text, Alert, View, TouchableHighlight } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import ModalDropdown from 'react-native-modal-dropdown';
export defa... |
src/containers/PuzzleSet.js | LaunchAcademy/name-game | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { fetchIdentities } from '../modules/Identity'
import PuzzleStatistics from './PuzzleStatistics'
import GuessFeedback from './GuessFeedback'
import GiveUpFeedback from './GiveUpFeedback'
import GameOver fro... |
packages/vx-demo/components/tiles/lines.js | Flaque/vx | import React from 'react';
import { Group } from '@vx/group';
import { LinePath } from '@vx/shape';
import { curveMonotoneX } from '@vx/curve';
import { genDateValue } from '@vx/mock-data';
import { scaleTime, scaleLinear } from '@vx/scale';
import { extent, max } from 'd3-array';
function genLines(num) {
return new... |
ajax/libs/flocks.js/0.14.2/flocks.js | bootcdn/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react'... |
src/components/IssueTable/IssueTable.js | IndyXTechFellowship/Cultural-Trail-Web | import React from 'react';
import classes from './IssueTable.scss';
import _ from 'lodash'
// components
import { Table } from 'react-bootstrap';
import IssueRow from './IssueRow';
const renderIssueRow = (props) => {
const hasData = _.has(props, 'issues')
if(hasData && props.issues !== undefined){
return prop... |
ui/src/core/components/FooterItem.js | Baransu/erlangpl | // @flow
import React from 'react';
import { OverlayTrigger, Popover } from 'react-bootstrap';
type Props = {
title: string,
id: string,
item: ?React$Element<any>,
popover: ?React$Element<any>
};
const FooterItem = ({ title, item, popover, id }: Props) => {
return (
<div className="Footer-item">
... |
packages/material-ui-icons/src/Router.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1l.8-.8zM19 13h-2V9h-2v... |
src/components/auth/signout.js | juthatip/authentication-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions'
class Signout extends Component {
componentWillMount() {
this.props.signoutUser();
}
render() {
return <div>Sorry to see you go</div>;
}
}
export default connect(n... |
src/svg-icons/device/brightness-auto.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessAuto = (props) => (
<SvgIcon {...props}>
<path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ... |
packages/reactor-kitchensink/src/examples/Charts/Bar/StackedBar/StackedBar.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
Ext.require([
'Ext.chart.interactions.PanZoom',
'Ext.chart.series.Bar',
'Ext.cha... |
app/components/myLogPane.js | JustinBeckwith/trebuchet | import React from 'react';
import * as AppEvents from './../machines/appEvents';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import FlatButton from 'material-ui/FlatButton';
import IconButton from 'material-ui/IconButton';
import CloseIcon from 'material-ui/svg-icons/... |
stories/src/registerServiceWorker.js | Vizzuality/care_usa | // In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a page, since previously... |
pages/glossary.js | maven-hackathon/TheQueerTour | import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Glossary</h1>
<p>Coming soon.</p>
</div>
);
}
}
|
packages/material-ui-icons/legacy/FormatColorTextSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".36" d="M0 20h24v4H0v-4z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /></React.Fragment>
, 'FormatColorTextSharp');
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.