path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
app/javascript/mastodon/components/status.js | mecab/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import MediaGallery from... |
packages/material-ui-icons/src/ControlPointRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 7c-.55 0-1 .45-1 1v3H8c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V8c0-.55-.45-1-1-1zm0-5C... |
sites/all/modules/clientside_validation/clientside_validation_captcha/plugins/validator/js/captcha.cv.js | ItalforniUSAInc/Issues | /*jshint strict:true, browser:true, curly:true, eqeqeq:true, expr:true, forin:true, latedef:true, newcap:true, noarg:true, trailing: true, undef:true, unused:true */
/*global Drupal: true, jQuery: true*/
/**
* @file
* Decimal comma validator.
*/
(function ($, document, Drupal) {
"use strict";
//Define a Drupal b... |
src/svg-icons/content/save.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSave = (props) => (
<SvgIcon {...props}>
<path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>
</Svg... |
ajax/libs/vue/2.0.0-beta.4/vue.js | seogi1004/cdnjs | /*!
* Vue.js v2.0.0-beta.4
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, fu... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | gauravjeet/movies | /*!
* 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.
... |
client/app/containers/HomePage/index.js | jjt/ffsssshh | /*
* HomePage
* This is the first thing users see of our App
*/
import React from 'react';
import { connect } from 'react-redux';
import { routeActions } from 'react-router-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { createSelector } from 'reselect';
import usernameSelector... |
src/svg-icons/device/battery-charging-50.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging50 = (props) => (
<SvgIcon {...props}>
<path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V... |
packages/material-ui-icons/src/BlurOffRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><circle cx="14" cy="6" r="1" /><path d="M13.8 11.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.28zM14 3.5... |
src/components/reflorp.js | tomat/react-reflorp | import React, { Component } from 'react';
import { connect as defaultRefetch } from 'react-refetch';
import { connect as redux } from 'react-redux';
import hoistStatics from 'hoist-non-react-statics';
import { refetchPrefix } from '../ConfigurationHelper';
const defaultMapPropsToEntities = () => ({});
const defaultOpt... |
components/NewWordForm/NewWordForm.js | nelseric/fhack-yo | import React, { Component } from 'react';
import Actions from '../../lib/Actions';
import WordStore from '../../lib/WordStore';
class NewWordForm extends Component {
constructor(){
super();
this.state = {newWord: ""};
this._handleNewWordChange = this._handleNewWordChange.bind(this);
this._handleFormS... |
lib/ui/src/components/notifications/item.stories.js | storybooks/react-storybook | import React from 'react';
import NotificationItem from './item';
export default {
component: NotificationItem,
title: 'UI/Notifications/Item',
decorators: [storyFn => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>],
excludeStories: /.*Data$/,
};
export const simpleData = {
id: '1',
co... |
src/app/core/atoms/icon/icons/drugs.js | blowsys/reservo | import React from 'react'; const Drugs = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M14,17 C14,18.103 13.103,19 12,19 C10.897,19 10,18.103 10,17 L10,12 L14,12 L14,17 Z M12,3 C11.724,3 11.454,3.028 11.194,3.081 C10.673,3.188 10.189,3.396 9.764,3.683 C9.551,3.827 9.352,3.991 9.172,4.172 C8.81,4.534 8.5... |
src/js/app/index.js | wendy0402/hyperion | import React from 'react'
import hyperionStore from './store/index'
import { render} from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/app'
import { History } from './model/history'
import { initializeHistory } from './actions/producer_history'
render(
<Provider store={hyperionSto... |
packages/material-ui-icons/src/RedeemSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 6h-4.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 ... |
src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.js | carloscuesta/gitmoji | import React from 'react'
import renderer from 'react-test-renderer'
import useLocalStorage from '../useLocalStorage'
import * as stubs from './stubs'
const TestComponent = ({ storageKey, storageValue }) => {
useLocalStorage(storageKey, storageValue)
return null
}
Object.defineProperty(window, 'localStorage', {... |
webapp/webpack.config.js | hfcc/rflove | module.exports = {
entry: './webapp/src/index.js',
output: {
path: './webapp/bin',
filename: 'index.bundle.js'
},
module:{
loaders: [
{
test: /\.js?$/,
loader: 'babel-loader',
query: {
presets: ['es20... |
app/containers/HomePage/sagas.js | Ennovar/clock_it | /**
* Gets the repositories of the user from Github
*/
import { take, call, put, select, cancel, takeLatest } from 'redux-saga/effects';
import { LOCATION_CHANGE } from 'react-router-redux';
import { LOAD_REPOS } from 'containers/App/constants';
import { reposLoaded, repoLoadingError } from 'containers/App/actions';... |
src/components/RightPane.js | gj262/noaa-coops-viewer | import PropTypes from 'prop-types'
import React from 'react'
import YearSelector from 'components/YearSelector'
import './RightPane.scss'
export default class RightPane extends React.Component {
static propTypes = {
years: PropTypes.array,
width: PropTypes.number.isRequired
}
render () {
return (
... |
ajax/libs/primereact/8.1.0/speeddial/speeddial.cjs.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/button"),n=require("primereact/hooks"),r=require("primereact/ripple"),i=require("primereact/utils");function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((funct... |
ajax/libs/jquery.fancytree/2.6.0/jquery.fancytree-all.min.js | kellyselden/cdnjs | /*! jQuery Fancytree Plugin - 2.6.0 - 2014-11-29T08:33
* https://github.com/mar10/fancytree
* Copyright (c) 2014 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!function... |
ajax/libs/js-data/1.5.6/js-data-debug.js | HealthIndicators/cdnjs | /*!
* js-data
* @version 1.5.6 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
ajax/libs/golden-layout/1.5.7/goldenlayout.min.js | jonobr1/cdnjs | !function(t){var e={config:{},container:{},controls:{},errors:{},items:{},utils:{}};e.utils.F=function(){},e.utils.extend=function(t,i){t.prototype=e.utils.createObject(i.prototype),t.prototype.contructor=t},e.utils.createObject=function(t){return"function"==typeof Object.create?Object.create(t):(e.utils.F.prototype=t,... |
src/svg-icons/av/featured-play-list.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
newclient/scripts/components/notifications/app.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
internals/templates/containers/HomePage/index.js | carney520/lg-react-boilerplate | /*
* 首页
* @flow
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import injectHomePage from './injectHomePage'
class HomePage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render () {
return (<div>
<h1>... |
src/containers/pages/home/forum/post-snippet/post.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import _ from 'lodash';
import {wrapDate} from "../../../../../utils/wrap-date";
import {stripDomains} from "../../../reddit/utils/posts";
import Icon from "../../../../../components/icon";
const PostSnippet = ({post,... |
plugin/react.js | adoyle-h/eslint-config-adoyle-style | 'use strict';
const util = require('../lib/util');
util.checkPlugin('eslint-plugin-react');
module.exports = {
plugins: [
'react',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
// View link below for react rules documentation
// https://github.com/ya... |
src/Row.js | chrishoage/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
app/javascript/mastodon/components/short_number.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
ajax/libs/react-dom/16.5.0/cjs/react-dom.production.min.js | jonobr1/cdnjs | /** @license React v16.5.0
* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
'use strict';var aa=require("rea... |
public/assets/active_admin.js | bmclean/prelaunch | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function(e,t){"use strict";function _(e){var ... |
src/components/NotFound.js | sunya9/follow-manager | import React from 'react';
export default () => (
<div>
</div>
);
|
example/TestCaseList.js | CubeSugar/react-native-GPUImage | 'use strict';
import React, { Component } from 'react';
import {
View,
StyleSheet,
ListView,
Text,
TouchableHighlight,
} from 'react-native';
import {Actions} from 'react-native-router-flux';
import TestCases from './TestCases';
class TestCaseList extends Component {
constructor(props) {
... |
tajo-core/tajo-core-backend/src/main/resources/webapps/static/js/jquery.js | apache/incubator-tajo | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
examples/stress-test.js | Monadical-SAS/redux-time | import React from 'react'
import ReactDOM from 'react-dom'
import Button from 'react-bootstrap/lib/Button'
import {createStore, combineReducers} from 'redux'
import {Provider, connect} from 'react-redux'
import {ExpandableSection} from 'monadical-react-components/node/expandable-section'
import {AnimationControls} fr... |
node_modules/react-bootstrap/es/ModalBody.js | CallumRocks/ReduxSimpleStarter | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/src/app/components/pages/components/IconMenu/Page.js | matthewoates/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... |
assets/jqwidgets/demos/react/app/calendar/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js';
class App extends React.Component {
render() {
return (
<div style={{ minWidth: 200, minHeight: 200, width: '30%', height: '30%' }}>
<JqxCalenda... |
app/src/containers/SearchScreen.js | joshlevy89/pinclone | import React, { Component } from 'react';
import { connect } from 'react-redux'
import { search_friends } from '../actions'
import WaitingDisplay from '../components/WaitingDisplay'
import ResultsList from '../components/ResultsList'
import SearchBar from '../components/SearchBar'
import { Link } from 'react-router'
re... |
modules/messages/client/components/InboxThread.js | Trustroots/trustroots | import { useTranslation } from 'react-i18next';
import PropTypes from 'prop-types';
import React from 'react';
import Avatar from '@/modules/users/client/components/Avatar.component';
import TimeAgo from '@/modules/core/client/components/TimeAgo';
import { userType } from '@/modules/users/client/users.prop-types';
ex... |
markbin/client/components/bins/bins_list.js | saitai0802/meteor-basic | import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { Bins } from '../../../imports/collections/bins';
import { Link } from 'react-router';
class BinsList extends Component {
onBinRemove(bin) {
Meteor.call('bins.remove', bin);
}
renderList() {
ret... |
src/main/app/scripts/views/NotFound.js | ondrejhudek/hudy-app | import React from 'react'
import { Link } from 'react-router'
import { Card, RaisedButton } from 'material-ui'
import BackIcon from 'material-ui/lib/svg-icons/navigation/arrow-back'
class NotFoundView extends React.Component {
render() {
return (
<Card className="card-404">
<div... |
app/javascript/mastodon/features/community_timeline/index.js | foozmeat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshCommunityTimeline,
... |
ajax/libs/mediaelement/2.3.3/jquery.js | fatso83/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/core.js | Cu7ious/Twitch-App | import React from 'react'
import { render } from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import * as reducers from './reducers'
import thunk from 'redux-thunk'
// ** EDUCATIONAL ** //
// ping middleware ... |
app/javascript/mastodon/features/status/index.js | h3zjp/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { createSelector } from 'reselect';
import { fetchStatus } from '../../actions/... |
RN HotUpdate/SmartHomeII/SmartHome/CommView/NavigatorItem.js | HarrisLee/React-Native-Express | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
Platform,
Navigator,
Image,
TouchableHighlight,
} from 'react-native';
export default class NavigatorItem extends Component {
constructor(props) {
super(props);
this.state = {
left: this.pr... |
src/website/app/demos/Form/FormFieldset/bestPractices.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { FormField, FormFieldset } from '../../../../../library/Form';
import TextInput from '../../../../../library/TextInput/';
import DemoLayout from '../../common/DemoLayout';
import type { BestPractices } from '../../../pages/ComponentDoc/types';
const bestPractices: BestPr... |
ui/src/components/onboarding/Step1AdminUser.js | damianmoore/photo-manager | import React from 'react'
import { useForm } from 'react-hook-form'
import { useStateMachine } from 'little-state-machine'
import { Stack } from '@chakra-ui/core'
import updateAction from './updateAction'
import Modal from './../Modal'
import ModalForm from '../ModalForm'
import ModalField from '../ModalField'
const ... |
test/CarouselSpec.js | yuche/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Carousel from '../src/Carousel';
import CarouselItem from '../src/CarouselItem';
describe('Carousel', function () {
it('Should show the correct item', function () {
let instance = ReactTestUtils.renderIntoDocument(
<C... |
ajax/libs/rxjs/2.3.18/rx.all.compat.js | tomsoir/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/app.js | Generic35/ScalableReactRedux | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
packages/@vega/submissions-tool/src/components/SubmissionsTool.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import ArticleList from './ArticleList'
export default class SubmissionsTool extends React.Component<*, *> {
render() {
return <ArticleList />
}
}
|
app/components/FeedsList.js | andela-tkomolafe/feed-finder | import React from 'react'
import '../../stylesheets/modules/feedslist.css'
export default class FeedsList extends React.Component {
render() {
return (
<div className='feeds'>
{this.props.feeds ? <List feeds={this.props.feeds.feed} /> : <p>Unable to load feed, Incorrect path or invalid feed.</p>}
... |
src/esm/components/graphics/icons/title-4-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var Title4Icon = function Title4Icon(_ref) {
var color = _re... |
techCurriculum/ui/solutions/2.5/src/components/Message.js | jennybkim/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... |
ajax/libs/primereact/7.0.1/image/image.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { CSSTransition } from 'primereact/csstransition';
import { ZIndexUtils, DomHandler, classNames, ObjectUtils } from 'primereact/utils';
import { Portal } from 'primereact/portal';
import PrimeReact from 'primereact/api';
function _classCallCheck(instance, Constructor) {... |
uiexplorer/examples/Carousel.js | tipsi/tipsi-ui-kit | import React from 'react'
import { View, Text } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import register from '../core/utils/register'
import { Carousel } from '../../src'
/* eslint react/prop-types: 0 */
const Wrapper = ({ children }) => (
<View style={{ borderRadius: 5, backgrou... |
ajax/libs/angular-google-maps/1.0.18/angular-google-maps.js | thesandlord/cdnjs | /*! angular-google-maps 1.0.18 2014-04-02
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
files/usr/share/cinnamon/applets/user@cinnamon.org/applet.js | aldatsa/Cinnamon | //System Shutdown and Restart Applet by Shelley
const Cinnamon = imports.gi.Cinnamon;
const Applet = imports.ui.applet;
const Lang = imports.lang;
const St = imports.gi.St;
const PopupMenu = imports.ui.popupMenu;
const Util = imports.misc.util;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio
const AccountsServ... |
ajax/libs/yasgui/1.0.16/yasgui.min.js | codfish/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.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
extensions/finance/components/StockTicker.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import styles from './style.css'
import Async from '../../../client/components/Async'
import {client} from '../../../client/middleware/graphql'
const Card = (props) => <Async {...props} expose="Card"
load={import(/* web... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | johnslay/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonResults-test.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/Parser/Monk/Brewmaster/Modules/Items/SalsalabimsLostTunic.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import Combatants from 'Parser/Core/Modules/Combatants';
/**
* The Brewmas... |
client/src/presentationals/Video.js | Socialsquare/dr-bybilleder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import PlayIcon from '../svgs/play.svg';
export default class Videos extends Component {
static propTypes = {
videos: PropTypes.array.isRequired,
background: PropTypes.object.isRequired,
muteAllPlayers: PropTypes.func.isRequir... |
files/videojs/5.0.0-23/video.js | Asaf-S/jsdelivr | /**
* @license
* Video.js 5.0.0-23 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ve... |
client/lib/components/pages/ControlPanel/UsersRegistration.js | blckt/diploma | import React from 'react';
import { findDOMNode } from 'react-dom';
import { series } from 'async';
import {
Row,
Col,
Grid,
FormGroup,
FormControl,
ControlLabel,
Form,
ProgressBar,
Button
} from 'react-bootstrap';
import Table from '../../TableView';
import 'whatwg-fetch';
import { showError } from '... |
ajax/libs/clappr/0.0.89/clappr.js | callumacrae/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);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)... |
ajax/libs/yui/3.3.0pr1/loader/loader-base.js | bootcdn/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
lib/components/MapCircle.js | amitv87/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The coordinate of the center of the circle
*... |
js/jquery.js | mightyGaby/Luke-Lax | /*! 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... |
vendor/ngReact/karma.config.js | jzinma/jzinma.github.io | module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '.',
frameworks: ['jasmine', 'browserify'],
// list of files / patterns to load in the browser
files: [
'node_modules/angular/angular.js',
'ngReact.js',
'test... |
__tests__/components/Quote-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Quote from '../../src/js/components/Quote';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Quote', () => {
i... |
src/svg-icons/maps/train.js | verdan/material-ui | 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/routes.js | Carlado/Indieling | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import App from './components/app';
import Search from './components/Search';
import Artists from './containers/Artists';
import Tracks from './containers/Tracks';
import Albums from './containers/Albums';
import ArtistPage from './containers... |
ajax/libs/F2/1.3.3/f2.min.js | Pranay92/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - 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 obt... |
src/containers/Index/Home.js | vivaxy/react-scaffold | /**
* @since 2016-10-23 14:48
* @author vivaxy
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button } from 'react-pianist/Button';
import setTitle from '../../lib/setTitle';
import Logo from '../../components/Logo';
import DemoBut... |
docs/app/Examples/collections/Menu/States/MenuExampleHover.js | koenvg/Semantic-UI-React | import React from 'react'
import { Menu } from 'semantic-ui-react'
const MenuExampleHover = () => {
return (
<Menu compact>
<Menu.Item as='a'>A link</Menu.Item>
<Menu.Item link>div Link</Menu.Item>
</Menu>
)
}
export default MenuExampleHover
|
ajax/libs/reactive-coffee/1.0.0/reactive-coffee.min.js | raszi/cdnjs | (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,ab,bb,cb,db,eb,fb=[].slice,gb={}.hasOwnProperty,hb=function(a,b){function c(){this.constructor=a}for(var d in b)gb.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b... |
src/components/betting/moderation/RacerInput.js | Spriithy/tmc2017 | import React from 'react';
import './moderation.css';
export default class RacerInput extends React.Component {
constructor(props) {
super(props);
this.state = { value: '' };
}
handleValidate = (event) => {
event.preventDefault();
this.setState({ value: '' });
if (this.state.value.trim(... |
src/index.js | dgladkov/arcomage.js | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import { setupGame } from './actions';
import App from './containers/App';
import reducer fro... |
packages/material-ui-icons/src/AddAlertOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zM12 6c2.76 0 5 2.24 5 5v7H7v-7c0-2.76 2.24-5 5-5zm0-4.5c-.83 0-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-2 2v1h18v-1l-2-2v-6c0-3.35-2.3... |
packages/material-ui-icons/src/WavesRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 16.99c-1.35 0-2.2.42-2.95.8-.65.33-1.18.6-2.05.6-.9 0-1.4-.25-2.05-.6-.75-.38-1.57-.8-2.95-.8s-2.2.42-2.95.8c-.43.22-.81.41-1.27.52-.45.1-.7... |
ajax/libs/react-dom/15.2.0/react-dom.min.js | him2him2/cdnjs | /**
* ReactDOM v15.2.0
*
* Copyright 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/AddModule.spec.js | NUS-Workload-Predictor/front-end | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import configureStore from 'redux-mock-store';
const fetch = require('isomorphic-fetch');
import App from '../containers/App';
const middlewares = [];
const mockStore = configureStore(middlewares);
function setup() {... |
packages/material-ui-icons/src/Label.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Label = props =>
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z" />
</SvgIcon>;
Label... |
src/compose/CameraRollView.js | kunall17/zulip-mobile | /* @flow */
import React, { Component } from 'react';
import { CameraRoll, Image, ListView } from 'react-native';
import groupByEveryN from 'react-native/Libraries/Utilities/groupByEveryN';
import CameraPhotoList from './CameraPhotoList';
type AssetType = 'Photos' | 'Videos' | 'All';
type Props = {
assetType: Asse... |
assets/search-employee-view/components/TopActionComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Actions from '../../DataStore/Actions';
class TopActionComponent extends Component{
render() {
const floatStlye = {
float: 'right',
paddin... |
wp-includes/js/jquery/jquery.js | frederic3476/applisun | /*! 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... |
test/ColSpec.js | Firfi/meteor-react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Col from '../src/Col';
describe('Col', function () {
it('Should set Offset of zero', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} />
);
... |
client/frontpage/app.js | dengcqw/ParseWebPageList |
import ReactDOM from 'react-dom'
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Layout, Menu, Breadcrumb, Icon, Button, Radio, Alert } from 'antd';
const { SubMenu } = Menu;
const { Header, Content, Sider } = Layout;
import { HotListTabs } from './... |
src/renderers/shared/event/eventPlugins/__tests__/ResponderEventPlugin-test.js | musofan/react | /**
* 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 directory.
*
* @emails react-co... |
components/Calendar/CalendarItem/CalendarItem.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import momentPropTypes from 'react-moment-proptypes';
import moment from 'moment';
import css from './CalendarItem.css';
const defaultDate = moment();
export const defaultClassNames = {
root: css.root,
today: css.today,
... |
[4]. Project/DianShang/Component/Home/SJHomeDetail.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
var HomeDetail = React.createClass({
render() {
return (
<... |
app/components/PowerToggle.js | desheffer/equalizer | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import style from './PowerToggle.css';
export default class PowerToggle extends Component {
static propTypes = {
power: PropTypes.bool.isRequired,
setPower: PropTypes.func.isRequired,
};
handlePowerToggle = (evt)... |
client/components/utils/container.js | guyonroche/quaero | import React, { Component } from 'react';
// A Container component is one that reacts to and controls Redux state
// This base class subscribes to the store state.
// Derived classes can supply a transform to restructure the state if it needs
// to be extended.
class Container extends Component {
constructor(props,... |
src/components/structures/login/LanguageSelector.js | aperezdc/matrix-react-sdk | /*
Copyright 2018 New Vector 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
... |
src/components/InterviewQuestions/Create.js | jmichelin/interview-frontend | /**
* Created by jmichelin on 12/28/16.
* TODO form to add interview questions
*/
import React from 'react';
class InterviewQuestionCreate extends React.Component {
constructor(props) {
super(props);
this.state = {
"genre": '',
"title": '',
"timeToAnswer": 1,
"questionText"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.