path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs/src/app/components/pages/Home.js | rscnt/material-ui | import React from 'react';
import HomeFeature from './HomeFeature';
import FullWidthSection from '../FullWidthSection';
import RaisedButton from 'material-ui/RaisedButton';
import styleResizable from 'material-ui/utils/styleResizable';
import spacing from 'material-ui/styles/spacing';
import typography from 'material-u... |
src/icons/SocialCss3.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialCss3 extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g transform="translate(336 96)">
<g id="icon-css3">
<path d="M-79.718,243.488L-79.718,243.488z"></path>
<path d="M-272-64... |
src/containers/App.js | ijones16/gistyNotetaker | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainDisplay from '../components/MainDisplay';
import Footer from '../components/Footer';
import * as NoteActions from '../actions/notes';
export... |
app/javascript/mastodon/features/ui/components/modal_loading.js | lynlynlynx/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
src/js/components/TaskForm.js | tanaka0325/manday_web | import React from 'react'
const TaskForm = (props) => {
let input
return (
<div className="task-form">
<form
onSubmit={(e) => {
e.preventDefault()
if (!input.value.trim()) { return }
props.actions.add({
user_id: 1,
date: props.date,
... |
app/components/shared/UserAvatar.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class UserAvatar extends React.PureComponent {
static propTypes = {
user: PropTypes.shape({
name: PropTypes.string.isRequired,
avatar: PropTypes.shape({
url: PropTypes.string.isR... |
apps/app/src/containers/Theme.js | argos-ci/argos | import React from 'react'
import { theme as suiTheme } from '@smooth-ui/core-sc'
import {
css,
ThemeProvider,
ColorModeProvider,
rpxTransformers,
} from '@xstyled/styled-components'
const theme = {
...suiTheme,
useColorSchemeMediaQuery: false,
useCustomProperties: false,
initialColorModeName: 'light',
... |
src/client/components/Header/Header.js | jancarloviray/graphql-react-starter |
import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>GraphQL React Starter</h1>
<IndexLink to='/' activeClassName='route--active'>Home</IndexLink>
{' · '}
<Link to='/users' activeClassName='route--active'>Users</Link>... |
app/react-icons/fa/cutlery.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCutlery extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m18.8 1.4v14.3q0 1.4-0.8 2.5t-2.1 1.6v17.3q0 1.2-0.8 2.1t-2 0.8h-2.9q-1.1 0-... |
actor-apps/app-web/src/app/utils/require-auth.js | zwensoft/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
js/src/ui/Tooltips/Tooltip/tooltip.js | jesuscript/parity | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 3 of the License, or
// (at your option) any la... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | murthag94/126 | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/icons/PhonelinkSetupIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhonelinkSetupIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-... |
ajax/libs/yui/3.4.0pr3/loader/loader.js | GaryChamberlain/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... |
ajax/libs/marker-animate-unobtrusive/0.2.5/vendor/markerwithlabel.terikon.js | boneskull/cdnjs | /**
* @name MarkerWithLabel for V3
* @version 1.1.10 [April 8, 2014]
* @author Gary Little (inspired by code from Marc Ridey of Google).
* @copyright Copyright 2012 Gary Little [gary at luxcentral.com]
* @fileoverview MarkerWithLabel extends the Google Maps JavaScript API V3
* <code>google.maps.Marker</code> cla... |
test/specs/table/table_header.spec.js | working-minds/realizejs | import React from 'react';
import { TableHeader } from 'components/table';
import { assert } from 'chai';
import { mount } from 'enzyme';
describe('<TableHeader/>', () => {
it('exists', () => {
assert(TableHeader);
});
it('renders with the default props', () => {
const renderedTableHeader = mount(
... |
app/javascript/mastodon/features/ui/components/column_link.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null;
if (href) {
return (
<... |
node_modules/react-icons/md/rotate-right.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdRotateRight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.1 25.8c1-1.3 1.5-2.7 1.7-4.2h3.4c-0.3 2.4-1.2 4.6-2.7 6.5z m-6.5 4c1.5-0.2 2.9-0.7 4.2-1.7l2.4 2.4c-1.9 1.5-4.2 2.4-6.6 2.7v-3.4z m11.6-11.4h-3.4c-0.2-1.5-0.7... |
test/routes/home.spec.js | capaj/zahrajeme.cz | /* eslint-env node, mocha */
const expect = (require('chai')).expect
import React from 'react'
import { render } from 'enzyme'
describe('Home route', function () {
it('should show a route content', function () {
return System.import('routes/home').then((Home) => {
Home = Home.default
const wrapper =... |
admin/assets/libs/jquery/jquery-1.11.1.min.js | muhammad4zmi/e-raport | /*! 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... |
node_modules/react/lib/ReactNativeDOMIDOperations.js | marvinmarnold/whatsapp-zopim | /**
* 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... |
pseudoace/resources/public/js/jquery/plugins/DataTables-1.9.4/extras/ColVis/media/docs/media/js/jquery.js | WormBase/db | /*!
* 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/queries/fetchVisit.js | Kamill90/Dental | import gql from 'graphql-tag';
import { graphql } from 'react-apollo';
export default {
'fetchVisit': gql`
query fetchVisit($visitID: ID!){
visit(id:$visitID){
visitDate
status
result
user {
firstName
}
}
}
`
} |
eventkit_cloud/ui/static/ui/app/components/MapTools/DrawBoxButton.js | terranodo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withTheme } from '@material-ui/core/styles';
import ImageCropSquare from '@material-ui/icons/CropSquare';
import ContentClear from '@material-ui/icons/Clear';
export class DrawBoxButton extends Component {
constructor(props) {
... |
transforms/__testfixtures__/React-PropTypes-to-prop-types/already-migrated-import.output.js | reactjs/react-codemod | import PropTypes from 'prop-types';
import React from 'react';
const object = PropTypes.object;
const string = PropTypes.string; |
ajax/libs/jquery/1.8.1/jquery.js | potomak/cdnjs | /*!
* jQuery JavaScript Library v1.8.1
* 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 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/decorators/withViewport.js | chen844033231/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
mobile/src/QRScanScreen/presenter.js | TailorDev/pauling | /* @flow */
import React, { Component } from 'react';
import { InteractionManager, Platform, View } from 'react-native';
import { Spinner, Text, Toast } from 'native-base';
import Camera from 'react-native-camera';
import Config from 'react-native-config';
import { oneLine } from 'common-tags';
import { colors } from ... |
js/components/Toaster.js | ecohealthalliance/GoodQuestion | import React from 'react';
import {
View,
Text,
TouchableOpacity,
Animated,
Easing,
} from 'react-native';
import pubsub from 'pubsub-js';
import {ToastChannels, ToastMessage} from '../models/messages/Toast';
import Styles from '../styles/Styles';
import Color from '../styles/Color';
import Icon from 'react... |
packages/material-ui-icons/src/RemoveShoppingCartOutlined.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="M1.41 1.13L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 ... |
app/components/chat-message.js | merj4/merj | import React, { Component } from 'react';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import {grey400, darkBlack, lightBlack} from 'material-ui/styles/colors';
import IconButton from '... |
fields/types/boolean/BooleanFilter.js | udp/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
function getDefaultValue () {
return {
value: true
};
}
var BooleanFilter = React.createClass({
statics: {
getDefaultValue: get... |
fixtures/attribute-behavior/src/index.js | yiminghe/react | import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
Project 07 - Animated Form/src/containers/Home.js | DCKT/30DaysofReactNative | import React from 'react'
import { View, StyleSheet, StatusBar, Image } from 'react-native'
import { Button, Text as NText } from 'native-base'
import SplashScreen from 'react-native-splash-screen'
import Video from 'react-native-video'
type Props = {
navigation: Object
}
class Home extends React.Component {
comp... |
tests/mq-test.js | novascreen/react-columns | import expect from 'expect'
import React from 'react'
import {render, unmountComponentAtNode} from 'react-dom'
import * as mq from 'src/mq'
describe('mq/mediaQuery()', () => {
describe('set query with different values', () => {
it('small min-width value', () => {
let mQ = mq.mediaQuery({
query: '(... |
ajax/libs/jquery/1.8.2/jquery.js | kalkidanf/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* 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 Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
app/packs/src/admin/GenericElementAdmin.js | ComPlat/chemotion_ELN | import React from 'react';
import { Panel, Table, FormGroup, Popover, FormControl, Button, Row, Col, Badge, Tooltip, OverlayTrigger, InputGroup, Tabs, Tab } from 'react-bootstrap';
import uuid from 'uuid';
import Clipboard from 'clipboard';
import { findIndex, filter, sortBy, orderBy } from 'lodash';
import LoadingModa... |
assembly/package-res/docs/English/welcome/js/vendor/jquery-1.9.1.min.js | Aliaksandr-Kastenka/pentaho-kettle | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "Licen... |
local-cli/templates/HelloNavigation/components/ListItem.js | disparu86/react-native | 'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... |
src/Media.js | kiloe/ui | import React from 'react';
import View from './View';
// import CSS from './utils/css';
export default class Media extends View {
static propTypes = {
...View.propTypes,
src: React.PropTypes.string,
}
static defaultProps = {
...View.defaultProps,
row: true,
}
getClassNames(){
let cs = ... |
src/js/components/textbooks/editor-row.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { FieldGroup, Button, Glyphicon } from 'react-bootstrap'
import Confirm from 'react-confirm-bootstrap'
import { GlyphButton, SimpleSelect, SimpleInput } from '../others/form'
@inject('appStore', 'textbookStore', 'routerStore')
@observer
ex... |
src/js/components/icons/base/SocialSnapchat.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/containers/hocs/withUser.js | niekert/soundify | import React from 'react';
import PropTypes from 'prop-types';
import { Redirect } from 'react-router-dom';
import { OK, DONE } from 'app-constants';
import { connect } from 'react-redux';
const withUser = (ComposedComponent, { redirect = true } = {}) => {
const EnhanceUser = ({ user, status, ...props }) => {
if... |
ajax/libs/react-router/2.7.0/ReactRouter.min.js | dada0423/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
src/CarouselItem.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
www/lib/jquery-1.9.1.min.js | jimzim/phonegap-facebook-android-sample | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
ajax/libs/fixed-data-table/0.5.0-rc1/fixed-data-table.min.js | dhenson02/cdnjs | /**
* FixedDataTable v0.5.0-rc1
*
* Copyright (c) 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 d... |
src/svg-icons/hardware/headset-mic.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadsetMic = (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-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/>
... |
src/components/ModuleImage.js | dominic-blain/viper-visualizer | import React from 'react';
import ReactMarkdown from 'react-markdown';
import { computeOptionsClass } from '../utils';
class ModuleImage extends React.Component {
render() {
const schema = this.props.schema;
const module = this.props.module;
const item = this.props.items[0];
const computedClass = computeOptio... |
lib/components/analysis/__tests__/regional.js | conveyal/scenario-editor | // @flow
import React from 'react'
import {mockWithProvider, mockGrid, mockRegionalAnalyses} from '../../../utils/mock-data'
import Regional from '../regional-results'
describe('Components > Analysis > Regional', () => {
it('should render correctly', () => {
const setActiveRegionalAnalysis = jest.fn()
const... |
src/SearchBox.js | xando/commitcoffee | import React from 'react';
import { TextInput } from 'grommet';
export default class SearchBox extends React.Component {
state = { value: "" }
onChange = e => this.setState({ value: e.target.value });
onSubmit = (e) => {
e.stopPropagation();
e.preventDefault();
if (!this.state... |
src/app/components/story_header.js | alexboev/hnpwa | import React from 'react'
import { Link } from 'react-router-dom'
import { ListPageType } from 'consts'
import TimeAgo from 'components/time_ago'
const StoryHeader = (props) => {
var data = props.item;
if (!data)
{
return null;
}
const hostNameSection = data.host ? <span> (<a href={data... |
ajax/libs/react-data-grid/0.12.17/react-data-grid.js | froala/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
src/feedbackFormSubmit.js | theadam/react-inform | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export default class FeedbackFormSubmit extends Component {
static propTypes = {
onInvalid: PropTypes.func,
onClick: PropTypes.func,
}
static contextTypes = {
form: PropTypes.object.isRequired,
}
handleClick(e) {
... |
Realization/frontend/czechidm-acc/src/content/systemgroup/SystemGroupSystems.js | bcvsolutions/CzechIdMng | import React from 'react';
import Helmet from 'react-helmet';
//
import { Basic, Domain } from 'czechidm-core';
import SystemGroupSystemTable from './SystemGroupSystemTable';
import { SystemGroupSystemManager } from '../../redux';
/**
* Table of system groups-system relations.
*
* @author Vít Švanda
* @since 11.2.... |
src/svg-icons/maps/terrain.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTerrain = (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>
);
MapsTerrain = pure(MapsTerrain);
MapsTerrain.displayName = 'MapsTerr... |
ajax/libs/react-instantsearch/4.1.1/Connectors.js | wout/cdnjs | /*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
components/Footer.js | react-community/native-directory | import React from 'react';
import Link from '../components/Link';
import { StyleSheet, css } from 'glamor/aphrodite';
export default () => {
return (
<footer className={css(styles.footer)}>
<div className={css(styles.container)}>
<p className={css(styles.text)}>
Missing a library?{' '}
... |
node_modules/react-icons/md/settings-backup-restore.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdSettingsBackupRestore = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 5q6.3 0 10.6 4.4t4.4 10.6-4.4 10.6-10.6 4.4q-5.2 0-9.1-3.1l2.3-2.4q3.1 2.1 6.8 2.1 4.8 0 8.2-3.4t3.4-8.2-3.4-8.2-8.2-3.4-8.2 3.4-3.4 8.2h5l-6.8 6.6-... |
src/svg-icons/hardware/device-hub.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDeviceHub = (props) => (
<SvgIcon {...props}>
<path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"/>
</SvgIcon>... |
frontend/src/lib/mui-components/ComboboxField/ComboboxField.js | jf248/scrape-the-plate | import React from 'react';
import ComboboxFieldPres from './ComboboxFieldPres';
import ComboboxWithFilterController from 'lib/mui-components/ComboboxWithFilterController'; // eslint-disable-line import/no-internal-modules
function ComboboxField(props) {
const {
className,
menuBottomElement,
menuBottomFi... |
packages/material-ui-icons/src/RoomTwoTone.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="M12 4C9.24 4 7 6.24 7 9c0 2.85 2.92 7.21 5 9.88 2.11-2.69 5-7 5-9.88 0-2.76-2.24-5-5-5zm0 7.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12... |
js/jquery.min.js | medworks/irana | /*!
* 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.
... |
src/scripts/components/commentbox/fileItem.js | uncinc/layer-notes | 'use strict';
/* Setup ==================================================================== */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import helpers, { translate } from '../../utils/helpers';
/* Component ==================================================================== */... |
ajax/libs/react-router/0.9.3/react-router.min.js | tonytlwu/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
test/ButtonSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Button from '../src/Button';
describe('Button', function () {
it('Should output a button', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button>
Title
</Button>
);
assert.equal(... |
src/routes/Workspace/components/Stage/Stage.js | dkushner/ArborJs-Playground | import React from 'react';
import THREE from 'three';
import registerExtras from 'three-orbit-controls';
import classes from './Stage.scss';
import {
Renderer,
Scene,
PerspectiveCamera,
AxisHelper,
Line
} from 'react-three';
const OrbitControls = registerExtras(THREE);
class Stage extends React.Component... |
ajax/libs/highmaps/1.0.4/highmaps.src.js | BitsyCode/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
docs/src/sections/YearPickerPropsSection.js | yyssc/ssc-grid | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
export default function YearPickerPropsSection() {
return (
<div className="bs-docs-section">
<h3><Anchor id="year-picker-props">属性</Anchor></h3>
<PropTable component="YearPicker"/>
</div>
);
}
|
web/js/jquery_jquery-1.10.2_1.js | mannion007/JamesMannionForum | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
拦截IP地址/后台/www/static/js/jquery.js | nagerenxiong/ChromeExtension | /*! jQuery v@1.8.1 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==... |
test/JumbotronSpec.js | blue68/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', () => {
it('Should output a div with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>
</Jum... |
test/integration/error-in-error/pages/_error.js | azukaru/next.js | import React from 'react'
class Error extends React.Component {
static async getInitialProps({ req, res, err }) {
if (!req.url.startsWith('/404') && !req.url.startsWith('/500')) {
await Promise.reject(new Error('an error in error'))
}
const statusCode = res ? res.statusCode : err ? err.statusCode :... |
src/js/components/Box.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
import Intl from '../utils/Intl';
import Props from '../utils/Pro... |
examples/nested/src/client/index.js | ericf/react-intl | import React from 'react';
import ReactDOM from 'react-dom';
import {addLocaleData, IntlProvider} from 'react-intl';
import enLocaleData from 'react-intl/locale-data/en';
import App from './components/app';
addLocaleData(enLocaleData);
const {locale, messages} = window.App;
ReactDOM.render(
<IntlProvider
... |
src/isomorphic/classic/__tests__/ReactContextValidator-test.js | TylerBrock/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... |
docs/app/Components/ComponentDoc/ComponentProp/ComponentPropFunctionSignature.js | shengnian/shengnian-ui-react | import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import { neverUpdate } from 'docs/app/HOC'
import ComponentPropExtra from './ComponentPropExtra'
const descriptionStyle = {
flex: '5 5 0',
padding: '0.1em 0',
}
const nameStyle = {
flex: '2 2 0',
padding: '0.1em 0',
}
const ... |
app/components/SearchField/index.js | nathanhood/mmdb | import React from 'react';
import styled, { css } from 'styled-components';
import PropTypes from 'prop-types';
import { transitionOpacity } from '../../mixins';
import HeaderButton from '../HeaderButton';
import theme from 'theme';
import { LIBRARY_SEARCH_TYPE, STANDARD_SEARCH_TYPE } from 'containers/SearchResults/con... |
src/parser/monk/mistweaver/modules/talents/Lifecycles.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/othe... |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | Maxwell2022/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
ajax/libs/react/15.4.0-rc.4/react.min.js | extend1994/cdnjs | /**
* React v15.4.0-rc.4
*
* 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 direc... |
packages/mineral-ui-icons/src/IconShuffle.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 IconShuffle(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
tests/layouts/CoreLayout.spec.js | avidreder/monmach-client | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
src/views/RoleManage/index.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Row, Col } from 'antd'
import InputSearch from 'COMPONENT/InputSearch'
import RoleTree from 'COMPONENT/RoleTree'
import EditRole from './EditRole'
import ItemsTable from './ItemsTable'
import { getRoleTre... |
examples/js/column/column-hide-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
public/js/actions/fetchTCActions.js | uvarajkrishna/elastic-client-lite | import elasticsearch from "elasticsearch";
import { NotificationManager } from "react-notifications";
import { globalConfig } from "../config/globalConfig";
let client = new elasticsearch.Client({ host: globalConfig.elasticSearchHost });
//let client = new elasticsearch.Client({ host: globalConfig.elasticSearchHost, l... |
js/components/listSwipe/index.js | onderveli/EmlakAPP | import React, { Component } from 'react';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem } from 'native-base';
import styles from './styles';
const datas = [
{
route: 'BasicListSwipe',
text: 'Single SwipeRow',
},
{
route: 'MultiListSwipe',
text: 'Multiple... |
src/components/Account/Form/BalanceTable.js | ayastreb/money-tracker | import React from 'react';
import PropTypes from 'prop-types';
import { Checkbox, Input, Form } from 'semantic-ui-react';
import Amount from '../../../components/Amount';
import Currency from '../../../entities/Currency';
class BalanceTable extends React.Component {
componentWillMount() {
this.updateCurrencyList... |
src/calendar/header/index.js | eals/react-native-calender-pn-wix-extended | import React, { Component } from 'react';
import { ActivityIndicator } from 'react-native';
import { View, Text, TouchableOpacity, Image } from 'react-native';
import XDate from 'xdate';
import PropTypes from 'prop-types';
import styleConstructor from './style';
import { weekDayNames } from '../../dateutils';
import Ic... |
src/internal/EnhancedButton.spec.js | rscnt/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import EnhancedButton from './EnhancedButton';
import getMuiTheme from '../styles/getMuiTheme';
describe('<EnhancedButton />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => ... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Avatar/ExampleSimple.js | pbogdan/react-flux-mui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import FileFolder from 'material-ui/svg-icons/file/folder';
import FontIcon from 'material-ui/FontIcon';
import List from 'material-ui/List/List';
import ListItem from 'material-ui/List/ListItem';
import {
blue300,
indigo900,
orange200,
deepOr... |
blueprints/form/files/__root__/forms/__name__Form.js | huangc28/palestine | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/static/js/jquery-1.7.2.js | durai145/spring-boot | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
src/components/reduxDraftEntity.js | gocreating/redux-draft | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default (WrappedComponent) => {
class reduxDraftEntity extends Component {
constructor() {
super();
this.getData = this._getData.bind(this);
}
_getData() {
let { contentState, entityKey } = this.props;... |
ajax/libs/rxjs/2.3.5/rx.lite.compat.js | aaqibrasheed/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... |
server/sonar-web/src/main/js/components/shared/issues-link.js | joansmith/sonarqube | /*
* 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... |
client/data/campaign.js | quarterto/almanac | import { withTracker } from 'meteor/react-meteor-data'
import PropTypes from 'prop-types'
import { NotFound } from 'http-errors'
import { compose, withProps, withContext, getContext } from 'recompact'
import getCampaignSession from '../../shared/session'
import { Campaigns } from '../../shared/collections'
import subsc... |
ajax/libs/knockout/3.3.0/knockout-debug.js | algolia/cdnjs | /*!
* Knockout JavaScript library v3.3.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(function(){
var DEBUG=true;
(function(undefined){
// (0, eval)('this') is a robust way of getting a reference to the global object
// For details,... |
packages/material-ui-icons/src/NewReleasesSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-... |
node_modules/material-ui/svg-icons/device/signal-cellular-no-sim.js | smaccoun/wrapid-react-ts | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.