path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/contextmenu/index.js | MissingNotes/MissingNotesDauber | import React from 'react'
import ReactDOM from 'react-dom'
import {connect} from 'dva'
import styles from './style.css'
import highlightStyles from '../../handlehighlight.css'
import Button from '../button'
const highlightNoteClassName = highlightStyles.highlightNote
let highlightNote
class Contextmenu extends React.... |
sticky-notes/src/components/Note.js | Zyst/learning-react | import React from 'react';
import AppActions from '../actions/AppActions';
class Note extends React.Component {
constructor(props) {
super(props);
this.removeNote = this.removeNote.bind(this);
}
removeNote() {
AppActions.removeNote(this.props.note._id.$oid);
}
render() {
return (
<di... |
src/features/tab-view/profile/index.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
TouchableOpacity,
Text,
Image,
Alert,
ScrollView,
View,
StyleSheet
} from 'react-native';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as historialActions from '../../../redux/actions/historialActions';
import... |
src/components/widgets/widgets-card.js | johnamiahford/widgets-spa | 'use strict';
import React from 'react';
class WidgetsCard extends React.Component {
render() {
return (
<div className={this.props.gridClassName + ' col-md-6 col-xs-12'}>
<div className="widget">
<div className="widget-header">
<div className="widget-icon green pull-left">
... |
vendor/assets/javascripts/front-end/jquery.js | Cabuum/vanzeiro | /*! jQuery v1.10.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.0.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.0",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
files/riot/2.6.4/riot+compiler.js | as-com/jsdelivr | /* Riot v2.6.4, @license MIT */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v2.6.4', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__uid = 0,
// tags instances cache
... |
examples/with-redux-saga/pages/other.js | giacomorebonato/next.js | import React from 'react'
import {increment, startClock} from '../actions'
import {withReduxSaga} from '../store'
import Page from '../components/page'
class Counter extends React.Component {
static async getInitialProps ({store}) {
store.dispatch(increment())
}
componentDidMount () {
this.props.dispat... |
src/components/metadata/tests/metaobject.spec.js | codegaze/jekyll-admin | import React from 'react';
import { Link } from 'react-router';
import expect from 'expect';
import { mount } from 'enzyme';
import _ from 'underscore';
import MetaObject from '../MetaObject';
import MetaObjectItem from '../MetaObjectItem';
const defaultProps = {
fieldKey: 'organization',
fieldValue: {
name: ... |
ajax/libs/material-ui/5.0.0-beta.3/legacy/ScopedCssBaseline/ScopedCssBaseline.js | cdnjs/cdnjs | import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@material-ui/unsty... |
src/Main/PatreonButton.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const PatreonButton = ({ text, ...others }) => (
<a
className="btn patreon"
role="button"
href="https://www.patreon.com/wowanalyzer"
{...others}
>
<span>
<svg viewBox="0 0 8 8" width="22px" height="22px" fill="#fff"><path d="M... |
spec/javascripts/jsx/authentication_providers/AuthTypePickerSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
code/workspaces/web-app/src/components/common/GridSkeleton.spec.js | NERC-CEH/datalab | import React from 'react';
import { render, within } from '@testing-library/react';
import GridSkeleton from './GridSkeleton';
describe('GridSkeleton', () => {
it('renders the correct number of items to fill grid', () => {
const columns = 2;
const rows = 4;
const wrapper = render(<GridSkeleton columns={c... |
ajax/libs/react-inlinesvg/0.4.2/react-inlinesvg.js | dlueth/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.ReactInlineSVG=e()}}(function(){var define,module,exports;return (function e(t,n,r){... |
pathfinder/vtables/appmap2platforms/src/Table.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import TableUtilities from './common/TableUtilities';
class Table extends Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapT... |
ajax/libs/react-modal/2.2.2/react-modal.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactModal=t(require("react"),require("react-dom")):e.ReactModal=t(e.React,e.ReactDOM)}(this,fun... |
node_modules/react-icons/fa/server.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaServer = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m2.9 31.4h22.8v-2.8h-22.8v2.8z m0-11.4h22.8v-2.9h-22.8v2.9z m35 10q0-0.9-0.7-1.5t-1.5-0.6-1.5 0.6-0.6 1.5 0.6 1.5 1.5 0.6 1.5-0.6 0.7-1.5z m-35-21.4h22.8v-2.9h-22.8v2.... |
js/components/splashscreen/index.js | chris50bn/Between | 'use strict';
import React, { Component } from 'react';
import { Image, View } from 'react-native';
import { connect } from 'react-redux';
export default class SplashPage extends Component {
componentWillMount () {
var navigator = this.props.navigator;
setTimeout (() => {
navigator.re... |
src/containers/DevToolsWindow.js | sedlareg/react-test | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
ajax/libs/yui/3.8.1/event-focus/event-focus.js | Timbioz/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 = (function() {
... |
src/components/Part/SpecSlider.js | MaksimMartyn/LAZARUS | 'use strict';
import React from 'react';
const SpecSlider = () => (
<article className="spec-slider">
<div className="img-container">
<img src="./img/Part-2.png" alt="Detail"/>
</div>
<p>
Lorem ipsum dolor sit amet conse tetuer odio non tellus natoque acumsan. Sed hac tempus tortor.
A... |
src/give/AddAccount/BillingAddress.js | NewSpring/Apollos | import React from 'react';
import PaddedView from '@ui/PaddedView';
import { BillingAddressForm } from '@ui/forms';
import BackgroundView from '@ui/BackgroundView';
import { Title } from '../styles';
const BillingAddress = () => (
<BackgroundView>
<PaddedView>
<Title>Billing Address</Title>
</PaddedVi... |
src/routes/UIElement/layer/index.js | zhangjingge/sse-antd-admin | import React from 'react'
import { layer } from '../../../components'
import { Table, Row, Col, Button, Card } from 'antd'
let Enum = {
default: 1,
}
const IcoPage = () => {
const handleButtonClick = (key) => {
if (key === Enum.default) {
layer.open({
title: '默认弹层',
content: <div style={... |
app/react/src/demo/Welcome.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import glamorous from 'glamorous';
const Main = glamorous.article({
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
});
const Title = glamorous.h1({});
const Note = g... |
ajax/libs/reactive-coffee/1.2.2/reactive-coffee.min.js | fastest963/cdnjs | (function(){var a,b=[].slice,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};a=function(a,c){var 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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-top.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h2v-2h-2v2zM3 3v2h18V3H3zm16 14h2v... |
src/components/Link/Link.js | pustovitDmytro/maysternya | /**
* 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 PropTypes from 'prop-... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceWebViews/Container/ContainerServiceWebView.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import CoreServiceWebView from '../../CoreServiceWebView'
import { accountStore, accountActions } from 'stores/account'
import ContainerServiceDataReducer from 'shared/AltStores/Account/ServiceDataReducers/ContainerServiceDataReducer'
import shallowCompare fr... |
src/main/resources/js/Application.js | fnerdrum/hendelse-datomic | import React from 'react';
import { RouteHandler } from 'react-router';
import HenvendelseStore from './stores/HenvendelseStore.js';
import HenvendelseListe from './components/HenvendelseListe.js';
import HenvendelseVisning from './components/HenvendelseVisning.js';
import Actions from './actions/Actions.js';
import We... |
js/jqwidgets/demos/react/app/grid/columnshierarchy/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'xml',
datafields: [
{ name: 'SupplierName',... |
src/components/prompts/BrowserLeaveListener.js | knod/cliff-effects-1 | import React from 'react';
/**
* Ask the user for confirmation to leave the page.
* @extends React.Component
*
* @param props {object}
* @param props.isBlocking {boolean} - Whether the component should block
* @param props.message {string} - The message the browser shows, maybe
*/
class BrowserLeaveListener ext... |
app/javascript/mastodon/features/ui/components/report_modal.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
website/src/components/tutorials.js | spacy-io/thinc | import React from 'react'
import Link from './link'
import { H2 } from './typography'
import Icon from './icon'
import { isTrue } from '../util'
import ColabBadge from '../images/colab-badge.svg'
import TUTORIALS from '../../docs/_tutorials.json'
import classes from '../styles/tutorials.module.sass'
export const ROOT... |
src/pages/AboutPage.js | numieco/patriot-trading | import React from 'react'
import Header from '../components/Header'
import SideBar from './../components/SideBar'
import Footer from './../components/Footer'
import SinglePostArticle from '../components/SinglePostArticle'
export default class AboutPage extends React.Component {
render () {
return (
<div>... |
app/javascript/mastodon/features/list_editor/components/account.js | MastodonCloud/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../compone... |
app/docs/Causal Compiler Code Documentation/jquery.js | jhomble/cmsc435 | /*!
* jQuery JavaScript Library v1.7.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.
... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/ThrottlingPolicies/Details/BusinessPlan.js | Minoli/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/js/app.js | Pro-Caffeinated/SlidesInTime | import React, { Component } from 'react';
import ImageList from './imageList.js';
import ImageView from './imageView.js';
import ListView from './listView.js';
import QuoteView from './quoteView.js';
import TitleView from './titleView.js';
import '../css/style.css';
import * as Actions from '../actions';
// import so... |
ajax/libs/jquery/1.8.0/jquery-1.8.0.js | aFarkas/cdnjs | /*!
* jQuery JavaScript Library v1.8.0
* 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: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/svg-icons/image/leak-add.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
public/assets/scripts/containers/resources/recent.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux';
import { fetchResources, setHighlight, setFavorite } from '@/actions/resources';
import { fetchConfig } from '@/actions/config';
import { bindActionCreators } from 'redux';
import RecentResources from '@/components/reso... |
django/contrib/admin/static/admin/js/vendor/jquery/jquery.js | codepantry/django | /*!
* jQuery JavaScript Library v1.11.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
src/js/components/icons/base/Steps.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/assets/scripts/components/layout/Header.js | SnowShock/Runew0lf | import React from 'react';
import { Link, NavLink } from 'react-router-dom';
export default class Header extends React.Component {
render () {
return (
<header className="main-header">
<div className="container">
<Link to='/' className="brand">
<h1 className="title">RunewOlf</... |
src/components/App.js | poeschko/ask-refugeescode | /**
* 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 PropTypes from 'prop-... |
client/src/components/articles/ArticleComponent.js | axs221/infio | 'use strict';
import React from 'react';
require('styles/articles/Article.sass');
class ArticleComponent extends React.Component {
render() {
return (
<div className="article-component">
Please edit src/components/articles//ArticleComponent.js to update this component!
</div>
);
}
}
... |
ajax/libs/inferno/1.0.0-beta15/inferno-compat.min.js | dlueth/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("./inferno-component")):"function"==typeof define&&define.amd?define(["exports","inferno-component"],n):n(e.Inferno=e.Inferno||{},e.Inferno.Component)}(this,function(e,n){"use strict";function t(e,n){return n={exports:{}},e(n,n.export... |
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Comment, Form, Header } from 'shengnian-ui-react'
const CommentExampleMinimal = () => (
<Comment.Group minimal>
<Header as='h3' dividing>Comments</Header>
<Comment>
<Comment.Avatar as='a' src='/assets/images/avatar/small/matt.jpg' />
<Comment.Content>
... |
src/modules/comments/components/CommentWorkSelect/CommentWorkSelect.js | CtrHellenicStudies/Commentary | import React from 'react';
import './CommentWorkSelect.css';
const CommentWorkSelect = props => {
return (
<div className="commentWorkSelect">
</div>
);
}
export default CommentWorkSelect;
|
examples/todomvc/components/Footer.js | loggur/react-redux-provide | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default class Footer extends Component {
static propTypes = {
completedCount: PropTypes.number.isRequired,
activeCount: PropTypes.number.isRequired,
filterTodoList: PropTypes.func.isR... |
examples/tree-view/containers/Node.js | chentsulin/redux | import React from 'react'
import { Component } from 'react'
import { connect } from 'react-redux'
import * as actions from '../actions'
export class Node extends Component {
constructor(props) {
super(props)
this.handleIncrementClick = this.handleIncrementClick.bind(this)
this.handleRemoveClick = this.ha... |
ajax/libs/maple.js/1.0.4/maple.js | froala/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/svg-icons/av/queue-play-next.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
docs/src/app/components/pages/components/Popover/Page.js | mtsandeep/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 popoverReadmeText from './README';
import PopoverExampleSimple from './Ex... |
docs/src/examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelection.js | Semantic-Org/Semantic-UI-React | import faker from 'faker'
import _ from 'lodash'
import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const addressDefinitions = faker.definitions.address
const stateOptions = _.map(addressDefinitions.state, (state, index) => ({
key: addressDefinitions.state_abbr[index],
text: state,
value: add... |
src/components/templates.js | Greynight/Grid | import React from 'react';
const MIN_WIDTH = 100;
// TODO ability to add custom columns(or redefine existing)
export default class Templates {
constructor(options) {
this.data = options.data;
this.onValueChange = options.onValueChange;
this.styles = options.styles;
let columnStyle = {};
// cal... |
src/heavyweightcomponents/propmonger.js | bhuvanmalik007/mission-admission | /* eslint-disable react/prop-types */
import React from 'react'
const propMonger = ({ swallowProps = [] } = {}) => WrappedComponent => {
const Wrapper = ({ children, ...props }) => {
swallowProps.forEach(propName => {
delete props[propName]
})
return <WrappedComponent {...props}>{children}</Wrapped... |
ajax/libs/primereact/7.2.1/orderlist/orderlist.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { Button } from 'primereact/button';
import { ObjectUtils, DomHandler, classNames } from 'primereact/utils';
import { Ripple } from 'primereact/ripple';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, ar... |
src/scenes/home/informationForm/formComponents/identifier.js | OperationCode/operationcode_frontend | import React, { Component } from 'react';
import Form from 'shared/components/form/form';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { IDENTIFIERS } from 'shared/constants/status';
import styles from './formComponents.css';
class Identifier extends... |
app/vendor/pro-style-editor/src/TransformsSection/index.js | danscan/fractal | import React, { Component, PropTypes } from 'react';
import { View } from 'react-native';
import ImmutablePropTypes from 'react-immutable-proptypes';
import styles from './styles';
export default class TransformsSection extends Component {
static propTypes = {
onChangeValue: PropTypes.func.isRequired,
value:... |
src/svg-icons/image/exposure-zero.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureZero = (props) => (
<SvgIcon {...props}>
<path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44... |
packages/material-ui-icons/src/BugReportTwoTone.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><path d="M15.83 9.65L15.46 9c-.3-.53-.71-.96-1.21-1.31l-.61-.42-.68-.16C12.63 7.04 12.32 7 12 7c-.31 0-.63.04-.94.11l-.74.18-.57.4c-.49.34-.91.79-1.21... |
docs/src/app/components/pages/components/FlatButton/Page.js | pomerantsev/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 flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
test/test_helper.js | jeroenmies/WeatherForecast | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
ajax/libs/mediaelement/2.11.2/jquery.js | mscharl/cdnjs | /*!
* 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... |
src/svg-icons/hardware/headset.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... |
resources/assets/javascript/components/plantsViewContainer.js | colinjeanne/garden | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { createPlant, editPlant, updatePlant } from '../actions/plantActions';
import {
filterPlants,
selectPlant,
sortPlants } from '../actions/navigationActions';
import PlantsViewPage from './plantsViewPage';
import React... |
ajax/libs/F2/1.3.2/f2.no-easyXDM.js | stomita/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
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 obtaining a copy of this software and associated d... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base.js | cgvarela/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/CustomInput.spec.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import { shallow, mount } from 'enzyme';
import { CustomInput } from '../';
describe('Custom Inputs', () => {
describe('CustomCheckbox', () => {
it('should render an optional label', () => {
const checkbox = mount(<CustomInput type="checkbox" id="yo" label="Yo!" />);
expect... |
src/blog/flux/boot.js | exseed/exseed-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
render(
<Router history={browserHistory}>
{routes}
</Router>
, document.getElementById('exseed_root')); |
templates/rubix/demo/src/routes/Tablesawjs.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import ReactDOM from 'react-dom';
import {
Row,
Col,
Grid,
Panel,
Table,
PanelBody,
PanelHeader,
FormControl,
PanelContainer,
} from '@sketchpixy/rubix';
export default class Tablesawjs extends React.Component {
componentDidMount() {
$('.tablesaw').table();
}
re... |
ajax/libs/foundation/4.1.2/js/vendor/jquery.js | SeanPlusPlus/cdnjs | /*!
* 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... |
ajax/libs/rxjs/2.4.3/rx.lite.js | sitic/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/containers/HomePage/index.js | shanzhaicity/frontend-demo | /*
* 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 neccessity for you then you can refactor it and remove
* the ... |
pkg/ui/src/containers/NotFoundPage.js | matt-deboer/kuill | import React from 'react';
const NotFoundPage = () => {
return (
<div>
<div>
404 Page Not Found
</div>
</div>
);
};
export default NotFoundPage;
|
src/svg-icons/image/collections-bookmark.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCollectionsBookmark = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>... |
src/routes/Character/routes/Profile/components/CharacterItem/CharacterItem.js | warcraftlfg/warcrafthub-client | import React from 'react'
import { Media } from 'react-bootstrap'
import classnames from 'classnames'
import WowheadItemLink from '../../../../../../components/WowheadItemLink'
import CharacterItemIcon from '../CharacterItemIcon'
import './CharacterItem.scss'
export const CharacterItem = (props) => (
<div className=... |
files/babel/5.7.0/browser-polyfill.js | spud2451/jsdelivr | (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... |
ajax/libs/react/0.13.0-beta.1/react-with-addons.js | codfish/cdnjs | /**
* React (with addons) 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.React=e... |
src/components/Header/index.js | badT/twitchBot | import React from 'react';
import ChannelDropdown from '../../containers/ChannelDropdown';
import { styles } from './styles.scss';
export function Header() {
return (
<header className={`${styles}`}>
<div className="container">
<div className="row">
<div className="col-xs-12">
... |
src/ModalFooter.js | yuche/react-bootstrap | import React from 'react';
import classnames from 'classnames';
class ModalFooter extends React.Component {
render() {
return (
<div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalFooter.propTypes = {
... |
src/svg-icons/av/fiber-pin.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberPin = (props) => (
<SvgIcon {...props}>
<path d="M5.5 10.5h2v1h-2zM20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85... |
admin/client/components/List/ListFiltersAdd.js | pswoodworth/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Transition from 'react-addons-css-transition-group';
import classnames from 'classnames';
import CurrentListStore from '../../stores/CurrentListStore';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from '../Popout';
import Popout... |
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base-debug.js | jtushar53/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
draft-js-drag-n-drop-plugin/src/createDecorator.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { DRAFTJS_BLOCK_KEY } from './constants';
// Get a component's display name
const getDisplayName = (WrappedComponent) => {
const component = WrappedComponent.WrappedComponent || WrappedComponent;
return component.displayName || component.name || 'Component';
};
exp... |
ajax/libs/yui/3.5.1/simpleyui/simpleyui.js | mzdani/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
Examples/UIExplorer/NavigatorIOSExample.js | sudhirj/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-hdr.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilterHdr = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageFilterHdr.displayName = 'ImageFilterHdr';
ImageFilterHdr.muiName = 'SvgIcon';
export default... |
packages/material-ui-icons/src/SignalCellularOffOutlined.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="M21 1l-8.31 8.31 8.31 8.3zM4.91 4.36L3.5 5.77l6.36 6.37L1 21h17.73l2 2 1.41-1.41z" /></g></React.Fragment>
, 'SignalCellularOffOutlined');
|
src/components/Profile.js | alexfigtree/CoreID | import React, { Component } from 'react';
export default class Identity extends Component {
render() {
return (
<div>
<h2>Profile</h2>
</div>
);
}
}
|
react/features/remote-video-menu/components/native/MuteRemoteParticipantDialog.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractMuteRemoteParticipantDialog
from '../AbstractMuteRemoteParticipantDialog';
/**
* Dialog to confirm a remote par... |
examples/todos/src/components/Link.js | roth1002/redux | import React from 'react'
import PropTypes from 'prop-types'
const Link = ({ active, children, onClick }) => {
if (active) {
return <span>{children}</span>
}
return (
// eslint-disable-next-line
<a href="#"
onClick={e => {
e.preventDefault()
onClick()
}}
>
{... |
src/esm/components/graphics/icons-next/home-icon-next/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 HomeIconNext = function HomeIconNext(_ref) {
var color =... |
src/scenes/home/history/history.js | tal87/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
import QuoteBanner from 'shared/components/quoteBanner/quoteBanner';
import Timeline from './timeline/timeline';
const History = () => (
<div>
<QuoteBanner
author="Colin Powell"
quote="There are no secrets to success.... |
src/components/AuctionStepper/AuctionStepper.js | PhyrexTsai/ens-bid-dapp | import React from 'react';
import classNames from 'classnames/bind';
import './AuctionStepper.css';
const Step = (props) => {
const stepClass = classNames('Step',
props.currentStep === props.name ? 'current' : 'not-current'
);
return (
<div className={stepClass}>
<h4>{props.title}</h4>
</di... |
client/comps/letters.js | lisezmoi/alpha-bet | import React from 'react'
const chars = '.ABCD.EFGHIJKLMNOPQRSTUV.WXYZ.'.split('')
const Letters = props => (
<div className='Letters'>
{chars.map((char, i) => {
const className = char === '.'? 'Letters-letter-blank' : ''
const lowChar = char.toLowerCase()
return (
<span
key=... |
docs/app/Examples/elements/Image/Variations/ImageExampleFloated.js | clemensw/stardust | import React from 'react'
import { Segment, Image } from 'semantic-ui-react'
const src = '/assets/images/wireframe/image-text.png'
const ImageExampleFloated = () => (
<Segment>
<Image src={src} size='small' floated='left' />
<p>
Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia ... |
tests/baselines/reference/jsDeclarationsReactComponents.js | alexeagle/TypeScript | //// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] ////
//// [jsDeclarationsReactComponents1.jsx]
/// <reference path="/.lib/react16.d.ts" />
import React from "react";
import PropTypes from "prop-types"
const TabbedShowLayout = ({
}) => {
return (
<div />
);
};
Tab... |
examples/huge-apps/routes/Messages/components/Messages.js | cgrossde/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
src/components/FormInputs/Radio.js | JSLancerTeam/crystal-dashboard | import React, { Component } from 'react';
import cx from 'classnames';
import uncheckImage from 'assets/images/radio-1.svg';
import checkImage from 'assets/images/radio-2.svg';
class Radio extends Component {
componentWillReceiveProps(props) {
console.log(props);
}
render() {
let {
input,
l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.