path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs/app/Examples/elements/Label/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Groups from './Groups'
import Types from './Types'
import Variations from './Variations'
const LabelExamples = () => (
<div>
<Types />
<Content />
<Variations />
<Groups />
</div>
)
export default LabelExamples
|
js/WizardsLifeCounter.js | sotayamashita/wizardsLifeCounter | // @flow
import React from 'react';
import { StatusBar } from 'react-native';
import StyledView from './common/StyledView';
import WizardsLifeCounterNavigator from './WizardsLifeCounterNavigator';
const WizardsLifeCounter = () =>
<StyledView>
<StatusBar />
<WizardsLifeCounterNavigator />
</StyledView>;
e... |
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js | hai-cea/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import areIntlLocalesSupported from 'intl-locales-supported';
import persianUtils from 'material-ui-persian-date-picker-utils';
let DateTimeFormat;
/**
* Use the native Intl.DateTimeFormat if available, or a polyfill if not.
*/
if (areIntlL... |
app/components/Home/Discuss.js | Caraxiong/react-demo | import React from 'react'
import PropTypes from 'prop-types'
const Discuss = ( { comment } ) => (
<div className="discuss-item">
{comment}
</div>
)
Discuss.propTypes = {
comment: PropTypes.string.isRequired
}
export default Discuss
|
client/src/core-components/header.js | ivandiazwm/opensupports | import React from 'react';
class Header extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
description: React.PropTypes.string
};
render() {
return (
<div className="header">
<h2 className="header__title">{this.props... |
ajax/libs/primereact/6.6.0/inputswitch/inputswitch.min.js | cdnjs/cdnjs | this.primereact=this.primereact||{},this.primereact.inputswitch=function(t,e,n){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(e);function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnPr... |
docs/src/app/components/pages/components/Popover/ExampleSimple.js | rscnt/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleSimple extends React.Component {
constructor(props) {
super(props);
... |
ajax/libs/react-native-web/0.17.6/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/... |
src/svg-icons/device/signal-cellular-3-bar.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar);
DeviceS... |
src/Badge.js | cgvarela/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
src/higherOrders/Transition.js | lenxeon/react-ui | import React from 'react'
import PropTypes from '../utils/proptypes'
function childrenToItems (children) {
if (!children) {
return {}
}
let items = {}
if (!Array.isArray(children)) {
children = [children]
}
children.forEach((child) => {
items[child.key] = child
})
return items
}
functio... |
docs/src/app/components/pages/get-started/ServerRendering.js | ichiohta/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './server-rendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
src/components/Html.js | medevelopment/updatemeadmin | /**
* 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-... |
src/chat/ui/NavBarMessages.js | elarasu/roverz-chat | import React from 'react';
import {
Text,
View,
} from 'react-native';
import { Icon } from 'react-native-elements';
import { NavButton } from 'react-native-nav';
import { Actions } from 'react-native-router-flux';
import PropTypes from 'prop-types';
import { AppStyles, AppColors } from '../../theme/';
const icon ... |
node_modules/radium/src/__tests__/style-component-test.js | HasanSa/hackathon | /* eslint-disable react/prop-types */
import {Style} from 'index';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import {expectCSS, getElement} from 'test-helpers';
const MSIE9_USER_AGENT =
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 7.1; Trident/5.0)';
describe('<Style> component',... |
samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication/app/src/App.js | billba/botchat | import React from 'react';
import './App.css';
import MicrosoftGraphProfileMenu from './ui/MicrosoftGraphProfileMenu';
import OAuthComposer from './oauth/Composer';
import WebChat from './ui/WebChat';
const App = () => (
<div>
<OAuthComposer>
<MicrosoftGraphProfileMenu />
<WebChat />
</OAuthComp... |
__tests__/PaginationBoxView-test.js | mikeumus/react-paginate-fetch | import React from 'react';
import ReactDOM from 'react-dom';
jest.dontMock('./../react_components/PaginationBoxView');
jest.dontMock('./../react_components/PageView');
jest.dontMock('./../react_components/BreakView');
const PaginationBoxView = require('./../react_components/PaginationBoxView').default;
const PageView... |
packages/material-ui-icons/src/LocationOnRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.... |
src/entypo/ReplyAll.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ReplyAll';
let EntypoReplyAll = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M7.225,5.767V3.086L0,9.542l7.225,6.691v-2.777L3,9.542L7.225,5.767z M12.225,6.953V3.086L5,9.542l7.... |
src/components/TextArea/Textarea-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, number, text } from '@storybook/addon-knobs';
import TextArea from '../TextArea';
import TextAreaSkeleton from '../TextArea/TextArea.Skeleton';
const TextAreaProps = ... |
src/renderers/dom/client/__tests__/ReactEventListener-test.js | sarvex/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... |
src/statics/UserNotFound.js | Sekhmet/busy | import React from 'react';
import { FormattedMessage } from 'react-intl';
const UserNotFound = () =>
<div className="text-center my-5">
<h3>
<FormattedMessage id="user_not_found" defaultMessage="User not found" />
</h3>
</div>;
export default UserNotFound;
|
webpack.config.js | MonkingStand/MS-blog-site-v3.0 | // 参考: http://www.cnblogs.com/StrongerSY/p/5886059.html
// 引入css 单独打包插件
var ExtractTextPlugin = require("extract-text-webpack-plugin");
// 设置生成css 的路径和文件名,会自动将对应entry入口js文件中引入的CSS抽出成单独的文件
var packCSS = new ExtractTextPlugin('./css/[name].min.css');
module.exports = {
entry: './main.js',
output: {
... |
app/components/TasksWall/TasksWall.js | Jberivera/kanban-app | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styles from './TasksWall.scss';
import classNames from 'classnames/bind';
import {
orderChange,
moveFromTo
} from './actions';
import { findTask, findGroup } from '../../js/findUp';
import { getOffse... |
web/node_modules/material-ui/AppBar/AppBar.js | Jorginho211/TFG | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
project/app/features/SqlCopy.js | Jishun/ToolboxSite | import React, { Component, PropTypes } from 'react'
import {Grid, Row, Col, Column, Table} from 'react-bootstrap'
import Input from 'react-validated-input'
export default class SqlCopy extends Component {
constructor(props){
super(props)
this.state={inputData: '', outputData: '', lines : [], rows : 0, colum... |
public/extjs/docs/output/Ext.grid.column.Column.js | cassioozarias/zfextjs | Ext.data.JsonP.Ext_grid_column_Column({"alternateClassNames":["Ext.grid.Column"],"aliases":{"widget":["gridcolumn"]},"enum":null,"parentMixins":["Ext.state.Stateful","Ext.util.Animate","Ext.util.ElementContainer","Ext.util.Floating","Ext.util.Observable","Ext.util.Positionable","Ext.util.Renderable"],"tagname":"class",... |
client/src/app/primitives/icon/Icon.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
imports/plugins/core/email/client/containers/emailLogs.js | together-web-pj/together-web-pj | import { useDeps } from "react-simple-di";
import { Meteor } from "meteor/meteor";
import actions from "../actions";
import EmailLogs from "../components/emailLogs";
import { Loading } from "/imports/plugins/core/ui/client/components";
import { Jobs } from "/lib/collections";
import { composeWithTracker, merge } from "... |
packages/icon/src/jsx/SmPrintFilled.js | CraveFood/farmblocks | import * as React from "react";
import PropTypes from "prop-types";
import { withWrapper } from "../Icon";
const Vector = React.forwardRef(({ size, color, ...props }, ref) => (
<svg
width={size}
height={size}
viewBox="2 2 20 20"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
aria-hidden={!props... |
test/CollapsibleMixinSpec.js | erictherobot/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CollapsibleMixin from '../src/CollapsibleMixin';
import classNames from 'classnames';
describe('CollapsibleMixin', function () {
let Component, instance;
beforeEach(function(){
Component = React.createClass({
mixin... |
src/components/HeaderComponent.js | ShawnHuPersonal2/react-template | 'use strict';
import React from 'react';
import {Navbar, Nav, NavItem } from 'react-bootstrap';
import MenuConstants from '../constants/Menu';
import {Link} from 'react-router';
require('styles/Header.styl');
function Item(props) {
switch (props.type) {
case MenuConstants.download:
return (
<NavI... |
ajax/libs/babel-core/4.7.13/browser.min.js | AMoo-Miki/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.babel=e()}}(function(){var e,n,l;return function t(e,n,... |
docs/src/pages/index.js | chrisclarke1977/nuclear-js | import React from 'react'
import Wrapper from '../layouts/wrapper'
import ItemFilterExample from '../components/item-filter-example'
import UsageExample from '../components/usage-example'
import Nav from '../components/nav'
export default React.createClass({
render() {
return <Wrapper>
<Nav />
<div c... |
js/vendor/jquery-1.12.0.min.js | khxu/startup-mapper | /*! jQuery v1.12.0 | (c) jQuery Foundation | 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 window?window:this,fu... |
docs/src/examples/elements/Button/Content/ButtonExampleConditionals.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleConditionals = () => (
<Button.Group>
<Button>Cancel</Button>
<Button.Or />
<Button positive>Save</Button>
</Button.Group>
)
export default ButtonExampleConditionals
|
examples/todoapp-branching/containers/AddTodo.js | morkl/redux-branchable | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
project-base/src/server/Html.js | ch-apptitude/goomi | import React from 'react';
import PropTypes from 'prop-types';
import serialize from 'serialize-javascript';
import Helmet from 'react-helmet';
import { fromJS } from 'immutable';
const setHTML = content => ({
__html: content,
});
/* eslint-disable react/no-danger*/
const Html = ({ store, locale, content, assets }) ... |
ajax/libs/yui/3.17.1/datatable-body/datatable-body-debug.js | emijrp/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
node_modules/node_modules/material-ui/svg-icons/hardware/speaker-group.js | SerendpityZOEY/Solr-Search-React-UI | '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... |
ajax/libs/react-highcharts/4.0.0/highstock.js | wout/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["Highcharts"] = fact... |
app/components/PatchEdit.js | animalphase/bramble | // @flow
// import React, { Component } from 'react';
import React from 'react';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
import { connect } from 'react-redux';
import stateReturn from '../store/state-return.js';
import marked from 'marked';
import utils from '../utils.js';
import new... |
ajax/libs/forerunnerdb/1.3.897/fdb-core.js | extend1994/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... |
ajax/libs/forerunnerdb/1.3.40/fdb-legacy.js | redmunds/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... |
ajax/libs/highmaps/5.0.3/highcharts.src.js | holtkamp/cdnjs | /**
* @license Highcharts JS v5.0.3 (2016-11-18)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document ?
factory(root) :
factory;
... |
Package Storage/lsp_utils/node-runtime/12.20.2/node/lib/node_modules/npm/docs/gatsby-browser.js | dmilith/SublimeText3-dmilith | import React from 'react'
import Layout from './src/components/layout'
require('prismjs/themes/prism-tomorrow.css')
require('./src/main.css')
export const wrapPageElement = ({ element, props }) => {
return <Layout {...props} >{element}</Layout>
}
|
ajax/libs/yui/3.10.3/event-focus/event-focus-coverage.js | him2him2/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
src/stats/view/TestResultsComponent.js | sozemego/StatHelper | import React from 'react';
import SelectableElementCollectionComponent from '../../common/component/SelectableElementCollectionComponent';
import {Paper} from 'material-ui';
import {CORRELATION} from '../../experimental-design/model/test-constants';
import {CorrelationTestResultComponent} from './CorrelationTestResultC... |
files/react/0.13.3/react-with-addons.min.js | leebyron/jsdelivr | /**
* React (with addons) v0.13.3
*
* 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... |
webapp/src/app/menu/screens/Menu.js | cpollet/itinerants | import React from 'react';
import {Link} from 'react-router';
import {renderIf} from '../../../lib/helpers';
import MenuItem from '../components/MenuItem';
import styles from './Menu.css';
class Menu extends React.Component {
render() {
return (
<ul className={styles.component}>
... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
test/common/components/App-test.js | deflexor/react_route_seek | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import App from '../../../src/common/components/App';
test('render with container div', t => {
const wrapper = shallow(React.createElement(App));
t.is(wrapper.find('#container').length, 1);
});
|
node_modules/react-router/es/IndexRedirect.js | rralian/steckball-react | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
apps/search/bible/ui/src/components/Dropdown.js | lucifurtun/myquotes | import React from 'react'
import Select from 'react-select'
import { connect } from 'react-redux'
import { formChange } from '../redux/filters'
import { isObject } from 'lodash'
const DropDown = ({ name, options, placeholder, value, dispatch }) => {
let preparedValue = null
if (isObject(value)) {
pre... |
src/index.js | caligin/netronner-ui | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
ajax/libs/react-datetime/1.2.0/react-datetime.js | maruilian11/cdnjs | /*
react-datetime v1.2.0
https://github.com/arqex/react-datetime
MIT: https://github.com/arqex/react-datetime/raw/master/LICENSE
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require(undefined), require(undefined)... |
app/js/components/ui/components/qr-scan/index.js | blockstack/blockstack-portal | import React from 'react'
import PropTypes from 'prop-types'
import QrReader from 'react-qr-reader'
import { StyledButton } from '@ui/components/button'
import * as Styled from './styled'
const QrScan = ({ onScan, onError, handleClose, error }) => (
<Styled.Container>
<Styled.Scanner>
<QrReader
onS... |
ajax/libs/forerunnerdb/1.3.534/fdb-core+views.js | redmunds/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... |
examples/js/pagination/demo.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import DefaultPaginationTable from './default-pagination-table';
import CustomPaginationTable from './custom-pagination-table';
import PaginationHookTable from './pagination-hook-table';
class Demo extends React.Component {
render() {
return (
<div>
... |
src/js/components/ControllerNavs.js | AlexBai1991/react-images-gallery | 'use strict';
import React, { Component } from 'react';
import React, { Component, PropTypes } from 'react';
export default class ControllerNavs extends Component {
constructor(props, context) {
super(props, context);
this.centerImage = this.centerImage.bind(this);
}
centerImage(index) {
return (e)... |
src/parser/hunter/shared/modules/features/FocusUsage.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Doughnut as DoughnutChart } from 'react-chartjs-2';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticsListBox from 'interface/others/Statisti... |
ajax/libs/react-native-web/0.17.3/exports/createElement/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import React fro... |
src/components/App.js | sheelah/itunes-top-five | import React from 'react';
import GenrePicker from './GenrePicker';
import CurrentHits from './CurrentHits';
import store from '../store';
import * as genreActions from '../actions/genreActions';
class App extends React.Component {
changeGenre(genre) {
store.dispatch(genreActions.selectGenre(genre));
}
ren... |
ajax/libs/yui/3.14.0/datatable-core/datatable-core.js | lobbin/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
ajax/libs/require-jquery/0.25.0/require-jquery.min.js | tomalec/cdnjs | var requirejs,require,define;(function(global){function isFunction(a){return"[object Function]"===ostring.call(a)}function isArray(a){return"[object Array]"===ostring.call(a)}function each(a,b){if(a){var c;for(c=0;a.length>c&&(!a[c]||!b(a[c],c,a));c+=1);}}function eachReverse(a,b){if(a){var c;for(c=a.length-1;c>-1&&(!a... |
app/app/components/AdminPanel/ApiKeys/AddApiKey.js | lycha/masters-thesis | import React from 'react';
import axios from 'axios';
import DatePicker from 'react-datepicker';
import store from '../../../store';
import moment from 'moment';
import { expirationDateSelected } from '../../../actions/ApiKeyActions';
class AddApiKey extends React.Component {
constructor(props) {
super(props);
... |
src/constants.js | BBB/react-native-card.io | import { NativeModules } from 'react-native';
const {
BBBCardIO: {
LIBRARY_VERSION,
DETECTION_MODE,
CAN_READ_CARD_WITH_CAMERA
}
} = NativeModules;
export const SUPPORTED_LANGUAGES = [
'ar',
'da',
'de',
'en',
'en_AU',
'en_GB',
'es',
'es_MX',
'fr',
'he',
'is',
'it',
'ja',
'ko'... |
ajax/libs/react/0.14.0-alpha3/react.min.js | aashish24/cdnjs | /**
* React v0.14.0-alpha3
*
* 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 direct... |
src/js/PointEditor.react.js | sdawson/react_flux_demo | import React from 'react';
import { PropTypes } from 'react';
var PointEditor = React.createClass({
propTypes: {
handleAdd: PropTypes.func.isRequired,
},
getInitialState: function() {
return {
x: '',
y: ''
};
},
_onXChange: function(event) {
this.setState({ x : event.target.valu... |
src/components/Top/Menu.js | PhyrexTsai/ens-bid-dapp | import React from 'react';
import IconButton from 'material-ui/IconButton';
import MenuIcon from 'material-ui-icons/Menu';
export const Menu = (props) => (
<IconButton
color="contrast"
aria-label="open menu"
onClick={props.handleDrawerOpen}
className="MenuBtn">
<MenuIcon />
</IconButton>
);
|
test/integration/css-fixtures/global-and-module-ordering/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
ajax/libs/mobx-react/2.1.2/index.js | him2him2/cdnjs | (function() {
function mrFactory(mobservable, React, ReactDOM) {
if (!mobservable)
throw new Error("mobservable-react requires the Mobservable package")
if (!React)
throw new Error("mobservable-react requires React to be available");
var isTracking = false;
... |
src/components/TextInputCSSModules/TextInputCSSModules.js | wsherman67/UBA | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
import styles from './textInput.css';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text",... |
src/components/UTTTGame/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Button } from 'semantic-ui-react';
import UTTT from '@socialgorithm/ultimate-ttt';
import Slider from 'rc-slider';
import Board from './Board';
import './style.scss';
import 'rc-slider/assets/index.css';
class UTTTGame extends React.Compone... |
client/src/App.js | MalgAmoe/t9ers | import React, { Component } from 'react';
import Screen from './Screen';
import KeyPad from './KeyPad';
import Functions from './Functions';
import './App.css';
const styles = {
container: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
backgroundColor: 'Aqua',
paddingTop: 50,... |
documentation/Reference Code/Wedge/is4c/js/jquery-1.4.2.min.js | joelbrock/ELFCO_CORE | /*!
* 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.
... |
cheesecakes/admin/admin/src/components/Row/index.js | strapi/strapi-examples | /*
*
* Row
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { FormattedMessage } from 'react-intl';
import { includes, isEmpty } from 'lodash';
// Design
import IcoContainer from 'components/IcoContainer';
import ListRow from 'components/ListRow';
import PopUpWar... |
components/fields/forked-react-dates/src/components/DayPickerSingleDateController.js | Mudano/m-dash-ui | import React from 'react';
import PropTypes from 'prop-types';
import momentPropTypes from 'react-moment-proptypes';
import { forbidExtraProps, nonNegativeInteger } from 'airbnb-prop-types';
import moment from 'moment';
import values from 'object.values';
import isTouchDevice from 'is-touch-device';
import { DayPicker... |
distribution/openhabhome/webapps/greent/jquery/jquery-1.6.4.js | google-code-export/openhab | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
routes/Statistic/components/ScatterPlot/Scatter.js | YongYuH/Ludo | import React from 'react';
import * as d3 from 'd3';
/*
NEED: npm install d3
*/
// data
const data = [
{
name: '雙方皆完成',
num: 1,
value: [
{ x: 80, y: 70, isL: 0 },
{ x: 88, y: 84, isL: 0 },
{ x: 95, y: 68, isL: 0 },
{ x: 78, y: 87, isL: 0 },
{ x: 100, y: 100, isL: 0 },
... |
ajax/libs/yui/3.4.1/yui/yui.js | jonathan-fielding/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... |
ajax/libs/orb/1.0.3/orb.min.js | mikelambert/cdnjs | /**
* orb v1.0.3, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.3
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof... |
ajax/libs/ember-data.js/1.0.0-beta.4/ember-data.prod.js | danielnaranjo/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2013 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
*/
// Version: 1.0.0-beta.4
(function() {
var define, requireModule;
(function() {
var registry = {}, seen... |
lib/theme/DefaultTheme.js | rodrigocipriani/br-react-utils | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
app/components/Calibrate.js | national-treasures-tw/landing-page | import React from 'react';
import { Link } from 'react-router';
import styles from '../styles.css';
import logo from '../assets/hero-menu-logo.png';
import badge3 from '../assets/participants/badge-3.png';
import screenshot from '../assets/participants/screenshot.png';
import poweredBy from '../assets/poweredby.png';
... |
src/client/components/ExpenseRow.js | joerx/expensely | import React from 'react';
import ucfirst from '../helpers/ucfirst';
import printf from 'printf';
// Single expense
// - onDelete()
const ExpenseRow = ({label, amount, actionIcon, onActionClick}) => {
return (<div className="expense-row">
<span className="expense-label">{ucfirst(label)}</span>
<span classNam... |
src/components/Footer/index.js | tgrecojs/tgrecojs-static | // @flow
import React from 'react';
import styled from 'styled-components';
import theme from '../../lib/theme';
const Footer = styled.div`
background-color: rgb(86, 156, 183);
font-family: 'Lato';
color: ${theme.light.lighten(0.3)};
a,
a:visited {
color: ${theme.light.lighten(0.3)};
}
`;
export defa... |
fields/components/columns/IdColumn.js | mikaoelitiana/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/svg-icons/content/select-all.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSelectAll = (props) => (
<SvgIcon {...props}>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 ... |
node_modules/react-router/es6/Lifecycle.js | broodfusion/react-udemy | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/svg-icons/device/location-disabled.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
plugins/writing.js | AxeBane/The-Scribe | /**
* Writing commands
* Cassius - https://github.com/sirDonovan/Cassius
*
* @license MIT license
*/
'use strict';
const database = Storage.getDatabase('writing');
const MESSAGES_TIME_OUT = 7 * 24 * 60 * 60 * 1000;
// sync database properties
if (!database.potd) database.potd = [];
if (!database.scribeShop) dat... |
blueprints/route/files/src/routes/__name__/components/__name__/__name__.js | KyperTech/devshare-site | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
|
src/components/Block.js | tobice/flux-lumines | import React from 'react';
import PureComponent from './PureComponent.js';
import Square from './Square.js';
import {SQUARE_SIZE} from '../game/dimensions.js';
import {getBlockSquareX, getBlockSquareY, yToRow} from '../game/squareHelpers.js';
export default class Block extends PureComponent {
render() {
c... |
webapp/src/components/ParameterFields/ParameterFields.js | OverStruck/deep-dream-maker | import React from 'react';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import makeStyles from '@material-ui/core/styles/makeStyles';
import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';
import Keybo... |
internals/templates/containers/HomePage/index.js | Dmitry-N-Medvedev/motor-collection | /*
* 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 necessity for you then you can refactor it and remove
* the l... |
app/javascript/mastodon/containers/mastodon.js | rekif/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-sc... |
app/javascript/mastodon/features/compose/components/compose_form.js | pinfort/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
ajax/libs/6to5/1.11.5/browser.js | WebReflection/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.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/vega/3.0.0-beta.35/vega.min.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vega=t.vega||{})}(this,function(t){"use strict";function e(t){var e,n,r,i,a,o,u,s,f=t.maxbins||20,c=t.base||10,l=Math.log(c),h=t.divide||[5,2],d=t.extent[0],p=t.extent[1],g=p-d;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.