path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/typescript/1.9.0/typescript.min.js | menuka94/cdnjs | var __extends=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ts;!function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivi... |
src/components/TextBox/TextBox.js | yanivefraim/mobile-device-manager | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
import './TextBox.less';
import React from 'react';
export default class... |
react/src/Checkbox.js | Chalarangelo/react-mini.css | import React from 'react';
import generateUniqueId from './util/idGenerator';
// Module constants (change according to your flavor file)
var inputGroupClassName = 'input-group';
// Checkbox component.
export function Checkbox (props){
var outProps = Object.assign({}, props);
if (typeof outProps.labelText === 'undef... |
app/m_components/Similar.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import ArticleObjStore from '../stores/ArticleObjStore';
import ArticleObjActions from '../actions/ArticleObjActions';
class Similar extends React.Component {
constructor(props) {
super(props);
this.state = ArticleObjStore.getState();
this.onChan... |
ajax/libs/video.js/5.0.0-rc.104/alt/video.novtt.js | maruilian11/cdnjs | /**
* @license
* Video.js 5.0.0-rc.104 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.export... |
src/svg-icons/maps/navigation.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
src/components/LoginPage.js | ChromeQ/lms | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import GoogleLogin from 'react-google-login';
import { socialLogin } from '../actions/actionCreators';
import '../css/LoginPage.css';
class LoginPage extends Component {
componentWillMount() ... |
static/src/containers/App/index.js | pfarnach/pulse | import React, { Component } from 'react';
import socket from '../../utils/socket';
import _ from 'lodash';
import MapContainer from '../MapContainer/mapContainer';
import './style.scss';
const sendPulse = _.debounce(() => socket.emit('client_pulse', {}), 500, { leading: true });
export class App extends Component {
... |
src/js/components/icons/base/Bar.js | odedre/grommet-final | /**
* @description Bar 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.
* @proper... |
src/components/HomePage/HomePage.js | vk92kokil/My-react-boilerplate | /**
* Created by vikramaditya on 7/29/15.
*/
import React from 'react';
import Router from 'react-router';
import mui from 'material-ui';
import Reflux from 'reflux';
import AppStore from '../../stores/AppStore';
import Actions from '../../actions/AppActions';
var ThemeManager = new mui.Styles.ThemeManager();
import ... |
ClientApps/secure report/scripts/jquery.js | FinchYang/test | /*!
* 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 ) {
// ... |
src/docs/apiExamples/RadialBarChart.js | recharts/recharts.org | import React from 'react';
import { RadialBarChart, RadialBar, Legend, Tooltip } from 'recharts';
const data = [
{
name: '18-24',
uv: 31.47,
pv: 2400,
fill: '#8884d8',
},
{
name: '25-29',
uv: 26.69,
pv: 4567,
fill: '#83a6ed',
},
{
name: '30-34',
uv: -15.69,
pv: 139... |
app/components/ViewLogin/index.js | passeme/passeme | import React, { Component } from 'react';
export default class ViewLogin extends Component {
constructor(props) {
super(props);
this.state = props.login;
}
componentWillReceiveProps(nextProps) {
this.setState(nextProps.login);
}
render() {
return (
<div>
<h2>View Login</h2>
... |
packages/reactor-kitchensink/src/examples/D3/Hierarchy/ZoomableSunburst/ZoomableSunburst.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import { D3_Sunburst } from '@extjs/ext-react-d3';
export default class ZoomableSunburst extends Component {
store = Ext.create('Ext.data.TreeStore', {
autoLoad: true,
defaultRootText: 'd3',
fields: [
... |
_site/js/jquery-1.11.0.js | wilivro/juventudeempreendedoraal.com.br | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components_OLD/Footer.js | travism26/microservice-frontend | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer>footer</footer>
);
}
}
export default Footer |
spec/coffeescripts/jsx/due_dates/DueDateRowSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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... |
src/components/elements/Switch.js | eddiesmithjr/eddiesmithjr.github.io | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const propTypes = {
children: PropTypes.node,
name: PropTypes.string,
value: PropTypes.string,
rightLabel: PropTypes.string,
disabled: PropTypes.bool,
checked: PropTypes.bool
}
const defaultProps = {
chil... |
docs/src/examples/jalaali.js | mberneti/react-datepicker2 | import React from 'react'
import momentJalaali from 'moment-jalaali'
import DatePicker from '../../../src/components/DatePicker';
class component extends React.Component {
constructor(props) {
super(props);
this.state = {
value: momentJalaali('1396/7/6', 'jYYYY/jM/jD')
};
}
render() {
retur... |
files/yasr/2.4.4/yasr.bundled.min.js | ntd/jsdelivr | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/index.js | code-for-nashville/inclucivics | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './index.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
js/App/Components/TabViews/SubViews/RGBPalette.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
front-end/src/components/PostView/PostView.js | mkalpana/km-react-reddit-clone | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { formatDate } from '../../utils/helpers';
import { VoteScore } from '../index';
import { Link } from 'react-router-dom';
import './PostView.css';
class PostView extends Component {
render() {
const {
timestamp, title, bod... |
websocket/client/Client/node_modules/react-native/local-cli/server/middleware/heapCapture/src/heapCapture.js | prayuditb/tryout-01 | /**
* Copyright (c) 2016-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.
*/
'use strict... |
satchmo/static/js/jquery-1.4.2.js | jordotech/satchmofork | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
composition/useTippy.js | KABBOUCHI/vue-tippy | import tippy from 'tippy.js'
import {
isRef,
reactive,
isReactive,
onMounted,
ref,
onUnmounted,
watch,
} from '@vue/composition-api'
const array_wrap = (val) => (Array.isArray(val) ? val : [val])
export function useTippy (el, opts = {}, settings = { mount: true }) {
const instance = ref(null)
let o... |
goku-admin/src/routes/Admin.js | bingweichen/GOKU | import React, { Component } from 'react';
import { connect } from 'dva';
import { hashHistory } from 'dva/router';
import { Layout, Icon, Menu, Button } from 'antd';
import styles from './Admin.less';
const { SubMenu } = Menu;
const { Header, Content, Sider } = Layout;
// 退出
function logout() {
localStorage.removeIt... |
extension/ezoe/design/standard/javascript/plugins/legacyoutput/editor_plugin_src.js | ymc-elst/playground-ez48 | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements... |
pollard/components/DeleteLink.js | spencerliechty/pollard | import React, { Component } from 'react';
import classNames from 'classnames';
import mergeStyles from '../lib/mergeStyles';
export default class DeleteLink extends Component {
constructor(props) {
super(props);
this.state = {
deleteStep: 0
}
}
handleClick(event) {
if (this.state.deleteS... |
node_modules/react-icons/ti/video-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiVideoOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m13.3 18.3c0 1-0.7 1.7-1.6 1.7s-1.7-0.7-1.7-1.7c0-0.9 0.7-1.6 1.7-1.6s1.6 0.7 1.6 1.6z m22.7-6.3c-0.5-0.3-1-0.4-1.5-0.2l-2.9 0.9c-0.3-2.5-2.4-4.4-4.9-4.4h-18.4c-... |
demo/src/examples/WrapDialog.js | TeselaGen/teselagen-react-components | import { Button, Classes, Icon, InputGroup } from "@blueprintjs/core";
import classNames from "classnames";
import React, { useState } from "react";
import { Provider } from "react-redux";
import { TgSelect } from "../../../src";
import wrapDialog from "../../../src/wrapDialog";
import store from "../store";
import Sim... |
docs/src/pages/css-in-js/basics/HigherOrderComponent.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/styles';
import Button from '@material-ui/core/Button';
const styles = {
root: {
background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',
border: 0,
borderRadius: 3,
boxShadow: '0 3px 5px 2p... |
packages/material-ui-icons/src/FormatAlignRight.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" /></g>
, 'FormatAlignRight');
|
src/js/components/icons/base/UserAdd.js | odedre/grommet-final | /**
* @description UserAdd 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.
* @pr... |
src/ModalDialog.js | brentertz/react-bootstrap | /*eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is c... |
ajax/libs/analytics.js/2.8.8/analytics.js | honestree/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
src/header/Header.js | crisu83/timebox | import React from 'react';
const Header = () => (
<header className="header">
<h1 className="brand">
<i className="fa fa-clock-o"></i> <a href="/">dotimebox.it</a>
</h1>
</header>
);
export default Header;
|
src/components/About/IDA/test.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import AboutIDA from '.';
const renderer = new ShallowRenderer();
describe('<AboutIDA />', () => {
test('should render with data', () => {
renderer.render(<AboutIDA />);
expect(renderer.getRenderOutput()).toMatch... |
ajax/libs/react/0.13.0/JSXTransformer.js | pzp1997/cdnjs | /**
* JSXTransformer v0.13.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... |
node_modules/react-icons/io/calendar.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoCalendar = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.8 10c-1.5 0-2.5-1.1-2.5-2.5v-2.5c0-1.4 1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v2.5c0 1.4-1.1 2.5-2.5 2.5z m17.5 0c-1.5 0-2.5-1.1-2.5-2.5v-2.5c0-1.4 1-2.5 2.5-2.5s2.5 1.1 2.... |
react-boilerplate/app/components/ToggleOption/index.js | Sakuyakun/Yorha-Experiment | /**
*
* ToggleOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
va... |
src/components/Character/SourceMarks.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
class SourceMarks extends React.Component {
constructor(props) {
super(props);
this.state = {
custom: ''
};
this.handleInputChange = this.handleInputChange.bind(this);
this.handleSelect = this.handleSelect.bind(this);
this... |
dbus-keeper/keeper-web/app/components/RuleManage/RuleGroup/RuleGroupDiffTable/index.js | BriData/DBus | import React, {PropTypes, Component} from 'react'
import styles from '../res/styles/index.less'
export default class RuleGroupDiffModal extends Component {
createTitle = () => {
let title = this.props.title;
if (title.length === 0) return "Nothing to diff, please choose group";
let subTitle... |
src/svg-icons/image/looks-two.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
src/components/Note/Note.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import * as styles from './styles';
import { defaultProps } from 'recompose';
const Note = ({ children, Container, Corner, ...rest }) => (
<Container {...rest}>
{children}
<Corner />
</Container>
);
Note.styles = styles;
Note.propTypes = {
... |
src/components/Container.js | dtjv/dtjv.github.io | import React from 'react'
export const Container = ({ children, className, ...props }) => (
<div className={`py-8 sm:py-10 ${className ?? ''}`} {...props}>
{children}
</div>
)
|
app/containers/Header/Header.js | ryanwashburne/react-skeleton | // React
import PropTypes from 'prop-types';
import React from 'react';
import { NavLink } from 'react-router-dom';
// Redux
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as authActions from 'app/reducers/authReducer';
import * as storeActions from 'app/reducers/storeReduc... |
src/svg-icons/editor/format-indent-decrease.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
assets/image_crud/js/jquery-1.8.2.min.js | waifung0207/ci_bootstrap_3_demo | /*! 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===... |
node_modules/react-icons/io/wand.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoWand = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 18.8l3.8-3.8 3.7 3.8-3.7 3.7z m-15 15l13.8-13.8 3.7 3.8-13.7 13.7z m17.5-26.3v-5h2.5v5h-2.5z m13.6 0.6l-3.5 3.5-1.8-1.7 3.6-3.5z m-21.2 3.5l-3.5-3.5 1.7-1.7 3.5 3.5z... |
src/tests/compose.js | kadirahq/react-komposer | /* eslint react/prefer-stateless-function: 0, react/prop-types: 0 */
import React from 'react';
import { shallow, mount } from 'enzyme';
import { expect } from 'chai';
import compose from '../compose';
const { describe, it } = global;
class Comp extends React.Component {
render() {
return (<p>{this.props.name}<... |
libraries/react/context-global-state/src/AppHeader.js | vivaxy/course | /**
* @since 2017-05-09 10:19:25
* @author vivaxy
*/
import React, { Component } from 'react';
import connect from './lib/connect';
class AppHeader extends Component {
constructor(props, context) {
super(props, context);
const { initialize } = context;
initialize(
(store) => {
return {
... |
src/components/TaskParticipantUsers/index.js | bruceli1986/contract-react | import React from 'react'
import Select from 'react-select'
/** 流程参与人*/
class TaskParticipateUsers extends React.Component {
static propTypes = {
processInstanceId: React.PropTypes.string
}
constructor (props, context) {
super(props, context)
this.state = {
users: [],
loaded: false
... |
src/create/Create.js | petertrotman/critrolemoments | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import queryString from 'query-string';
import EditView from '../moments/EditView';
import Loading fr... |
app/javascript/mastodon/components/icon_button.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import AnimatedNumber from 'mastodon/components/animated_number';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTyp... |
ajax/libs/mobx/2.1.6/mobx.umd.min.js | him2him2/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:... |
app/javascript/mastodon/features/account_timeline/components/header.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
tests/routes/EightBall/EightBall.spec.js | dontexpectanythingsensible/random-utils | import React from 'react';
import { shallow } from 'enzyme';
import Ad from 'components/Ad';
import EightBall from 'routes/EightBall/components/EightBall';
describe('(View) EightBall', () => {
let _component;
beforeEach(() => {
_component = shallow(<EightBall />);
});
it('should render', () => {
expe... |
node_modules/material-ui/DatePicker/DateDisplay.js | knguyen1/kylecodes | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
ajax/libs/babel-core/6.1.11/browser.min.js | sashberd/cdnjs |
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.babel=t()}}(function(){var t,e,n;return function r(t,... |
test/jest/__mock__/reactFinalFormListeners.mock.js | folio-org/ui-users | import React from 'react';
jest.mock('react-final-form-listeners', () => {
return {
...jest.requireActual('react-final-form-listeners'),
OnChange: jest.fn(({ children }) => <>{children()}</>),
};
});
|
src/icons/Pinpoint.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Pinpoint extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M256,32C132.3,32,32,132.3,32,256c0,123.7,100.3,224,224,224c123.7,0,224-100.3,224-224C480,132.3,379.7,32,256,32z
M391.8... |
src/svg-icons/notification/mms.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
etc/beaconpi-react/src/Selection.js | co60ca/beaconpi | import React, { Component } from 'react';
import * as cfg from './config.js';
import {FormGroup, FormControl, ControlLabel} from 'react-bootstrap';
// import Datetime from 'react-datetime';
// import 'react-datetime/css/react-datetime.css'
// Data should be loaded into
// id, description, data
// required props:
// ... |
examples/src/components/SelectedValuesField.js | nightwolfz/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
src/containers/BTeam.js | kennethaa/vanvikil-live | import React, { Component } from 'react';
class BTeam extends Component {
render() {
return (
<div>
{'B-lag'}
</div>
);
}
}
export default BTeam;
|
web/src/js/__tests__/components/Header/MenuToggleSpec.js | mhils/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { MenuToggle, SettingsToggle, EventlogToggle } from '../../../components/Header/MenuToggle'
import { Provider } from 'react-redux'
import { REQUEST_UPDATE } from '../../../ducks/settings'
import { TStore } from '../../ducks/tutils'
global.fetc... |
packages/material-ui-icons/src/BurstModeRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M2 5c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1s-1-.45-1-1V6c0-.55.45-1 1-1zm4 0c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1s-1-.45-1-1V6c0-.55.45-1 1-1zm16 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.... |
examples/05 Customize/Handles and Previews/Container.js | colbyr/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import BoxWithImage from './BoxWithImage';
import BoxWithHandle from './BoxWithHandle';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
... |
src/index.js | devgeeks/4ZZZfm-app | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Redirect, Router, Route, hashHistory } from 'react-router';
import App from 'containers/App';
import PlayView from 'containers/PlayView';
import InfoView from 'containers/InfoView';
im... |
ajax/libs/forerunnerdb/1.3.897/fdb-core+persist.js | him2him2/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/routes/app/routes/ui/routes/lists/components/Settings.js | ahthamrin/kbri-admin2 | import React from 'react';
// import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Checkbox from 'material-ui/Checkbox';
import Toggle from 'material-ui/Toggle';
const Li... |
www/docs/en/quick-start-guide_ubuntu-1604_mitaka/5.2-rev3/common/jquery/jquery-1.4.3.min.js | midonet/midonet-docs | /*!
* jQuery JavaScript Library v1.4.3
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
stories/react/buttons/SecondaryButtons.stories.js | onap-sdc/sdc-ui | import React from 'react';
import Examples from '../utils/Examples.js';
import ReactButton from '../../../src/react/Button.js';
import SecondaryButton from '../../../components/button/button-secondary.html';
import SecondaryButtonDisabled from '../../../components/button/button-secondary-disabled.html';
import ExtraS... |
src/app/components/media-button-buy.js | pashist/soundcloud-like-player | import React from 'react';
import {connect} from 'react-redux';
import ReactTooltip from 'react-tooltip';
export default class MediaButtonBuy extends React.Component {
componentDidUpdate(){
ReactTooltip.rebuild();
}
render() {
const {data} = this.props;
if (!data || !data.purchase_u... |
docs/src/app/pages/components/Popover/ExampleTopPopover.js | GetAmbassador/react-ions | import React from 'react'
import Popover from 'react-ions/lib/components/Popover'
import Button from 'react-ions/lib/components/Button'
import StyledDiv from 'react-ions/lib/components/StyledDiv'
import localStyle from './style.scss'
class ExampleTopPopover extends React.Component {
constructor(props) {
super(pr... |
src/Components/Table/TableHeader/index.js | severnsc/brewing-app | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const Thead = styled.thead`
display:flex;
flex-direction:row;
align-items:center;
`
const HeaderRow = styled.tr`
display: flex;
flex: 1;
border-bottom:1px solid rgb(224, 224, 224);
color:#4e4e4e;
`
const... |
client/dist/manifold/www/build/chunk-react-syntax-highlighter_languages_highlight_openscad-626774e8f77df0df1b09.js | ManifoldScholar/manifold | (window.webpackJsonp=window.webpackJsonp||[]).push([[117],{1822:function(e,n){e.exports=function(e){var n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"function",beginKeywo... |
src/svg-icons/editor/bubble-chart.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBubbleChart = (props) => (
<SvgIcon {...props}>
<circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/>
</SvgIcon>
);
EditorBubbleChart = pure(EditorBub... |
app/javascript/mastodon/features/standalone/compose/index.js | PlantsNetwork/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
ajax/libs/waline/2.3.2/shim.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("autosize"),n=require("marked");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(t);const r=["nick","mail","link"],a=e=>e.filter((e=>r.includes(e))),i=e=>new Promise(((t,n)=>{const o=new Fil... |
src/routes/user/Modal.js | vincentdd/crm | import React from 'react'
import PropTypes from 'prop-types'
import {
Form,
Input,
InputNumber,
Radio,
Modal,
Cascader
} from 'antd'
import city from '../../utils/city'
const FormItem = Form.Item
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
}
const modal = (... |
ajax/libs/react-modal/3.4.4/react-modal.min.js | ahocevar/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)}("undefin... |
src/components/Button.js | brandai/brandai-storybook | import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
};
const Button = ({ children, onClick, style = {} }) => (
<button
style={{ ...buttonStyles, ...style }}
onClick={onClick... |
FE/src/xilnavbar.js | xil-se/Xilventory | import React from 'react';
import { render } from 'react-dom';
import { Link, withRouter } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';
import auth from './auth';
import {
Form,
FormControl,
FormGroup,
Checkbox,
Col,
ControlLabel,
Button,
Row,
Grid,
Navbar,
NavDrop... |
ajax/libs/yui/3.1.1/loader/loader.js | sreym/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
src/client/auth/login.react.js | jirastom/react-learnig | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter.react';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: Re... |
js/src/dapps/localtx.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (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 later version.... |
example/example-slack-message/src/App.js | FaridSafi/react-native-gifted-chat | import React from 'react'
import { Platform } from 'react-native'
import PropTypes from 'prop-types'
import { GiftedChat } from 'react-native-gifted-chat'
import emojiUtils from 'emoji-utils'
import SlackMessage from './SlackMessage'
export default class App extends React.Component {
state = {
messages: [],
}... |
fields/types/number/NumberColumn.js | w01fgang/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTyp... |
src/common/date-range/DateRangePicker.js | fastmonkeys/respa-ui | import React, { useState } from 'react';
import PropTypes from 'prop-types';
import DayPicker, { DateUtils } from 'react-day-picker';
import MomentLocaleUtils from 'react-day-picker/moment';
import 'react-day-picker/lib/style.css';
import injectT from '../../../app/i18n/injectT';
import {
validateRange,
DatePicker... |
src/components/Container.js | TASnomad/Fallon-react-native-app | import React, { Component } from 'react';
import {
StyleSheet,
View
} from 'react-native';
var styles = StyleSheet.create({
labelContainer: { marginBottom: 20 }
});
const Container = (props) => {
return (
<View style={ styles.labelContainer }>
{ props.children }
</View>
);
}
export default Con... |
js/graph.js | b4stien/simco | import React from 'react';
import d3 from 'd3';
export class SimcoGraph extends React.Component {
componentDidMount() {
this.displaySVGChart();
}
componentDidUpdate() {
this.displaySVGChart();
}
displaySVGChart() {
this.refs.svgChart.innerHTML = null;
let data =... |
ajax/libs/analytics.js/2.2.1/analytics.min.js | andyinabox/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
ajax/libs/thorax/2.1.3/thorax-combined.min.js | knpwrs/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
examples/custom-server-express/pages/index.js | arunoda/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li><Link href='/b' as='/a'><a>a</a></Link></li>
<li><Link href='/a' as='/b'><a>b</a></Link></li>
</ul>
)
|
ajax/libs/react-native-web/0.14.0/modules/usePlatformMethods/index.js | cdnjs/cdnjs | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
app/components/ProgressBar/index.js | ahsan-virani/react-gcd-portal | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
admin/client/App/screens/List/index.js | benkroeger/keystone | /**
* The list view is a paginated table of all items in the list. It can show a
* variety of information about the individual items in columns.
*/
import React from 'react';
// import { findDOMNode } from 'react-dom'; // TODO re-implement focus when ready
import numeral from 'numeral';
import { connect } from 'rea... |
packages/material-ui-icons/src/SettingsPhoneOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 9h2v2h-2zm4 0h2v2h-2zm5 6.5c-1.25 0-2.45-.2-3.57-.57-.1-.03-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.