path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/Hexagon/Hexagon.js | Hellenic/react-hexgrid | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Hex from '../models/Hex';
import HexUtils from '../HexUtils';
class Hexagon extends Component {
static propTypes = {
q: PropTypes.number.isRequired,
r: PropTypes.number.isRequired,
s:... |
test/binTest/mvvcSolution2/src/ReactReduxProject/examplePage/controller/index.js | Terry-Su/MVVC | import { Controller as SuperController } from '../../__share/controller/index'
import React from 'react'
import {
render
} from 'react-dom'
// redux
import {
createStore,
applyMiddleware
} from 'redux'
// react-redux
import {
Provider
} from 'react-redux'
import reducer from '../reducer/index'
import middlewa... |
src/components/__tests__/InfoBar-test.js | kahn1990/redux-project-example | import React from 'react';
import ReactDOM from 'react-dom';
import {renderIntoDocument} from 'react-addons-test-utils';
import { expect} from 'chai';
import { InfoBar } from 'components';
import { Provider } from 'react-redux';
import {reduxReactRouter} from 'redux-router';
import createHistory from 'history/lib/creat... |
node_modules/rc-switch/es/Switch.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
src/svg-icons/communication/phone.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61... |
ajax/libs/forerunnerdb/1.3.883/fdb-legacy.min.js | redmunds/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/image/crop-portrait.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
ajax/libs/angular-google-maps/2.1.0-X.4/angular-google-maps_dev_mapped.js | dryajov/cdnjs | /*! angular-google-maps 2.1.0-X.4 2015-03-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 grante... |
App/ui/components/Footer.js | CaipiLabs/caipi | /*
* Copyright (c) 2018. Wise Wild Web
*
* This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
* Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
*
* @author : Nathanael Braun
* @contact : caipilabs@gmail.com... |
packages/minimongo/package.js | emmerge/meteor | Package.describe({
summary: "Meteor's client-side datastore: a port of MongoDB to Javascript",
version: '1.0.9-plugins.0'
});
Package.onUse(function (api) {
api.export('LocalCollection');
api.export('Minimongo');
api.export('MinimongoTest', { testOnly: true });
api.use(['underscore', 'ejson', 'id-map', 'or... |
src/icons/WidgetsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class WidgetsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M26 26v16h16V26H26zM6 42h16V26H6v16zM6 6v16h16V6H6zm27.31-2.63L22 14.69 33.31 26l11.31-11.31L33.31 3.37z"/... |
src/text/__tests__/Text.js | fengshanjian/react-native-komect-uikit | import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import Text from '../Text';
describe('Text Component', () => {
it('should render without issues', () => {
const component = shallow(<Text />);
expect(component.length).toBe(1);
expect(toJson(component)).toM... |
app/components/member/Row.js | buildkite/frontend | // @flow
import React from 'react';
import { createFragmentContainer, graphql } from 'react-relay/compat';
import Panel from 'app/components/shared/Panel';
import UserAvatar from 'app/components/shared/UserAvatar';
import Badge from 'app/components/shared/Badge';
import Emojify from 'app/components/shared/Emojify';
im... |
fields/types/color/ColorColumn.js | concoursbyappointment/keystoneRedux | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
example/examples/AnimatedMarkers.js | amitv87/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width / screen.height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
files/rxjs/2.3.8/rx.lite.extras.js | Sneezry/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
src/svg-icons/maps/train.js | barakmitz/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.... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
src/index.js | medja/ovs-prirocnik | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import 'styles/base.css';
import 'styles/fonts.css';
import 'styles/katex.css';
import Document from 'components/document';
const title = 'Priročnik za Osnove Verjetnosti in Statistike';
const subtitle = 'Organiziran vodič metanja... |
src/components/Feedback/Feedback.js | buildbreakdo/react-starter-kit | /**
* 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 withStyles from 'isom... |
src/client/entity-editor/annotation-section/annotation-section.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2020 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is ... |
Frontend/src/components/error.js | vinitraj10/Django-React-Blog | import React from 'react';
const Err = () => (
<div className="columns">
<div className="column col-xs-6">
<span className="label label-error">primary label</span>
</div>
</div>
);
export default Err;
|
geonode/contrib/monitoring/frontend/src/components/molecules/ws-service-select/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
import actions from './actions';
const mapStateToProps = (state) => ({
services: state.wsServices.response,
select... |
ajax/libs/yui/3.7.1/event-focus/event-focus-debug.js | NBZ4live/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* 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,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
... |
react-flux/demo04/src/root.js | majunbao/xue | import AppContainer from './AppContainer';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(<AppContainer />, document.getElementById('root')); |
src/svg-icons/hardware/keyboard-arrow-left.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft);
Hardware... |
ajax/libs/react-grid-layout/0.13.6/react-grid-layout.min.js | joeyparrish/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactGridLayout=e(require("react"),require("react-dom")):t.ReactGridLayout=e(t.React,t.ReactDOM)... |
frontend/src/components/options/sign-in-credentials/change-email.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import Button from 'misago/components/button'; // jshint ignore:line
import Form from 'misago/components/form';
import FormGroup from 'misago/components/form-group'; // jshint ignore:line
import ajax from 'misago/services/ajax';
import snackbar from 'misago/services/snac... |
src/svg-icons/editor/border-horizontal.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z... |
pimcore/static6/js/lib/ext/ux/statusbar/ValidationStatus.js | daaquan/pimcore | /**
* A {@link Ext.ux.statusbar.StatusBar} plugin that provides automatic error
* notification when the associated form contains validation errors.
*/
Ext.define('Ext.ux.statusbar.ValidationStatus', {
extend: 'Ext.Component',
requires: ['Ext.util.MixedCollection'],
/**
* @cfg {String} error... |
packages/mineral-ui-icons/src/IconSlideshow.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 IconSlideshow(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
packages/material-ui-icons/src/PermDeviceInformationSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zM5 1v22h14V1H5zm12 18H7V5h10v14z" /></React.Fragment>
, 'PermDeviceInformationSharp');
|
docs/client/components/pages/Alignment/SimpleAlignmentEditor/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
// eslint-disable-next-line import/no-unresolved
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
// eslint-disable-next-line import/no-unresolved
import createAlignmentPlugin from 'draft-js-alignm... |
app/Root.js | rclai/redux-blog-example | /* eslint-env browser */
/* global process */
import React from 'react';
import { Router } from 'react-router';
import { Provider } from 'react-redux';
import cookie from './utils/cookie';
import routes from './routes';
import { routerStateChange } from './actions/router';
import { createRedux } from './utils/redux';
... |
modules/field_ui/field_ui.js | elblasto/www | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
fields/types/geopoint/GeoPointField.js | kloudsio/keystone | var React = require('react'),
Field = require('../Field');
module.exports = Field.create({
displayName: 'GeopointField',
focusTargetRef: 'lat',
valueChanged: function(which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
path: this.props.path,
value: this.props.value
... |
ajax/libs/ScrollMagic/2.0.0/ScrollMagic.js | barkinet/cdnjs | /*!
* ScrollMagic v2.0.0 (2015-02-26)
* The javascript library for magical scroll interactions.
* (c) 2015 Jan Paepke (@janpaepke)
* Project Website: http://janpaepke.github.io/ScrollMagic
*
* @version 2.0.0
* @license Dual licensed under MIT license and GPL.
* @author Jan Paepke - e-mail@janpaepke.de
*
* @f... |
tests/layouts/PageLayout.spec.js | EricThsi/thsi-react-admin | import React from 'react'
import PageLayout from 'layouts/PageLayout/PageLayout'
import { shallow } from 'enzyme'
describe('(Layout) PageLayout', () => {
it('renders as a <div>', () => {
shallow(<PageLayout />).should.have.tagName('div')
})
it('renders a project title', () => {
shallow(<PageLayout />).f... |
modules/samples/capps/Httpd_Log_Analytics/Gadget_Country_Code_1.0.0/Country_Vs_Request/js/jquery.js | Thanu/product-bam | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/components/common/section.js | liuyuanquan/kankan | import React from 'react';
import SectionHeader from './sectionheader.js';
import SectionContent from './sectioncontent.js';
import PicSwitch1 from './picswitch1.js';
import PicGrid from './picgrid.js';
import RankList1 from './ranklist1.js';
class Section extends React.Component {
render() {
let leftarea = this.pr... |
frontend/src/components/frame/components/MaxWidth.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core';
const MAX_WIDTH = 996;
const styles = theme => ({
root: {
width: '100%',
},
container: {
margin: '0 auto 0 auto',
paddingLeft: '24px',
paddingRight: '24px',
maxWidth: MAX_WIDTH,
... |
assets/js/components/Loader.js | ramakrishnamukku/europa | /*
@author Sam Heutmaker [samheutmaker@gmail.com]
*/
import React, { Component } from 'react';
export default class Loader extends Component {
render(){
return (
<div className="small-spinner">
<div className="bounce1">⬢</div>
<div className="bounce2">⬢</div>
... |
dac/ui-lib/src/components/FormikSelect/FormikSelect.spec.js | dremio/dremio-oss | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
src/Value.js | realestate-com-au/react-select | import React from 'react';
import classNames from 'classnames';
const Value = React.createClass({
displayName: 'Value',
propTypes: {
children: React.PropTypes.node,
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect
id: React.PropTypes.string, // Unique id ... |
src/components/post_show.js | bestii/Blog-App-React-Redux-Route | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPost, deletePost } from '../actions';
class PostShow extends Component {
componentDidMount() {
// React router passes URL param information as the props to the component th... |
Dockerfiles/node/nodeapp/src/Modules/MachineOverview.js | 4lexBaum/projekt-5s-dhbw | import React from 'react';
import { Machine } from '../Components/Machine.js';
import { MachineData } from '../Components/MachineData.js';
import { Header } from '../Components/Header.js';
import { ERPData } from '../Components/ERPData.js';
import { SpectralData } from '../Components/SpectralData.js';
export class Ma... |
react-flux-mui/js/material-ui/src/svg-icons/av/subscriptions.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubscriptions = (props) => (
<SvgIcon {...props}>
<path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z"/>
</SvgIcon>
)... |
src/svg-icons/device/gps-off.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsOff = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5... |
lib/common_test/priv/jquery-latest.js | benoitc/otp-1 | /*!
* 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... |
addons/knobs/src/components/types/Select.js | jribeiro/storybook | /* eslint no-underscore-dangle: 0 */
import PropTypes from 'prop-types';
import React from 'react';
const styles = {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'middle',
height: '26px',
width: '100%',
outline: 'none',
border: '1px solid #f7f4f4',
borderRadius: 2,
fontSize: 11,
... |
tests/react_modules/es6class-proptypes-module.js | JonathanUsername/flow | /* @flow */
import React from 'react';
import type {Node} from 'react';
class Hello extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
src/MenuItem.js | zanjs/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
news/components/Nav/MediumNav.js | MiloATH/FreeCodeCamp | import React from 'react';
import Media from 'react-media';
import { Navbar, Row } from 'react-bootstrap';
import FCCSearchBar from 'react-freecodecamp-search';
import NavLogo from './components/NavLogo';
import NavLinks from './components/NavLinks';
import propTypes from './navPropTypes';
function MediumNav({ clickOn... |
src/components/isdbooking/components/orderdetail.js | lq782655835/ReactDemo | import React from 'react';
import { Icon, Tag, Button, Switch, Tooltip } from 'antd';
class OrderDetail extends React.Component {
constructor(props) {
super(props);
this.data = [
{name:'车辆租赁费', price:78, day:2, total: 156},
{name:'基本保险费', price:40, day:2, total: 80},
{nam... |
docs/src/editors/BlankEditor/BlankEditor.js | gocreating/redux-draft | import React, { Component } from 'react';
import { Editor } from 'draft-js';
import { reduxDraft } from '../../../../lib';
import draftConfig from './config';
import 'draft-js/dist/Draft.css';
import './BlankEditor.css';
class BlankEditor extends Component {
render() {
let {
setRef,
editorState,
... |
js/vendor/jquery-1.10.1.min.js | tsubame/TextWindowMaker | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
ajax/libs/x-editable/1.4.6/jqueryui-editable/js/jqueryui-editable.js | wallin/cdnjs | /*! X-editable - v1.4.6
* 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 for... |
app/javascript/mastodon/features/favourites/index.js | WitchesTown/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
wp-content/plugins/contact-form-7-to-database-extension/DataTables/media/js/jquery.js | frammawiliansyah/web | /*! 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===... |
app/components/user/SettingsMenu.js | buildkite/frontend | // @flow
import React from 'react';
import { createFragmentContainer, graphql } from 'react-relay/compat';
import Menu from 'app/components/shared/Menu';
import type { SettingsMenu_viewer } from './__generated__/SettingsMenu_viewer.graphql';
type Props = {
viewer: SettingsMenu_viewer
};
export default class Settin... |
server/game/cards/04.6-TC/QuaitheOfTheShadow.js | DukeTax/throneteki | const DrawCard = require('../../drawcard.js');
const _ = require('underscore');
class QuaitheOfTheShadow extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onCardEntersPlay: event => (
event.card === this &&
this.game.isDuri... |
src/layouts/layout-3-2.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' vertical'} onClick={onClick}>
<div>
{components[0]}
{components[1]}
</div>
{components[2]}
</div>
);
|
app/components/Root.js | DillGromble/grace-shopper | import React from 'react'
import { connect } from 'react-redux'
import Login from './Login'
import WhoAmI from './WhoAmI'
import Navbar from './Navbar'
import Footer from './Footer'
const Root = ({ user, children }) => (
<div>
<Navbar />
<div id="main" className="container-fluid">
{ children }
</d... |
src/components/NotFound.js | danesparza/appliance-monitor-cloud | // React
import React from 'react';
const NotFound = () => (
<div>
404 NOT FOUND
</div>
)
export default NotFound; |
vertex_ui/src/components/ColorPicker/Swatches/SwatchesGroup.js | zapcoop/vertex | import React from 'react';
import reactCSS from 'reactcss';
import map from 'lodash/map';
import SwatchesColor from './SwatchesColor';
export const SwatchesGroup = ({ onClick, onSwatchHover, group, active }) => {
const styles = reactCSS({
default: {
group: {
paddingBottom: '10px',
width: '... |
packages/reactor-conference-app/src/event/Event.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel, TabBar } from '@extjs/ext-react';
import { connect } from 'react-redux';
import { setTitle } from '../actions';
import { loadEvent } from './actions';
import days from '../util/days';
class Event extends Component {
render() {
const { record, heade... |
src/components/common/navigation/SideMenu.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import IntlStore from '../../../stores/Application/... |
wrappers/json.js | murej/ansambel | import React from 'react'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<DocumentTitle title... |
app/routes/Routes.js | ryanwashburne/react-skeleton | // React
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import ScrollToTop from './ScrollToTop';
import Authentication from './Authentication';
import DashboardRoutes from './DashboardRoutes';
import {
HomePage,
SignInPage,
StorePage,
CartPage,
CheckoutPage
} from 'app/containers';
... |
src/index.js | joy-yu/antd-template | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'mobx-react'
import { useStrict } from 'mobx'
import { AppContainer } from 'react-hot-loader'
import axios from 'axios'
import qs from 'qs'
import Router from '~/router'
import { common } from '~/api'
import '~/index.less'
import appSto... |
src/components/InlineLoading/InlineLoading.stories.js | wfp/ui | import React from 'react';
import markdown from './README.mdx';
import InlineLoading from '.';
export default {
title: 'Components/UI Elements/InlineLoading',
component: InlineLoading,
parameters: {
componentSubtitle: 'Component',
status: 'released',
mdx: markdown,
},
};
export const Regular = (ar... |
app/components/data/CompactData.js | ariel-zplinux/data-extractor-mern | import React from 'react';
import {Link} from 'react-router';
export default class CompactData extends React.Component {
render() {
const data = this.props.data;
// const amount = `$${data.amount}\%`;
const amount = data.value ? `${data.value}` : '';
const link = this.calculateLink(... |
packages/material-ui-icons/src/CellWifiTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M22 5.97l-4 4.01v2.8l2-2V20h-2v2h4z" opacity=".3" /><path d="M9.07 11.07L11 13l1.93-1.93c-1.07-1.06-2.79-1.06-3.86 0zm9.01-5.14c-3.91-3.91-10.25-3.91-14.15 0l1.29 1.29c3.19-3.19 8.38-3... |
src/components/ContentPage/ContentPage.js | danagilliann/travel_log | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component, PropTypes } from 'react';
impor... |
src/components/Footer/TwitterIcon.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {Svg} from '../Svg/Svg'
export const TwitterIcon = (props: Object) => (
<Svg {...props}>
<path d="M 50.0625 10.4375 C 48.214844 11.257813 46.234375 11.808594 44.152344 12.058594 C 46.277344 10.785156 47.910156 8.769531 48.675781 6.371094 C 46.691406 7.546875 44.484375 8.... |
src/svg-icons/content/remove.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
ContentRemove.muiName = 'SvgIcon... |
docs/src/CodeExample.js | mcraiganthony/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
ajax/libs/intl-tel-input/6.2.2/js/intlTelInput.js | x112358/cdnjs | /*
International Telephone Input v6.2.2
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($... |
files/knockout.validation/2.0.3/knockout.validation.js | as-com/jsdelivr | /*=============================================================================
Author: Eric M. Barnard - @ericmbarnard
License: MIT (http://opensource.org/licenses/mit-license.php)
Description: Validation Library for KnockoutJS
Version: 2.0.3
===================... |
node_modules/babel-relay-plugin/node_modules/babel-core/browser-polyfill.js | NikZar/fowtools | (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/javascript/wizard/animated_cross_section.js | apertus-open-source-cinema/elmyra | import React from 'react';
import ID from './id.js';
export default class AnimatedCrossSection extends React.Component {
static navigationTitle = 'Animated Cross Section';
constructor(props) {
super(props);
this.state = {
axis: 'z',
levelFrom: 0,
levelTo: 100,
};
}
changeAxis =... |
docs/src/components/Docs/Content/index.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import 'highlight.js/styles/github-gist.css';
import Highlight from '../../Highlight';
import './style.css';
const DocsContent = ({ title, content, editUrl }) => (
<div id="docs-content">
<div className="content">
<h2 className="title">{title}... |
src/svg-icons/hardware/keyboard-hide.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
ajax/libs/analytics.js/2.3.4/analytics.js | jakubfiala/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
app/javascript/mastodon/components/modal_root.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ModalRoot extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
onClose: PropTypes.func.isRequired,
};
state = {
revealed: !!this.props.children,
};
activeElement = this.state.revealed ? ... |
src/components/SearchIcon.js | OpenCollective/frontend | import React from 'react';
const SearchIcon = ({ size = 48, fill = '#FFFFFF', ...props }) => (
<svg width={size} height={size} viewBox="10 10 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" {...props}>
<title>magnifying glass icon</title>
<path
d="M28.5404814,30.1903972 C26.7995948,31.5736628 2... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/brightness-6.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness6 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>
</SvgIcon>
);
ImageBrightness6... |
src/components/Header.js | wmaurer/frontend_pizza_react_redux | import React, { Component } from 'react';
import NewPizza from './NewPizza';
export default class Header extends Component {
render() {
const { addPizza } = this.props;
return (
<header className="mdl-layout__header mdl-layout__header--fixed mdl-color--primary header">
<... |
src/js/components/icons/base/Ticket.js | odedre/grommet-final | /**
* @description Ticket SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pro... |
frontend/src/components/order.js | GreatDevelopers/LibreHatti | import React from 'react';
import Link from '@material-ui/core/Link';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/Tab... |
src/components/MembersPage.js | KingCountySAR/database-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Card, CardHeader } from 'material-ui/Card';
import MembersTable from './MembersTable';
import { memberProp } from '../propTypes';
import Page from './Page';
const MembersPage = ({ members }) => (
<Page>
<Card>
<CardHeader... |
app/components/Markdown/__tests__/Markdown-test.js | PaulDebus/monod | import React from 'react';
import { mount } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
import Markdown from '../index';
// see: https://github.com/mochajs/mocha/issues/1847
const { describe, it } = global;
describe('<Markdown />', () => {
it('renders a block with markdown css class'... |
Libraries/Text/Text.js | orenklein/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... |
src/routes/Devices/components/nodes/City.js | KozlovDmitriy/Pos.Hierarchy.Net | import React from 'react'
import PropTypes from 'prop-types'
import { Group } from '@vx/group'
import Plus from './Plus'
import NodeLabel from './NodeLabel'
import CollapsedNode from './CollapsedNode'
class City extends CollapsedNode {
static propTypes = {
node: PropTypes.object.isRequired,
errors: PropTypes... |
src/components/MainHeader/Tasks.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import GenericDropdown from './GenericDropdown'
const Tasks = props => {
const {open, label, header, footer, children} = props
const {onToggle, onClickFooter} = props
return (
<GenericDropdown
{...{open, label, onToggle, header, footer, onC... |
src/routes/home/index.js | mortenryum/loanCalculator | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
exp... |
components/HoverCard/positionUtils.js | rdjpalmer/loggins | /* Pretty much ripped from react-bootstrap */
import React from 'react';
export function ownerDocument(componentOrElement) {
const elem = React.findDOMNode(componentOrElement);
return (elem && elem.ownerDocument) || document;
}
export function getComputedStyles(elem) {
return ownerDocument(elem).defaultView.get... |
app/javascript/mastodon/features/list_editor/index.js | mstdn-jp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
client/src/NewItem.js | anshdivu/react-express | import React, { Component } from 'react';
export default class NewItem extends Component {
constructor(props) {
super(props);
this.state = { value: '' };
this.onInput = this.onInput.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
onInput(event) {
this.setState({ value: event.target.... |
src/main/frontend/src/script/widgets/Dropdown/DropdownMenu.js | m544498510/may-swim-app | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { mapToCssModules } from './utils';
const propTypes = {
children: PropTypes.node.isRequired,
right: PropTypes.bool,
className: PropTypes.string,
cssModule: PropTypes.object,
};
const contextTypes = {
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.